groundworkcss 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +11 -33
- data/lib/groundworkcss/generators/install_generator.rb +1 -1
- data/lib/groundworkcss/version.rb +1 -1
- data/vendor/assets/fonts/groundworkcss/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.svg +153 -38
- data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.woff +0 -0
- data/vendor/assets/stylesheets/groundworkcss/_settings.scss +301 -1
- data/vendor/assets/stylesheets/groundworkcss/base/{_all.scss → _all-base.scss} +2 -3
- data/vendor/assets/stylesheets/groundworkcss/base/_animations.scss +1 -1
- data/vendor/assets/stylesheets/groundworkcss/base/_global.scss +4 -23
- data/vendor/assets/stylesheets/groundworkcss/base/_grid.scss +53 -26
- data/vendor/assets/stylesheets/groundworkcss/base/_helpers.scss +105 -56
- data/vendor/assets/stylesheets/groundworkcss/base/_reset.scss +34 -34
- data/vendor/assets/stylesheets/groundworkcss/core/{_all.scss → _all-core.scss} +1 -1
- data/vendor/assets/stylesheets/groundworkcss/core/_breakpoints.scss +22 -0
- data/vendor/assets/stylesheets/groundworkcss/core/_defaults.scss +196 -93
- data/vendor/assets/stylesheets/groundworkcss/core/_mixins.scss +132 -131
- data/vendor/assets/stylesheets/groundworkcss/form/_all-form.scss +11 -0
- data/vendor/assets/stylesheets/groundworkcss/form/_forms.scss +57 -112
- data/vendor/assets/stylesheets/groundworkcss/form/_tiles.scss +9 -11
- data/vendor/assets/stylesheets/groundworkcss/groundwork-ie.scss +7 -8
- data/vendor/assets/stylesheets/groundworkcss/groundwork.scss +11 -14
- data/vendor/assets/stylesheets/groundworkcss/nav/_all-nav.scss +12 -0
- data/vendor/assets/stylesheets/groundworkcss/nav/_buttons.scss +22 -15
- data/vendor/assets/stylesheets/groundworkcss/nav/_navigation.scss +26 -29
- data/vendor/assets/stylesheets/groundworkcss/nav/_tabs.scss +39 -37
- data/vendor/assets/stylesheets/groundworkcss/responsive/_all-responsive.scss +14 -0
- data/vendor/assets/stylesheets/groundworkcss/responsive/_desktop.scss +5 -3
- data/vendor/assets/stylesheets/groundworkcss/responsive/_ipad.scss +5 -3
- data/vendor/assets/stylesheets/groundworkcss/responsive/_mobile.scss +6 -4
- data/vendor/assets/stylesheets/groundworkcss/responsive/_small-tablet.scss +20 -16
- data/vendor/assets/stylesheets/groundworkcss/social-icons-png.scss +295 -0
- data/vendor/assets/stylesheets/groundworkcss/{misc/_social-icons.scss → social-icons-svg.scss} +8 -5
- data/vendor/assets/stylesheets/groundworkcss/type/{_all.scss → _all-type.scss} +0 -1
- data/vendor/assets/stylesheets/groundworkcss/type/_typography.scss +168 -161
- data/vendor/assets/stylesheets/groundworkcss/type/_webfonts.scss +1 -1
- data/vendor/assets/stylesheets/groundworkcss/ui/_all-ui.scss +14 -0
- data/vendor/assets/stylesheets/groundworkcss/ui/_callouts.scss +31 -18
- data/vendor/assets/stylesheets/groundworkcss/ui/_messages.scss +31 -18
- data/vendor/assets/stylesheets/groundworkcss/ui/_modals.scss +6 -8
- data/vendor/assets/stylesheets/groundworkcss/ui/_tables.scss +6 -5
- data/vendor/assets/stylesheets/groundworkcss/ui/_tooltips.scss +15 -14
- metadata +28 -25
- checksums.yaml +0 -7
- data/vendor/assets/stylesheets/groundworkcss/_rails-settings.scss +0 -202
- data/vendor/assets/stylesheets/groundworkcss/font-awesome-ie7.min.css +0 -22
- data/vendor/assets/stylesheets/groundworkcss/form/_all.scss +0 -10
- data/vendor/assets/stylesheets/groundworkcss/index.scss +0 -3
- data/vendor/assets/stylesheets/groundworkcss/magnific-popup.css +0 -393
- data/vendor/assets/stylesheets/groundworkcss/misc/_all.scss +0 -9
- data/vendor/assets/stylesheets/groundworkcss/nav/_all.scss +0 -11
- data/vendor/assets/stylesheets/groundworkcss/no-svg.scss +0 -355
- data/vendor/assets/stylesheets/groundworkcss/placeholder_polyfill.css +0 -32
- data/vendor/assets/stylesheets/groundworkcss/responsive/_all.scss +0 -13
- data/vendor/assets/stylesheets/groundworkcss/type/_font-awesome.scss +0 -542
- data/vendor/assets/stylesheets/groundworkcss/ui/_all.scss +0 -13
@@ -4,24 +4,26 @@
|
|
4
4
|
// =============================================
|
5
5
|
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
|
8
|
+
|
9
|
+
///////////////////////
|
10
|
+
// helper reset //
|
11
|
+
///////////////////////
|
10
12
|
|
11
13
|
@mixin helper_reset($properties: padding margin, $spacers: padded pad-top pad-right pad-bottom pad-left gapped gap-top gap-right gap-bottom gap-left) {
|
12
14
|
@for $i from 1 through length($spacers) {
|
13
15
|
&.#{nth($spacers, $i)}, &.#{nth($spacers, $i)}.double, &.#{nth($spacers, $i)}.triple {
|
14
16
|
@for $i from 1 through length($properties) {
|
15
|
-
#{nth($properties, $i)}:0 !important;
|
17
|
+
#{nth($properties, $i)}: 0 !important;
|
16
18
|
}
|
17
19
|
}
|
18
20
|
}
|
19
21
|
}
|
20
22
|
|
21
23
|
|
22
|
-
|
23
|
-
//
|
24
|
-
|
24
|
+
///////////////////////
|
25
|
+
// functions //
|
26
|
+
///////////////////////
|
25
27
|
|
26
28
|
// strip unit of measurement from a value
|
27
29
|
@function numericvalue($val) {
|
@@ -30,177 +32,176 @@
|
|
30
32
|
@return $number;
|
31
33
|
}
|
32
34
|
|
33
|
-
|
34
|
-
|
35
|
-
//
|
35
|
+
|
36
|
+
///////////////////////
|
37
|
+
// utilities //
|
38
|
+
///////////////////////
|
36
39
|
|
37
40
|
// inline image with fallback support for IE 7-
|
38
41
|
@mixin data-image($file) {
|
39
|
-
background-image:url("#{$root_path}#{$images_path}#{$file}");
|
40
|
-
background-image:inline-image($file);
|
41
|
-
*background-image:url("#{$root_path}#{$images_path}#{$file}");
|
42
|
+
background-image: url("#{$root_path}#{$images_path}#{$file}"); // fallback
|
43
|
+
background-image: inline-image($file); // data URI
|
44
|
+
*background-image: url("#{$root_path}#{$images_path}#{$file}"); // IE7- hack
|
42
45
|
}
|
43
46
|
|
44
|
-
//
|
45
|
-
@mixin gradient($startColor
|
47
|
+
// gradient
|
48
|
+
@mixin gradient($startColor: $white, $endColor: $gray-2, $direction: "top") {
|
46
49
|
@include background-image(linear-gradient($direction, $startColor, $endColor));
|
47
50
|
}
|
48
51
|
|
49
|
-
// box shadow (deprecated)
|
50
|
-
@mixin drop-shadow($color:rgba(0,0,0,0.2), $blur:5px, $x:2px, $y:2px) { // color, blur, x, y
|
51
|
-
@include box-shadow($color $x $y $blur);
|
52
|
-
}
|
53
52
|
// filter drop shadow
|
54
|
-
@mixin filter-shadow($color:rgba(0,0,0,0.2), $blur:0, $x:0, $y:0) {
|
55
|
-
-ms-filter: drop-shadow($x $y $blur $color);
|
56
|
-
-o-filter: drop-shadow($x $y $blur $color);
|
57
|
-
-moz-filter: drop-shadow($x $y $blur $color);
|
58
|
-
-webkit-filter: drop-shadow($x $y $blur $color);
|
53
|
+
@mixin filter-shadow($color: rgba(0,0,0,0.2), $blur: 0, $x: 0, $y: 0) {
|
54
|
+
-ms-filter: drop-shadow($x $y $blur $color); // IE9+
|
55
|
+
-o-filter: drop-shadow($x $y $blur $color); // Opera
|
56
|
+
-moz-filter: drop-shadow($x $y $blur $color); // Firefox
|
57
|
+
-webkit-filter: drop-shadow($x $y $blur $color); // Webkit (Safari, Chrome, other)
|
59
58
|
filter: drop-shadow($x $y $blur $color);
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
59
|
+
@media #{$retina} {
|
60
|
+
-ms-transform: translateZ(0); // make filter nice and crisp on retina devices
|
61
|
+
-o-transform: translateZ(0);
|
62
|
+
-moz-transform: translateZ(0);
|
63
|
+
-webkit-transform: translateZ(0);
|
64
|
+
transform: translateZ(0);
|
65
|
+
}
|
66
66
|
}
|
67
67
|
|
68
68
|
// inner box shadow
|
69
|
-
@mixin inner-shadow($color, $blur:0, $x:0, $y:0) {
|
70
|
-
-ms-box-shadow:inset $x $y $blur $color;
|
71
|
-
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=#{$blur}, Direction=135, Color='#{ie-hex-str($color)}')";
|
72
|
-
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=#{$blur}, Direction=135, Color='#{ie-hex-str($color)}');
|
73
|
-
-o-box-shadow:inset $x $y $blur $color;
|
74
|
-
-moz-box-shadow:inset $x $y $blur $color;
|
75
|
-
-webkit-box-shadow:inset $x $y $blur $color;
|
76
|
-
box-shadow:inset $x $y $blur $color;
|
69
|
+
@mixin inner-shadow($color, $blur: 0, $x: 0, $y: 0) {
|
70
|
+
-ms-box-shadow: inset $x $y $blur $color; // IE10+
|
71
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=#{$blur}, Direction=135, Color='#{ie-hex-str($color)}')"; // IE8
|
72
|
+
filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=#{$blur}, Direction=135, Color='#{ie-hex-str($color)}')"; // IE7-
|
73
|
+
-o-box-shadow: inset $x $y $blur $color; // Opera
|
74
|
+
-moz-box-shadow: inset $x $y $blur $color; // Firefox
|
75
|
+
-webkit-box-shadow: inset $x $y $blur $color; // Webkit (Safari, Chrome, other)
|
76
|
+
box-shadow: inset $x $y $blur $color;
|
77
77
|
}
|
78
78
|
|
79
79
|
// text/UI Element states
|
80
|
-
@mixin state($state:
|
81
|
-
@if $color ==
|
82
|
-
@if $state ==
|
80
|
+
@mixin state($state: "disabled", $mode: normal, $color: default) {
|
81
|
+
@if $color == "default" {
|
82
|
+
@if $state == "disabled" {
|
83
83
|
$color: $disabled-color;
|
84
|
-
}@else if $state ==
|
84
|
+
}@else if $state == "info" {
|
85
|
+
$color: $info-color;
|
86
|
+
}@else if $state == "success" {
|
85
87
|
$color: $success-color;
|
86
|
-
}@else if $state ==
|
88
|
+
}@else if $state == "warning" {
|
87
89
|
$color: $warning-color;
|
88
|
-
}@else if $state ==
|
90
|
+
}@else if $state == "error" {
|
89
91
|
$color: $error-color;
|
90
92
|
}
|
91
93
|
}
|
92
|
-
color:lighten($color, 35%);
|
93
|
-
@if $mode !=
|
94
|
-
background:lighten($color, 15%);
|
95
|
-
border-color
|
94
|
+
color: lighten($color, 35%);
|
95
|
+
@if $mode != "textOnly" {
|
96
|
+
background: lighten($color, 15%);
|
97
|
+
border-color: $color;
|
96
98
|
}
|
97
|
-
@if $state ==
|
98
|
-
cursor:not-allowed;
|
99
|
-
text-decoration:none;
|
100
|
-
outline:none;
|
99
|
+
@if $state == "disabled" {
|
100
|
+
cursor: not-allowed;
|
101
|
+
text-decoration: none;
|
102
|
+
outline: none;
|
101
103
|
&:hover, &:focus, &:visited {
|
102
|
-
color:lighten($color, 35%);
|
103
|
-
@if $mode !=
|
104
|
-
background:lighten($color, 15%);
|
105
|
-
border-color
|
104
|
+
color: lighten($color, 35%);
|
105
|
+
@if $mode != "textOnly" {
|
106
|
+
background: lighten($color, 15%);
|
107
|
+
border-color: $color;
|
106
108
|
}
|
107
|
-
cursor:not-allowed;
|
108
|
-
text-decoration:none;
|
109
|
-
outline:none;
|
109
|
+
cursor: not-allowed;
|
110
|
+
text-decoration: none;
|
111
|
+
outline: none;
|
110
112
|
}
|
111
113
|
}
|
112
114
|
}
|
113
115
|
|
114
|
-
// transition
|
115
|
-
@mixin transition($transition:all 0.2s) {
|
116
|
-
-ms-transition:$transition; // IE10+
|
117
|
-
-o-transition:$transition; // Opera
|
118
|
-
-moz-transition:$transition; // Firefox
|
119
|
-
-webkit-transition:$transition; // Webkit (Safari, Chrome, other)
|
120
|
-
transition:$transition;
|
121
|
-
}
|
122
116
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
-o-border-radius:$radius; // Opera
|
127
|
-
-moz-border-radius:$radius; // Firefox
|
128
|
-
-webkit-border-radius:$radius; // Webkit (Safari, Chrome, other)
|
129
|
-
border-radius:$radius;
|
130
|
-
}
|
117
|
+
///////////////////////
|
118
|
+
// CSS3 helpers //
|
119
|
+
///////////////////////
|
131
120
|
|
132
|
-
//
|
133
|
-
@mixin
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
121
|
+
// rounded corners
|
122
|
+
@mixin rounded($radius: $default-radius) {
|
123
|
+
@if $radius == "0" or $radius == "0px" or $radius == "none" {
|
124
|
+
// no output if $default-radius is set to a zero value
|
125
|
+
} @else {
|
126
|
+
@include border-radius($radius);
|
127
|
+
}
|
139
128
|
}
|
140
129
|
|
141
|
-
//
|
142
|
-
@mixin
|
143
|
-
-moz-animation:
|
130
|
+
// animations
|
131
|
+
@mixin animation($animation: spin, $count: infinite, $speed: 2s, $easing: linear) {
|
132
|
+
-moz-animation: $animation $speed $easing;
|
144
133
|
-moz-animation-iteration-count: $count;
|
145
|
-
-o-animation:
|
134
|
+
-o-animation: $animation $speed $easing;
|
146
135
|
-o-animation-iteration-count: $count;
|
147
|
-
-webkit-animation:
|
136
|
+
-webkit-animation: $animation $speed $easing;
|
148
137
|
-webkit-animation-iteration-count: $count;
|
149
|
-
animation:
|
138
|
+
animation: $animation $speed $easing;
|
150
139
|
animation-iteration-count: $count;
|
151
140
|
}
|
152
|
-
|
153
|
-
|
154
|
-
@
|
155
|
-
-ms-transform:scale($scale); // IE10+
|
156
|
-
-o-transform:scale($scale); // Opera
|
157
|
-
-moz-transform:scale($scale); // Firefox
|
158
|
-
-webkit-transform:scale($scale); // Webkit (Safari, Chrome, other)
|
159
|
-
transform:scale($scale);
|
141
|
+
// deprecated, use animation() now instead
|
142
|
+
@mixin spin($count: infinite, $speed: 2s) {
|
143
|
+
@include animation(spin, $count, $speed);
|
160
144
|
}
|
161
145
|
|
162
|
-
// translate
|
163
|
-
@mixin translate($x:0, $y:0) {
|
164
|
-
-ms-transform:translate($x,$y); // IE10+
|
165
|
-
-o-transform:translate($x,$y); // Opera
|
166
|
-
-moz-transform:translate($x,$y); // Firefox
|
167
|
-
-webkit-transform:translate($x,$y); // Webkit (Safari, Chrome, other)
|
168
|
-
transform:translate($x,$y);
|
169
|
-
}
|
170
146
|
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
-o-transform:translate($x,$y) rotate($deg) scale($scale); // Opera
|
175
|
-
-moz-transform:translate($x,$y) rotate($deg) scale($scale); // Firefox
|
176
|
-
-webkit-transform:translate($x,$y) rotate($deg) scale($scale); // Webkit (Safari, Chrome, other)
|
177
|
-
transform:translate($x,$y) rotate($deg) scale($scale);
|
178
|
-
}
|
179
|
-
|
180
|
-
// transform origin
|
181
|
-
@mixin transform-origin($x:0, $y:0) {
|
182
|
-
-ms-transform-origin:$x $y; // IE10+
|
183
|
-
-o-transform-origin:$x $y; // Opera
|
184
|
-
-moz-transform-origin:$x $y; // Firefox
|
185
|
-
-webkit-transform-origin:$x $y; // Webkit (Safari, Chrome, other)
|
186
|
-
transform-origin:$x $y;
|
187
|
-
}
|
188
|
-
|
189
|
-
|
190
|
-
// ====================
|
191
|
-
// fonts
|
192
|
-
// ====================
|
147
|
+
///////////////////////
|
148
|
+
// fonts //
|
149
|
+
///////////////////////
|
193
150
|
|
194
151
|
// font stacks
|
195
|
-
@mixin font-stack($primaryFont:"", $secondaryFont:"", $fallbackFonts:
|
196
|
-
|
152
|
+
@mixin font-stack($primaryFont: "", $secondaryFont: "", $fallbackFonts: $font-family) {
|
153
|
+
// might add inline-font-files() at some point
|
197
154
|
@if $secondaryFont != "" {
|
198
|
-
font-family
|
155
|
+
font-family: #{$primaryFont}, #{$secondaryFont}, #{$fallbackFonts};
|
199
156
|
} @else {
|
200
157
|
@if $primaryFont != "" {
|
201
|
-
font-family
|
158
|
+
font-family: #{$primaryFont}, #{$fallbackFonts};
|
202
159
|
} @else {
|
203
|
-
font-family
|
160
|
+
font-family: #{$fallbackFonts};
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
///////////////////////
|
166
|
+
// Font Awesome //
|
167
|
+
///////////////////////
|
168
|
+
|
169
|
+
@mixin icon($icon) {
|
170
|
+
@include icon-FontAwesome();
|
171
|
+
content: $icon;
|
172
|
+
}
|
173
|
+
|
174
|
+
@mixin icon-FontAwesome() {
|
175
|
+
font-family: FontAwesome;
|
176
|
+
font-weight: normal;
|
177
|
+
font-style: normal;
|
178
|
+
text-decoration: inherit;
|
179
|
+
-webkit-font-smoothing: antialiased;
|
180
|
+
*margin-right: .3em; // fixes ie7 issues
|
181
|
+
}
|
182
|
+
|
183
|
+
@mixin icon-stack($width: 2em, $height: 2em, $top-font-size: 1em, $base-font-size: 2em) {
|
184
|
+
.icon-stack {
|
185
|
+
position: relative;
|
186
|
+
display: inline-block;
|
187
|
+
width: $width;
|
188
|
+
height: $height;
|
189
|
+
line-height: $width;
|
190
|
+
vertical-align: -35%;
|
191
|
+
[class^="icon-"],
|
192
|
+
[class*=" icon-"] {
|
193
|
+
display: block;
|
194
|
+
text-align: center;
|
195
|
+
position: absolute;
|
196
|
+
width: 100%;
|
197
|
+
height: 100%;
|
198
|
+
font-size: $top-font-size;
|
199
|
+
line-height: inherit;
|
200
|
+
*line-height: $height;
|
201
|
+
}
|
202
|
+
.icon-stack-base {
|
203
|
+
font-size: $base-font-size;
|
204
|
+
*line-height: #{$height / $base-font-size}em;
|
204
205
|
}
|
205
206
|
}
|
206
207
|
}
|
@@ -25,14 +25,16 @@
|
|
25
25
|
%field {
|
26
26
|
display:block;
|
27
27
|
width:100%;
|
28
|
+
max-width: 100%;
|
28
29
|
margin:0;
|
29
30
|
padding:0.4em;
|
30
31
|
font-family:monospace;
|
32
|
+
font-size: 1em;
|
31
33
|
line-height:1.5;
|
32
34
|
height:2.25em;
|
33
35
|
background:white;
|
34
36
|
border:1px solid $border-color;
|
35
|
-
@include rounded($radius);
|
37
|
+
@include rounded($default-radius);
|
36
38
|
&[size] {
|
37
39
|
height:auto;
|
38
40
|
}
|
@@ -50,7 +52,7 @@
|
|
50
52
|
margin:0 0 0 0.2em;
|
51
53
|
background:white;
|
52
54
|
border:1px solid $border-color;
|
53
|
-
@include rounded($radius);
|
55
|
+
@include rounded($default-radius);
|
54
56
|
}
|
55
57
|
}
|
56
58
|
|
@@ -82,49 +84,6 @@
|
|
82
84
|
border-color:$success-color;
|
83
85
|
}
|
84
86
|
|
85
|
-
%select-wrap {
|
86
|
-
display:block;
|
87
|
-
color:gray;
|
88
|
-
background:white;
|
89
|
-
border:1px solid $border-color;
|
90
|
-
position:relative;
|
91
|
-
@include rounded($radius);
|
92
|
-
&:after {
|
93
|
-
content:'...';
|
94
|
-
display:block;
|
95
|
-
width:1.5em;
|
96
|
-
text-align:center;
|
97
|
-
height:100%;
|
98
|
-
position:absolute;
|
99
|
-
z-index:1;
|
100
|
-
font-size:1.5em;
|
101
|
-
line-height:1.25;
|
102
|
-
top:0;
|
103
|
-
right:0;
|
104
|
-
background:darken(white, 12.5%);
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
|
-
%custom-select {
|
109
|
-
-ms-appearance:none;
|
110
|
-
-o-appearance:none;
|
111
|
-
-moz-appearance:none;
|
112
|
-
-webkit-appearance:none;
|
113
|
-
appearance:none;
|
114
|
-
border:none;
|
115
|
-
background:none;
|
116
|
-
padding:0.4em;
|
117
|
-
font-family:monospace;
|
118
|
-
line-height:1.5;
|
119
|
-
height:2.25em;
|
120
|
-
padding-right:2.5em;
|
121
|
-
position:relative;
|
122
|
-
z-index:2;
|
123
|
-
&.unselected {
|
124
|
-
color:#999;
|
125
|
-
}
|
126
|
-
}
|
127
|
-
|
128
87
|
%radio-list {
|
129
88
|
list-style:none;
|
130
89
|
margin:0;
|
@@ -152,89 +111,75 @@
|
|
152
111
|
|
153
112
|
%prefix {
|
154
113
|
left:2px;
|
155
|
-
@include rounded($radius 0 0 $radius);
|
114
|
+
@include rounded($default-radius 0 0 $default-radius);
|
156
115
|
}
|
157
116
|
|
158
117
|
%suffix {
|
159
118
|
left:-2px;
|
160
|
-
@include rounded(0 $radius $radius 0);
|
161
|
-
}
|
162
|
-
|
163
|
-
@if $tags {
|
164
|
-
$elements: fieldset legend label input textarea;
|
165
|
-
@for $i from 1 through length($elements) {
|
166
|
-
$element: nth($elements, $i);
|
167
|
-
@if not index($tag-elements, $element) == false {
|
168
|
-
#{$element} {
|
169
|
-
@extend %#{$element};
|
170
|
-
@if $element == input or $element == textarea {
|
171
|
-
@extend %field;
|
172
|
-
}
|
173
|
-
@if $element == textarea {
|
174
|
-
@extend %textarea;
|
175
|
-
}
|
176
|
-
}
|
177
|
-
}
|
178
|
-
}
|
119
|
+
@include rounded(0 $default-radius $default-radius 0);
|
120
|
+
}
|
179
121
|
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
select {
|
184
|
-
@extend %custom-select;
|
185
|
-
}
|
186
|
-
}
|
187
|
-
}
|
122
|
+
// prefix/suffix classes
|
123
|
+
.prefix {
|
124
|
+
@extend %prefix;
|
188
125
|
}
|
189
126
|
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
}
|
198
|
-
}
|
199
|
-
.success, .valid {
|
200
|
-
input, select, textarea {
|
201
|
-
@extend %success-block;
|
202
|
-
}
|
203
|
-
.prefix, .suffix {
|
204
|
-
@extend %success-block-prefix;
|
205
|
-
}
|
127
|
+
.suffix {
|
128
|
+
@extend %suffix;
|
129
|
+
}
|
130
|
+
|
131
|
+
.error, .invalid {
|
132
|
+
input, select, textarea {
|
133
|
+
@extend %error-block;
|
206
134
|
}
|
207
|
-
.
|
208
|
-
@extend %
|
135
|
+
.prefix, .suffix {
|
136
|
+
@extend %error-block-prefix;
|
209
137
|
}
|
210
|
-
|
211
|
-
|
138
|
+
}
|
139
|
+
.success, .valid {
|
140
|
+
input, select, textarea {
|
141
|
+
@extend %success-block;
|
212
142
|
}
|
213
|
-
.
|
214
|
-
@extend %
|
143
|
+
.prefix, .suffix {
|
144
|
+
@extend %success-block-prefix;
|
215
145
|
}
|
216
|
-
|
146
|
+
}
|
147
|
+
|
148
|
+
@if $form-tags {
|
149
|
+
@for $i from 1 through length($form-elements) {
|
150
|
+
$element: nth($form-elements, $i);
|
151
|
+
#{$element} {
|
152
|
+
@extend %#{$element};
|
153
|
+
@if $element == input or $element == textarea {
|
154
|
+
@extend %field;
|
155
|
+
}
|
156
|
+
@if $element == textarea {
|
157
|
+
@extend %textarea;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
select {
|
217
162
|
@extend %field;
|
218
163
|
}
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
164
|
+
}
|
165
|
+
|
166
|
+
@if $form-classes {
|
167
|
+
@for $i from 1 through length($form-elements) {
|
168
|
+
$element: nth($form-elements, $i);
|
169
|
+
.#{$element} {
|
170
|
+
@extend %#{$element};
|
171
|
+
@if $element == input or $element == textarea {
|
172
|
+
@extend %field;
|
173
|
+
}
|
174
|
+
@if $element == textarea {
|
175
|
+
@extend %textarea;
|
176
|
+
}
|
229
177
|
}
|
230
178
|
}
|
179
|
+
.input, .select, .textarea {
|
180
|
+
@extend %field;
|
181
|
+
}
|
231
182
|
.radio-list {
|
232
183
|
@extend %radio-list;
|
233
184
|
}
|
234
|
-
.prefix {
|
235
|
-
@extend %prefix;
|
236
|
-
}
|
237
|
-
.suffix {
|
238
|
-
@extend %suffix;
|
239
|
-
}
|
240
185
|
}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
//
|
2
|
-
//
|
3
|
-
//
|
4
|
-
|
5
|
-
|
1
|
+
// =============================================
|
2
|
+
// Tiles
|
3
|
+
// Last Updated:2013-6-25
|
4
|
+
// =============================================
|
6
5
|
|
7
6
|
|
8
7
|
%tiles {
|
@@ -24,7 +23,7 @@
|
|
24
23
|
text-overflow:ellipsis;
|
25
24
|
white-space:nowrap;
|
26
25
|
@include transition(background-color 0.25s ease-out);
|
27
|
-
@include rounded($radius);
|
26
|
+
@include rounded($default-radius);
|
28
27
|
cursor:pointer;
|
29
28
|
&:hover, &:focus {
|
30
29
|
text-decoration:none;
|
@@ -75,7 +74,7 @@
|
|
75
74
|
}
|
76
75
|
}
|
77
76
|
|
78
|
-
@if $
|
77
|
+
@if $tiles {
|
79
78
|
.tiles {
|
80
79
|
@extend %tiles;
|
81
80
|
.tile {
|
@@ -83,10 +82,9 @@
|
|
83
82
|
i {
|
84
83
|
@extend %tile-icon;
|
85
84
|
}
|
86
|
-
$
|
87
|
-
|
88
|
-
|
89
|
-
@extend %tile-#{nth($modifiers, $i)};
|
85
|
+
@for $i from 1 through length($tile-modifiers) {
|
86
|
+
&.#{nth($tile-modifiers, $i)} {
|
87
|
+
@extend %tile-#{nth($tile-modifiers, $i)};
|
90
88
|
}
|
91
89
|
}
|
92
90
|
// modifier colors
|
@@ -1,14 +1,11 @@
|
|
1
|
-
|
2
|
-
*
|
3
|
-
* Last Updated:2013-
|
1
|
+
/*! ============================================
|
2
|
+
* Legacy IE Support
|
3
|
+
* Last Updated:2013-6-23
|
4
4
|
* ===========================================*/
|
5
5
|
|
6
6
|
|
7
|
-
|
8
|
-
@import "
|
9
|
-
|
10
|
-
// core
|
11
|
-
@import "core/all"; // required
|
7
|
+
@import "settings";
|
8
|
+
@import "core/all-core";
|
12
9
|
|
13
10
|
|
14
11
|
|
@@ -71,6 +68,8 @@ html {
|
|
71
68
|
}
|
72
69
|
}
|
73
70
|
&.lt-ie8 {
|
71
|
+
// font awesome for IE7
|
72
|
+
@import "icons/font-awesome-ie7";
|
74
73
|
// navigation
|
75
74
|
nav {
|
76
75
|
&.inline {
|
@@ -1,22 +1,19 @@
|
|
1
|
-
|
1
|
+
/*! ============================================
|
2
2
|
* GroundworkCSS by Gary Hepting
|
3
|
-
* Last Updated:2013-6-
|
3
|
+
* Last Updated:2013-6-25
|
4
4
|
* ===========================================*/
|
5
5
|
|
6
6
|
|
7
|
-
//
|
8
|
-
@import "
|
9
|
-
|
10
|
-
// core (required)
|
11
|
-
@import "core/all"; // constants, defaults, mixins
|
12
|
-
@import "base/all"; // reset, globals, grid, helpers, animations
|
7
|
+
// core
|
8
|
+
@import "core/all-core"; // constants, defaults, mixins
|
9
|
+
@import "base/all-base"; // reset, globals, grid, helpers, animations
|
13
10
|
|
14
11
|
// components
|
15
|
-
@import "type/all";
|
16
|
-
@import "
|
17
|
-
@import "
|
18
|
-
@import "
|
19
|
-
@import "
|
12
|
+
@import "type/all-type"; // typography, web fonts
|
13
|
+
@import "icons/all-icons"; // font awesome
|
14
|
+
@import "nav/all-nav"; // buttons, navigation, tabs
|
15
|
+
@import "ui/all-ui"; // messages, callouts, tables, tooltips, popovers, modals
|
16
|
+
@import "form/all-form"; // forms, tiles
|
20
17
|
|
21
18
|
// responsive adjustments
|
22
|
-
@import "responsive/all";
|
19
|
+
@import "responsive/all-responsive"; // responsive navigation, tabs
|