furatto 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -18
- data/furatto.gemspec +4 -0
- data/lib/furatto.rb +3 -10
- data/lib/furatto/version.rb +1 -1
- data/lib/furatto_rails_helpers/furatto_helpers.rb +19 -0
- data/lib/generators/furatto/install_generator.rb +46 -0
- data/lib/generators/furatto/templates/application.html.erb +28 -0
- data/vendor/assets/javascripts/furatto.js +1822 -0
- data/vendor/assets/stylesheets/furatto.scss +76 -0
- data/vendor/assets/stylesheets/furatto/_alerts.scss +130 -0
- data/vendor/assets/stylesheets/furatto/_base.scss +138 -0
- data/vendor/assets/stylesheets/furatto/_button-groups.scss +85 -0
- data/vendor/assets/stylesheets/furatto/_buttons.scss +266 -0
- data/{app → vendor}/assets/stylesheets/furatto/_date_picker.date.scss +0 -0
- data/{app → vendor}/assets/stylesheets/furatto/_date_picker.scss +1 -0
- data/{app → vendor}/assets/stylesheets/furatto/_dropdown.scss +0 -0
- data/vendor/assets/stylesheets/furatto/_experimental.scss +81 -0
- data/{app → vendor}/assets/stylesheets/furatto/_footer.scss +0 -0
- data/vendor/assets/stylesheets/furatto/_forms.scss +269 -0
- data/vendor/assets/stylesheets/furatto/_functions.scss +18 -0
- data/vendor/assets/stylesheets/furatto/_global.scss +51 -0
- data/vendor/assets/stylesheets/furatto/_grid.scss +142 -0
- data/vendor/assets/stylesheets/furatto/_images.scss +122 -0
- data/vendor/assets/stylesheets/furatto/_labels.scss +97 -0
- data/vendor/assets/stylesheets/furatto/_media_queries.scss +200 -0
- data/vendor/assets/stylesheets/furatto/_mixins.scss +143 -0
- data/vendor/assets/stylesheets/furatto/_modal.scss +297 -0
- data/vendor/assets/stylesheets/furatto/_navigation.scss +127 -0
- data/vendor/assets/stylesheets/furatto/_navigation_bar.scss +338 -0
- data/vendor/assets/stylesheets/furatto/_off_screen.scss +269 -0
- data/vendor/assets/stylesheets/furatto/_pagination.scss +78 -0
- data/vendor/assets/stylesheets/furatto/_responsive_utilities.scss +244 -0
- data/vendor/assets/stylesheets/furatto/_selectors.scss +44 -0
- data/vendor/assets/stylesheets/furatto/_settings.scss +0 -0
- data/vendor/assets/stylesheets/furatto/_suraido.scss +214 -0
- data/vendor/assets/stylesheets/furatto/_tables.scss +166 -0
- data/vendor/assets/stylesheets/furatto/_tabs.scss +26 -0
- data/vendor/assets/stylesheets/furatto/_toolbars.scss +199 -0
- data/vendor/assets/stylesheets/furatto/_tooltips.scss +92 -0
- data/vendor/assets/stylesheets/furatto/_typography.scss +243 -0
- data/{app → vendor}/assets/stylesheets/normalize.scss +22 -19
- metadata +86 -49
- data/app/assets/fonts/fontawesome/FontAwesome.otf +0 -0
- data/app/assets/fonts/fontawesome/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome/fontawesome-webfont.svg +0 -399
- data/app/assets/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/meteocons-webfont.eot +0 -0
- data/app/assets/fonts/meteocons-webfont.svg +0 -81
- data/app/assets/fonts/meteocons-webfont.ttf +0 -0
- data/app/assets/fonts/meteocons-webfont.woff +0 -0
- data/app/assets/javascripts/furatto.js +0 -5978
- data/app/assets/javascripts/furatto.min.js +0 -3
- data/app/assets/stylesheets/font-awesome.css.erb +0 -2495
- data/app/assets/stylesheets/furatto.scss +0 -86
- data/app/assets/stylesheets/furatto/_alerts.scss +0 -80
- data/app/assets/stylesheets/furatto/_base.scss +0 -99
- data/app/assets/stylesheets/furatto/_buttons.scss +0 -125
- data/app/assets/stylesheets/furatto/_code.scss +0 -67
- data/app/assets/stylesheets/furatto/_dashboard.scss +0 -36
- data/app/assets/stylesheets/furatto/_fonts.scss +0 -26
- data/app/assets/stylesheets/furatto/_forms.scss +0 -307
- data/app/assets/stylesheets/furatto/_grid.scss +0 -60
- data/app/assets/stylesheets/furatto/_images.scss +0 -64
- data/app/assets/stylesheets/furatto/_labels.scss +0 -44
- data/app/assets/stylesheets/furatto/_mixins.scss +0 -200
- data/app/assets/stylesheets/furatto/_modal.scss +0 -365
- data/app/assets/stylesheets/furatto/_nav.scss +0 -104
- data/app/assets/stylesheets/furatto/_navbar.scss +0 -216
- data/app/assets/stylesheets/furatto/_panel.scss +0 -277
- data/app/assets/stylesheets/furatto/_responsive_navbar.scss +0 -195
- data/app/assets/stylesheets/furatto/_responsive_tables.scss +0 -28
- data/app/assets/stylesheets/furatto/_responsive_utilities.scss +0 -182
- data/app/assets/stylesheets/furatto/_responsiveslides.scss +0 -185
- data/app/assets/stylesheets/furatto/_tables.scss +0 -90
- data/app/assets/stylesheets/furatto/_toolbars.scss +0 -116
- data/app/assets/stylesheets/furatto/_tooltips.scss +0 -131
- data/app/assets/stylesheets/furatto/_typography.scss +0 -224
- data/app/assets/stylesheets/furatto/_variables.scss +0 -625
File without changes
|
File without changes
|
@@ -0,0 +1,81 @@
|
|
1
|
+
// Experimental - Use of edge and modern cases that may work or not on
|
2
|
+
// certain browsers
|
3
|
+
|
4
|
+
//
|
5
|
+
//@variables
|
6
|
+
//
|
7
|
+
|
8
|
+
$input-addon-margin-bottom: 1rem !default;
|
9
|
+
$addon-border-width: 1px !default;
|
10
|
+
$addon-border-style: solid !default;
|
11
|
+
$addon-border-color: rgba(147, 128, 108, 0.25) !default;
|
12
|
+
$addon-padding: 0.5rem !default;
|
13
|
+
$addon-background-color: rgba(147, 148, 108, 0.1) !default;
|
14
|
+
$addon-font-color: #666 !default;
|
15
|
+
$addon-font-weight: 400 !default;
|
16
|
+
$addon-font-size: 14px !default;
|
17
|
+
$include-addon-radius: false !default;
|
18
|
+
$addon-radius: 2px !default;
|
19
|
+
|
20
|
+
//Addon color variations
|
21
|
+
$addon-warning-bg-color: rgba(211, 84, 0, 0.6);
|
22
|
+
$addon-danger-bg-color: rgba(231, 76, 60, 0.6);
|
23
|
+
$addon-primary-bg-color: rgba(52, 152, 219, 0.6);
|
24
|
+
|
25
|
+
@mixin addon-variation($background-color, $color: #FFF) {
|
26
|
+
background-color: $background-color;
|
27
|
+
color: $color;
|
28
|
+
}
|
29
|
+
|
30
|
+
@if($include-flexible-addons) {
|
31
|
+
.input-addon {
|
32
|
+
@include flexbox-display;
|
33
|
+
margin-bottom: $input-addon-margin-bottom;
|
34
|
+
}
|
35
|
+
|
36
|
+
.addon-field {
|
37
|
+
@include flex;
|
38
|
+
margin-bottom: 0;
|
39
|
+
|
40
|
+
&:not(:first-child) {
|
41
|
+
border-left: 0;
|
42
|
+
}
|
43
|
+
&:not(:last-child) {
|
44
|
+
border-right: 0;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
a.addon {
|
49
|
+
cursor: pointer;
|
50
|
+
|
51
|
+
&:hover {
|
52
|
+
text-decoration: none;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
.addon {
|
57
|
+
margin: 0;
|
58
|
+
border: $addon-border-width $addon-border-style $addon-border-color;
|
59
|
+
padding: $addon-padding;
|
60
|
+
background-color: $addon-background-color;
|
61
|
+
color: $addon-font-color;
|
62
|
+
font-weight: $addon-font-weight;
|
63
|
+
font-size: $addon-font-size;
|
64
|
+
|
65
|
+
&.warning { @include addon-variation($addon-warning-bg-color); }
|
66
|
+
&.danger { @include addon-variation($addon-danger-bg-color); }
|
67
|
+
&.primary { @include addon-variation($addon-primary-bg-color); }
|
68
|
+
|
69
|
+
&:first-child {
|
70
|
+
@if($include-addon-radius) {
|
71
|
+
@include border-radius($addon-radius 0 0 $addon-radius);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
&:last-child {
|
76
|
+
@if($include-addon-radius) {
|
77
|
+
@include border-radius(0 $addon-radius $addon-radius 0);
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
File without changes
|
@@ -0,0 +1,269 @@
|
|
1
|
+
//Forms
|
2
|
+
|
3
|
+
//
|
4
|
+
//@variables
|
5
|
+
//
|
6
|
+
|
7
|
+
//Form Label
|
8
|
+
$form-label-display: block !default;
|
9
|
+
$form-label-cursor: pointer !default;
|
10
|
+
$form-label-font-size: px-to-rems(13) !default;
|
11
|
+
$form-label-color: scale-color(#000, $lightness: 30%) !default;
|
12
|
+
$form-label-font-weight: 300 !default;
|
13
|
+
$form-label-margin-bottom: px-to-rems(5) !default;
|
14
|
+
$form-input-border-width: 1px !default;
|
15
|
+
$form-input-border-style: solid !default;
|
16
|
+
$form-inline-label-margin-left: px-to-rems(3) !default;
|
17
|
+
|
18
|
+
//Form inputs
|
19
|
+
$form-input-radius: 0 !default;
|
20
|
+
$form-input-height: px-to-rems(32) !default;
|
21
|
+
$form-input-color: rgba(0,0,0, 0.75) !default;
|
22
|
+
$form-input-font-size: px-to-rems(13) !default;
|
23
|
+
$form-input-padding: px-to-rems(5) !default;
|
24
|
+
$form-input-margin-bottom: px-to-rems(11) !default;
|
25
|
+
$form-input-box-shadow: inset 0 1px 2px rgba(#ccc,0.35) !default;
|
26
|
+
$form-input-focus-box-shadow: 0 0 5px rgba(#ccc, 1) !default;
|
27
|
+
$form-input-focus-border-color: #999 !default;
|
28
|
+
$form-input-background-color: #FFF !default;
|
29
|
+
$form-input-border-color: #CCC !default;
|
30
|
+
$form-input-disabled-color: #ECF0F1 !default;
|
31
|
+
$form-input-disabled-background-color: #EEE !default;
|
32
|
+
$form-input-mini-width: 20% !default;
|
33
|
+
$form-input-small-width: $form-input-mini-width * 2 !default;
|
34
|
+
$form-input-medium-width: $form-input-mini-width * 3 !default;
|
35
|
+
$form-input-large-width: $form-input-mini-width * 4 !default;
|
36
|
+
|
37
|
+
//Validation states
|
38
|
+
$form-label-success-color: #27ae60 !default;
|
39
|
+
$form-label-error-color: #e74c3c !default;
|
40
|
+
$form-input-success-border-color: $form-label-success-color !default;
|
41
|
+
$form-input-error-border-color: $form-label-error-color !default;
|
42
|
+
|
43
|
+
//Help hints
|
44
|
+
$form-help-hint-color: #FFF !default;
|
45
|
+
$form-help-hint-font-size: px-to-rems(11) !default;
|
46
|
+
$form-help-hint-font-style: italic !default;
|
47
|
+
$form-help-hint-padding: px-to-rems(5) !default;
|
48
|
+
|
49
|
+
//Selects
|
50
|
+
$form-select-background-color: #FFF !default;
|
51
|
+
$form-select-border-style: solid !default;
|
52
|
+
$form-select-border-width: 1px !default;
|
53
|
+
$form-select-border-color: #CCC !default;
|
54
|
+
$form-select-color: #555 !default;
|
55
|
+
$form-select-font-size: px-to-rems(14) !default;
|
56
|
+
$form-select-hover-background: #F7F7F7 !default;
|
57
|
+
$form-select-padding: px-to-rems(5) px-to-rems(7) !default;
|
58
|
+
$form-select-radius: 2px !default;
|
59
|
+
$form-select-transition-time: 2s !default;
|
60
|
+
$form-select-transition-style: linear !default;
|
61
|
+
$form-select-backgroun-x-position: 97% !default;
|
62
|
+
|
63
|
+
$include-form-select-transition: true !default;
|
64
|
+
|
65
|
+
$form-input-media-query: "#{$media-display} and (max-width: #{$screen-xs})" !default;
|
66
|
+
|
67
|
+
form {
|
68
|
+
display: block;
|
69
|
+
width: 100%;
|
70
|
+
}
|
71
|
+
|
72
|
+
//Labels
|
73
|
+
label {
|
74
|
+
display: $form-label-display;
|
75
|
+
margin-bottom: $form-label-margin-bottom;
|
76
|
+
cursor: $form-label-cursor;
|
77
|
+
font-size: $form-label-font-size;
|
78
|
+
font-weight: $form-label-font-weight;
|
79
|
+
|
80
|
+
&.error {
|
81
|
+
color: $form-label-error-color;
|
82
|
+
}
|
83
|
+
|
84
|
+
&.success {
|
85
|
+
color: $form-label-success-color;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
//Help hints
|
90
|
+
.help-hint {
|
91
|
+
display: block;
|
92
|
+
margin-bottom: $form-input-margin-bottom;
|
93
|
+
color: $form-help-hint-color;
|
94
|
+
font-size: $form-help-hint-font-size;
|
95
|
+
padding: $form-help-hint-padding;
|
96
|
+
font-style: $form-help-hint-font-style;
|
97
|
+
|
98
|
+
&.error {
|
99
|
+
background: lighten($form-label-error-color, 6%);
|
100
|
+
}
|
101
|
+
|
102
|
+
&.success {
|
103
|
+
background: lighten($form-label-success-color, 6%);
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
//Inputs and textarea definition
|
108
|
+
textarea,
|
109
|
+
input[type="text"],
|
110
|
+
input[type="password"],
|
111
|
+
input[type="datetime"],
|
112
|
+
input[type="datetime-local"],
|
113
|
+
input[type="date"],
|
114
|
+
input[type="month"],
|
115
|
+
input[type="time"],
|
116
|
+
input[type="week"],
|
117
|
+
input[type="number"],
|
118
|
+
input[type="email"],
|
119
|
+
input[type="url"],
|
120
|
+
input[type="search"],
|
121
|
+
input[type="tel"],
|
122
|
+
input[type="color"],
|
123
|
+
{
|
124
|
+
@include border-radius($form-input-radius);
|
125
|
+
@include box-shadow($form-input-box-shadow);
|
126
|
+
@include single-transition(all 0.1s ease-in-out);
|
127
|
+
@include appearance($ap: none);
|
128
|
+
display: block;
|
129
|
+
width: 100%;
|
130
|
+
height: $form-input-height;
|
131
|
+
color: $form-input-color;
|
132
|
+
font-size: $form-input-font-size;
|
133
|
+
padding: $form-input-padding;
|
134
|
+
margin-bottom: $form-input-margin-bottom;
|
135
|
+
background-color: $form-input-background-color;
|
136
|
+
border: $form-input-border-width $form-input-border-style $form-input-border-color;
|
137
|
+
outline: none;
|
138
|
+
|
139
|
+
@if($include-flexible-addons) {
|
140
|
+
&.addon-field {
|
141
|
+
margin-bottom: 0;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
//Focus state
|
146
|
+
&:focus {
|
147
|
+
@include box-shadow($form-input-focus-box-shadow);
|
148
|
+
border-color: rgba($form-input-focus-border-color, 0.8);
|
149
|
+
outline: none;
|
150
|
+
background: darken($form-input-background-color, 2%);
|
151
|
+
}
|
152
|
+
|
153
|
+
//Disabled inputs
|
154
|
+
&[disabled] {
|
155
|
+
color: $form-input-disabled-color;
|
156
|
+
cursor: not-allowed;
|
157
|
+
overflow: hidden;
|
158
|
+
white-space: nowrap;
|
159
|
+
background: $form-input-disabled-background-color;
|
160
|
+
}
|
161
|
+
|
162
|
+
&.mini {
|
163
|
+
width: $form-input-mini-width;
|
164
|
+
}
|
165
|
+
|
166
|
+
&.small {
|
167
|
+
width: $form-input-small-width;
|
168
|
+
}
|
169
|
+
|
170
|
+
&.medium {
|
171
|
+
width: $form-input-medium-width;
|
172
|
+
}
|
173
|
+
|
174
|
+
&.large {
|
175
|
+
width: $form-input-large-width;
|
176
|
+
}
|
177
|
+
|
178
|
+
&.block {
|
179
|
+
width: 100%;
|
180
|
+
}
|
181
|
+
|
182
|
+
&.success,
|
183
|
+
&.error {
|
184
|
+
margin-bottom: 0;
|
185
|
+
}
|
186
|
+
|
187
|
+
&.success {
|
188
|
+
border-color: $form-input-success-border-color;
|
189
|
+
color: $form-label-success-color;
|
190
|
+
}
|
191
|
+
&.error {
|
192
|
+
border-color: $form-input-error-border-color;
|
193
|
+
color: $form-label-error-color;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
textarea {
|
198
|
+
height: auto;
|
199
|
+
}
|
200
|
+
|
201
|
+
select {
|
202
|
+
@include border-radius(0);
|
203
|
+
width: 100%;
|
204
|
+
display: block;
|
205
|
+
background: $form-select-background-color
|
206
|
+
url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg==') no-repeat $form-select-backgroun-x-position center;
|
207
|
+
;
|
208
|
+
|
209
|
+
//Firefox fix
|
210
|
+
text-indent: 0.01px;
|
211
|
+
text-overflow: "";
|
212
|
+
@include appearance($ap: none);
|
213
|
+
|
214
|
+
padding: $form-select-padding;
|
215
|
+
border: $form-select-border-width $form-select-border-style $form-select-border-color;
|
216
|
+
margin-bottom: $form-input-margin-bottom;
|
217
|
+
outline: none;
|
218
|
+
color: $form-select-color;
|
219
|
+
font-size: $form-select-font-size;
|
220
|
+
|
221
|
+
@if $include-form-select-transition {
|
222
|
+
@include single-transition(all $form-select-transition-time $form-select-transition-style);
|
223
|
+
}
|
224
|
+
|
225
|
+
&.radius { @include border-radius($form-select-radius); }
|
226
|
+
|
227
|
+
&:hover {
|
228
|
+
background: $form-select-hover-background
|
229
|
+
url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg==') no-repeat $form-select-backgroun-x-position center;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
|
233
|
+
input[type="checkbox"],
|
234
|
+
input[type="radio"],
|
235
|
+
input[type="file"] {
|
236
|
+
margin-bottom: $form-input-margin-bottom;
|
237
|
+
}
|
238
|
+
|
239
|
+
//Displays the label inline
|
240
|
+
input[type="checkbox"] + label,
|
241
|
+
input[type="radio"] + label {
|
242
|
+
display: inline-block;
|
243
|
+
vertical-align: baseline;
|
244
|
+
margin-left: $form-inline-label-margin-left;
|
245
|
+
}
|
246
|
+
|
247
|
+
input[type="file"] {
|
248
|
+
width: 100%;
|
249
|
+
}
|
250
|
+
|
251
|
+
@media #{$form-input-media-query} {
|
252
|
+
textarea,
|
253
|
+
input[type="text"],
|
254
|
+
input[type="password"],
|
255
|
+
input[type="datetime"],
|
256
|
+
input[type="datetime-local"],
|
257
|
+
input[type="date"],
|
258
|
+
input[type="month"],
|
259
|
+
input[type="time"],
|
260
|
+
input[type="week"],
|
261
|
+
input[type="number"],
|
262
|
+
input[type="email"],
|
263
|
+
input[type="url"],
|
264
|
+
input[type="search"],
|
265
|
+
input[type="tel"],
|
266
|
+
input[type="color"] {
|
267
|
+
width: 100%;
|
268
|
+
}
|
269
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
$remBase: 16 !default;
|
2
|
+
|
3
|
+
@function px-to-rems($size: 24) {
|
4
|
+
$value: ($size / $remBase) * 1rem;
|
5
|
+
|
6
|
+
@return $value;
|
7
|
+
}
|
8
|
+
|
9
|
+
//
|
10
|
+
//We use this function to calculate the toolbars position
|
11
|
+
//and width for different positions
|
12
|
+
//
|
13
|
+
//$width - the width from which to set the arrow position
|
14
|
+
@function calculate-toolbar-arrow-position($width: 7px) {
|
15
|
+
|
16
|
+
@return $width * 2 * -1;
|
17
|
+
|
18
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
// Global settings
|
2
|
+
|
3
|
+
//
|
4
|
+
//@imports
|
5
|
+
//
|
6
|
+
|
7
|
+
@import 'functions';
|
8
|
+
|
9
|
+
//
|
10
|
+
//@variables
|
11
|
+
//
|
12
|
+
|
13
|
+
$include-flexible-addons: true !default;
|
14
|
+
|
15
|
+
//Inline navigation shared between: navigation ands tabs
|
16
|
+
$navigation-inline-list-item-margin-left: px-to-rems(12) !default;
|
17
|
+
|
18
|
+
// Navigation bar
|
19
|
+
$navigation-bar-height: 45px !default;
|
20
|
+
$navigation-bar-toggle-icon-top-position: (($navigation-bar-height - 21) / 2) - 6 !default;
|
21
|
+
|
22
|
+
$toolbar-bg-color: #232323 !default;
|
23
|
+
|
24
|
+
// Media queries
|
25
|
+
$media-display: "only screen" !default;
|
26
|
+
|
27
|
+
// Extra small screen / phone
|
28
|
+
$screen-xs: 480px !default;
|
29
|
+
$screen-xs-min: $screen-xs !default;
|
30
|
+
$screen-phone: $screen-xs-min !default;
|
31
|
+
|
32
|
+
// Small screen / tablet
|
33
|
+
$screen-sm: 768px !default;
|
34
|
+
$screen-sm-min: $screen-sm !default;
|
35
|
+
$screen-tablet: $screen-sm-min !default;
|
36
|
+
|
37
|
+
// Medium screen / desktop
|
38
|
+
$screen-md: 992px !default;
|
39
|
+
$screen-md-min: $screen-md !default;
|
40
|
+
$screen-desktop: $screen-md-min !default;
|
41
|
+
|
42
|
+
// Large screen / wide desktop
|
43
|
+
// Note: Deprecated $screen-lg and $screen-lg-desktop as of v3.0.1
|
44
|
+
$screen-lg: 1200px !default;
|
45
|
+
$screen-lg-min: $screen-lg !default;
|
46
|
+
$screen-lg-desktop: $screen-lg-min !default;
|
47
|
+
|
48
|
+
// So media queries don't overlap when required, provide a maximum
|
49
|
+
$screen-xs-max: ($screen-sm-min - 1) !default;
|
50
|
+
$screen-sm-max: ($screen-md-min - 1) !default;
|
51
|
+
$screen-md-max: ($screen-lg-min - 1) !default;
|
@@ -0,0 +1,142 @@
|
|
1
|
+
//Grid
|
2
|
+
|
3
|
+
// @compass dependencies
|
4
|
+
@import "compass/css3";
|
5
|
+
|
6
|
+
//
|
7
|
+
//@variables
|
8
|
+
//
|
9
|
+
|
10
|
+
//Grid settings
|
11
|
+
$number-of-columns: 12 !default;
|
12
|
+
$column-separation-factor: 0.1833 !default;
|
13
|
+
|
14
|
+
//Row config
|
15
|
+
$row-text-rendering: optimizespeed !default;
|
16
|
+
$row-next-to-row-separation: 0.14285714rem !default;
|
17
|
+
|
18
|
+
//Columns settings
|
19
|
+
$col-padding: 0.57142857rem !default;
|
20
|
+
$stack-column-separation: 2px !default;
|
21
|
+
|
22
|
+
//Media
|
23
|
+
$grid-max-width: 54.85714286rem !default;
|
24
|
+
$grid-max-width-media: "(max-width: #{$grid-max-width})" !default;
|
25
|
+
|
26
|
+
//Row variations
|
27
|
+
$grid-primary-background-color: rgba(52, 152, 219, 0.8) !default;
|
28
|
+
$grid-danger-background-color: rgba(231, 76, 60, 0.8) !default;
|
29
|
+
$grid-warning-background-color: rgba(241, 196, 15, 0.8) !default;
|
30
|
+
$grid-success-background-color: rgba(46, 204, 113, 0.8) !default;
|
31
|
+
|
32
|
+
//columns border
|
33
|
+
$col-border-color: #FFF !default;
|
34
|
+
$col-border-alpha: 0.5 !default;
|
35
|
+
|
36
|
+
//
|
37
|
+
//@mixin
|
38
|
+
//
|
39
|
+
@mixin grid-columns($columns: $number-of-columns) {
|
40
|
+
$column-width: 100 / $columns;
|
41
|
+
|
42
|
+
@for $i from 1 through $columns {
|
43
|
+
.col-#{$i} {
|
44
|
+
$current-width: ($column-width * $i) - $column-separation-factor;
|
45
|
+
width: percentage($current-width / 100);
|
46
|
+
margin-left: percentage($column-separation-factor / 100);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
.row {
|
52
|
+
@extend %clearfix;
|
53
|
+
display: block;
|
54
|
+
text-rendering: $row-text-rendering;
|
55
|
+
|
56
|
+
&.primary,
|
57
|
+
[class*="col-"].primary {
|
58
|
+
background: $grid-primary-background-color;
|
59
|
+
}
|
60
|
+
|
61
|
+
&.danger,
|
62
|
+
[class*="col-"].danger {
|
63
|
+
background: $grid-danger-background-color;
|
64
|
+
}
|
65
|
+
|
66
|
+
&.warning,
|
67
|
+
[class*="col-"].warning {
|
68
|
+
background: $grid-warning-background-color;
|
69
|
+
}
|
70
|
+
|
71
|
+
&.success,
|
72
|
+
[class*="col-"].success {
|
73
|
+
background: $grid-success-background-color;
|
74
|
+
}
|
75
|
+
|
76
|
+
//Columns
|
77
|
+
@include grid-columns;
|
78
|
+
|
79
|
+
[class*="col-"]:first-child {
|
80
|
+
margin-left: 0;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
//Separation between rows
|
85
|
+
.row + .row {
|
86
|
+
margin-top: $row-next-to-row-separation;
|
87
|
+
}
|
88
|
+
|
89
|
+
//Borders and paddings are applied inside the div element
|
90
|
+
//This prevents the columns to stack by a border or padding
|
91
|
+
[class*="col-"] {
|
92
|
+
padding: $col-padding;
|
93
|
+
float: left;
|
94
|
+
|
95
|
+
&.border {
|
96
|
+
border-width: 1px;
|
97
|
+
border-style: solid;
|
98
|
+
border-color: transparent;
|
99
|
+
|
100
|
+
&.left {
|
101
|
+
border-left-color: rgba($col-border-color, $col-border-alpha);
|
102
|
+
}
|
103
|
+
|
104
|
+
&.right {
|
105
|
+
border-right-color: rgba($col-border-color, $col-border-alpha);
|
106
|
+
}
|
107
|
+
|
108
|
+
&.top {
|
109
|
+
border-top-color: rgba($col-border-color, $col-border-alpha);
|
110
|
+
}
|
111
|
+
|
112
|
+
&.bottom {
|
113
|
+
border-bottom-color: rgba($col-border-color, $col-border-alpha);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
[class*="col-"] {
|
118
|
+
padding-left: 0;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
@media #{$grid-max-width-media} {
|
123
|
+
[class*="col-"] {
|
124
|
+
&.border {
|
125
|
+
|
126
|
+
&.left {
|
127
|
+
border-top-color: rgba($col-border-color, $col-border-alpha);
|
128
|
+
border-left-color: transparent;
|
129
|
+
}
|
130
|
+
|
131
|
+
&.right {
|
132
|
+
border-bottom-color: rgba($col-border-color, $col-border-alpha);
|
133
|
+
border-right-color: transparent;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
}
|
137
|
+
.row > [class *= "col-"] {
|
138
|
+
width: 100%;
|
139
|
+
margin-left: 0;
|
140
|
+
margin-bottom: $stack-column-separation;
|
141
|
+
}
|
142
|
+
}
|