zurb-foundation 2.2.1.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -2
- data/Capfile +5 -0
- data/Gemfile +1 -1
- data/LICENSE +22 -0
- data/README.md +87 -0
- data/Rakefile +1 -0
- data/config/deploy.rb +42 -0
- data/foundation.gemspec +17 -21
- data/index.html +138 -0
- data/lib/foundation/engine.rb +2 -2
- data/lib/foundation/sass_script_functions.rb +29 -0
- data/lib/foundation/version.rb +1 -2
- data/lib/zurb-foundation.rb +6 -3
- data/stylesheets/_foundation.scss +14 -0
- data/stylesheets/foundation/_base.scss +6 -0
- data/stylesheets/foundation/_mixins.scss +46 -0
- data/stylesheets/foundation/_modular-scale.sass +332 -0
- data/stylesheets/foundation/_semantic-grid.scss +67 -0
- data/stylesheets/foundation/_settings.scss +71 -0
- data/stylesheets/foundation/app.scss +26 -0
- data/stylesheets/foundation/buttons.scss +175 -0
- data/stylesheets/foundation/forms.scss +130 -0
- data/stylesheets/foundation/globals.scss +34 -0
- data/stylesheets/foundation/grid.scss +132 -0
- data/stylesheets/foundation/ie.scss +16 -0
- data/stylesheets/foundation/mobile.scss +32 -0
- data/stylesheets/foundation/navbar.scss +107 -0
- data/stylesheets/foundation/offcanvas.scss +57 -0
- data/{vendor/assets/stylesheets/foundation/orbit.css.scss → stylesheets/foundation/orbit.scss} +68 -68
- data/stylesheets/foundation/reveal.scss +54 -0
- data/stylesheets/foundation/tabs.scss +89 -0
- data/stylesheets/foundation/typography.scss +83 -0
- data/stylesheets/foundation/ui.scss +352 -0
- data/templates/project/.gitignore +44 -0
- data/templates/project/MIT-LICENSE.txt +20 -0
- data/templates/project/humans.txt +8 -0
- data/templates/project/index.html +133 -0
- data/templates/project/manifest.rb +51 -0
- data/templates/project/robots.txt +4 -0
- data/templates/project/sass/_settings.scss +48 -0
- data/templates/project/sass/app.scss +20 -0
- data/templates/project/sass/ie.scss +4 -0
- data/templates/project/stylesheets/app.css +0 -0
- data/templates/project/stylesheets/ie.css +0 -0
- data/test.html +758 -0
- data/type.html +153 -0
- data/vendor/assets/images/foundation/orbit/left-arrow-small.png +0 -0
- data/vendor/assets/images/foundation/orbit/right-arrow-small.png +0 -0
- data/vendor/assets/images/foundation/orbit/right-arrow.png +0 -0
- data/vendor/assets/javascripts/foundation/app.js +92 -71
- data/vendor/assets/javascripts/foundation/index.js +8 -7
- data/vendor/assets/javascripts/foundation/jquery.customforms.js +74 -73
- data/vendor/assets/javascripts/foundation/jquery.min.js +4 -0
- data/vendor/assets/javascripts/foundation/jquery.offcanvas.js +50 -0
- data/vendor/assets/javascripts/foundation/jquery.orbit-1.4.0.js +103 -101
- data/vendor/assets/javascripts/foundation/jquery.placeholder.min.js +0 -1
- data/vendor/assets/javascripts/foundation/jquery.reveal.js +39 -15
- data/vendor/assets/javascripts/foundation/jquery.tooltips.js +96 -90
- data/vendor/assets/javascripts/foundation/modernizr.foundation.js +3 -4
- metadata +101 -46
- data/README.markdown +0 -163
- data/build.rb +0 -49
- data/lib/foundation/generators/USAGE +0 -15
- data/lib/foundation/generators/install_generator.rb +0 -27
- data/lib/foundation/generators/layout_generator.rb +0 -28
- data/lib/foundation/generators/templates/application.css +0 -5
- data/lib/foundation/generators/templates/application.html.erb +0 -31
- data/lib/foundation/generators/templates/application.html.haml +0 -30
- data/lib/foundation/generators/templates/application.html.slim +0 -30
- data/lib/foundation/generators/templates/application.js +0 -4
- data/vendor/assets/images/foundation/misc/button-gloss.png +0 -0
- data/vendor/assets/images/foundation/misc/button-overlay.png +0 -0
- data/vendor/assets/images/foundation/misc/custom-form-sprites.png +0 -0
- data/vendor/assets/images/foundation/misc/input-bg-outset.png +0 -0
- data/vendor/assets/images/foundation/misc/input-bg.png +0 -0
- data/vendor/assets/images/foundation/misc/modal-gloss.png +0 -0
- data/vendor/assets/images/foundation/misc/table-sorter.png +0 -0
- data/vendor/assets/stylesheets/foundation/forms.css.scss +0 -134
- data/vendor/assets/stylesheets/foundation/globals.css.scss +0 -139
- data/vendor/assets/stylesheets/foundation/grid.css.scss +0 -129
- data/vendor/assets/stylesheets/foundation/ie.css.scss +0 -13
- data/vendor/assets/stylesheets/foundation/index.css +0 -10
- data/vendor/assets/stylesheets/foundation/mobile.css.scss +0 -222
- data/vendor/assets/stylesheets/foundation/reveal.css.scss +0 -100
- data/vendor/assets/stylesheets/foundation/typography.css.scss +0 -63
- data/vendor/assets/stylesheets/foundation/ui.css.scss +0 -418
@@ -0,0 +1,71 @@
|
|
1
|
+
// Settings file containing Foundation defaults
|
2
|
+
|
3
|
+
// Grid Settings
|
4
|
+
|
5
|
+
$rowWidth: 1000px !default;
|
6
|
+
$columnGutter: 30px !default;
|
7
|
+
$totalColumns: 12 !default;
|
8
|
+
$mobileTotalColumns: 4 !default;
|
9
|
+
|
10
|
+
// Colors Settings
|
11
|
+
|
12
|
+
$mainColor: #2ba6cb !default;
|
13
|
+
$secondaryColor: #e9e9e9 !default;
|
14
|
+
$alertColor: #c60f13 !default;
|
15
|
+
$successColor: #5da423 !default;
|
16
|
+
$txtColor: #222 !default;
|
17
|
+
$highlightColor: #ffff99 !default;
|
18
|
+
$black: #000 !default;
|
19
|
+
$white: #fff !default;
|
20
|
+
$shinyEdge: rgba(#fff, .5) !default;
|
21
|
+
$darkEdge: rgba(#000, .2) !default;
|
22
|
+
|
23
|
+
// Button Settings
|
24
|
+
|
25
|
+
$buttonRadius: 3px !default;
|
26
|
+
$btnBase: 10px !default;
|
27
|
+
|
28
|
+
$tinyBtnBase: $btnBase - 5 !default;
|
29
|
+
$smallBtnBase: $btnBase - 3 !default;
|
30
|
+
$largeBtnBase: $btnBase + 5 !default;
|
31
|
+
|
32
|
+
// Form Settings
|
33
|
+
|
34
|
+
$formSpacing: 12px !default;
|
35
|
+
|
36
|
+
// Tab Settings
|
37
|
+
|
38
|
+
$tabHeight: 40px !default;
|
39
|
+
|
40
|
+
// Nav Bar Settings
|
41
|
+
|
42
|
+
$navBarHeight: 40px !default;
|
43
|
+
$navFlyoutBaseWidth: 250px !default;
|
44
|
+
|
45
|
+
// Off Canvas Width Settings
|
46
|
+
|
47
|
+
$mainWidth: 80% !default;
|
48
|
+
$complementaryWidth: 20% !default;
|
49
|
+
|
50
|
+
// Modular Scale Settings
|
51
|
+
|
52
|
+
$ratio: $golden !default;
|
53
|
+
$base-size: 14px 44px !default;
|
54
|
+
// Produced the following list of values: 14, 17, 23, 27, 37, 44, 59, 71, 95, 115;
|
55
|
+
// http://www.modularscale.com by Tim Brown
|
56
|
+
// https://github.com/scottkellum/modular-scale by scottkellum
|
57
|
+
|
58
|
+
// Media Queries
|
59
|
+
|
60
|
+
$screenSmall: 768px !default;
|
61
|
+
$screenMedium: 1279px !default;
|
62
|
+
$screenXlarge: 1441px !default;
|
63
|
+
|
64
|
+
// Saving for Sass 3.2 stable release
|
65
|
+
// $mediaSmall: "only screen and (max-width: 767px)" !default;
|
66
|
+
// $mediaMedium: "only screen and (max-width: 1279px) and (min-width: 768px)" !default;
|
67
|
+
// $mediaXlarge: "only screen and (min-width: 1441px)" !default;
|
68
|
+
// $mediaLandscape: "screen and (orientation: landscape)" !default;
|
69
|
+
// $mediaPortrait: "screen and (orientation: portrait)" !default;
|
70
|
+
// $mediaAll: "only screen and (max-device-width: 800px), only screen and (device-width: 1024px) and (device-height: 600px), only screen and (width: 1280px) and (orientation: landscape), only screen and (device-width: 800px), only screen and (max-width: 767px)" !default;
|
71
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/* --------------------------------------------------
|
2
|
+
Table of Contents
|
3
|
+
-----------------------------------------------------
|
4
|
+
:: Shared Styles
|
5
|
+
:: Page Name 1
|
6
|
+
:: Page Name 2
|
7
|
+
*/
|
8
|
+
|
9
|
+
|
10
|
+
/* -----------------------------------------
|
11
|
+
Shared Styles
|
12
|
+
----------------------------------------- */
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
/* -----------------------------------------
|
17
|
+
Page Name 1
|
18
|
+
----------------------------------------- */
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
/* -----------------------------------------
|
24
|
+
Page Name 2
|
25
|
+
----------------------------------------- */
|
26
|
+
|
@@ -0,0 +1,175 @@
|
|
1
|
+
/* Requires
|
2
|
+
globals.css */
|
3
|
+
|
4
|
+
@import "base";
|
5
|
+
|
6
|
+
/* Normal Buttons ---------------------- */
|
7
|
+
|
8
|
+
.button { width: auto; background: $mainColor; border: 1px solid darken(($mainColor), 15%); @include box-shadow(0 1px 0 $shinyEdge inset); color: $white; cursor: pointer; display: inline-block; @include defaultFontFamily; font-size: ms(0); font-weight: bold; line-height: 1; margin: 0; outline: none; padding: $btnBase ($btnBase * 2) ($btnBase + 1); position: relative; text-align: center; text-decoration: none; @include single-transition(background-color, .15s, ease-in-out);
|
9
|
+
|
10
|
+
/* Hovers */
|
11
|
+
&:hover { color: $white; background-color: darken(($mainColor), 10%); }
|
12
|
+
&:active { @include box-shadow(0 1px 0 $darkEdge inset); }
|
13
|
+
&:focus { @include box-shadow(0 0 4px opacify($mainColor, 0.3), 0 1px 0 $shinyEdge inset); color: $white; }
|
14
|
+
|
15
|
+
/* Sizes */
|
16
|
+
&.large { font-size: ms(1); padding: ($largeBtnBase) ($largeBtnBase * 2) ($largeBtnBase + 1); }
|
17
|
+
&.medium { font-size: ms(0); }
|
18
|
+
&.small { font-size: ms(0) - 3; padding: ($smallBtnBase) ($smallBtnBase * 2) ($smallBtnBase + 1); }
|
19
|
+
&.tiny { font-size: ms(0) - 4; padding: ($tinyBtnBase) ($tinyBtnBase * 2) ($tinyBtnBase + 1); }
|
20
|
+
&.expand { width: 100%; text-align: center; }
|
21
|
+
|
22
|
+
/* Colors */
|
23
|
+
&.primary { background-color: $mainColor; border: 1px solid darken(($mainColor), 15%);
|
24
|
+
&:hover { background-color: darken(($mainColor), 10%); }
|
25
|
+
&:focus { @include box-shadow(0 0 4px opacify($mainColor, 0.3), 0 1px 0 $shinyEdge inset); }
|
26
|
+
}
|
27
|
+
&.success { background-color: $successColor; border: 1px solid darken(($successColor), 15%);
|
28
|
+
&:hover { background-color: darken(($successColor), 10%); }
|
29
|
+
&:focus { @include box-shadow(0 0 5px opacify($successColor, 0.4), 0 1px 0 $shinyEdge inset); }
|
30
|
+
}
|
31
|
+
&.alert { background-color: $alertColor; border: 1px solid darken(($alertColor), 15%);
|
32
|
+
&:hover { background-color: darken(($alertColor), 10%); }
|
33
|
+
&:focus { @include box-shadow(0 0 4px opacify($alertColor, 0.3), 0 1px 0 $shinyEdge inset); }
|
34
|
+
}
|
35
|
+
&.secondary { background-color: $secondaryColor; color: darken(($secondaryColor), 80%); border: 1px solid darken(($secondaryColor), 15%);
|
36
|
+
&:hover { background-color: darken(($secondaryColor), 10%); }
|
37
|
+
&:focus { @include box-shadow(0 0 5px opacify($secondaryColor, 0.5), 0 1px 0 $shinyEdge inset); }
|
38
|
+
}
|
39
|
+
|
40
|
+
/* Radii */
|
41
|
+
&.radius { @include border-radius($buttonRadius); }
|
42
|
+
&.round { @include border-radius(1000px); }
|
43
|
+
|
44
|
+
/* Layout */
|
45
|
+
&.full-width { width: 100%; text-align: center; padding-left: 0 !important; padding-right: !important; }
|
46
|
+
&.left-align { text-align: left; text-indent: 12px; }
|
47
|
+
|
48
|
+
/* Disabled ---------- */
|
49
|
+
&.disabled, &[disabled] { opacity: 0.6; cursor: default; background: $mainColor; @include box-shadow(none); }
|
50
|
+
}
|
51
|
+
|
52
|
+
/* Don't use native buttons on iOS */
|
53
|
+
input[type=submit].button, button.button { -webkit-appearance: none; }
|
54
|
+
|
55
|
+
@media only screen and (max-width: $screenSmall - 1) {
|
56
|
+
.button { display: block; }
|
57
|
+
button.button, input[type="submit"].button { width: 100%; padding-left: 0; padding-right: 0; }
|
58
|
+
}
|
59
|
+
|
60
|
+
/* Correct FF button padding */
|
61
|
+
@-moz-document url-prefix() {
|
62
|
+
button::-moz-focus-inner, input[type="reset"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner, input[type="submit"]::-moz-focus-inner, input[type="file"] > input[type="button"]::-moz-focus-inner { border: none; padding: 0; }
|
63
|
+
input[type="submit"].tiny.button { padding: ($tinyBtnBase - 2) ($tinyBtnBase * 2) ($tinyBtnBase - 1); }
|
64
|
+
input[type="submit"].small.button { padding: ($smallBtnBase - 2) ($smallBtnBase * 2) ($smallBtnBase - 1); }
|
65
|
+
input[type="submit"].button, input[type=submit].medium.button { padding: ($btnBase - 2) ($btnBase * 2) ($btnBase - 1) }
|
66
|
+
input[type="submit"].large.button { padding: ($largeBtnBase - 2) ($largeBtnBase * 2) ($largeBtnBase - 1); }
|
67
|
+
}
|
68
|
+
|
69
|
+
/* Buttons with Dropdowns ---------------------- */
|
70
|
+
|
71
|
+
.button.dropdown { position: relative; padding-right: (($btnBase + 12) * 2);
|
72
|
+
|
73
|
+
/* Sizes */
|
74
|
+
&.large { padding-right: ($largeBtnBase * 2) * 2; }
|
75
|
+
&.small { padding-right: ($smallBtnBase * 2) * 2; }
|
76
|
+
&.tiny { padding-right: ($tinyBtnBase * 2) * 2; }
|
77
|
+
|
78
|
+
/* Triangles */
|
79
|
+
&:after { @include cssTriangle(6px, #fff, top); position: absolute; top: 50%; right: $btnBase * 2; margin-top: -2px; }
|
80
|
+
&.large:after { @include cssTriangle(7px, #fff, top); margin-top: -3px; right: $largeBtnBase * 2; }
|
81
|
+
&.small:after { @include cssTriangle(5px, #fff, top); margin-top: -2px; right: $smallBtnBase * 2; }
|
82
|
+
&.tiny:after { @include cssTriangle(4px, #fff, top); margin-top: -1px; right: $tinyBtnBase * 2; }
|
83
|
+
|
84
|
+
/* Flyout List */
|
85
|
+
&>ul { @include box-sizing(content-box); display: none; position: absolute; left: -1px; background: #fff; background: rgba(#fff,0.95); list-style: none; margin: 0; padding: 0; border: 1px solid darken($white, 20%); border-top: none; min-width: 100%; z-index: 40;
|
86
|
+
|
87
|
+
li { cursor: pointer; padding: 0; min-height: 18px; line-height: 18px; margin: 0; white-space: nowrap; list-style: none;
|
88
|
+
a { display: block; color: #555; font-size: ms(0) - 1; font-weight: normal; padding: 6px 14px; text-align: left; }
|
89
|
+
&:hover { background-color: lighten($mainColor, 45%); color: #222; }
|
90
|
+
&.divider { min-height: 0; padding: 0; height: 1px; margin: 4px 0; background: darken($white, 7%); }
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
ul.no-hover.show-dropdown { display: block !important; }
|
95
|
+
&:hover {
|
96
|
+
&>ul.no-hover {
|
97
|
+
display: none;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
/* Split Dropdown Buttons */
|
102
|
+
&.split { padding: 0; position: relative;
|
103
|
+
|
104
|
+
&:after { display: none; }
|
105
|
+
&:hover { background-color: $mainColor; }
|
106
|
+
&.alert:hover { background-color: $alertColor; }
|
107
|
+
&.success:hover { background-color: $successColor; }
|
108
|
+
&.secondary:hover { background-color: $secondaryColor; }
|
109
|
+
|
110
|
+
/* Sizes */
|
111
|
+
&>a { color: $white; display: block; padding: $btnBase (($btnBase * 2.5) * 2) ($btnBase + 1) ($btnBase * 2); @include single-transition(background-color, .15s, ease-in-out);
|
112
|
+
&:hover { background-color: darken($mainColor, 10%); }
|
113
|
+
}
|
114
|
+
&.large>a { padding: $largeBtnBase (($largeBtnBase * 2.5) * 2) ($largeBtnBase + 1) ($largeBtnBase * 2); }
|
115
|
+
&.small>a { padding: $smallBtnBase (($smallBtnBase * 2.5) * 2) ($smallBtnBase + 1) ($smallBtnBase * 2); }
|
116
|
+
&.tiny>a { padding: $tinyBtnBase (($tinyBtnBase * 2.5) * 2) ($tinyBtnBase + 1) ($tinyBtnBase * 2); }
|
117
|
+
|
118
|
+
/* Triangle Spans */
|
119
|
+
&>span { background-color: $mainColor; position: absolute; right: 0; top: 0; height: 100%; width: $btnBase * 3; border-left: 1px solid darken($mainColor, 15%); @include box-shadow(1px 1px 0 $shinyEdge inset); @include single-transition(background-color, .15s, ease-in-out);
|
120
|
+
&:hover { background-color: darken($mainColor, 10%); }
|
121
|
+
&:after { @include cssTriangle(6px, #fff, top); position: absolute; top: 50%; left: 50%; margin-left: -6px; margin-top: -2px; }
|
122
|
+
}
|
123
|
+
&.large span { width: $largeBtnBase * 3; }
|
124
|
+
&.small span { width: $smallBtnBase * 3; }
|
125
|
+
&.tiny span { width: $tinyBtnBase * 3; }
|
126
|
+
|
127
|
+
&.large span:after { @include cssTriangle(7px, #fff, top); margin-top: -3px; margin-left: -7px; }
|
128
|
+
&.small span:after { @include cssTriangle(4px, #fff, top); margin-top: -1px; margin-left: -4px; }
|
129
|
+
&.tiny span:after { @include cssTriangle(3px, #fff, top); margin-top: -1px; margin-left: -3px; }
|
130
|
+
|
131
|
+
/* Colors */
|
132
|
+
&.alert>span { background-color: $alertColor; border-left-color: darken($alertColor, 15%); }
|
133
|
+
&.success>span { background-color: $successColor; border-left-color: darken($successColor, 15%); }
|
134
|
+
&.secondary>span { background-color: $secondaryColor; border-left-color: darken($secondaryColor, 15%); }
|
135
|
+
|
136
|
+
&.alert>a:hover, &.alert>span:hover { background-color: darken($alertColor, 10%); }
|
137
|
+
&.success>a:hover, &.success>span:hover { background-color: darken($successColor, 10%); }
|
138
|
+
&.secondary>a:hover, &.secondary>span:hover { background-color: darken($secondaryColor, 10%); }
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
/* Button Groups ---------------------- */
|
143
|
+
|
144
|
+
ul.button-group { list-style: none; padding: 0; margin: 0 0 12px; overflow: hidden;
|
145
|
+
|
146
|
+
li { padding: 0; margin: 0 0 0 -1px; float: left;
|
147
|
+
&:first-child { margin-left: 0; }
|
148
|
+
}
|
149
|
+
|
150
|
+
&.radius {
|
151
|
+
li:first-child a.button, li:first-child a.button.radius, li:first-child a.button.rounded { @include border-radius(0px); border-top-left-radius: $buttonRadius; border-bottom-left-radius: $buttonRadius; }
|
152
|
+
li + li a.button, li + li a.button.radius, li + li a.button.rounded { border-radius: 0; }
|
153
|
+
li:last-child a.button, li:last-child a.button.radius, li:last-child a.button.rounded { @include border-radius(0px); border-top-right-radius: $buttonRadius; border-bottom-right-radius: $buttonRadius; }
|
154
|
+
}
|
155
|
+
|
156
|
+
&.rounded {
|
157
|
+
li:first-child a.button, li:first-child a.button.radius, li:first-child a.button.rounded { @include border-radius(0px); border-top-left-radius: 1000px; border-bottom-left-radius: 1000px; }
|
158
|
+
li + li a.button, li + li a.button.radius, li + li a.button.rounded { border-radius: 0; }
|
159
|
+
li:last-child a.button, li:last-child a.button.radius, li:last-child a.button.rounded { @include border-radius(0px); border-top-right-radius: 1000px; border-bottom-right-radius: 1000px; }
|
160
|
+
}
|
161
|
+
|
162
|
+
&.even {
|
163
|
+
a.button { width: 100%; }
|
164
|
+
&.two-up li { width: 50%; }
|
165
|
+
&.three-up li { width: 33.3%; }
|
166
|
+
&.three-up li:first-child { width: 33.4%; }
|
167
|
+
&.four-up li { width: 25%; }
|
168
|
+
&.five-up li { width: 20%; }
|
169
|
+
}
|
170
|
+
}
|
171
|
+
|
172
|
+
div.button-bar { overflow: hidden;
|
173
|
+
ul.button-group { float: left; margin-right: 8px; }
|
174
|
+
ul.button-group:last-child { margin-left: 0; }
|
175
|
+
}
|
@@ -0,0 +1,130 @@
|
|
1
|
+
/* Requires
|
2
|
+
globals.css */
|
3
|
+
|
4
|
+
@import "base";
|
5
|
+
|
6
|
+
/* Standard Forms ---------------------- */
|
7
|
+
|
8
|
+
form { margin: 0 0 ($formSpacing * $ratio); }
|
9
|
+
|
10
|
+
.row form .row { margin: 0 (-($formSpacing / 2));
|
11
|
+
|
12
|
+
.column, .columns { padding: 0 ($formSpacing / 2); }
|
13
|
+
|
14
|
+
&.collapse { margin: 0;
|
15
|
+
.column, .columns { padding: 0; }
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
label { font-size: ms(0); color: lighten($black, 30%); cursor: pointer; display: block; font-weight: 500; margin-bottom: 3px;
|
20
|
+
|
21
|
+
&.right { float: none; text-align: right; padding-top: ($formSpacing / 2); }
|
22
|
+
}
|
23
|
+
|
24
|
+
@media only screen and (max-width: $screenSmall - 1) {
|
25
|
+
label.right { text-align: left; }
|
26
|
+
}
|
27
|
+
|
28
|
+
.prefix, .postfix { display: block; position: relative; z-index: 2; text-align: center; width: 100%; padding-top: 0; padding-bottom: 0; height: 32px; line-height: 31px; }
|
29
|
+
a.button.prefix, a.button.postfix { padding-left: 0; padding-right: 0; text-align: center; }
|
30
|
+
span.prefix, span.postfix { background: darken($white, 5%); border: 1px solid darken($white, 20%); }
|
31
|
+
|
32
|
+
.prefix { left: 2px; @include border-corner-radius(top, left, 2px); @include border-corner-radius(bottom, left, 2px); }
|
33
|
+
.postfix { right: 2px; @include border-corner-radius(top, right, 2px); @include border-corner-radius(bottom, right, 2px); }
|
34
|
+
|
35
|
+
input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], textarea { border: 1px solid darken($white, 20%); @include border-radius(2px); @include box-shadow(inset 0 1px 2px rgba(0,0,0,0.1)); color: rgba(0,0,0,0.75); display: block; font-size: ms(0); margin: 0 0 $formSpacing 0; padding: ($formSpacing / 2); height: (ms(0) + ($formSpacing * 1.5)); width: 100%; @include transition(all 0.15s linear);
|
36
|
+
|
37
|
+
&.oversize { @include font-size(18, true); }
|
38
|
+
|
39
|
+
&:focus { background: darken($white, 2%); outline: none !important; border-color: darken($white, 30%); }
|
40
|
+
&[disabled] { background-color: #ddd; }
|
41
|
+
}
|
42
|
+
|
43
|
+
textarea { height: auto; }
|
44
|
+
|
45
|
+
select { width: 100%; }
|
46
|
+
|
47
|
+
/* Fieldsets */
|
48
|
+
fieldset { border: solid 1px #ddd; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; padding: 12px 12px 0; margin: 18px 0;
|
49
|
+
|
50
|
+
legend { font-weight: bold; background: $white; padding: 0 3px; margin: 0 0 0 -3px; }
|
51
|
+
}
|
52
|
+
|
53
|
+
/* Inlined Radio & Checkbox */
|
54
|
+
.form-field input[type=radio], div.form-field input[type=checkbox] { display: inline; width: auto; margin-bottom: 0; }
|
55
|
+
|
56
|
+
/* Errors */
|
57
|
+
.form-field.error input, input.input-text.alert { border-color: $alertColor; background-color: rgba(255,0,0,0.15); }
|
58
|
+
.form-field.error label, label.alert { color: $alertColor; }
|
59
|
+
.form-field.error small, small.error { padding: 6px 4px; border: solid 0 #C00000; border-width: 0 1px 1px 1px; margin-top: -10px; background: $alertColor; color: #fff; @include font-size(12); font-weight: bold; @include border-top-left-radius(2px); @include box-sizing(border-box); }
|
60
|
+
|
61
|
+
@media only screen and (max-width: $screenSmall - 1) {
|
62
|
+
@for $i from 1 through $totalColumns {
|
63
|
+
input[type="text"].#{convert-number-to-word($i)}, textarea.#{convert-number-to-word($i)} { width: 100% !important; }
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
/* Custom Forms ---------------------- */
|
68
|
+
|
69
|
+
form.custom {
|
70
|
+
|
71
|
+
span.custom { display: inline-block; width: 16px; height: 16px; position: relative; top: 2px; border: solid 1px #ccc; background: #fff;
|
72
|
+
|
73
|
+
&.radio { @include border-radius(100px); }
|
74
|
+
&.checkbox {
|
75
|
+
&:before { content: "\00d7"; display: block; line-height: 0.8; height: 14px; width: 14px; text-align: center; position: absolute; top: 0; left: 0; /* margin-top: -9px; margin-left: -4px; */ font-size: 14px; color: #fff; }
|
76
|
+
}
|
77
|
+
&.radio.checked {
|
78
|
+
&:before { content: ""; display: block; width: 8px; height: 8px; @include border-radius(100px); background: #222; position: relative; top: 3px; left: 3px; }
|
79
|
+
}
|
80
|
+
&.checkbox.checked {
|
81
|
+
&:before { color: #222; }
|
82
|
+
}
|
83
|
+
}
|
84
|
+
div.custom.dropdown { display: block; position: relative; width: auto; height: 28px; margin-bottom: 9px; margin-top: 2px;
|
85
|
+
|
86
|
+
a.current { display: block; width: auto; line-height: 26px; min-height: 28px; padding: 0 38px 0 6px; border: solid 1px #ddd; color: #141414; background-color: #fff; white-space: nowrap; }
|
87
|
+
a.selector { position: absolute; width: 27px; height: 28px; display: block; right: 0; top: 0; border: solid 1px #ddd;
|
88
|
+
&:after { content: ""; display: block; @include cssTriangle(5px, #aaa, top); position: absolute; left: 50%; top: 50%; margin-top: -2px; margin-left: -5px; }
|
89
|
+
}
|
90
|
+
&:hover, &.open {
|
91
|
+
a.selector { &:after { @include cssTriangle(5px, #222, top); } }
|
92
|
+
}
|
93
|
+
|
94
|
+
&.open ul { display: block; z-index: 10; }
|
95
|
+
|
96
|
+
&.small { width: 134px !important; }
|
97
|
+
&.medium { width: 254px !important; }
|
98
|
+
&.large { width: 434px !important; }
|
99
|
+
&.expand { width: 100% !important; }
|
100
|
+
|
101
|
+
&.open.small ul { width: 134px !important; }
|
102
|
+
&.open.medium ul { width: 254px !important; }
|
103
|
+
&.open.large ul { width: 434px !important; }
|
104
|
+
&.open.expand ul { width: 100% !important; }
|
105
|
+
}
|
106
|
+
|
107
|
+
div.custom.dropdown ul { position: absolute; width: auto; display: none; margin: 0; left: 0; top: 27px; margin: 0; padding: 0; background: #fff; background: rgba(#fff,0.95); border: solid 1px darken($white, 20%);
|
108
|
+
|
109
|
+
li { color: #555; font-size: ms(0) - 1; cursor: pointer; padding: 3px 38px 3px 6px; min-height: 18px; line-height: 18px; margin: 0; white-space: nowrap; list-style: none; }
|
110
|
+
li.selected { background: lighten($mainColor, 40%); color: #000;
|
111
|
+
&:after { content: "\2013"; position: absolute; right: 10px; }
|
112
|
+
}
|
113
|
+
li:hover { background-color: lighten($mainColor, 45%); color: #222;
|
114
|
+
&:after { content: "\2013"; position: absolute; right: 10px; color: lighten($mainColor, 25%); }
|
115
|
+
}
|
116
|
+
li.selected:hover { background: lighten($mainColor, 40%); cursor: default; color: #000;
|
117
|
+
&:after { color: #000; }
|
118
|
+
}
|
119
|
+
&.show { display: block; }
|
120
|
+
}
|
121
|
+
|
122
|
+
/* Custom input, disabled */
|
123
|
+
.custom.disabled { background-color: #ddd; }
|
124
|
+
}
|
125
|
+
|
126
|
+
/* Correct FF custom dropdown height */
|
127
|
+
@-moz-document url-prefix() {
|
128
|
+
form.custom div.custom.dropdown a.selector { height: 30px; }
|
129
|
+
}
|
130
|
+
.lt-ie9 form.custom div.custom.dropdown a.selector { height: 30px; }
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/* Requires:
|
2
|
+
normalize.css
|
3
|
+
-box-sizing.htc */
|
4
|
+
|
5
|
+
@import "base";
|
6
|
+
|
7
|
+
/* Global Reset & Standards ---------------------- */
|
8
|
+
|
9
|
+
* { @include box-sizing(border-box); }
|
10
|
+
html { font-size: 62.5%; }
|
11
|
+
body { background: $white; @include defaultFontFamily; @include font-size(14); line-height: 1; color: $txtColor; position: relative; -webkit-font-smoothing: antialiased; }
|
12
|
+
|
13
|
+
/* Links ---------------------- */
|
14
|
+
|
15
|
+
a { color: $mainColor; text-decoration: none; line-height: inherit; }
|
16
|
+
a:hover { color: darken($mainColor, 5%); }
|
17
|
+
a:focus { color: $mainColor; outline: none; }
|
18
|
+
p a, p a:visited { line-height: inherit; }
|
19
|
+
|
20
|
+
/* Misc ---------------------- */
|
21
|
+
|
22
|
+
.left { float: left; }
|
23
|
+
.right { float: right; }
|
24
|
+
.text-left { text-align: left; }
|
25
|
+
.text-right { text-align: right; }
|
26
|
+
.text-center { text-align: center; }
|
27
|
+
.hide { display: none; }
|
28
|
+
.highlight { background: $highlightColor; }
|
29
|
+
|
30
|
+
#googlemap img, object, embed { max-width: none; }
|
31
|
+
|
32
|
+
#map_canvas embed { max-width: none; }
|
33
|
+
#map_canvas img { max-width: none; }
|
34
|
+
#map_canvas object { max-width: none; }
|
@@ -0,0 +1,132 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
@import "base";
|
4
|
+
|
5
|
+
/* The Grid ---------------------- */
|
6
|
+
|
7
|
+
.row { width: $rowWidth; max-width: 100%; min-width: $screenSmall; margin: 0 auto;
|
8
|
+
.row { width: auto; max-width: none; min-width: 0; margin: 0 (-($columnGutter/2)); }
|
9
|
+
|
10
|
+
&.collapse {
|
11
|
+
.column, .columns { padding: 0; }
|
12
|
+
}
|
13
|
+
.row { width: auto; max-width: none; min-width: 0; margin: 0 (-($columnGutter/2));
|
14
|
+
&.collapse { margin: 0; }
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.column, .columns { float: left; min-height: 1px; padding: 0 ($columnGutter/2); position: relative;
|
19
|
+
&.centered { float: none; margin: 0 auto; }
|
20
|
+
}
|
21
|
+
|
22
|
+
[class*="column"] + [class*="column"]:last-child { float: right; }
|
23
|
+
[class*="column"] + [class*="column"].end { float: left; }
|
24
|
+
|
25
|
+
// Creating .row-# classes
|
26
|
+
@for $i from 1 through $totalColumns {
|
27
|
+
.row {
|
28
|
+
.#{convert-number-to-word($i)} { width: gridCalc($i, $totalColumns); }
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
// Creating .row .offset-by-# classes
|
33
|
+
@for $i from 1 through $totalColumns - 2 {
|
34
|
+
.row {
|
35
|
+
.offset-by-#{convert-number-to-word($i)} { margin-left: gridCalc($i, $totalColumns); }
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
// Creating .row .push-# classes
|
40
|
+
@for $i from 2 through $totalColumns - 2 {
|
41
|
+
.push-#{convert-number-to-word($i)} { left: gridCalc($i, $totalColumns); }
|
42
|
+
.pull-#{convert-number-to-word($i)} { right: gridCalc($i, $totalColumns); }
|
43
|
+
}
|
44
|
+
|
45
|
+
img, object, embed { max-width: 100%; height: auto; }
|
46
|
+
img { -ms-interpolation-mode: bicubic; }
|
47
|
+
#map_canvas img, .map_canvas img {max-width: none!important;}
|
48
|
+
|
49
|
+
/* Nicolas Gallagher's micro clearfix */
|
50
|
+
.row { @include clearfix(); }
|
51
|
+
|
52
|
+
/* Mobile Grid and Overrides ---------------------- */
|
53
|
+
|
54
|
+
@media only screen and (max-width: $screenSmall - 1) {
|
55
|
+
body { -webkit-text-size-adjust: none; -ms-text-size-adjust: none; width: 100%; min-width: 0; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
|
56
|
+
|
57
|
+
.row { width: auto; min-width: 0; margin-left: 0; margin-right: 0; }
|
58
|
+
.column, .columns { width: auto !important; float: none; }
|
59
|
+
.column:last-child, .columns:last-child { float: none; }
|
60
|
+
[class*="column"] + [class*="column"]:last-child { float: none; }
|
61
|
+
.column:before, .columns:before, .column:after, .columns:after { content:""; display:table; }
|
62
|
+
.column:after, .columns:after { clear: both; }
|
63
|
+
|
64
|
+
// Silent Placeholder classes for mobile grid overrides
|
65
|
+
.no-left-margin { margin-left: 0 !important; }
|
66
|
+
.left-auto { left: auto; }
|
67
|
+
.right-auto { right: auto; }
|
68
|
+
|
69
|
+
@for $i from 1 through $totalColumns - 2 {
|
70
|
+
.offset-by-#{convert-number-to-word($i)} { @extend .no-left-margin; }
|
71
|
+
}
|
72
|
+
@for $i from 2 through $totalColumns - 2 {
|
73
|
+
.push-#{convert-number-to-word($i)} { @extend .left-auto; }
|
74
|
+
.pull-#{convert-number-to-word($i)} { @extend .right-auto; }
|
75
|
+
}
|
76
|
+
|
77
|
+
/* Mobile 4-column Grid */
|
78
|
+
@for $i from 1 through $mobileTotalColumns {
|
79
|
+
.row {
|
80
|
+
.mobile-#{convert-number-to-word($i)} { width: gridCalc($i, $mobileTotalColumns) !important; float: left; padding: 0 ($columnGutter/2);
|
81
|
+
&:last-child { float: right; }
|
82
|
+
}
|
83
|
+
&.collapse {
|
84
|
+
.mobile-#{convert-number-to-word($i)} { padding: 0; }
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
@for $i from 1 through $mobileTotalColumns - 1 {
|
89
|
+
.push-#{convert-number-to-word($i)}-mobile { left: gridCalc($i, $mobileTotalColumns); }
|
90
|
+
.pull-#{convert-number-to-word($i)}-mobile { right: gridCalc($i, $mobileTotalColumns); }
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
/* Block Grids ---------------------- */
|
95
|
+
|
96
|
+
/* These are 2-up, 3-up, 4-up and 5-up ULs, suited
|
97
|
+
for repeating blocks of content. Add 'mobile' to
|
98
|
+
them to switch them just like the layout grid
|
99
|
+
(one item per line) on phones
|
100
|
+
|
101
|
+
For IE7/8 compatibility block-grid items need to be
|
102
|
+
the same height. You can optionally uncomment the
|
103
|
+
lines below to support arbitrary height, but know
|
104
|
+
that IE7/8 do not support :nth-child.
|
105
|
+
-------------------------------------------------- */
|
106
|
+
|
107
|
+
.block-grid { display: block; overflow: hidden; padding: 0;
|
108
|
+
|
109
|
+
&>li { display: block; height: auto; float: left; }
|
110
|
+
}
|
111
|
+
|
112
|
+
.block-grid.two-up { margin: 0 -15px; }
|
113
|
+
.block-grid.two-up>li { width: 50%; padding: 0 15px 15px; }
|
114
|
+
/* .block-grid.two-up>li:nth-child(2n+1) {clear: left;} */
|
115
|
+
|
116
|
+
.block-grid.three-up { margin: 0 -12px; }
|
117
|
+
.block-grid.three-up>li { width: 33.33%; padding: 0 12px 12px; }
|
118
|
+
/* .block-grid.three-up>li:nth-child(3n+1) {clear: left;} */
|
119
|
+
|
120
|
+
.block-grid.four-up { margin: 0 -10px; }
|
121
|
+
.block-grid.four-up>li { width: 25%; padding: 0 10px 10px; }
|
122
|
+
/* .block-grid.four-up>li:nth-child(4n+1) {clear: left;} */
|
123
|
+
|
124
|
+
.block-grid.five-up { margin: 0 -8px; }
|
125
|
+
.block-grid.five-up>li { width: 20%; padding: 0 8px 8px; }
|
126
|
+
/* .block-grid.five-up>li:nth-child(5n+1) {clear: left;} */
|
127
|
+
|
128
|
+
/* Mobile Block Grids */
|
129
|
+
@media only screen and (max-width: $screenSmall - 1) {
|
130
|
+
.block-grid.mobile { margin-left: 0; }
|
131
|
+
.block-grid.mobile > li { float: none; width: 100%; margin-left: 0; }
|
132
|
+
}
|