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,29 @@
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/twitter/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
+ &.in {
21
+ display: block;
22
+ }
23
+ }
24
+ .collapsing {
25
+ position: relative;
26
+ height: 0;
27
+ overflow: hidden;
28
+ @include transition(height .35s ease);
29
+ }
@@ -0,0 +1,193 @@
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 $dropdown-caret-color;
14
+ border-right: $caret-width-base solid transparent;
15
+ border-left: $caret-width-base solid transparent;
16
+ // Firefox fix for https://github.com/twbs/bootstrap/issues/9538. Once fixed,
17
+ // we can just straight up remove this.
18
+ border-bottom: 0 dotted;
19
+ }
20
+
21
+ // The dropdown wrapper (div)
22
+ .dropdown {
23
+ position: relative;
24
+ }
25
+
26
+ // Prevent the focus on the dropdown toggle when closing dropdowns
27
+ .dropdown-toggle:focus {
28
+ outline: 0;
29
+ }
30
+
31
+ // The dropdown menu (ul)
32
+ .dropdown-menu {
33
+ position: absolute;
34
+ top: 100%;
35
+ left: 0;
36
+ z-index: $zindex-dropdown;
37
+ display: none; // none by default, but block on "open" of the menu
38
+ float: left;
39
+ min-width: 160px;
40
+ padding: 5px 0;
41
+ margin: 2px 0 0; // override default ul
42
+ list-style: none;
43
+ font-size: $font-size-base;
44
+ background-color: $dropdown-bg;
45
+ border: 1px solid $dropdown-fallback-border; // IE8 fallback
46
+ border: 1px solid $dropdown-border;
47
+ border-radius: $border-radius-base;
48
+ @include box-shadow(0 6px 12px rgba(0,0,0,.175));
49
+ background-clip: padding-box;
50
+
51
+ // Aligns the dropdown menu to right
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
+ .dropdown-menu > .disabled > a {
109
+ &:hover,
110
+ &:focus {
111
+ text-decoration: none;
112
+ background-color: transparent;
113
+ background-image: none; // Remove CSS gradient
114
+ @include reset-filter();
115
+ cursor: not-allowed;
116
+ }
117
+ }
118
+
119
+ // Open state for the dropdown
120
+ .open {
121
+ // Show the menu
122
+ > .dropdown-menu {
123
+ display: block;
124
+ }
125
+
126
+ // Remove the outline when :focus is triggered
127
+ > a {
128
+ outline: 0;
129
+ }
130
+ }
131
+
132
+ // Dropdown section headers
133
+ .dropdown-header {
134
+ display: block;
135
+ padding: 3px 20px;
136
+ font-size: $font-size-small;
137
+ line-height: $line-height-base;
138
+ color: $dropdown-header-color;
139
+ }
140
+
141
+ // Backdrop to catch body clicks on mobile, etc.
142
+ .dropdown-backdrop {
143
+ position: fixed;
144
+ left: 0;
145
+ right: 0;
146
+ bottom: 0;
147
+ top: 0;
148
+ z-index: $zindex-dropdown - 10;
149
+ }
150
+
151
+ // Right aligned dropdowns
152
+ .pull-right > .dropdown-menu {
153
+ right: 0;
154
+ left: auto;
155
+ }
156
+
157
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
158
+ //
159
+ // Just add .dropup after the standard .dropdown class and you're set, bro.
160
+ // TODO: abstract this so that the navbar fixed styles are not placed here?
161
+
162
+ .dropup,
163
+ .navbar-fixed-bottom .dropdown {
164
+ // Reverse the caret
165
+ .caret {
166
+ // Firefox fix for https://github.com/twbs/bootstrap/issues/9538. Once this
167
+ // gets fixed, restore `border-top: 0;`.
168
+ border-top: 0 dotted;
169
+ border-bottom: $caret-width-base solid $dropdown-caret-color;
170
+ content: "";
171
+ }
172
+ // Different positioning for bottom up menu
173
+ .dropdown-menu {
174
+ top: auto;
175
+ bottom: 100%;
176
+ margin-bottom: 1px;
177
+ }
178
+ }
179
+
180
+
181
+ // Component alignment
182
+ //
183
+ // Reiterate per navbar.less and the modified component alignment there.
184
+
185
+ @media (min-width: $grid-float-breakpoint) {
186
+ .navbar-right {
187
+ .dropdown-menu {
188
+ right: 0;
189
+ left: auto;
190
+ }
191
+ }
192
+ }
193
+
@@ -0,0 +1,363 @@
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
+ }
15
+
16
+ legend {
17
+ display: block;
18
+ width: 100%;
19
+ padding: 0;
20
+ margin-bottom: $line-height-computed;
21
+ font-size: ($font-size-base * 1.5);
22
+ line-height: inherit;
23
+ color: $legend-color;
24
+ border: 0;
25
+ border-bottom: 1px solid $legend-border-color;
26
+ }
27
+
28
+ label {
29
+ display: inline-block;
30
+ margin-bottom: 5px;
31
+ font-weight: bold;
32
+ }
33
+
34
+
35
+ // Normalize form controls
36
+
37
+ // Override content-box in Normalize (* isn't specific enough)
38
+ input[type="search"] {
39
+ @include box-sizing(border-box);
40
+ }
41
+
42
+ // Position radios and checkboxes better
43
+ input[type="radio"],
44
+ input[type="checkbox"] {
45
+ margin: 4px 0 0;
46
+ margin-top: 1px \9; /* IE8-9 */
47
+ line-height: normal;
48
+ }
49
+
50
+ // Set the height of select and file controls to match text inputs
51
+ input[type="file"] {
52
+ display: block;
53
+ }
54
+
55
+ // Make multiple select elements height not fixed
56
+ select[multiple],
57
+ select[size] {
58
+ height: auto;
59
+ }
60
+
61
+ // Fix optgroup Firefox bug per https://github.com/twbs/bootstrap/issues/7611
62
+ select optgroup {
63
+ font-size: inherit;
64
+ font-style: inherit;
65
+ font-family: inherit;
66
+ }
67
+
68
+ // Focus for select, file, radio, and checkbox
69
+ input[type="file"]:focus,
70
+ input[type="radio"]:focus,
71
+ input[type="checkbox"]:focus {
72
+ @include tab-focus();
73
+ }
74
+
75
+ // Fix for Chrome number input
76
+ // Setting certain font-sizes causes the `I` bar to appear on hover of the bottom increment button.
77
+ // See https://github.com/twbs/bootstrap/issues/8350 for more.
78
+ input[type="number"] {
79
+ &::-webkit-outer-spin-button,
80
+ &::-webkit-inner-spin-button {
81
+ height: auto;
82
+ }
83
+ }
84
+
85
+ // Adjust output element
86
+ output {
87
+ display: block;
88
+ padding-top: ($padding-base-vertical + 1);
89
+ font-size: $font-size-base;
90
+ line-height: $line-height-base;
91
+ color: $input-color;
92
+ vertical-align: middle;
93
+ }
94
+
95
+
96
+ // Common form controls
97
+ //
98
+ // Shared size and type resets for form controls. Apply `.form-control` to any
99
+ // of the following form controls:
100
+ //
101
+ // select
102
+ // textarea
103
+ // input[type="text"]
104
+ // input[type="password"]
105
+ // input[type="datetime"]
106
+ // input[type="datetime-local"]
107
+ // input[type="date"]
108
+ // input[type="month"]
109
+ // input[type="time"]
110
+ // input[type="week"]
111
+ // input[type="number"]
112
+ // input[type="email"]
113
+ // input[type="url"]
114
+ // input[type="search"]
115
+ // input[type="tel"]
116
+ // input[type="color"]
117
+
118
+ .form-control {
119
+ display: block;
120
+ width: 100%;
121
+ height: $input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
122
+ padding: $padding-base-vertical $padding-base-horizontal;
123
+ font-size: $font-size-base;
124
+ line-height: $line-height-base;
125
+ color: $input-color;
126
+ vertical-align: middle;
127
+ background-color: $input-bg;
128
+ background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
129
+ border: 1px solid $input-border;
130
+ border-radius: $input-border-radius;
131
+ @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
132
+ @include transition(border-color ease-in-out .15s, box-shadow ease-in-out .15s);
133
+
134
+ // Customize the `:focus` state to imitate native WebKit styles.
135
+ @include form-control-focus();
136
+
137
+ // Placeholder
138
+ //
139
+ // Placeholder text gets special styles because when browsers invalidate entire
140
+ // lines if it doesn't understand a selector/
141
+ @include placeholder();
142
+
143
+ // Disabled and read-only inputs
144
+ // Note: HTML5 says that controls under a fieldset > legend:first-child won't
145
+ // be disabled if the fieldset is disabled. Due to implementation difficulty,
146
+ // we don't honor that edge case; we style them as disabled anyway.
147
+ &[disabled],
148
+ &[readonly],
149
+ fieldset[disabled] & {
150
+ cursor: not-allowed;
151
+ background-color: $input-bg-disabled;
152
+ }
153
+
154
+ // [converter] extracted textarea& to textarea.form-control
155
+ }
156
+
157
+ // Reset height for `textarea`s
158
+ textarea.form-control {
159
+ height: auto;
160
+ }
161
+
162
+
163
+ // Form groups
164
+ //
165
+ // Designed to help with the organization and spacing of vertical forms. For
166
+ // horizontal forms, use the predefined grid classes.
167
+
168
+ .form-group {
169
+ margin-bottom: 15px;
170
+ }
171
+
172
+
173
+ // Checkboxes and radios
174
+ //
175
+ // Indent the labels to position radios/checkboxes as hanging controls.
176
+
177
+ .radio,
178
+ .checkbox {
179
+ display: block;
180
+ min-height: $line-height-computed; // clear the floating input if there is no label text
181
+ margin-top: 10px;
182
+ margin-bottom: 10px;
183
+ padding-left: 20px;
184
+ vertical-align: middle;
185
+ label {
186
+ display: inline;
187
+ margin-bottom: 0;
188
+ font-weight: normal;
189
+ cursor: pointer;
190
+ }
191
+ }
192
+ .radio input[type="radio"],
193
+ .radio-inline input[type="radio"],
194
+ .checkbox input[type="checkbox"],
195
+ .checkbox-inline input[type="checkbox"] {
196
+ float: left;
197
+ margin-left: -20px;
198
+ }
199
+ .radio + .radio,
200
+ .checkbox + .checkbox {
201
+ margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
202
+ }
203
+
204
+ // Radios and checkboxes on same line
205
+ .radio-inline,
206
+ .checkbox-inline {
207
+ display: inline-block;
208
+ padding-left: 20px;
209
+ margin-bottom: 0;
210
+ vertical-align: middle;
211
+ font-weight: normal;
212
+ cursor: pointer;
213
+ }
214
+ .radio-inline + .radio-inline,
215
+ .checkbox-inline + .checkbox-inline {
216
+ margin-top: 0;
217
+ margin-left: 10px; // space out consecutive inline controls
218
+ }
219
+
220
+ // Apply same disabled cursor tweak as for inputs
221
+ //
222
+ // Note: Neither radios nor checkboxes can be readonly.
223
+ input[type="radio"],
224
+ input[type="checkbox"],
225
+ .radio,
226
+ .radio-inline,
227
+ .checkbox,
228
+ .checkbox-inline {
229
+ &[disabled],
230
+ fieldset[disabled] & {
231
+ cursor: not-allowed;
232
+ }
233
+ }
234
+
235
+ // Form control sizing
236
+
237
+ @include input-size('.input-sm', $input-height-small, $padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small);
238
+
239
+ @include input-size('.input-lg', $input-height-large, $padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large);
240
+
241
+
242
+ // Form control feedback states
243
+ //
244
+ // Apply contextual and semantic states to individual form controls.
245
+
246
+ // Warning
247
+ .has-warning {
248
+ @include form-control-validation($state-warning-text, $state-warning-text, $state-warning-bg);
249
+ }
250
+ // Error
251
+ .has-error {
252
+ @include form-control-validation($state-danger-text, $state-danger-text, $state-danger-bg);
253
+ }
254
+ // Success
255
+ .has-success {
256
+ @include form-control-validation($state-success-text, $state-success-text, $state-success-bg);
257
+ }
258
+
259
+
260
+ // Static form control text
261
+ //
262
+ // Apply class to a `p` element to make any string of text align with labels in
263
+ // a horizontal form layout.
264
+
265
+ .form-control-static {
266
+ margin-bottom: 0; // Remove default margin from `p`
267
+ }
268
+
269
+
270
+ // Help text
271
+ //
272
+ // Apply to any element you wish to create light text for placement immediately
273
+ // below a form control. Use for general help, formatting, or instructional text.
274
+
275
+ .help-block {
276
+ display: block; // account for any element using help-block
277
+ margin-top: 5px;
278
+ margin-bottom: 10px;
279
+ color: lighten($text-color, 25%); // lighten the text some for contrast
280
+ }
281
+
282
+
283
+
284
+ // Inline forms
285
+ //
286
+ // Make forms appear inline(-block) by adding the `.form-inline` class. Inline
287
+ // forms begin stacked on extra small (mobile) devices and then go inline when
288
+ // viewports reach <768px.
289
+ //
290
+ // Requires wrapping inputs and labels with `.form-group` for proper display of
291
+ // default HTML form controls and our custom form controls (e.g., input groups).
292
+ //
293
+ // Heads up! This is mixin-ed into `.navbar-form` in navbars.less.
294
+
295
+ .form-inline {
296
+
297
+ // Kick in the inline
298
+ @media (min-width: $screen-sm) {
299
+ // Inline-block all the things for "inline"
300
+ .form-group {
301
+ display: inline-block;
302
+ margin-bottom: 0;
303
+ vertical-align: middle;
304
+ }
305
+
306
+ // In navbar-form, allow folks to *not* use `.form-group`
307
+ .form-control {
308
+ display: inline-block;
309
+ }
310
+
311
+ // Remove default margin on radios/checkboxes that were used for stacking, and
312
+ // then undo the floating of radios and checkboxes to match (which also avoids
313
+ // a bug in WebKit: https://github.com/twbs/bootstrap/issues/1969).
314
+ .radio,
315
+ .checkbox {
316
+ display: inline-block;
317
+ margin-top: 0;
318
+ margin-bottom: 0;
319
+ padding-left: 0;
320
+ }
321
+ .radio input[type="radio"],
322
+ .checkbox input[type="checkbox"] {
323
+ float: none;
324
+ margin-left: 0;
325
+ }
326
+ }
327
+ }
328
+
329
+
330
+ // Horizontal forms
331
+ //
332
+ // Horizontal forms are built on grid classes and allow you to create forms with
333
+ // labels on the left and inputs on the right.
334
+
335
+ .form-horizontal {
336
+
337
+ // Consistent vertical alignment of labels, radios, and checkboxes
338
+ .control-label,
339
+ .radio,
340
+ .checkbox,
341
+ .radio-inline,
342
+ .checkbox-inline {
343
+ margin-top: 0;
344
+ margin-bottom: 0;
345
+ padding-top: ($padding-base-vertical + 1); // Default padding plus a border
346
+ }
347
+
348
+ // Make form groups behave like rows
349
+ .form-group {
350
+ @include make-row();
351
+ }
352
+
353
+ .form-control-static {
354
+ padding-top: ($padding-base-vertical + 1);
355
+ }
356
+
357
+ // Only right align form labels here when the columns stop stacking
358
+ @media (min-width: $screen-sm-min) {
359
+ .control-label {
360
+ text-align: right;
361
+ }
362
+ }
363
+ }