audit_rails 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -1
  3. data/app/assets/stylesheets/audit_rails/application.css +3 -4
  4. data/app/assets/stylesheets/audit_rails/audit_rails.css +78 -0
  5. data/app/assets/stylesheets/audit_rails/bootstrap_override.css +58 -0
  6. data/app/assets/stylesheets/audit_rails/twitter/_alerts.scss +67 -0
  7. data/app/assets/stylesheets/audit_rails/twitter/_badges.scss +51 -0
  8. data/app/assets/stylesheets/audit_rails/twitter/_breadcrumbs.scss +23 -0
  9. data/app/assets/stylesheets/audit_rails/twitter/_button-groups.scss +253 -0
  10. data/app/assets/stylesheets/audit_rails/twitter/_buttons.scss +158 -0
  11. data/app/assets/stylesheets/audit_rails/twitter/_carousel.scss +231 -0
  12. data/app/assets/stylesheets/audit_rails/twitter/_close.scss +35 -0
  13. data/app/assets/stylesheets/audit_rails/twitter/_code.scss +53 -0
  14. data/app/assets/stylesheets/audit_rails/twitter/_component-animations.scss +29 -0
  15. data/app/assets/stylesheets/audit_rails/twitter/_dropdowns.scss +193 -0
  16. data/app/assets/stylesheets/audit_rails/twitter/_forms.scss +363 -0
  17. data/app/assets/stylesheets/audit_rails/twitter/_glyphicons.scss +236 -0
  18. data/app/assets/stylesheets/audit_rails/twitter/_grid.scss +93 -0
  19. data/app/assets/stylesheets/audit_rails/twitter/_input-groups.scss +136 -0
  20. data/app/assets/stylesheets/audit_rails/twitter/_jumbotron.scss +40 -0
  21. data/app/assets/stylesheets/audit_rails/twitter/_labels.scss +58 -0
  22. data/app/assets/stylesheets/audit_rails/twitter/_list-group.scss +88 -0
  23. data/app/assets/stylesheets/audit_rails/twitter/_media.scss +56 -0
  24. data/app/assets/stylesheets/audit_rails/twitter/_mixins.scss +861 -0
  25. data/app/assets/stylesheets/audit_rails/twitter/_modals.scss +132 -0
  26. data/app/assets/stylesheets/audit_rails/twitter/_navbar.scss +628 -0
  27. data/app/assets/stylesheets/audit_rails/twitter/_navs.scss +262 -0
  28. data/app/assets/stylesheets/audit_rails/twitter/_normalize.scss +406 -0
  29. data/app/assets/stylesheets/audit_rails/twitter/_pager.scss +55 -0
  30. data/app/assets/stylesheets/audit_rails/twitter/_pagination.scss +85 -0
  31. data/app/assets/stylesheets/audit_rails/twitter/_panels.scss +172 -0
  32. data/app/assets/stylesheets/audit_rails/twitter/_popovers.scss +133 -0
  33. data/app/assets/stylesheets/audit_rails/twitter/_print.scss +105 -0
  34. data/app/assets/stylesheets/audit_rails/twitter/_progress-bars.scss +92 -0
  35. data/app/assets/stylesheets/audit_rails/twitter/_responsive-utilities.scss +198 -0
  36. data/app/assets/stylesheets/audit_rails/twitter/_scaffolding.scss +119 -0
  37. data/app/assets/stylesheets/audit_rails/twitter/_tables.scss +244 -0
  38. data/app/assets/stylesheets/audit_rails/twitter/_theme.scss +247 -0
  39. data/app/assets/stylesheets/audit_rails/twitter/_thumbnails.scss +32 -0
  40. data/app/assets/stylesheets/audit_rails/twitter/_tooltip.scss +95 -0
  41. data/app/assets/stylesheets/audit_rails/twitter/_type.scss +279 -0
  42. data/app/assets/stylesheets/audit_rails/twitter/_utilities.scss +56 -0
  43. data/app/assets/stylesheets/audit_rails/twitter/_variables.scss +637 -0
  44. data/app/assets/stylesheets/audit_rails/twitter/_wells.scss +29 -0
  45. data/app/assets/stylesheets/audit_rails/twitter/bootstrap.scss +49 -0
  46. data/app/views/audit_rails/audits/_form_elements.html.erb +8 -2
  47. data/app/views/layouts/audit_rails/application.html.erb +33 -24
  48. data/lib/audit_rails/version.rb +1 -1
  49. metadata +47 -9
  50. data/app/assets/stylesheets/audit_rails/bootstrap-theme.css +0 -384
  51. data/app/assets/stylesheets/audit_rails/bootstrap.css +0 -6805
  52. data/app/assets/stylesheets/audit_rails/theme.css +0 -14
@@ -0,0 +1,236 @@
1
+ //
2
+ // Glyphicons for Bootstrap
3
+ //
4
+ // Since icons are fonts, they can be placed anywhere text is placed and are
5
+ // thus automatically sized to match the surrounding child. To use, create an
6
+ // inline element with the appropriate classes, like so:
7
+ //
8
+ // <a href="#"><span class="glyphicon glyphicon-star"></span> Star</a>
9
+
10
+ // Import the fonts
11
+ @font-face {
12
+ font-family: 'Glyphicons Halflings';
13
+ src: url(font-path('glyphicons-halflings-regular.eot') + "?#iefix") format('embedded-opentype'),
14
+ url(font-path('glyphicons-halflings-regular.woff')) format('woff'),
15
+ url(font-path('glyphicons-halflings-regular.ttf')) format('truetype'),
16
+ url(font-path('glyphicons-halflings-regular.svg') + "#glyphicons_halflingsregular") format('svg');
17
+ }
18
+
19
+ // Catchall baseclass
20
+ .glyphicon {
21
+ position: relative;
22
+ top: 1px;
23
+ display: inline-block;
24
+ font-family: 'Glyphicons Halflings';
25
+ font-style: normal;
26
+ font-weight: normal;
27
+ line-height: 1;
28
+ -webkit-font-smoothing: antialiased;
29
+ -moz-osx-font-smoothing: grayscale;
30
+
31
+ &:empty {
32
+ width: 1em;
33
+ }
34
+ }
35
+
36
+ // Individual icons
37
+ .glyphicon-asterisk { &:before { content: "\2a"; } }
38
+ .glyphicon-plus { &:before { content: "\2b"; } }
39
+ .glyphicon-euro { &:before { content: "\20ac"; } }
40
+ .glyphicon-minus { &:before { content: "\2212"; } }
41
+ .glyphicon-cloud { &:before { content: "\2601"; } }
42
+ .glyphicon-envelope { &:before { content: "\2709"; } }
43
+ .glyphicon-pencil { &:before { content: "\270f"; } }
44
+ .glyphicon-glass { &:before { content: "\e001"; } }
45
+ .glyphicon-music { &:before { content: "\e002"; } }
46
+ .glyphicon-search { &:before { content: "\e003"; } }
47
+ .glyphicon-heart { &:before { content: "\e005"; } }
48
+ .glyphicon-star { &:before { content: "\e006"; } }
49
+ .glyphicon-star-empty { &:before { content: "\e007"; } }
50
+ .glyphicon-user { &:before { content: "\e008"; } }
51
+ .glyphicon-film { &:before { content: "\e009"; } }
52
+ .glyphicon-th-large { &:before { content: "\e010"; } }
53
+ .glyphicon-th { &:before { content: "\e011"; } }
54
+ .glyphicon-th-list { &:before { content: "\e012"; } }
55
+ .glyphicon-ok { &:before { content: "\e013"; } }
56
+ .glyphicon-remove { &:before { content: "\e014"; } }
57
+ .glyphicon-zoom-in { &:before { content: "\e015"; } }
58
+ .glyphicon-zoom-out { &:before { content: "\e016"; } }
59
+ .glyphicon-off { &:before { content: "\e017"; } }
60
+ .glyphicon-signal { &:before { content: "\e018"; } }
61
+ .glyphicon-cog { &:before { content: "\e019"; } }
62
+ .glyphicon-trash { &:before { content: "\e020"; } }
63
+ .glyphicon-home { &:before { content: "\e021"; } }
64
+ .glyphicon-file { &:before { content: "\e022"; } }
65
+ .glyphicon-time { &:before { content: "\e023"; } }
66
+ .glyphicon-road { &:before { content: "\e024"; } }
67
+ .glyphicon-download-alt { &:before { content: "\e025"; } }
68
+ .glyphicon-download { &:before { content: "\e026"; } }
69
+ .glyphicon-upload { &:before { content: "\e027"; } }
70
+ .glyphicon-inbox { &:before { content: "\e028"; } }
71
+ .glyphicon-play-circle { &:before { content: "\e029"; } }
72
+ .glyphicon-repeat { &:before { content: "\e030"; } }
73
+ .glyphicon-refresh { &:before { content: "\e031"; } }
74
+ .glyphicon-list-alt { &:before { content: "\e032"; } }
75
+ .glyphicon-lock { &:before { content: "\e033"; } }
76
+ .glyphicon-flag { &:before { content: "\e034"; } }
77
+ .glyphicon-headphones { &:before { content: "\e035"; } }
78
+ .glyphicon-volume-off { &:before { content: "\e036"; } }
79
+ .glyphicon-volume-down { &:before { content: "\e037"; } }
80
+ .glyphicon-volume-up { &:before { content: "\e038"; } }
81
+ .glyphicon-qrcode { &:before { content: "\e039"; } }
82
+ .glyphicon-barcode { &:before { content: "\e040"; } }
83
+ .glyphicon-tag { &:before { content: "\e041"; } }
84
+ .glyphicon-tags { &:before { content: "\e042"; } }
85
+ .glyphicon-book { &:before { content: "\e043"; } }
86
+ .glyphicon-bookmark { &:before { content: "\e044"; } }
87
+ .glyphicon-print { &:before { content: "\e045"; } }
88
+ .glyphicon-camera { &:before { content: "\e046"; } }
89
+ .glyphicon-font { &:before { content: "\e047"; } }
90
+ .glyphicon-bold { &:before { content: "\e048"; } }
91
+ .glyphicon-italic { &:before { content: "\e049"; } }
92
+ .glyphicon-text-height { &:before { content: "\e050"; } }
93
+ .glyphicon-text-width { &:before { content: "\e051"; } }
94
+ .glyphicon-align-left { &:before { content: "\e052"; } }
95
+ .glyphicon-align-center { &:before { content: "\e053"; } }
96
+ .glyphicon-align-right { &:before { content: "\e054"; } }
97
+ .glyphicon-align-justify { &:before { content: "\e055"; } }
98
+ .glyphicon-list { &:before { content: "\e056"; } }
99
+ .glyphicon-indent-left { &:before { content: "\e057"; } }
100
+ .glyphicon-indent-right { &:before { content: "\e058"; } }
101
+ .glyphicon-facetime-video { &:before { content: "\e059"; } }
102
+ .glyphicon-picture { &:before { content: "\e060"; } }
103
+ .glyphicon-map-marker { &:before { content: "\e062"; } }
104
+ .glyphicon-adjust { &:before { content: "\e063"; } }
105
+ .glyphicon-tint { &:before { content: "\e064"; } }
106
+ .glyphicon-edit { &:before { content: "\e065"; } }
107
+ .glyphicon-share { &:before { content: "\e066"; } }
108
+ .glyphicon-check { &:before { content: "\e067"; } }
109
+ .glyphicon-move { &:before { content: "\e068"; } }
110
+ .glyphicon-step-backward { &:before { content: "\e069"; } }
111
+ .glyphicon-fast-backward { &:before { content: "\e070"; } }
112
+ .glyphicon-backward { &:before { content: "\e071"; } }
113
+ .glyphicon-play { &:before { content: "\e072"; } }
114
+ .glyphicon-pause { &:before { content: "\e073"; } }
115
+ .glyphicon-stop { &:before { content: "\e074"; } }
116
+ .glyphicon-forward { &:before { content: "\e075"; } }
117
+ .glyphicon-fast-forward { &:before { content: "\e076"; } }
118
+ .glyphicon-step-forward { &:before { content: "\e077"; } }
119
+ .glyphicon-eject { &:before { content: "\e078"; } }
120
+ .glyphicon-chevron-left { &:before { content: "\e079"; } }
121
+ .glyphicon-chevron-right { &:before { content: "\e080"; } }
122
+ .glyphicon-plus-sign { &:before { content: "\e081"; } }
123
+ .glyphicon-minus-sign { &:before { content: "\e082"; } }
124
+ .glyphicon-remove-sign { &:before { content: "\e083"; } }
125
+ .glyphicon-ok-sign { &:before { content: "\e084"; } }
126
+ .glyphicon-question-sign { &:before { content: "\e085"; } }
127
+ .glyphicon-info-sign { &:before { content: "\e086"; } }
128
+ .glyphicon-screenshot { &:before { content: "\e087"; } }
129
+ .glyphicon-remove-circle { &:before { content: "\e088"; } }
130
+ .glyphicon-ok-circle { &:before { content: "\e089"; } }
131
+ .glyphicon-ban-circle { &:before { content: "\e090"; } }
132
+ .glyphicon-arrow-left { &:before { content: "\e091"; } }
133
+ .glyphicon-arrow-right { &:before { content: "\e092"; } }
134
+ .glyphicon-arrow-up { &:before { content: "\e093"; } }
135
+ .glyphicon-arrow-down { &:before { content: "\e094"; } }
136
+ .glyphicon-share-alt { &:before { content: "\e095"; } }
137
+ .glyphicon-resize-full { &:before { content: "\e096"; } }
138
+ .glyphicon-resize-small { &:before { content: "\e097"; } }
139
+ .glyphicon-exclamation-sign { &:before { content: "\e101"; } }
140
+ .glyphicon-gift { &:before { content: "\e102"; } }
141
+ .glyphicon-leaf { &:before { content: "\e103"; } }
142
+ .glyphicon-fire { &:before { content: "\e104"; } }
143
+ .glyphicon-eye-open { &:before { content: "\e105"; } }
144
+ .glyphicon-eye-close { &:before { content: "\e106"; } }
145
+ .glyphicon-warning-sign { &:before { content: "\e107"; } }
146
+ .glyphicon-plane { &:before { content: "\e108"; } }
147
+ .glyphicon-calendar { &:before { content: "\e109"; } }
148
+ .glyphicon-random { &:before { content: "\e110"; } }
149
+ .glyphicon-comment { &:before { content: "\e111"; } }
150
+ .glyphicon-magnet { &:before { content: "\e112"; } }
151
+ .glyphicon-chevron-up { &:before { content: "\e113"; } }
152
+ .glyphicon-chevron-down { &:before { content: "\e114"; } }
153
+ .glyphicon-retweet { &:before { content: "\e115"; } }
154
+ .glyphicon-shopping-cart { &:before { content: "\e116"; } }
155
+ .glyphicon-folder-close { &:before { content: "\e117"; } }
156
+ .glyphicon-folder-open { &:before { content: "\e118"; } }
157
+ .glyphicon-resize-vertical { &:before { content: "\e119"; } }
158
+ .glyphicon-resize-horizontal { &:before { content: "\e120"; } }
159
+ .glyphicon-hdd { &:before { content: "\e121"; } }
160
+ .glyphicon-bullhorn { &:before { content: "\e122"; } }
161
+ .glyphicon-bell { &:before { content: "\e123"; } }
162
+ .glyphicon-certificate { &:before { content: "\e124"; } }
163
+ .glyphicon-thumbs-up { &:before { content: "\e125"; } }
164
+ .glyphicon-thumbs-down { &:before { content: "\e126"; } }
165
+ .glyphicon-hand-right { &:before { content: "\e127"; } }
166
+ .glyphicon-hand-left { &:before { content: "\e128"; } }
167
+ .glyphicon-hand-up { &:before { content: "\e129"; } }
168
+ .glyphicon-hand-down { &:before { content: "\e130"; } }
169
+ .glyphicon-circle-arrow-right { &:before { content: "\e131"; } }
170
+ .glyphicon-circle-arrow-left { &:before { content: "\e132"; } }
171
+ .glyphicon-circle-arrow-up { &:before { content: "\e133"; } }
172
+ .glyphicon-circle-arrow-down { &:before { content: "\e134"; } }
173
+ .glyphicon-globe { &:before { content: "\e135"; } }
174
+ .glyphicon-wrench { &:before { content: "\e136"; } }
175
+ .glyphicon-tasks { &:before { content: "\e137"; } }
176
+ .glyphicon-filter { &:before { content: "\e138"; } }
177
+ .glyphicon-briefcase { &:before { content: "\e139"; } }
178
+ .glyphicon-fullscreen { &:before { content: "\e140"; } }
179
+ .glyphicon-dashboard { &:before { content: "\e141"; } }
180
+ .glyphicon-paperclip { &:before { content: "\e142"; } }
181
+ .glyphicon-heart-empty { &:before { content: "\e143"; } }
182
+ .glyphicon-link { &:before { content: "\e144"; } }
183
+ .glyphicon-phone { &:before { content: "\e145"; } }
184
+ .glyphicon-pushpin { &:before { content: "\e146"; } }
185
+ .glyphicon-usd { &:before { content: "\e148"; } }
186
+ .glyphicon-gbp { &:before { content: "\e149"; } }
187
+ .glyphicon-sort { &:before { content: "\e150"; } }
188
+ .glyphicon-sort-by-alphabet { &:before { content: "\e151"; } }
189
+ .glyphicon-sort-by-alphabet-alt { &:before { content: "\e152"; } }
190
+ .glyphicon-sort-by-order { &:before { content: "\e153"; } }
191
+ .glyphicon-sort-by-order-alt { &:before { content: "\e154"; } }
192
+ .glyphicon-sort-by-attributes { &:before { content: "\e155"; } }
193
+ .glyphicon-sort-by-attributes-alt { &:before { content: "\e156"; } }
194
+ .glyphicon-unchecked { &:before { content: "\e157"; } }
195
+ .glyphicon-expand { &:before { content: "\e158"; } }
196
+ .glyphicon-collapse-down { &:before { content: "\e159"; } }
197
+ .glyphicon-collapse-up { &:before { content: "\e160"; } }
198
+ .glyphicon-log-in { &:before { content: "\e161"; } }
199
+ .glyphicon-flash { &:before { content: "\e162"; } }
200
+ .glyphicon-log-out { &:before { content: "\e163"; } }
201
+ .glyphicon-new-window { &:before { content: "\e164"; } }
202
+ .glyphicon-record { &:before { content: "\e165"; } }
203
+ .glyphicon-save { &:before { content: "\e166"; } }
204
+ .glyphicon-open { &:before { content: "\e167"; } }
205
+ .glyphicon-saved { &:before { content: "\e168"; } }
206
+ .glyphicon-import { &:before { content: "\e169"; } }
207
+ .glyphicon-export { &:before { content: "\e170"; } }
208
+ .glyphicon-send { &:before { content: "\e171"; } }
209
+ .glyphicon-floppy-disk { &:before { content: "\e172"; } }
210
+ .glyphicon-floppy-saved { &:before { content: "\e173"; } }
211
+ .glyphicon-floppy-remove { &:before { content: "\e174"; } }
212
+ .glyphicon-floppy-save { &:before { content: "\e175"; } }
213
+ .glyphicon-floppy-open { &:before { content: "\e176"; } }
214
+ .glyphicon-credit-card { &:before { content: "\e177"; } }
215
+ .glyphicon-transfer { &:before { content: "\e178"; } }
216
+ .glyphicon-cutlery { &:before { content: "\e179"; } }
217
+ .glyphicon-header { &:before { content: "\e180"; } }
218
+ .glyphicon-compressed { &:before { content: "\e181"; } }
219
+ .glyphicon-earphone { &:before { content: "\e182"; } }
220
+ .glyphicon-phone-alt { &:before { content: "\e183"; } }
221
+ .glyphicon-tower { &:before { content: "\e184"; } }
222
+ .glyphicon-stats { &:before { content: "\e185"; } }
223
+ .glyphicon-sd-video { &:before { content: "\e186"; } }
224
+ .glyphicon-hd-video { &:before { content: "\e187"; } }
225
+ .glyphicon-subtitles { &:before { content: "\e188"; } }
226
+ .glyphicon-sound-stereo { &:before { content: "\e189"; } }
227
+ .glyphicon-sound-dolby { &:before { content: "\e190"; } }
228
+ .glyphicon-sound-5-1 { &:before { content: "\e191"; } }
229
+ .glyphicon-sound-6-1 { &:before { content: "\e192"; } }
230
+ .glyphicon-sound-7-1 { &:before { content: "\e193"; } }
231
+ .glyphicon-copyright-mark { &:before { content: "\e194"; } }
232
+ .glyphicon-registration-mark { &:before { content: "\e195"; } }
233
+ .glyphicon-cloud-download { &:before { content: "\e197"; } }
234
+ .glyphicon-cloud-upload { &:before { content: "\e198"; } }
235
+ .glyphicon-tree-conifer { &:before { content: "\e199"; } }
236
+ .glyphicon-tree-deciduous { &:before { content: "\e200"; } }
@@ -0,0 +1,93 @@
1
+ //
2
+ // Grid system
3
+ // --------------------------------------------------
4
+
5
+ // Set the container width, and override it for fixed navbars in media queries
6
+ .container {
7
+ @include container-fixed();
8
+ }
9
+
10
+ // mobile first defaults
11
+ .row {
12
+ @include make-row();
13
+ }
14
+
15
+ // Common styles for small and large grid columns
16
+ @include make-grid-columns();
17
+
18
+
19
+ // Extra small grid
20
+ //
21
+ // Grid classes for extra small devices like smartphones. No offset, push, or
22
+ // pull classes are present here due to the size of the target.
23
+ //
24
+ // Note that `.col-xs-12` doesn't get floated on purpose--there's no need since
25
+ // it's full-width.
26
+
27
+ @include make-grid-columns-float(xs);
28
+ @include make-grid($grid-columns, xs, width);
29
+ @include make-grid($grid-columns, xs, pull);
30
+ @include make-grid($grid-columns, xs, push);
31
+ @include make-grid($grid-columns, xs, offset);
32
+
33
+
34
+ // Small grid
35
+ //
36
+ // Columns, offsets, pushes, and pulls for the small device range, from phones
37
+ // to tablets.
38
+ //
39
+ // Note that `.col-sm-12` doesn't get floated on purpose--there's no need since
40
+ // it's full-width.
41
+
42
+ @media (min-width: $screen-sm-min) {
43
+ .container {
44
+ width: $container-sm;
45
+ }
46
+
47
+ @include make-grid-columns-float(sm);
48
+ @include make-grid($grid-columns, sm, width);
49
+ @include make-grid($grid-columns, sm, pull);
50
+ @include make-grid($grid-columns, sm, push);
51
+ @include make-grid($grid-columns, sm, offset);
52
+ }
53
+
54
+
55
+ // Medium grid
56
+ //
57
+ // Columns, offsets, pushes, and pulls for the desktop device range.
58
+ //
59
+ // Note that `.col-md-12` doesn't get floated on purpose--there's no need since
60
+ // it's full-width.
61
+
62
+ @media (min-width: $screen-md-min) {
63
+ .container {
64
+ width: $container-md;
65
+ }
66
+
67
+ @include make-grid-columns-float(md);
68
+ @include make-grid($grid-columns, md, width);
69
+ @include make-grid($grid-columns, md, pull);
70
+ @include make-grid($grid-columns, md, push);
71
+ @include make-grid($grid-columns, md, offset);
72
+ }
73
+
74
+
75
+ // Large grid
76
+ //
77
+ // Columns, offsets, pushes, and pulls for the large desktop device range.
78
+ //
79
+ // Note that `.col-lg-12` doesn't get floated on purpose--there's no need since
80
+ // it's full-width.
81
+
82
+ @media (min-width: $screen-lg-min) {
83
+ .container {
84
+ width: $container-lg;
85
+ }
86
+
87
+ @include make-grid-columns-float(lg);
88
+ @include make-grid($grid-columns, lg, width);
89
+ @include make-grid($grid-columns, lg, pull);
90
+ @include make-grid($grid-columns, lg, push);
91
+ @include make-grid($grid-columns, lg, offset);
92
+ }
93
+
@@ -0,0 +1,136 @@
1
+ //
2
+ // Input groups
3
+ // --------------------------------------------------
4
+
5
+ // Base styles
6
+ // -------------------------
7
+ .input-group {
8
+ position: relative; // For dropdowns
9
+ display: table;
10
+ border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table
11
+
12
+ // Undo padding and float of grid classes
13
+ &.col {
14
+ float: none;
15
+ padding-left: 0;
16
+ padding-right: 0;
17
+ }
18
+
19
+ .form-control {
20
+ width: 100%;
21
+ margin-bottom: 0;
22
+ }
23
+ }
24
+
25
+ // Sizing options
26
+ //
27
+ // Remix the default form control sizing classes into new ones for easier
28
+ // manipulation.
29
+
30
+ .input-group-lg > .form-control,
31
+ .input-group-lg > .input-group-addon,
32
+ .input-group-lg > .input-group-btn > .btn { @extend .input-lg; }
33
+ .input-group-sm > .form-control,
34
+ .input-group-sm > .input-group-addon,
35
+ .input-group-sm > .input-group-btn > .btn { @extend .input-sm; }
36
+
37
+
38
+ // Display as table-cell
39
+ // -------------------------
40
+ .input-group-addon,
41
+ .input-group-btn,
42
+ .input-group .form-control {
43
+ display: table-cell;
44
+
45
+ &:not(:first-child):not(:last-child) {
46
+ border-radius: 0;
47
+ }
48
+ }
49
+ // Addon and addon wrapper for buttons
50
+ .input-group-addon,
51
+ .input-group-btn {
52
+ width: 1%;
53
+ white-space: nowrap;
54
+ vertical-align: middle; // Match the inputs
55
+ }
56
+
57
+ // Text input groups
58
+ // -------------------------
59
+ .input-group-addon {
60
+ padding: $padding-base-vertical $padding-base-horizontal;
61
+ font-size: $font-size-base;
62
+ font-weight: normal;
63
+ line-height: 1;
64
+ color: $input-color;
65
+ text-align: center;
66
+ background-color: $input-group-addon-bg;
67
+ border: 1px solid $input-group-addon-border-color;
68
+ border-radius: $border-radius-base;
69
+
70
+ // Sizing
71
+ &.input-sm {
72
+ padding: $padding-small-vertical $padding-small-horizontal;
73
+ font-size: $font-size-small;
74
+ border-radius: $border-radius-small;
75
+ }
76
+ &.input-lg {
77
+ padding: $padding-large-vertical $padding-large-horizontal;
78
+ font-size: $font-size-large;
79
+ border-radius: $border-radius-large;
80
+ }
81
+
82
+ // Nuke default margins from checkboxes and radios to vertically center within.
83
+ input[type="radio"],
84
+ input[type="checkbox"] {
85
+ margin-top: 0;
86
+ }
87
+ }
88
+
89
+ // Reset rounded corners
90
+ .input-group .form-control:first-child,
91
+ .input-group-addon:first-child,
92
+ .input-group-btn:first-child > .btn,
93
+ .input-group-btn:first-child > .dropdown-toggle,
94
+ .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
95
+ @include border-right-radius(0);
96
+ }
97
+ .input-group-addon:first-child {
98
+ border-right: 0;
99
+ }
100
+ .input-group .form-control:last-child,
101
+ .input-group-addon:last-child,
102
+ .input-group-btn:last-child > .btn,
103
+ .input-group-btn:last-child > .dropdown-toggle,
104
+ .input-group-btn:first-child > .btn:not(:first-child) {
105
+ @include border-left-radius(0);
106
+ }
107
+ .input-group-addon:last-child {
108
+ border-left: 0;
109
+ }
110
+
111
+ // Button input groups
112
+ // -------------------------
113
+ .input-group-btn {
114
+ position: relative;
115
+ white-space: nowrap;
116
+
117
+ // Negative margin to only have a 1px border between the two
118
+ &:first-child > .btn {
119
+ margin-right: -1px;
120
+ }
121
+ &:last-child > .btn {
122
+ margin-left: -1px;
123
+ }
124
+ }
125
+ .input-group-btn > .btn {
126
+ position: relative;
127
+ // Jankily prevent input button groups from wrapping
128
+ + .btn {
129
+ margin-left: -4px;
130
+ }
131
+ // Bring the "active" button to the front
132
+ &:hover,
133
+ &:active {
134
+ z-index: 2;
135
+ }
136
+ }