compass-helium 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +47 -0
- data/lib/compass-helium.rb +3 -0
- data/stylesheets/_compass-helium.scss +17 -0
- data/stylesheets/compass-helium/buttons.scss +520 -0
- data/stylesheets/compass-helium/components.scss +109 -0
- data/stylesheets/compass-helium/config.scss +134 -0
- data/stylesheets/compass-helium/dropdowns.scss +94 -0
- data/stylesheets/compass-helium/forms.scss +272 -0
- data/stylesheets/compass-helium/grid.scss +113 -0
- data/stylesheets/compass-helium/master.scss +17 -0
- data/stylesheets/compass-helium/modals.scss +159 -0
- data/stylesheets/compass-helium/navs.scss +264 -0
- data/stylesheets/compass-helium/type.scss +150 -0
- data/stylesheets/compass-helium/utilities.scss +272 -0
- data/stylesheets/compass-helium/webfonts.scss +8 -0
- data/templates/project/config.rb +12 -0
- data/templates/project/fonts/entypo.eot +0 -0
- data/templates/project/fonts/entypo.svg +13 -0
- data/templates/project/fonts/entypo.ttf +0 -0
- data/templates/project/fonts/entypo.woff +0 -0
- data/templates/project/forms.html +439 -0
- data/templates/project/index.html +151 -0
- data/templates/project/js/bootstrap-collapse.js +156 -0
- data/templates/project/js/bootstrap-dropdown.js +153 -0
- data/templates/project/js/bootstrap-modal-ck.js +18 -0
- data/templates/project/js/bootstrap-modal.js +234 -0
- data/templates/project/js/bootstrap-transition.js +60 -0
- data/templates/project/js/bootstrap.min.js +6 -0
- data/templates/project/js/jquery.min.js +2 -0
- data/templates/project/manifest.rb +30 -0
- data/templates/project/modals.html +152 -0
- data/templates/project/sass/style.scss +3 -0
- metadata +116 -0
@@ -0,0 +1,113 @@
|
|
1
|
+
// ! Border-box sizing
|
2
|
+
// -----------------
|
3
|
+
|
4
|
+
* {
|
5
|
+
@include box-sizing(border-box);
|
6
|
+
}
|
7
|
+
|
8
|
+
// ! Containers
|
9
|
+
// ------------
|
10
|
+
|
11
|
+
img {
|
12
|
+
display: block;
|
13
|
+
max-width: 100%;
|
14
|
+
}
|
15
|
+
|
16
|
+
.container {
|
17
|
+
@include clearfix();
|
18
|
+
width: $page-width + ($column-gutter * 2);
|
19
|
+
padding: 0 $column-gutter;
|
20
|
+
margin: 0 auto;
|
21
|
+
}
|
22
|
+
|
23
|
+
.responsive {
|
24
|
+
.container {
|
25
|
+
|
26
|
+
width: auto;
|
27
|
+
max-width: $page-width + ($column-gutter * 2);
|
28
|
+
|
29
|
+
@include respond-to(tablet) {
|
30
|
+
margin: 0;
|
31
|
+
padding: 0 $tablet-padding;
|
32
|
+
}
|
33
|
+
|
34
|
+
@include respond-to(mobile) {
|
35
|
+
margin: 0;
|
36
|
+
padding: 0 $mobile-padding;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
// ! Rows
|
42
|
+
// ------
|
43
|
+
|
44
|
+
.row {
|
45
|
+
@include clearfix();
|
46
|
+
margin-left: -($column-gutter / 2);
|
47
|
+
margin-right: -($column-gutter / 2);
|
48
|
+
}
|
49
|
+
|
50
|
+
|
51
|
+
@include respond-to(mobile) {
|
52
|
+
.responsive {
|
53
|
+
.row {
|
54
|
+
margin-left: 0;
|
55
|
+
margin-right: 0;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
// ! Form field rows
|
61
|
+
// -----------------
|
62
|
+
|
63
|
+
.field-row {
|
64
|
+
@include clearfix();
|
65
|
+
margin-left: - ($form-input-gutter / 2);
|
66
|
+
margin-right: - ($form-input-gutter / 2);
|
67
|
+
|
68
|
+
[class*="span"] {
|
69
|
+
padding: 0 $form-input-gutter / 2;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
@include respond-to(mobile) {
|
74
|
+
.responsive {
|
75
|
+
.field-row{
|
76
|
+
margin-left: 0;
|
77
|
+
margin-right: 0;
|
78
|
+
|
79
|
+
[class*="span"] {
|
80
|
+
padding-left: 0;
|
81
|
+
padding-right: 0;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
// ! Columns
|
88
|
+
// ---------
|
89
|
+
|
90
|
+
[class*="span"] {
|
91
|
+
float: left;
|
92
|
+
min-height: 1px;
|
93
|
+
padding: 0 $column-gutter / 2;
|
94
|
+
|
95
|
+
&:last-child {
|
96
|
+
float: right;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
.responsive {
|
101
|
+
[class*="span"] {
|
102
|
+
@include respond-to(mobile) {
|
103
|
+
float: none;
|
104
|
+
width: 100%;
|
105
|
+
padding-left: 0;
|
106
|
+
padding-right: 0;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
@for $i from 1 through $column-count {
|
112
|
+
.span#{$i} { width: ($i / $column-count) * 100% ; }
|
113
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// Compass files first
|
2
|
+
@import "compass/css3";
|
3
|
+
@import "compass/reset";
|
4
|
+
|
5
|
+
// Import core files in this order
|
6
|
+
@import "config.scss";
|
7
|
+
@import "utilities.scss";
|
8
|
+
@import "grid.scss";
|
9
|
+
@import "type.scss";
|
10
|
+
|
11
|
+
// Optional components
|
12
|
+
@import "webfonts.scss";
|
13
|
+
@import "forms.scss";
|
14
|
+
@import "buttons.scss";
|
15
|
+
@import "navs.scss";
|
16
|
+
@import "dropdowns.scss";
|
17
|
+
@import "modals.scss";
|
@@ -0,0 +1,159 @@
|
|
1
|
+
//
|
2
|
+
// Modals
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
.modal-active {
|
6
|
+
max-height: 100%;
|
7
|
+
overflow: hidden;
|
8
|
+
}
|
9
|
+
|
10
|
+
// Background
|
11
|
+
.modal-backdrop {
|
12
|
+
position: fixed;
|
13
|
+
top: 0;
|
14
|
+
right: 0;
|
15
|
+
bottom: 0;
|
16
|
+
left: 0;
|
17
|
+
z-index: 5000;
|
18
|
+
background-color: #000;
|
19
|
+
// Fade for backdrop
|
20
|
+
&.fade { opacity: 0; }
|
21
|
+
}
|
22
|
+
|
23
|
+
.modal-backdrop,
|
24
|
+
.modal-backdrop.fade.in {
|
25
|
+
opacity: 0.8;
|
26
|
+
}
|
27
|
+
|
28
|
+
// Base modal
|
29
|
+
.modal {
|
30
|
+
position: fixed;
|
31
|
+
z-index: 10000;
|
32
|
+
outline: none;
|
33
|
+
left: 50%;
|
34
|
+
width: $modal-width;
|
35
|
+
margin: 0 0 0 #{- $modal-width / 2};
|
36
|
+
|
37
|
+
&.fade {
|
38
|
+
@include transition(all 0.3s);
|
39
|
+
top: -25%;
|
40
|
+
}
|
41
|
+
|
42
|
+
&.fade.in {
|
43
|
+
top: 35%;
|
44
|
+
}
|
45
|
+
|
46
|
+
.modal-inner {
|
47
|
+
width: $modal-width;
|
48
|
+
background: $site-background-color;
|
49
|
+
@include border-radius($big-border-radius);
|
50
|
+
@include box-shadow(0px 10px 10px rgba(0,0,0,0.5));
|
51
|
+
}
|
52
|
+
|
53
|
+
.modal-section {
|
54
|
+
position: relative;
|
55
|
+
padding: $base-font-size $modal-padding;
|
56
|
+
border-bottom: 1px solid rgba(0,0,0,0.1);
|
57
|
+
|
58
|
+
&:first-child {
|
59
|
+
@include border-radius($big-border-radius $big-border-radius 0 0);
|
60
|
+
padding-top: $modal-padding;
|
61
|
+
}
|
62
|
+
|
63
|
+
&:last-child {
|
64
|
+
@include border-radius(0 0 $big-border-radius $big-border-radius);
|
65
|
+
padding-bottom: $modal-padding;
|
66
|
+
border-bottom: none;
|
67
|
+
}
|
68
|
+
|
69
|
+
& > *:last-child {
|
70
|
+
margin-bottom: 0;
|
71
|
+
}
|
72
|
+
|
73
|
+
.or-divider {
|
74
|
+
position: absolute;
|
75
|
+
top: - $base-line-height / 2;
|
76
|
+
left: 50%;
|
77
|
+
width: 2.5em;
|
78
|
+
margin-left: -1.25em;
|
79
|
+
background: $site-background-color;
|
80
|
+
color: $muted-font-color;
|
81
|
+
font-size: 11px;
|
82
|
+
font-weight: bold;
|
83
|
+
text-align: center;
|
84
|
+
text-transform: uppercase;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
.modal-footer {
|
89
|
+
background-color: darken($site-background-color, 5%);
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
.hide {
|
94
|
+
display: none;
|
95
|
+
}
|
96
|
+
|
97
|
+
.fade {
|
98
|
+
opacity: 0;
|
99
|
+
-webkit-transition: opacity 0.15s linear;
|
100
|
+
-moz-transition: opacity 0.15s linear;
|
101
|
+
-o-transition: opacity 0.15s linear;
|
102
|
+
transition: opacity 0.15s linear;
|
103
|
+
}
|
104
|
+
|
105
|
+
.fade.in {
|
106
|
+
opacity: 1;
|
107
|
+
}
|
108
|
+
|
109
|
+
@media screen and (max-width: 767px) {
|
110
|
+
|
111
|
+
.modal {
|
112
|
+
width: 100%;
|
113
|
+
height: 100%;
|
114
|
+
top: 0;
|
115
|
+
left: 0;
|
116
|
+
margin: 0;
|
117
|
+
padding: $modal-padding;
|
118
|
+
overflow-y: auto;
|
119
|
+
|
120
|
+
&.fade.in {
|
121
|
+
top: 0;
|
122
|
+
}
|
123
|
+
|
124
|
+
.modal-inner {
|
125
|
+
width: auto;
|
126
|
+
max-width: $modal-width;
|
127
|
+
margin: 0 auto 20px auto;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
.close {
|
133
|
+
position: absolute;
|
134
|
+
top: $modal-padding - 3;
|
135
|
+
right: $modal-padding;
|
136
|
+
font-size: 20px;
|
137
|
+
font-weight: bold;
|
138
|
+
line-height: 20px;
|
139
|
+
color: #000000;
|
140
|
+
text-shadow: 0 1px 0 #ffffff;
|
141
|
+
opacity: 0.2;
|
142
|
+
filter: alpha(opacity=20);
|
143
|
+
}
|
144
|
+
|
145
|
+
.close:hover {
|
146
|
+
color: #000000;
|
147
|
+
text-decoration: none;
|
148
|
+
cursor: pointer;
|
149
|
+
opacity: 0.4;
|
150
|
+
filter: alpha(opacity=40);
|
151
|
+
}
|
152
|
+
|
153
|
+
button.close {
|
154
|
+
padding: 0;
|
155
|
+
cursor: pointer;
|
156
|
+
background: transparent;
|
157
|
+
border: 0;
|
158
|
+
-webkit-appearance: none;
|
159
|
+
}
|
@@ -0,0 +1,264 @@
|
|
1
|
+
// Navbar
|
2
|
+
// ------
|
3
|
+
|
4
|
+
.top-bar {
|
5
|
+
|
6
|
+
@include background-image(
|
7
|
+
linear-gradient(
|
8
|
+
top,
|
9
|
+
lighten($navbar-background-color, 3%) 0px,
|
10
|
+
darken($navbar-background-color, 3%) 100%
|
11
|
+
)
|
12
|
+
);
|
13
|
+
@include box-shadow(0px 1px 2px rgba(0,0,0,0.3));
|
14
|
+
|
15
|
+
#nav-branding {
|
16
|
+
a {
|
17
|
+
display: block;
|
18
|
+
height: $navbar-height;
|
19
|
+
padding: ($navbar-height - $navbar-branding-font-size) / 2 0;
|
20
|
+
padding-right: $base-font-size;
|
21
|
+
color: $navbar-link-color;
|
22
|
+
font-size: $navbar-branding-font-size;
|
23
|
+
font-weight: bold;
|
24
|
+
line-height: 1;
|
25
|
+
|
26
|
+
&:hover {
|
27
|
+
text-decoration: none;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.top-bar-links {
|
33
|
+
@include list-reset();
|
34
|
+
@include list-horizontal();
|
35
|
+
margin: 0;
|
36
|
+
|
37
|
+
> li {
|
38
|
+
|
39
|
+
> a {
|
40
|
+
display: block;
|
41
|
+
height: $navbar-height;
|
42
|
+
padding: ($navbar-height - $navbar-link-font-size) / 2 $navbar-link-horizontal-padding;
|
43
|
+
color: $navbar-link-color;
|
44
|
+
font-size: $navbar-link-font-size;
|
45
|
+
line-height: 1;
|
46
|
+
|
47
|
+
&:hover {
|
48
|
+
background-color: darken($navbar-background-color, 10%);
|
49
|
+
text-decoration: none;
|
50
|
+
}
|
51
|
+
|
52
|
+
&:focus {
|
53
|
+
outline: none;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
&.active {
|
58
|
+
a {
|
59
|
+
background-color: darken($navbar-background-color, 10%);
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
&.has-dropdown {
|
64
|
+
> a {
|
65
|
+
|
66
|
+
padding-right: ($navbar-link-horizontal-padding * 1.5) + ($navbar-caret-height * 2);
|
67
|
+
|
68
|
+
.caret {
|
69
|
+
display: block;
|
70
|
+
position: absolute;
|
71
|
+
top: 0;
|
72
|
+
right: $navbar-link-horizontal-padding;
|
73
|
+
width: $navbar-caret-height * 2;
|
74
|
+
height: $navbar-height;
|
75
|
+
|
76
|
+
&:after {
|
77
|
+
@include css-triangle($navbar-caret-height, $navbar-link-color, top);
|
78
|
+
position: absolute;
|
79
|
+
top: 50%;
|
80
|
+
left: 0;
|
81
|
+
margin-top: -1px;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.dropdown {
|
87
|
+
border-top: 0;
|
88
|
+
}
|
89
|
+
|
90
|
+
&.open {
|
91
|
+
> a {
|
92
|
+
.caret {
|
93
|
+
&:after {
|
94
|
+
@include css-triangle($navbar-caret-height, $base-font-color, top);
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
.button {
|
104
|
+
margin-top: ($navbar-height - $button-height) / 2;
|
105
|
+
|
106
|
+
@include button-custom(
|
107
|
+
$theme: $button-theme,
|
108
|
+
$background-color: lighten($navbar-background-color, 5%),
|
109
|
+
$text-color: #fff,
|
110
|
+
$reversed: true
|
111
|
+
);
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
// ! Top bar fixed to top of viewport
|
116
|
+
// ----------------------------------
|
117
|
+
|
118
|
+
.fixed-top-bar { // Goes on the body
|
119
|
+
|
120
|
+
padding-top: $navbar-height;
|
121
|
+
|
122
|
+
.top-bar {
|
123
|
+
position: fixed;
|
124
|
+
top: 0;
|
125
|
+
left: 0;
|
126
|
+
width: 100%;
|
127
|
+
z-index: 5000;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
// ! Responsive top bar
|
132
|
+
// --------------------
|
133
|
+
|
134
|
+
@include respond-to(mobile) {
|
135
|
+
|
136
|
+
#nav-collapse {
|
137
|
+
display: none;
|
138
|
+
position: absolute;
|
139
|
+
top: $navbar-height + 10px;
|
140
|
+
right: $mobile-padding;
|
141
|
+
min-width: 10em;
|
142
|
+
background: #fff;
|
143
|
+
border: 1px solid $border-color;
|
144
|
+
@include border-radius($big-border-radius);
|
145
|
+
@include box-shadow(0px 2px 8px rgba(0,0,0,0.2));
|
146
|
+
}
|
147
|
+
|
148
|
+
#nav-auth {
|
149
|
+
display: none;
|
150
|
+
}
|
151
|
+
|
152
|
+
#nav-site {
|
153
|
+
float: none;
|
154
|
+
}
|
155
|
+
|
156
|
+
.top-bar {
|
157
|
+
|
158
|
+
.top-bar-links {
|
159
|
+
padding: $tu * 2 0;
|
160
|
+
|
161
|
+
> li {
|
162
|
+
float: none;
|
163
|
+
|
164
|
+
> a {
|
165
|
+
height: $mobile-nav-link-height;
|
166
|
+
padding: ($mobile-nav-link-height - $mobile-nav-link-font-size) / 2 $base-font-size;
|
167
|
+
color: $base-font-color;
|
168
|
+
|
169
|
+
&:hover {
|
170
|
+
background: $blue;
|
171
|
+
color: #fff;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
&.active {
|
176
|
+
> a {
|
177
|
+
background: $blue;
|
178
|
+
color: #fff;
|
179
|
+
|
180
|
+
&:after {
|
181
|
+
display: none;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
|
186
|
+
&:first-child {
|
187
|
+
> a {
|
188
|
+
border-top-color: transparent;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
&.has-dropdown {
|
193
|
+
> a {
|
194
|
+
.caret {
|
195
|
+
display: none;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
.open {
|
204
|
+
#nav-collapse {
|
205
|
+
display: block;
|
206
|
+
}
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
// ! Tabs
|
211
|
+
// ------
|
212
|
+
|
213
|
+
.tabs {
|
214
|
+
margin-left: 0;
|
215
|
+
@include clearfix();
|
216
|
+
border-bottom: 1px solid $border-color;
|
217
|
+
|
218
|
+
> li {
|
219
|
+
display: block;
|
220
|
+
float: left;
|
221
|
+
margin: 0 5px -1px 0;
|
222
|
+
list-style-type: none;
|
223
|
+
|
224
|
+
&:first-child {
|
225
|
+
margin-left: $column-gutter / 2;
|
226
|
+
}
|
227
|
+
|
228
|
+
> a {
|
229
|
+
@include border-radius($big-border-radius $big-border-radius 0 0);
|
230
|
+
@include background-image(
|
231
|
+
linear-gradient(
|
232
|
+
top,
|
233
|
+
$site-background-color 0px,
|
234
|
+
darken($site-background-color, 3%) 100%
|
235
|
+
)
|
236
|
+
);
|
237
|
+
border: 1px solid $border-color;
|
238
|
+
display: block;
|
239
|
+
padding: (40px - 2 - $base-font-size) / 2;
|
240
|
+
color: $base-font-color;
|
241
|
+
font-size: $base-font-size;
|
242
|
+
line-height: 1;
|
243
|
+
text-decoration: none;
|
244
|
+
}
|
245
|
+
|
246
|
+
&:not(.active):hover {
|
247
|
+
> a {
|
248
|
+
background: darken($site-background-color, 3%);
|
249
|
+
}
|
250
|
+
}
|
251
|
+
|
252
|
+
&.active {
|
253
|
+
> a {
|
254
|
+
background: none;
|
255
|
+
border-color: $border-color $border-color $site-background-color $border-color;
|
256
|
+
color: $muted-font-color;
|
257
|
+
|
258
|
+
&:hover {
|
259
|
+
text-decoration: none;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
}
|
263
|
+
}
|
264
|
+
}
|