bootswatch-sass 3.3.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +49 -0
  6. data/Rakefile +2 -0
  7. data/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
  8. data/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +229 -0
  9. data/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  10. data/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
  11. data/assets/javascripts/bootstrap.js +12 -0
  12. data/assets/javascripts/bootstrap/affix.js +162 -0
  13. data/assets/javascripts/bootstrap/alert.js +94 -0
  14. data/assets/javascripts/bootstrap/button.js +116 -0
  15. data/assets/javascripts/bootstrap/carousel.js +240 -0
  16. data/assets/javascripts/bootstrap/collapse.js +211 -0
  17. data/assets/javascripts/bootstrap/dropdown.js +161 -0
  18. data/assets/javascripts/bootstrap/modal.js +324 -0
  19. data/assets/javascripts/bootstrap/popover.js +119 -0
  20. data/assets/javascripts/bootstrap/scrollspy.js +175 -0
  21. data/assets/javascripts/bootstrap/tab.js +153 -0
  22. data/assets/javascripts/bootstrap/tooltip.js +478 -0
  23. data/assets/javascripts/bootstrap/transition.js +59 -0
  24. data/assets/stylesheets/_bootstrap-cerulean.scss +3 -0
  25. data/assets/stylesheets/_bootstrap-cosmo.scss +3 -0
  26. data/assets/stylesheets/_bootstrap-cyborg.scss +3 -0
  27. data/assets/stylesheets/_bootstrap-darkly.scss +3 -0
  28. data/assets/stylesheets/_bootstrap-flatly.scss +3 -0
  29. data/assets/stylesheets/_bootstrap-journal.scss +3 -0
  30. data/assets/stylesheets/_bootstrap-lumen.scss +3 -0
  31. data/assets/stylesheets/_bootstrap-paper.scss +3 -0
  32. data/assets/stylesheets/_bootstrap-readable.scss +3 -0
  33. data/assets/stylesheets/_bootstrap-sandstone.scss +3 -0
  34. data/assets/stylesheets/_bootstrap-simplex.scss +3 -0
  35. data/assets/stylesheets/_bootstrap-slate.scss +3 -0
  36. data/assets/stylesheets/_bootstrap-spacelab.scss +3 -0
  37. data/assets/stylesheets/_bootstrap-superhero.scss +3 -0
  38. data/assets/stylesheets/_bootstrap-united.scss +3 -0
  39. data/assets/stylesheets/_bootstrap-yeti.scss +3 -0
  40. data/assets/stylesheets/_bootstrap.scss +50 -0
  41. data/assets/stylesheets/bootstrap/_alerts.scss +68 -0
  42. data/assets/stylesheets/bootstrap/_badges.scss +63 -0
  43. data/assets/stylesheets/bootstrap/_breadcrumbs.scss +26 -0
  44. data/assets/stylesheets/bootstrap/_button-groups.scss +243 -0
  45. data/assets/stylesheets/bootstrap/_buttons.scss +160 -0
  46. data/assets/stylesheets/bootstrap/_carousel.scss +267 -0
  47. data/assets/stylesheets/bootstrap/_close.scss +35 -0
  48. data/assets/stylesheets/bootstrap/_code.scss +69 -0
  49. data/assets/stylesheets/bootstrap/_component-animations.scss +38 -0
  50. data/assets/stylesheets/bootstrap/_dropdowns.scss +213 -0
  51. data/assets/stylesheets/bootstrap/_forms.scss +548 -0
  52. data/assets/stylesheets/bootstrap/_glyphicons.scss +234 -0
  53. data/assets/stylesheets/bootstrap/_grid.scss +84 -0
  54. data/assets/stylesheets/bootstrap/_input-groups.scss +166 -0
  55. data/assets/stylesheets/bootstrap/_jumbotron.scss +49 -0
  56. data/assets/stylesheets/bootstrap/_labels.scss +66 -0
  57. data/assets/stylesheets/bootstrap/_list-group.scss +124 -0
  58. data/assets/stylesheets/bootstrap/_media.scss +47 -0
  59. data/assets/stylesheets/bootstrap/_mixins.scss +39 -0
  60. data/assets/stylesheets/bootstrap/_modals.scss +148 -0
  61. data/assets/stylesheets/bootstrap/_navbar.scss +662 -0
  62. data/assets/stylesheets/bootstrap/_navs.scss +244 -0
  63. data/assets/stylesheets/bootstrap/_normalize.scss +427 -0
  64. data/assets/stylesheets/bootstrap/_pager.scss +54 -0
  65. data/assets/stylesheets/bootstrap/_pagination.scss +88 -0
  66. data/assets/stylesheets/bootstrap/_panels.scss +261 -0
  67. data/assets/stylesheets/bootstrap/_popovers.scss +135 -0
  68. data/assets/stylesheets/bootstrap/_print.scss +107 -0
  69. data/assets/stylesheets/bootstrap/_progress-bars.scss +87 -0
  70. data/assets/stylesheets/bootstrap/_responsive-embed.scss +35 -0
  71. data/assets/stylesheets/bootstrap/_responsive-utilities.scss +174 -0
  72. data/assets/stylesheets/bootstrap/_scaffolding.scss +150 -0
  73. data/assets/stylesheets/bootstrap/_tables.scss +234 -0
  74. data/assets/stylesheets/bootstrap/_theme.scss +272 -0
  75. data/assets/stylesheets/bootstrap/_thumbnails.scss +38 -0
  76. data/assets/stylesheets/bootstrap/_tooltip.scss +103 -0
  77. data/assets/stylesheets/bootstrap/_type.scss +298 -0
  78. data/assets/stylesheets/bootstrap/_utilities.scss +56 -0
  79. data/assets/stylesheets/bootstrap/_variables.scss +864 -0
  80. data/assets/stylesheets/bootstrap/_wells.scss +29 -0
  81. data/assets/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
  82. data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +11 -0
  83. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
  84. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +52 -0
  85. data/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
  86. data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
  87. data/assets/stylesheets/bootstrap/mixins/_forms.scss +88 -0
  88. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
  89. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
  90. data/assets/stylesheets/bootstrap/mixins/_grid.scss +122 -0
  91. data/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
  92. data/assets/stylesheets/bootstrap/mixins/_image.scss +33 -0
  93. data/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
  94. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +31 -0
  95. data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
  96. data/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
  97. data/assets/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
  98. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +23 -0
  99. data/assets/stylesheets/bootstrap/mixins/_panels.scss +24 -0
  100. data/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
  101. data/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
  102. data/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
  103. data/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
  104. data/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
  105. data/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
  106. data/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
  107. data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +11 -0
  108. data/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
  109. data/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
  110. data/assets/stylesheets/cerulean/_bootswatch.scss +124 -0
  111. data/assets/stylesheets/cerulean/_variables.scss +856 -0
  112. data/assets/stylesheets/cosmo/_bootswatch.scss +156 -0
  113. data/assets/stylesheets/cosmo/_variables.scss +856 -0
  114. data/assets/stylesheets/cyborg/_bootswatch.scss +140 -0
  115. data/assets/stylesheets/cyborg/_variables.scss +856 -0
  116. data/assets/stylesheets/darkly/_bootswatch.scss +256 -0
  117. data/assets/stylesheets/darkly/_variables.scss +856 -0
  118. data/assets/stylesheets/flatly/_bootswatch.scss +235 -0
  119. data/assets/stylesheets/flatly/_variables.scss +856 -0
  120. data/assets/stylesheets/journal/_bootswatch.scss +68 -0
  121. data/assets/stylesheets/journal/_variables.scss +856 -0
  122. data/assets/stylesheets/lumen/_bootswatch.scss +385 -0
  123. data/assets/stylesheets/lumen/_variables.scss +856 -0
  124. data/assets/stylesheets/paper/_bootswatch.scss +464 -0
  125. data/assets/stylesheets/paper/_variables.scss +856 -0
  126. data/assets/stylesheets/readable/_bootswatch.scss +125 -0
  127. data/assets/stylesheets/readable/_variables.scss +856 -0
  128. data/assets/stylesheets/sandstone/_bootswatch.scss +155 -0
  129. data/assets/stylesheets/sandstone/_variables.scss +856 -0
  130. data/assets/stylesheets/simplex/_bootswatch.scss +115 -0
  131. data/assets/stylesheets/simplex/_variables.scss +856 -0
  132. data/assets/stylesheets/slate/_bootswatch.scss +422 -0
  133. data/assets/stylesheets/slate/_variables.scss +856 -0
  134. data/assets/stylesheets/spacelab/_bootswatch.scss +171 -0
  135. data/assets/stylesheets/spacelab/_variables.scss +856 -0
  136. data/assets/stylesheets/superhero/_bootswatch.scss +232 -0
  137. data/assets/stylesheets/superhero/_variables.scss +856 -0
  138. data/assets/stylesheets/united/_bootswatch.scss +9 -0
  139. data/assets/stylesheets/united/_variables.scss +856 -0
  140. data/assets/stylesheets/yeti/_bootswatch.scss +308 -0
  141. data/assets/stylesheets/yeti/_variables.scss +856 -0
  142. data/bootswatch-sass.gemspec +29 -0
  143. data/lib/bootswatch-sass.rb +34 -0
  144. data/lib/bootswatch-sass/engine.rb +10 -0
  145. data/lib/bootswatch-sass/version.rb +3 -0
  146. metadata +286 -0
@@ -0,0 +1,69 @@
1
+ //
2
+ // Code (inline and block)
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Inline and block code styles
7
+ code,
8
+ kbd,
9
+ pre,
10
+ samp {
11
+ font-family: $font-family-monospace;
12
+ }
13
+
14
+ // Inline code
15
+ code {
16
+ padding: 2px 4px;
17
+ font-size: 90%;
18
+ color: $code-color;
19
+ background-color: $code-bg;
20
+ border-radius: $border-radius-base;
21
+ }
22
+
23
+ // User input typically entered via keyboard
24
+ kbd {
25
+ padding: 2px 4px;
26
+ font-size: 90%;
27
+ color: $kbd-color;
28
+ background-color: $kbd-bg;
29
+ border-radius: $border-radius-small;
30
+ box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
31
+
32
+ kbd {
33
+ padding: 0;
34
+ font-size: 100%;
35
+ font-weight: bold;
36
+ box-shadow: none;
37
+ }
38
+ }
39
+
40
+ // Blocks of code
41
+ pre {
42
+ display: block;
43
+ padding: (($line-height-computed - 1) / 2);
44
+ margin: 0 0 ($line-height-computed / 2);
45
+ font-size: ($font-size-base - 1); // 14px to 13px
46
+ line-height: $line-height-base;
47
+ word-break: break-all;
48
+ word-wrap: break-word;
49
+ color: $pre-color;
50
+ background-color: $pre-bg;
51
+ border: 1px solid $pre-border-color;
52
+ border-radius: $border-radius-base;
53
+
54
+ // Account for some code outputs that place code tags in pre tags
55
+ code {
56
+ padding: 0;
57
+ font-size: inherit;
58
+ color: inherit;
59
+ white-space: pre-wrap;
60
+ background-color: transparent;
61
+ border-radius: 0;
62
+ }
63
+ }
64
+
65
+ // Enable scrollable blocks of code
66
+ .pre-scrollable {
67
+ max-height: $pre-scrollable-max-height;
68
+ overflow-y: scroll;
69
+ }
@@ -0,0 +1,38 @@
1
+ //
2
+ // Component animations
3
+ // --------------------------------------------------
4
+
5
+ // Heads up!
6
+ //
7
+ // We don't use the `.opacity()` mixin here since it causes a bug with text
8
+ // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.
9
+
10
+ .fade {
11
+ opacity: 0;
12
+ @include transition(opacity .15s linear);
13
+ &.in {
14
+ opacity: 1;
15
+ }
16
+ }
17
+
18
+ .collapse {
19
+ display: none;
20
+ visibility: hidden;
21
+
22
+ &.in { display: block; visibility: visible; }
23
+ // [converter] extracted tr&.in to tr.collapse.in
24
+ // [converter] extracted tbody&.in to tbody.collapse.in
25
+ }
26
+
27
+ tr.collapse.in { display: table-row; }
28
+
29
+ tbody.collapse.in { display: table-row-group; }
30
+
31
+ .collapsing {
32
+ position: relative;
33
+ height: 0;
34
+ overflow: hidden;
35
+ @include transition-property(height, visibility);
36
+ @include transition-duration(.35s);
37
+ @include transition-timing-function(ease);
38
+ }
@@ -0,0 +1,213 @@
1
+ //
2
+ // Dropdown menus
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Dropdown arrow/caret
7
+ .caret {
8
+ display: inline-block;
9
+ width: 0;
10
+ height: 0;
11
+ margin-left: 2px;
12
+ vertical-align: middle;
13
+ border-top: $caret-width-base solid;
14
+ border-right: $caret-width-base solid transparent;
15
+ border-left: $caret-width-base solid transparent;
16
+ }
17
+
18
+ // The dropdown wrapper (div)
19
+ .dropdown {
20
+ position: relative;
21
+ }
22
+
23
+ // Prevent the focus on the dropdown toggle when closing dropdowns
24
+ .dropdown-toggle:focus {
25
+ outline: 0;
26
+ }
27
+
28
+ // The dropdown menu (ul)
29
+ .dropdown-menu {
30
+ position: absolute;
31
+ top: 100%;
32
+ left: 0;
33
+ z-index: $zindex-dropdown;
34
+ display: none; // none by default, but block on "open" of the menu
35
+ float: left;
36
+ min-width: 160px;
37
+ padding: 5px 0;
38
+ margin: 2px 0 0; // override default ul
39
+ list-style: none;
40
+ font-size: $font-size-base;
41
+ text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
42
+ background-color: $dropdown-bg;
43
+ border: 1px solid $dropdown-fallback-border; // IE8 fallback
44
+ border: 1px solid $dropdown-border;
45
+ border-radius: $border-radius-base;
46
+ @include box-shadow(0 6px 12px rgba(0,0,0,.175));
47
+ background-clip: padding-box;
48
+
49
+ // Aligns the dropdown menu to right
50
+ //
51
+ // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`
52
+ &.pull-right {
53
+ right: 0;
54
+ left: auto;
55
+ }
56
+
57
+ // Dividers (basically an hr) within the dropdown
58
+ .divider {
59
+ @include nav-divider($dropdown-divider-bg);
60
+ }
61
+
62
+ // Links within the dropdown menu
63
+ > li > a {
64
+ display: block;
65
+ padding: 3px 20px;
66
+ clear: both;
67
+ font-weight: normal;
68
+ line-height: $line-height-base;
69
+ color: $dropdown-link-color;
70
+ white-space: nowrap; // prevent links from randomly breaking onto new lines
71
+ }
72
+ }
73
+
74
+ // Hover/Focus state
75
+ .dropdown-menu > li > a {
76
+ &:hover,
77
+ &:focus {
78
+ text-decoration: none;
79
+ color: $dropdown-link-hover-color;
80
+ background-color: $dropdown-link-hover-bg;
81
+ }
82
+ }
83
+
84
+ // Active state
85
+ .dropdown-menu > .active > a {
86
+ &,
87
+ &:hover,
88
+ &:focus {
89
+ color: $dropdown-link-active-color;
90
+ text-decoration: none;
91
+ outline: 0;
92
+ background-color: $dropdown-link-active-bg;
93
+ }
94
+ }
95
+
96
+ // Disabled state
97
+ //
98
+ // Gray out text and ensure the hover/focus state remains gray
99
+
100
+ .dropdown-menu > .disabled > a {
101
+ &,
102
+ &:hover,
103
+ &:focus {
104
+ color: $dropdown-link-disabled-color;
105
+ }
106
+
107
+ // Nuke hover/focus effects
108
+ &:hover,
109
+ &:focus {
110
+ text-decoration: none;
111
+ background-color: transparent;
112
+ background-image: none; // Remove CSS gradient
113
+ @include reset-filter;
114
+ cursor: $cursor-disabled;
115
+ }
116
+ }
117
+
118
+ // Open state for the dropdown
119
+ .open {
120
+ // Show the menu
121
+ > .dropdown-menu {
122
+ display: block;
123
+ }
124
+
125
+ // Remove the outline when :focus is triggered
126
+ > a {
127
+ outline: 0;
128
+ }
129
+ }
130
+
131
+ // Menu positioning
132
+ //
133
+ // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
134
+ // menu with the parent.
135
+ .dropdown-menu-right {
136
+ left: auto; // Reset the default from `.dropdown-menu`
137
+ right: 0;
138
+ }
139
+ // With v3, we enabled auto-flipping if you have a dropdown within a right
140
+ // aligned nav component. To enable the undoing of that, we provide an override
141
+ // to restore the default dropdown menu alignment.
142
+ //
143
+ // This is only for left-aligning a dropdown menu within a `.navbar-right` or
144
+ // `.pull-right` nav component.
145
+ .dropdown-menu-left {
146
+ left: 0;
147
+ right: auto;
148
+ }
149
+
150
+ // Dropdown section headers
151
+ .dropdown-header {
152
+ display: block;
153
+ padding: 3px 20px;
154
+ font-size: $font-size-small;
155
+ line-height: $line-height-base;
156
+ color: $dropdown-header-color;
157
+ white-space: nowrap; // as with > li > a
158
+ }
159
+
160
+ // Backdrop to catch body clicks on mobile, etc.
161
+ .dropdown-backdrop {
162
+ position: fixed;
163
+ left: 0;
164
+ right: 0;
165
+ bottom: 0;
166
+ top: 0;
167
+ z-index: ($zindex-dropdown - 10);
168
+ }
169
+
170
+ // Right aligned dropdowns
171
+ .pull-right > .dropdown-menu {
172
+ right: 0;
173
+ left: auto;
174
+ }
175
+
176
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
177
+ //
178
+ // Just add .dropup after the standard .dropdown class and you're set, bro.
179
+ // TODO: abstract this so that the navbar fixed styles are not placed here?
180
+
181
+ .dropup,
182
+ .navbar-fixed-bottom .dropdown {
183
+ // Reverse the caret
184
+ .caret {
185
+ border-top: 0;
186
+ border-bottom: $caret-width-base solid;
187
+ content: "";
188
+ }
189
+ // Different positioning for bottom up menu
190
+ .dropdown-menu {
191
+ top: auto;
192
+ bottom: 100%;
193
+ margin-bottom: 1px;
194
+ }
195
+ }
196
+
197
+
198
+ // Component alignment
199
+ //
200
+ // Reiterate per navbar.less and the modified component alignment there.
201
+
202
+ @media (min-width: $grid-float-breakpoint) {
203
+ .navbar-right {
204
+ .dropdown-menu {
205
+ right: 0; left: auto;
206
+ }
207
+ // Necessary for overrides of the default right aligned menu.
208
+ // Will remove come v4 in all likelihood.
209
+ .dropdown-menu-left {
210
+ left: 0; right: auto;
211
+ }
212
+ }
213
+ }
@@ -0,0 +1,548 @@
1
+ //
2
+ // Forms
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Normalize non-controls
7
+ //
8
+ // Restyle and baseline non-control form elements.
9
+
10
+ fieldset {
11
+ padding: 0;
12
+ margin: 0;
13
+ border: 0;
14
+ // Chrome and Firefox set a `min-width: min-content;` on fieldsets,
15
+ // so we reset that to ensure it behaves more like a standard block element.
16
+ // See https://github.com/twbs/bootstrap/issues/12359.
17
+ min-width: 0;
18
+ }
19
+
20
+ legend {
21
+ display: block;
22
+ width: 100%;
23
+ padding: 0;
24
+ margin-bottom: $line-height-computed;
25
+ font-size: ($font-size-base * 1.5);
26
+ line-height: inherit;
27
+ color: $legend-color;
28
+ border: 0;
29
+ border-bottom: 1px solid $legend-border-color;
30
+ }
31
+
32
+ label {
33
+ display: inline-block;
34
+ max-width: 100%; // Force IE8 to wrap long content (see https://github.com/twbs/bootstrap/issues/13141)
35
+ margin-bottom: 5px;
36
+ font-weight: bold;
37
+ }
38
+
39
+
40
+ // Normalize form controls
41
+ //
42
+ // While most of our form styles require extra classes, some basic normalization
43
+ // is required to ensure optimum display with or without those classes to better
44
+ // address browser inconsistencies.
45
+
46
+ // Override content-box in Normalize (* isn't specific enough)
47
+ input[type="search"] {
48
+ @include box-sizing(border-box);
49
+ }
50
+
51
+ // Position radios and checkboxes better
52
+ input[type="radio"],
53
+ input[type="checkbox"] {
54
+ margin: 4px 0 0;
55
+ margin-top: 1px \9; // IE8-9
56
+ line-height: normal;
57
+ }
58
+
59
+ // Set the height of file controls to match text inputs
60
+ input[type="file"] {
61
+ display: block;
62
+ }
63
+
64
+ // Make range inputs behave like textual form controls
65
+ input[type="range"] {
66
+ display: block;
67
+ width: 100%;
68
+ }
69
+
70
+ // Make multiple select elements height not fixed
71
+ select[multiple],
72
+ select[size] {
73
+ height: auto;
74
+ }
75
+
76
+ // Focus for file, radio, and checkbox
77
+ input[type="file"]:focus,
78
+ input[type="radio"]:focus,
79
+ input[type="checkbox"]:focus {
80
+ @include tab-focus;
81
+ }
82
+
83
+ // Adjust output element
84
+ output {
85
+ display: block;
86
+ padding-top: ($padding-base-vertical + 1);
87
+ font-size: $font-size-base;
88
+ line-height: $line-height-base;
89
+ color: $input-color;
90
+ }
91
+
92
+
93
+ // Common form controls
94
+ //
95
+ // Shared size and type resets for form controls. Apply `.form-control` to any
96
+ // of the following form controls:
97
+ //
98
+ // select
99
+ // textarea
100
+ // input[type="text"]
101
+ // input[type="password"]
102
+ // input[type="datetime"]
103
+ // input[type="datetime-local"]
104
+ // input[type="date"]
105
+ // input[type="month"]
106
+ // input[type="time"]
107
+ // input[type="week"]
108
+ // input[type="number"]
109
+ // input[type="email"]
110
+ // input[type="url"]
111
+ // input[type="search"]
112
+ // input[type="tel"]
113
+ // input[type="color"]
114
+
115
+ .form-control {
116
+ display: block;
117
+ width: 100%;
118
+ height: $input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
119
+ padding: $padding-base-vertical $padding-base-horizontal;
120
+ font-size: $font-size-base;
121
+ line-height: $line-height-base;
122
+ color: $input-color;
123
+ background-color: $input-bg;
124
+ background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
125
+ border: 1px solid $input-border;
126
+ border-radius: $input-border-radius;
127
+ @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
128
+ @include transition(border-color ease-in-out .15s, box-shadow ease-in-out .15s);
129
+
130
+ // Customize the `:focus` state to imitate native WebKit styles.
131
+ @include form-control-focus;
132
+
133
+ // Placeholder
134
+ @include placeholder;
135
+
136
+ // Disabled and read-only inputs
137
+ //
138
+ // HTML5 says that controls under a fieldset > legend:first-child won't be
139
+ // disabled if the fieldset is disabled. Due to implementation difficulty, we
140
+ // don't honor that edge case; we style them as disabled anyway.
141
+ &[disabled],
142
+ &[readonly],
143
+ fieldset[disabled] & {
144
+ cursor: $cursor-disabled;
145
+ background-color: $input-bg-disabled;
146
+ opacity: 1; // iOS fix for unreadable disabled content
147
+ }
148
+
149
+ // [converter] extracted textarea& to textarea.form-control
150
+ }
151
+
152
+ // Reset height for `textarea`s
153
+ textarea.form-control {
154
+ height: auto;
155
+ }
156
+
157
+
158
+ // Search inputs in iOS
159
+ //
160
+ // This overrides the extra rounded corners on search inputs in iOS so that our
161
+ // `.form-control` class can properly style them. Note that this cannot simply
162
+ // be added to `.form-control` as it's not specific enough. For details, see
163
+ // https://github.com/twbs/bootstrap/issues/11586.
164
+
165
+ input[type="search"] {
166
+ -webkit-appearance: none;
167
+ }
168
+
169
+
170
+ // Special styles for iOS temporal inputs
171
+ //
172
+ // In Mobile Safari, setting `display: block` on temporal inputs causes the
173
+ // text within the input to become vertically misaligned. As a workaround, we
174
+ // set a pixel line-height that matches the given height of the input, but only
175
+ // for Safari.
176
+
177
+ @media screen and (-webkit-min-device-pixel-ratio: 0) {
178
+ input[type="date"],
179
+ input[type="time"],
180
+ input[type="datetime-local"],
181
+ input[type="month"] {
182
+ line-height: $input-height-base;
183
+ }
184
+ input[type="date"].input-sm,
185
+ input[type="time"].input-sm,
186
+ input[type="datetime-local"].input-sm,
187
+ input[type="month"].input-sm {
188
+ line-height: $input-height-small;
189
+ }
190
+ input[type="date"].input-lg,
191
+ input[type="time"].input-lg,
192
+ input[type="datetime-local"].input-lg,
193
+ input[type="month"].input-lg {
194
+ line-height: $input-height-large;
195
+ }
196
+ }
197
+
198
+
199
+ // Form groups
200
+ //
201
+ // Designed to help with the organization and spacing of vertical forms. For
202
+ // horizontal forms, use the predefined grid classes.
203
+
204
+ .form-group {
205
+ margin-bottom: 15px;
206
+ }
207
+
208
+
209
+ // Checkboxes and radios
210
+ //
211
+ // Indent the labels to position radios/checkboxes as hanging controls.
212
+
213
+ .radio,
214
+ .checkbox {
215
+ position: relative;
216
+ display: block;
217
+ margin-top: 10px;
218
+ margin-bottom: 10px;
219
+
220
+ label {
221
+ min-height: $line-height-computed; // Ensure the input doesn't jump when there is no text
222
+ padding-left: 20px;
223
+ margin-bottom: 0;
224
+ font-weight: normal;
225
+ cursor: pointer;
226
+ }
227
+ }
228
+ .radio input[type="radio"],
229
+ .radio-inline input[type="radio"],
230
+ .checkbox input[type="checkbox"],
231
+ .checkbox-inline input[type="checkbox"] {
232
+ position: absolute;
233
+ margin-left: -20px;
234
+ margin-top: 4px \9;
235
+ }
236
+
237
+ .radio + .radio,
238
+ .checkbox + .checkbox {
239
+ margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
240
+ }
241
+
242
+ // Radios and checkboxes on same line
243
+ .radio-inline,
244
+ .checkbox-inline {
245
+ display: inline-block;
246
+ padding-left: 20px;
247
+ margin-bottom: 0;
248
+ vertical-align: middle;
249
+ font-weight: normal;
250
+ cursor: pointer;
251
+ }
252
+ .radio-inline + .radio-inline,
253
+ .checkbox-inline + .checkbox-inline {
254
+ margin-top: 0;
255
+ margin-left: 10px; // space out consecutive inline controls
256
+ }
257
+
258
+ // Apply same disabled cursor tweak as for inputs
259
+ // Some special care is needed because <label>s don't inherit their parent's `cursor`.
260
+ //
261
+ // Note: Neither radios nor checkboxes can be readonly.
262
+ input[type="radio"],
263
+ input[type="checkbox"] {
264
+ &[disabled],
265
+ &.disabled,
266
+ fieldset[disabled] & {
267
+ cursor: $cursor-disabled;
268
+ }
269
+ }
270
+ // These classes are used directly on <label>s
271
+ .radio-inline,
272
+ .checkbox-inline {
273
+ &.disabled,
274
+ fieldset[disabled] & {
275
+ cursor: $cursor-disabled;
276
+ }
277
+ }
278
+ // These classes are used on elements with <label> descendants
279
+ .radio,
280
+ .checkbox {
281
+ &.disabled,
282
+ fieldset[disabled] & {
283
+ label {
284
+ cursor: $cursor-disabled;
285
+ }
286
+ }
287
+ }
288
+
289
+
290
+ // Static form control text
291
+ //
292
+ // Apply class to a `p` element to make any string of text align with labels in
293
+ // a horizontal form layout.
294
+
295
+ .form-control-static {
296
+ // Size it appropriately next to real form controls
297
+ padding-top: ($padding-base-vertical + 1);
298
+ padding-bottom: ($padding-base-vertical + 1);
299
+ // Remove default margin from `p`
300
+ margin-bottom: 0;
301
+
302
+ &.input-lg,
303
+ &.input-sm {
304
+ padding-left: 0;
305
+ padding-right: 0;
306
+ }
307
+ }
308
+
309
+
310
+ // Form control sizing
311
+ //
312
+ // Build on `.form-control` with modifier classes to decrease or increase the
313
+ // height and font-size of form controls.
314
+
315
+ @include input-size('.input-sm, .form-group-sm .form-control', $input-height-small, $padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $input-border-radius-small);
316
+
317
+ @include input-size('.input-lg, .form-group-lg .form-control', $input-height-large, $padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $input-border-radius-large);
318
+
319
+
320
+ // Form control feedback states
321
+ //
322
+ // Apply contextual and semantic states to individual form controls.
323
+
324
+ .has-feedback {
325
+ // Enable absolute positioning
326
+ position: relative;
327
+
328
+ // Ensure icons don't overlap text
329
+ .form-control {
330
+ padding-right: ($input-height-base * 1.25);
331
+ }
332
+ }
333
+ // Feedback icon (requires .glyphicon classes)
334
+ .form-control-feedback {
335
+ position: absolute;
336
+ top: 0;
337
+ right: 0;
338
+ z-index: 2; // Ensure icon is above input groups
339
+ display: block;
340
+ width: $input-height-base;
341
+ height: $input-height-base;
342
+ line-height: $input-height-base;
343
+ text-align: center;
344
+ pointer-events: none;
345
+ }
346
+ .input-lg + .form-control-feedback {
347
+ width: $input-height-large;
348
+ height: $input-height-large;
349
+ line-height: $input-height-large;
350
+ }
351
+ .input-sm + .form-control-feedback {
352
+ width: $input-height-small;
353
+ height: $input-height-small;
354
+ line-height: $input-height-small;
355
+ }
356
+
357
+ // Feedback states
358
+ .has-success {
359
+ @include form-control-validation($state-success-text, $state-success-text, $state-success-bg);
360
+ }
361
+ .has-warning {
362
+ @include form-control-validation($state-warning-text, $state-warning-text, $state-warning-bg);
363
+ }
364
+ .has-error {
365
+ @include form-control-validation($state-danger-text, $state-danger-text, $state-danger-bg);
366
+ }
367
+
368
+ // Reposition feedback icon if input has visible label above
369
+ .has-feedback label {
370
+
371
+ & ~ .form-control-feedback {
372
+ top: ($line-height-computed + 5); // Height of the `label` and its margin
373
+ }
374
+ &.sr-only ~ .form-control-feedback {
375
+ top: 0;
376
+ }
377
+ }
378
+
379
+
380
+ // Help text
381
+ //
382
+ // Apply to any element you wish to create light text for placement immediately
383
+ // below a form control. Use for general help, formatting, or instructional text.
384
+
385
+ .help-block {
386
+ display: block; // account for any element using help-block
387
+ margin-top: 5px;
388
+ margin-bottom: 10px;
389
+ color: lighten($text-color, 25%); // lighten the text some for contrast
390
+ }
391
+
392
+
393
+ // Inline forms
394
+ //
395
+ // Make forms appear inline(-block) by adding the `.form-inline` class. Inline
396
+ // forms begin stacked on extra small (mobile) devices and then go inline when
397
+ // viewports reach <768px.
398
+ //
399
+ // Requires wrapping inputs and labels with `.form-group` for proper display of
400
+ // default HTML form controls and our custom form controls (e.g., input groups).
401
+ //
402
+ // Heads up! This is mixin-ed into `.navbar-form` in navbars.less.
403
+
404
+ // [converter] extracted from `.form-inline` for libsass compatibility
405
+ @mixin form-inline {
406
+
407
+ // Kick in the inline
408
+ @media (min-width: $screen-sm-min) {
409
+ // Inline-block all the things for "inline"
410
+ .form-group {
411
+ display: inline-block;
412
+ margin-bottom: 0;
413
+ vertical-align: middle;
414
+ }
415
+
416
+ // In navbar-form, allow folks to *not* use `.form-group`
417
+ .form-control {
418
+ display: inline-block;
419
+ width: auto; // Prevent labels from stacking above inputs in `.form-group`
420
+ vertical-align: middle;
421
+ }
422
+
423
+ // Make static controls behave like regular ones
424
+ .form-control-static {
425
+ display: inline-block;
426
+ }
427
+
428
+ .input-group {
429
+ display: inline-table;
430
+ vertical-align: middle;
431
+
432
+ .input-group-addon,
433
+ .input-group-btn,
434
+ .form-control {
435
+ width: auto;
436
+ }
437
+ }
438
+
439
+ // Input groups need that 100% width though
440
+ .input-group > .form-control {
441
+ width: 100%;
442
+ }
443
+
444
+ .control-label {
445
+ margin-bottom: 0;
446
+ vertical-align: middle;
447
+ }
448
+
449
+ // Remove default margin on radios/checkboxes that were used for stacking, and
450
+ // then undo the floating of radios and checkboxes to match (which also avoids
451
+ // a bug in WebKit: https://github.com/twbs/bootstrap/issues/1969).
452
+ .radio,
453
+ .checkbox {
454
+ display: inline-block;
455
+ margin-top: 0;
456
+ margin-bottom: 0;
457
+ vertical-align: middle;
458
+
459
+ label {
460
+ padding-left: 0;
461
+ }
462
+ }
463
+ .radio input[type="radio"],
464
+ .checkbox input[type="checkbox"] {
465
+ position: relative;
466
+ margin-left: 0;
467
+ }
468
+
469
+ // Re-override the feedback icon.
470
+ .has-feedback .form-control-feedback {
471
+ top: 0;
472
+ }
473
+ }
474
+ }
475
+ // [converter] extracted as `@mixin form-inline` for libsass compatibility
476
+ .form-inline {
477
+ @include form-inline;
478
+ }
479
+
480
+
481
+
482
+ // Horizontal forms
483
+ //
484
+ // Horizontal forms are built on grid classes and allow you to create forms with
485
+ // labels on the left and inputs on the right.
486
+
487
+ .form-horizontal {
488
+
489
+ // Consistent vertical alignment of radios and checkboxes
490
+ //
491
+ // Labels also get some reset styles, but that is scoped to a media query below.
492
+ .radio,
493
+ .checkbox,
494
+ .radio-inline,
495
+ .checkbox-inline {
496
+ margin-top: 0;
497
+ margin-bottom: 0;
498
+ padding-top: ($padding-base-vertical + 1); // Default padding plus a border
499
+ }
500
+ // Account for padding we're adding to ensure the alignment and of help text
501
+ // and other content below items
502
+ .radio,
503
+ .checkbox {
504
+ min-height: ($line-height-computed + ($padding-base-vertical + 1));
505
+ }
506
+
507
+ // Make form groups behave like rows
508
+ .form-group {
509
+ @include make-row;
510
+ }
511
+
512
+ // Reset spacing and right align labels, but scope to media queries so that
513
+ // labels on narrow viewports stack the same as a default form example.
514
+ @media (min-width: $screen-sm-min) {
515
+ .control-label {
516
+ text-align: right;
517
+ margin-bottom: 0;
518
+ padding-top: ($padding-base-vertical + 1); // Default padding plus a border
519
+ }
520
+ }
521
+
522
+ // Validation states
523
+ //
524
+ // Reposition the icon because it's now within a grid column and columns have
525
+ // `position: relative;` on them. Also accounts for the grid gutter padding.
526
+ .has-feedback .form-control-feedback {
527
+ right: ($grid-gutter-width / 2);
528
+ }
529
+
530
+ // Form group sizes
531
+ //
532
+ // Quick utility class for applying `.input-lg` and `.input-sm` styles to the
533
+ // inputs and labels within a `.form-group`.
534
+ .form-group-lg {
535
+ @media (min-width: $screen-sm-min) {
536
+ .control-label {
537
+ padding-top: (($padding-large-vertical * $line-height-large) + 1);
538
+ }
539
+ }
540
+ }
541
+ .form-group-sm {
542
+ @media (min-width: $screen-sm-min) {
543
+ .control-label {
544
+ padding-top: ($padding-small-vertical + 1);
545
+ }
546
+ }
547
+ }
548
+ }