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.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/app/assets/stylesheets/audit_rails/application.css +3 -4
- data/app/assets/stylesheets/audit_rails/audit_rails.css +78 -0
- data/app/assets/stylesheets/audit_rails/bootstrap_override.css +58 -0
- data/app/assets/stylesheets/audit_rails/twitter/_alerts.scss +67 -0
- data/app/assets/stylesheets/audit_rails/twitter/_badges.scss +51 -0
- data/app/assets/stylesheets/audit_rails/twitter/_breadcrumbs.scss +23 -0
- data/app/assets/stylesheets/audit_rails/twitter/_button-groups.scss +253 -0
- data/app/assets/stylesheets/audit_rails/twitter/_buttons.scss +158 -0
- data/app/assets/stylesheets/audit_rails/twitter/_carousel.scss +231 -0
- data/app/assets/stylesheets/audit_rails/twitter/_close.scss +35 -0
- data/app/assets/stylesheets/audit_rails/twitter/_code.scss +53 -0
- data/app/assets/stylesheets/audit_rails/twitter/_component-animations.scss +29 -0
- data/app/assets/stylesheets/audit_rails/twitter/_dropdowns.scss +193 -0
- data/app/assets/stylesheets/audit_rails/twitter/_forms.scss +363 -0
- data/app/assets/stylesheets/audit_rails/twitter/_glyphicons.scss +236 -0
- data/app/assets/stylesheets/audit_rails/twitter/_grid.scss +93 -0
- data/app/assets/stylesheets/audit_rails/twitter/_input-groups.scss +136 -0
- data/app/assets/stylesheets/audit_rails/twitter/_jumbotron.scss +40 -0
- data/app/assets/stylesheets/audit_rails/twitter/_labels.scss +58 -0
- data/app/assets/stylesheets/audit_rails/twitter/_list-group.scss +88 -0
- data/app/assets/stylesheets/audit_rails/twitter/_media.scss +56 -0
- data/app/assets/stylesheets/audit_rails/twitter/_mixins.scss +861 -0
- data/app/assets/stylesheets/audit_rails/twitter/_modals.scss +132 -0
- data/app/assets/stylesheets/audit_rails/twitter/_navbar.scss +628 -0
- data/app/assets/stylesheets/audit_rails/twitter/_navs.scss +262 -0
- data/app/assets/stylesheets/audit_rails/twitter/_normalize.scss +406 -0
- data/app/assets/stylesheets/audit_rails/twitter/_pager.scss +55 -0
- data/app/assets/stylesheets/audit_rails/twitter/_pagination.scss +85 -0
- data/app/assets/stylesheets/audit_rails/twitter/_panels.scss +172 -0
- data/app/assets/stylesheets/audit_rails/twitter/_popovers.scss +133 -0
- data/app/assets/stylesheets/audit_rails/twitter/_print.scss +105 -0
- data/app/assets/stylesheets/audit_rails/twitter/_progress-bars.scss +92 -0
- data/app/assets/stylesheets/audit_rails/twitter/_responsive-utilities.scss +198 -0
- data/app/assets/stylesheets/audit_rails/twitter/_scaffolding.scss +119 -0
- data/app/assets/stylesheets/audit_rails/twitter/_tables.scss +244 -0
- data/app/assets/stylesheets/audit_rails/twitter/_theme.scss +247 -0
- data/app/assets/stylesheets/audit_rails/twitter/_thumbnails.scss +32 -0
- data/app/assets/stylesheets/audit_rails/twitter/_tooltip.scss +95 -0
- data/app/assets/stylesheets/audit_rails/twitter/_type.scss +279 -0
- data/app/assets/stylesheets/audit_rails/twitter/_utilities.scss +56 -0
- data/app/assets/stylesheets/audit_rails/twitter/_variables.scss +637 -0
- data/app/assets/stylesheets/audit_rails/twitter/_wells.scss +29 -0
- data/app/assets/stylesheets/audit_rails/twitter/bootstrap.scss +49 -0
- data/app/views/audit_rails/audits/_form_elements.html.erb +8 -2
- data/app/views/layouts/audit_rails/application.html.erb +33 -24
- data/lib/audit_rails/version.rb +1 -1
- metadata +47 -9
- data/app/assets/stylesheets/audit_rails/bootstrap-theme.css +0 -384
- data/app/assets/stylesheets/audit_rails/bootstrap.css +0 -6805
- data/app/assets/stylesheets/audit_rails/theme.css +0 -14
@@ -0,0 +1,158 @@
|
|
1
|
+
//
|
2
|
+
// Buttons
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base styles
|
7
|
+
// --------------------------------------------------
|
8
|
+
|
9
|
+
// Core styles
|
10
|
+
.btn {
|
11
|
+
display: inline-block;
|
12
|
+
margin-bottom: 0; // For input.btn
|
13
|
+
font-weight: $btn-font-weight;
|
14
|
+
text-align: center;
|
15
|
+
vertical-align: middle;
|
16
|
+
cursor: pointer;
|
17
|
+
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
18
|
+
border: 1px solid transparent;
|
19
|
+
white-space: nowrap;
|
20
|
+
@include button-size($padding-base-vertical, $padding-base-horizontal, $font-size-base, $line-height-base, $border-radius-base);
|
21
|
+
@include user-select(none);
|
22
|
+
|
23
|
+
&:focus {
|
24
|
+
@include tab-focus();
|
25
|
+
}
|
26
|
+
|
27
|
+
&:hover,
|
28
|
+
&:focus {
|
29
|
+
color: $btn-default-color;
|
30
|
+
text-decoration: none;
|
31
|
+
}
|
32
|
+
|
33
|
+
&:active,
|
34
|
+
&.active {
|
35
|
+
outline: 0;
|
36
|
+
background-image: none;
|
37
|
+
@include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
38
|
+
}
|
39
|
+
|
40
|
+
&.disabled,
|
41
|
+
&[disabled],
|
42
|
+
fieldset[disabled] & {
|
43
|
+
cursor: not-allowed;
|
44
|
+
pointer-events: none; // Future-proof disabling of clicks
|
45
|
+
@include opacity(.65);
|
46
|
+
@include box-shadow(none);
|
47
|
+
}
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
|
52
|
+
// Alternate buttons
|
53
|
+
// --------------------------------------------------
|
54
|
+
|
55
|
+
.btn-default {
|
56
|
+
@include button-variant($btn-default-color, $btn-default-bg, $btn-default-border);
|
57
|
+
}
|
58
|
+
.btn-primary {
|
59
|
+
@include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border);
|
60
|
+
}
|
61
|
+
// Warning appears as orange
|
62
|
+
.btn-warning {
|
63
|
+
@include button-variant($btn-warning-color, $btn-warning-bg, $btn-warning-border);
|
64
|
+
}
|
65
|
+
// Danger and error appear as red
|
66
|
+
.btn-danger {
|
67
|
+
@include button-variant($btn-danger-color, $btn-danger-bg, $btn-danger-border);
|
68
|
+
}
|
69
|
+
// Success appears as green
|
70
|
+
.btn-success {
|
71
|
+
@include button-variant($btn-success-color, $btn-success-bg, $btn-success-border);
|
72
|
+
}
|
73
|
+
// Info appears as blue-green
|
74
|
+
.btn-info {
|
75
|
+
@include button-variant($btn-info-color, $btn-info-bg, $btn-info-border);
|
76
|
+
}
|
77
|
+
|
78
|
+
|
79
|
+
// Link buttons
|
80
|
+
// -------------------------
|
81
|
+
|
82
|
+
// Make a button look and behave like a link
|
83
|
+
.btn-link {
|
84
|
+
color: $link-color;
|
85
|
+
font-weight: normal;
|
86
|
+
cursor: pointer;
|
87
|
+
border-radius: 0;
|
88
|
+
|
89
|
+
&,
|
90
|
+
&:active,
|
91
|
+
&[disabled],
|
92
|
+
fieldset[disabled] & {
|
93
|
+
background-color: transparent;
|
94
|
+
@include box-shadow(none);
|
95
|
+
}
|
96
|
+
&,
|
97
|
+
&:hover,
|
98
|
+
&:focus,
|
99
|
+
&:active {
|
100
|
+
border-color: transparent;
|
101
|
+
}
|
102
|
+
&:hover,
|
103
|
+
&:focus {
|
104
|
+
color: $link-hover-color;
|
105
|
+
text-decoration: underline;
|
106
|
+
background-color: transparent;
|
107
|
+
}
|
108
|
+
&[disabled],
|
109
|
+
fieldset[disabled] & {
|
110
|
+
&:hover,
|
111
|
+
&:focus {
|
112
|
+
color: $btn-link-disabled-color;
|
113
|
+
text-decoration: none;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
|
119
|
+
// Button Sizes
|
120
|
+
// --------------------------------------------------
|
121
|
+
|
122
|
+
.btn-lg {
|
123
|
+
// line-height: ensure even-numbered height of button next to large input
|
124
|
+
@include button-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large);
|
125
|
+
}
|
126
|
+
.btn-sm,
|
127
|
+
.btn-xs {
|
128
|
+
// line-height: ensure proper height of button next to small input
|
129
|
+
@include button-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small);
|
130
|
+
}
|
131
|
+
.btn-xs {
|
132
|
+
padding: 1px 5px;
|
133
|
+
}
|
134
|
+
|
135
|
+
|
136
|
+
// Block button
|
137
|
+
// --------------------------------------------------
|
138
|
+
|
139
|
+
.btn-block {
|
140
|
+
display: block;
|
141
|
+
width: 100%;
|
142
|
+
padding-left: 0;
|
143
|
+
padding-right: 0;
|
144
|
+
}
|
145
|
+
|
146
|
+
// Vertically space out multiple block buttons
|
147
|
+
.btn-block + .btn-block {
|
148
|
+
margin-top: 5px;
|
149
|
+
}
|
150
|
+
|
151
|
+
// Specificity overrides
|
152
|
+
input[type="submit"],
|
153
|
+
input[type="reset"],
|
154
|
+
input[type="button"] {
|
155
|
+
&.btn-block {
|
156
|
+
width: 100%;
|
157
|
+
}
|
158
|
+
}
|
@@ -0,0 +1,231 @@
|
|
1
|
+
//
|
2
|
+
// Carousel
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Wrapper for the slide container and indicators
|
7
|
+
.carousel {
|
8
|
+
position: relative;
|
9
|
+
}
|
10
|
+
|
11
|
+
.carousel-inner {
|
12
|
+
position: relative;
|
13
|
+
overflow: hidden;
|
14
|
+
width: 100%;
|
15
|
+
|
16
|
+
> .item {
|
17
|
+
display: none;
|
18
|
+
position: relative;
|
19
|
+
@include transition(.6s ease-in-out left);
|
20
|
+
|
21
|
+
// Account for jankitude on images
|
22
|
+
> img,
|
23
|
+
> a > img {
|
24
|
+
@include img-responsive();
|
25
|
+
line-height: 1;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
> .active,
|
30
|
+
> .next,
|
31
|
+
> .prev { display: block; }
|
32
|
+
|
33
|
+
> .active {
|
34
|
+
left: 0;
|
35
|
+
}
|
36
|
+
|
37
|
+
> .next,
|
38
|
+
> .prev {
|
39
|
+
position: absolute;
|
40
|
+
top: 0;
|
41
|
+
width: 100%;
|
42
|
+
}
|
43
|
+
|
44
|
+
> .next {
|
45
|
+
left: 100%;
|
46
|
+
}
|
47
|
+
> .prev {
|
48
|
+
left: -100%;
|
49
|
+
}
|
50
|
+
> .next.left,
|
51
|
+
> .prev.right {
|
52
|
+
left: 0;
|
53
|
+
}
|
54
|
+
|
55
|
+
> .active.left {
|
56
|
+
left: -100%;
|
57
|
+
}
|
58
|
+
> .active.right {
|
59
|
+
left: 100%;
|
60
|
+
}
|
61
|
+
|
62
|
+
}
|
63
|
+
|
64
|
+
// Left/right controls for nav
|
65
|
+
// ---------------------------
|
66
|
+
|
67
|
+
.carousel-control {
|
68
|
+
position: absolute;
|
69
|
+
top: 0;
|
70
|
+
left: 0;
|
71
|
+
bottom: 0;
|
72
|
+
width: $carousel-control-width;
|
73
|
+
@include opacity($carousel-control-opacity);
|
74
|
+
font-size: $carousel-control-font-size;
|
75
|
+
color: $carousel-control-color;
|
76
|
+
text-align: center;
|
77
|
+
text-shadow: $carousel-text-shadow;
|
78
|
+
// We can't have this transition here because WebKit cancels the carousel
|
79
|
+
// animation if you trip this while in the middle of another animation.
|
80
|
+
|
81
|
+
// Set gradients for backgrounds
|
82
|
+
&.left {
|
83
|
+
@include gradient-horizontal($start-color: rgba(0,0,0,.5), $end-color: rgba(0,0,0,.0001));
|
84
|
+
}
|
85
|
+
&.right {
|
86
|
+
left: auto;
|
87
|
+
right: 0;
|
88
|
+
@include gradient-horizontal($start-color: rgba(0,0,0,.0001), $end-color: rgba(0,0,0,.5));
|
89
|
+
}
|
90
|
+
|
91
|
+
// Hover/focus state
|
92
|
+
&:hover,
|
93
|
+
&:focus {
|
94
|
+
color: $carousel-control-color;
|
95
|
+
text-decoration: none;
|
96
|
+
@include opacity(.9);
|
97
|
+
}
|
98
|
+
|
99
|
+
// Toggles
|
100
|
+
.icon-prev,
|
101
|
+
.icon-next,
|
102
|
+
.glyphicon-chevron-left,
|
103
|
+
.glyphicon-chevron-right {
|
104
|
+
position: absolute;
|
105
|
+
top: 50%;
|
106
|
+
z-index: 5;
|
107
|
+
display: inline-block;
|
108
|
+
}
|
109
|
+
.icon-prev,
|
110
|
+
.glyphicon-chevron-left {
|
111
|
+
left: 50%;
|
112
|
+
}
|
113
|
+
.icon-next,
|
114
|
+
.glyphicon-chevron-right {
|
115
|
+
right: 50%;
|
116
|
+
}
|
117
|
+
.icon-prev,
|
118
|
+
.icon-next {
|
119
|
+
width: 20px;
|
120
|
+
height: 20px;
|
121
|
+
margin-top: -10px;
|
122
|
+
margin-left: -10px;
|
123
|
+
font-family: serif;
|
124
|
+
}
|
125
|
+
|
126
|
+
.icon-prev {
|
127
|
+
&:before {
|
128
|
+
content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
|
129
|
+
}
|
130
|
+
}
|
131
|
+
.icon-next {
|
132
|
+
&:before {
|
133
|
+
content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
|
134
|
+
}
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
// Optional indicator pips
|
139
|
+
//
|
140
|
+
// Add an unordered list with the following class and add a list item for each
|
141
|
+
// slide your carousel holds.
|
142
|
+
|
143
|
+
.carousel-indicators {
|
144
|
+
position: absolute;
|
145
|
+
bottom: 10px;
|
146
|
+
left: 50%;
|
147
|
+
z-index: 15;
|
148
|
+
width: 60%;
|
149
|
+
margin-left: -30%;
|
150
|
+
padding-left: 0;
|
151
|
+
list-style: none;
|
152
|
+
text-align: center;
|
153
|
+
|
154
|
+
li {
|
155
|
+
display: inline-block;
|
156
|
+
width: 10px;
|
157
|
+
height: 10px;
|
158
|
+
margin: 1px;
|
159
|
+
text-indent: -999px;
|
160
|
+
border: 1px solid $carousel-indicator-border-color;
|
161
|
+
border-radius: 10px;
|
162
|
+
cursor: pointer;
|
163
|
+
|
164
|
+
// IE8-9 hack for event handling
|
165
|
+
//
|
166
|
+
// Internet Explorer 8-9 does not support clicks on elements without a set
|
167
|
+
// `background-color`. We cannot use `filter` since that's not viewed as a
|
168
|
+
// background color by the browser. Thus, a hack is needed.
|
169
|
+
//
|
170
|
+
// For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
|
171
|
+
// set alpha transparency for the best results possible.
|
172
|
+
background-color: #000 \9; // IE8
|
173
|
+
background-color: rgba(0,0,0,0); // IE9
|
174
|
+
}
|
175
|
+
.active {
|
176
|
+
margin: 0;
|
177
|
+
width: 12px;
|
178
|
+
height: 12px;
|
179
|
+
background-color: $carousel-indicator-active-bg;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
// Optional captions
|
184
|
+
// -----------------------------
|
185
|
+
// Hidden by default for smaller viewports
|
186
|
+
.carousel-caption {
|
187
|
+
position: absolute;
|
188
|
+
left: 15%;
|
189
|
+
right: 15%;
|
190
|
+
bottom: 20px;
|
191
|
+
z-index: 10;
|
192
|
+
padding-top: 20px;
|
193
|
+
padding-bottom: 20px;
|
194
|
+
color: $carousel-caption-color;
|
195
|
+
text-align: center;
|
196
|
+
text-shadow: $carousel-text-shadow;
|
197
|
+
& .btn {
|
198
|
+
text-shadow: none; // No shadow for button elements in carousel-caption
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
|
203
|
+
// Scale up controls for tablets and up
|
204
|
+
@media screen and (min-width: $screen-sm-min) {
|
205
|
+
|
206
|
+
// Scale up the controls a smidge
|
207
|
+
.carousel-control {
|
208
|
+
.glyphicons-chevron-left,
|
209
|
+
.glyphicons-chevron-right,
|
210
|
+
.icon-prev,
|
211
|
+
.icon-next {
|
212
|
+
width: 30px;
|
213
|
+
height: 30px;
|
214
|
+
margin-top: -15px;
|
215
|
+
margin-left: -15px;
|
216
|
+
font-size: 30px;
|
217
|
+
}
|
218
|
+
}
|
219
|
+
|
220
|
+
// Show and left align the captions
|
221
|
+
.carousel-caption {
|
222
|
+
left: 20%;
|
223
|
+
right: 20%;
|
224
|
+
padding-bottom: 30px;
|
225
|
+
}
|
226
|
+
|
227
|
+
// Move up the indicators
|
228
|
+
.carousel-indicators {
|
229
|
+
bottom: 20px;
|
230
|
+
}
|
231
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
//
|
2
|
+
// Close icons
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.close {
|
7
|
+
float: right;
|
8
|
+
font-size: ($font-size-base * 1.5);
|
9
|
+
font-weight: $close-font-weight;
|
10
|
+
line-height: 1;
|
11
|
+
color: $close-color;
|
12
|
+
text-shadow: $close-text-shadow;
|
13
|
+
@include opacity(.2);
|
14
|
+
|
15
|
+
&:hover,
|
16
|
+
&:focus {
|
17
|
+
color: $close-color;
|
18
|
+
text-decoration: none;
|
19
|
+
cursor: pointer;
|
20
|
+
@include opacity(.5);
|
21
|
+
}
|
22
|
+
|
23
|
+
// [converter] extracted button& to button.close
|
24
|
+
}
|
25
|
+
|
26
|
+
// Additional properties for button version
|
27
|
+
// iOS requires the button element instead of an anchor tag.
|
28
|
+
// If you want the anchor version, it requires `href="#"`.
|
29
|
+
button.close {
|
30
|
+
padding: 0;
|
31
|
+
cursor: pointer;
|
32
|
+
background: transparent;
|
33
|
+
border: 0;
|
34
|
+
-webkit-appearance: none;
|
35
|
+
}
|
@@ -0,0 +1,53 @@
|
|
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
|
+
white-space: nowrap;
|
21
|
+
border-radius: $border-radius-base;
|
22
|
+
}
|
23
|
+
|
24
|
+
// Blocks of code
|
25
|
+
pre {
|
26
|
+
display: block;
|
27
|
+
padding: (($line-height-computed - 1) / 2);
|
28
|
+
margin: 0 0 ($line-height-computed / 2);
|
29
|
+
font-size: ($font-size-base - 1); // 14px to 13px
|
30
|
+
line-height: $line-height-base;
|
31
|
+
word-break: break-all;
|
32
|
+
word-wrap: break-word;
|
33
|
+
color: $pre-color;
|
34
|
+
background-color: $pre-bg;
|
35
|
+
border: 1px solid $pre-border-color;
|
36
|
+
border-radius: $border-radius-base;
|
37
|
+
|
38
|
+
// Account for some code outputs that place code tags in pre tags
|
39
|
+
code {
|
40
|
+
padding: 0;
|
41
|
+
font-size: inherit;
|
42
|
+
color: inherit;
|
43
|
+
white-space: pre-wrap;
|
44
|
+
background-color: transparent;
|
45
|
+
border-radius: 0;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
// Enable scrollable blocks of code
|
50
|
+
.pre-scrollable {
|
51
|
+
max-height: $pre-scrollable-max-height;
|
52
|
+
overflow-y: scroll;
|
53
|
+
}
|