phantom-blergh 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +78 -0
- data/_includes/collection-index.html +19 -0
- data/_includes/disqus_comments.html +19 -0
- data/_includes/footer.html +68 -0
- data/_includes/google-analytics.html +11 -0
- data/_includes/head.html +38 -0
- data/_includes/header.html +52 -0
- data/_includes/index.html +23 -0
- data/_includes/read-time.html +6 -0
- data/_layouts/default.html +26 -0
- data/_layouts/home.html +29 -0
- data/_layouts/page.html +16 -0
- data/_layouts/post.html +41 -0
- data/_sass/phantom-blergh.scss +68 -0
- data/_sass/phantom-blergh/base/_page.scss +40 -0
- data/_sass/phantom-blergh/base/_typography.scss +203 -0
- data/_sass/phantom-blergh/components/_box.scss +26 -0
- data/_sass/phantom-blergh/components/_button.scss +88 -0
- data/_sass/phantom-blergh/components/_form.scss +206 -0
- data/_sass/phantom-blergh/components/_icon.scss +50 -0
- data/_sass/phantom-blergh/components/_image.scss +64 -0
- data/_sass/phantom-blergh/components/_list.scss +177 -0
- data/_sass/phantom-blergh/components/_section.scss +26 -0
- data/_sass/phantom-blergh/components/_syntax_highlighting.scss +320 -0
- data/_sass/phantom-blergh/components/_table.scss +81 -0
- data/_sass/phantom-blergh/components/_tiles.scss +258 -0
- data/_sass/phantom-blergh/ie8.scss +92 -0
- data/_sass/phantom-blergh/ie9.scss +52 -0
- data/_sass/phantom-blergh/layout/_articles.scss +19 -0
- data/_sass/phantom-blergh/layout/_footer.scss +139 -0
- data/_sass/phantom-blergh/layout/_header.scss +136 -0
- data/_sass/phantom-blergh/layout/_main.scss +15 -0
- data/_sass/phantom-blergh/layout/_menu.scss +164 -0
- data/_sass/phantom-blergh/layout/_wrapper.scss +26 -0
- data/_sass/phantom-blergh/libs/_functions.scss +34 -0
- data/_sass/phantom-blergh/libs/_mixins.scss +51 -0
- data/_sass/phantom-blergh/libs/_skel.scss +537 -0
- data/_sass/phantom-blergh/libs/_vars.scss +50 -0
- data/assets/css/font-awesome.min.css +4 -0
- data/assets/css/ie9.scss +6 -0
- data/assets/css/main.scss +5 -0
- data/assets/favicon.png +0 -0
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +685 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/images/stock01.jpg +0 -0
- data/assets/images/stock02.jpg +0 -0
- data/assets/images/stock03.jpg +0 -0
- data/assets/images/stock04.jpg +0 -0
- data/assets/images/stock05.jpg +0 -0
- data/assets/images/stock06.jpg +0 -0
- data/assets/images/stock07.jpg +0 -0
- data/assets/images/stock08.jpg +0 -0
- data/assets/images/stock09.jpg +0 -0
- data/assets/images/stock10.jpg +0 -0
- data/assets/images/stock11.jpg +0 -0
- data/assets/images/stock12.jpg +0 -0
- data/assets/images/stock13.jpg +0 -0
- data/assets/images/stock14.jpg +0 -0
- data/assets/images/stock15.jpg +0 -0
- data/assets/js/email.js +18 -0
- data/assets/js/https.js +11 -0
- data/assets/js/ie/html5shiv.js +8 -0
- data/assets/js/ie/respond.min.js +6 -0
- data/assets/js/jquery.min.js +5 -0
- data/assets/js/main.js +200 -0
- data/assets/js/skel.min.js +2 -0
- data/assets/js/util.js +587 -0
- data/assets/logo.svg +14 -0
- metadata +161 -0
@@ -0,0 +1,68 @@
|
|
1
|
+
@import 'phantom-blergh/libs/vars';
|
2
|
+
@import 'phantom-blergh/libs/functions';
|
3
|
+
@import 'phantom-blergh/libs/mixins';
|
4
|
+
@import 'phantom-blergh/libs/skel';
|
5
|
+
@import 'font-awesome.min.css';
|
6
|
+
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,700,900');
|
7
|
+
|
8
|
+
/*
|
9
|
+
Phantom by HTML5 UP
|
10
|
+
html5up.net | @ajlkn
|
11
|
+
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
12
|
+
*/
|
13
|
+
|
14
|
+
@include skel-breakpoints((
|
15
|
+
xlarge: '(max-width: 1680px)',
|
16
|
+
large: '(max-width: 1280px)',
|
17
|
+
medium: '(max-width: 980px)',
|
18
|
+
small: '(max-width: 736px)',
|
19
|
+
xsmall: '(max-width: 480px)',
|
20
|
+
xxsmall: '(max-width: 360px)'
|
21
|
+
));
|
22
|
+
|
23
|
+
@include skel-layout((
|
24
|
+
reset: 'full',
|
25
|
+
boxModel: 'border',
|
26
|
+
grid: (
|
27
|
+
gutters: 2em
|
28
|
+
),
|
29
|
+
breakpoints: (
|
30
|
+
medium: (
|
31
|
+
grid: (
|
32
|
+
gutters: 1.5em
|
33
|
+
)
|
34
|
+
),
|
35
|
+
small: (
|
36
|
+
grid: (
|
37
|
+
gutters: 1em
|
38
|
+
)
|
39
|
+
)
|
40
|
+
)
|
41
|
+
));
|
42
|
+
|
43
|
+
// Base.
|
44
|
+
|
45
|
+
@import 'phantom-blergh/base/page';
|
46
|
+
@import 'phantom-blergh/base/typography';
|
47
|
+
|
48
|
+
// Component.
|
49
|
+
|
50
|
+
@import 'phantom-blergh/components/section';
|
51
|
+
@import 'phantom-blergh/components/icon';
|
52
|
+
@import 'phantom-blergh/components/list';
|
53
|
+
@import 'phantom-blergh/components/form';
|
54
|
+
@import 'phantom-blergh/components/box';
|
55
|
+
@import 'phantom-blergh/components/image';
|
56
|
+
@import 'phantom-blergh/components/table';
|
57
|
+
@import 'phantom-blergh/components/button';
|
58
|
+
@import 'phantom-blergh/components/tiles';
|
59
|
+
@import 'phantom-blergh/components/syntax_highlighting';
|
60
|
+
|
61
|
+
// Layout.
|
62
|
+
|
63
|
+
@import 'phantom-blergh/layout/header';
|
64
|
+
@import 'phantom-blergh/layout/menu';
|
65
|
+
@import 'phantom-blergh/layout/main';
|
66
|
+
@import 'phantom-blergh/layout/footer';
|
67
|
+
@import 'phantom-blergh/layout/wrapper';
|
68
|
+
@import 'phantom-blergh/layout/articles';
|
@@ -0,0 +1,40 @@
|
|
1
|
+
///
|
2
|
+
/// Phantom by HTML5 UP
|
3
|
+
/// html5up.net | @ajlkn
|
4
|
+
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
5
|
+
///
|
6
|
+
|
7
|
+
/* Basic */
|
8
|
+
|
9
|
+
// MSIE: Required for IEMobile.
|
10
|
+
@-ms-viewport {
|
11
|
+
width: device-width;
|
12
|
+
}
|
13
|
+
|
14
|
+
// MSIE: Prevents scrollbar from overlapping content.
|
15
|
+
body {
|
16
|
+
-ms-overflow-style: scrollbar;
|
17
|
+
}
|
18
|
+
|
19
|
+
// Ensures page width is always >=320px.
|
20
|
+
@include breakpoint(xsmall) {
|
21
|
+
html, body {
|
22
|
+
min-width: 320px;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
body {
|
27
|
+
background: _palette(bg);
|
28
|
+
|
29
|
+
// Prevents animation/transition "flicker" on page load.
|
30
|
+
// Automatically added/removed by js/main.js.
|
31
|
+
&.is-loading {
|
32
|
+
*,
|
33
|
+
*:before,
|
34
|
+
*:after {
|
35
|
+
@include vendor('animation', 'none !important');
|
36
|
+
@include vendor('transition', 'none !important');
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
}
|
@@ -0,0 +1,203 @@
|
|
1
|
+
///
|
2
|
+
/// Phantom by HTML5 UP
|
3
|
+
/// html5up.net | @ajlkn
|
4
|
+
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
5
|
+
///
|
6
|
+
|
7
|
+
/* Type */
|
8
|
+
|
9
|
+
body,
|
10
|
+
input,
|
11
|
+
select,
|
12
|
+
textarea {
|
13
|
+
color: _palette(fg);
|
14
|
+
font-family: _font(family);
|
15
|
+
font-size: 16pt;
|
16
|
+
font-weight: _font(weight);
|
17
|
+
line-height: 1.75;
|
18
|
+
|
19
|
+
@include breakpoint(xlarge) {
|
20
|
+
font-size: 14pt;
|
21
|
+
}
|
22
|
+
|
23
|
+
@include breakpoint(large) {
|
24
|
+
font-size: 12pt;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
a {
|
29
|
+
@include vendor('transition', (
|
30
|
+
'border-bottom-color #{_duration(transition)} ease',
|
31
|
+
'color #{_duration(transition)} ease'
|
32
|
+
));
|
33
|
+
text-decoration: none;
|
34
|
+
color: _palette(fg);
|
35
|
+
border-bottom: dotted 1px transparentize(_palette(fg), 0.5);
|
36
|
+
|
37
|
+
&:hover {
|
38
|
+
border-bottom-color: transparent;
|
39
|
+
color: _palette(accent1) !important;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
strong,
|
44
|
+
b {
|
45
|
+
color: _palette(fg-bold);
|
46
|
+
font-weight: _font(weight-bold);
|
47
|
+
}
|
48
|
+
|
49
|
+
em,
|
50
|
+
i {
|
51
|
+
font-style: italic;
|
52
|
+
}
|
53
|
+
|
54
|
+
p {
|
55
|
+
margin: 0 0 _size(element-margin) 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
h1 {
|
59
|
+
font-size: 2.75em;
|
60
|
+
color: _palette(fg-bold);
|
61
|
+
font-weight: _font(weight-bold-alt);
|
62
|
+
line-height: 1.3;
|
63
|
+
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
64
|
+
letter-spacing: _font(letter-spacing-alt);
|
65
|
+
|
66
|
+
a {
|
67
|
+
color: inherit;
|
68
|
+
}
|
69
|
+
|
70
|
+
@include breakpoint(small) {
|
71
|
+
font-size: 2em;
|
72
|
+
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
73
|
+
}
|
74
|
+
|
75
|
+
@include breakpoint(xxsmall) {
|
76
|
+
font-size: 1.75em;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
h2,
|
81
|
+
h3,
|
82
|
+
h4,
|
83
|
+
h5,
|
84
|
+
h6 {
|
85
|
+
color: _palette(fg-bold);
|
86
|
+
font-weight: _font(weight-bold);
|
87
|
+
line-height: 1.5;
|
88
|
+
margin: 0 0 (_size(element-margin) * 1) 0;
|
89
|
+
text-transform: uppercase;
|
90
|
+
letter-spacing: _font(letter-spacing);
|
91
|
+
|
92
|
+
a {
|
93
|
+
color: inherit;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
h2 {
|
98
|
+
font-size: 1.1em;
|
99
|
+
}
|
100
|
+
|
101
|
+
h3 {
|
102
|
+
font-size: 1em;
|
103
|
+
}
|
104
|
+
|
105
|
+
h4 {
|
106
|
+
font-size: 0.8em;
|
107
|
+
}
|
108
|
+
|
109
|
+
h5 {
|
110
|
+
font-size: 0.8em;
|
111
|
+
}
|
112
|
+
|
113
|
+
h6 {
|
114
|
+
font-size: 0.8em;
|
115
|
+
}
|
116
|
+
|
117
|
+
@include breakpoint(medium) {
|
118
|
+
h1,
|
119
|
+
h2,
|
120
|
+
h3,
|
121
|
+
h4,
|
122
|
+
h5,
|
123
|
+
h6 {
|
124
|
+
br {
|
125
|
+
display: none;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
@include breakpoint(small) {
|
131
|
+
h2 {
|
132
|
+
font-size: 1em;
|
133
|
+
}
|
134
|
+
|
135
|
+
h3 {
|
136
|
+
font-size: 0.8em;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
sub {
|
141
|
+
font-size: 0.8em;
|
142
|
+
position: relative;
|
143
|
+
top: 0.5em;
|
144
|
+
}
|
145
|
+
|
146
|
+
sup {
|
147
|
+
font-size: 0.8em;
|
148
|
+
position: relative;
|
149
|
+
top: -0.5em;
|
150
|
+
}
|
151
|
+
|
152
|
+
blockquote {
|
153
|
+
border-left: solid (_size(border-width) * 4) _palette(border);
|
154
|
+
font-style: italic;
|
155
|
+
margin: 0 0 _size(element-margin) 0;
|
156
|
+
padding: (_size(element-margin) / 4) 0 (_size(element-margin) / 4) _size(element-margin);
|
157
|
+
}
|
158
|
+
|
159
|
+
code {
|
160
|
+
background: _palette(border-bg);
|
161
|
+
border-radius: _size(border-radius);
|
162
|
+
border: solid _size(border-width) _palette(border);
|
163
|
+
font-family: _font(family-fixed);
|
164
|
+
font-size: 0.9em;
|
165
|
+
margin: 0 0.25em;
|
166
|
+
padding: 0.25em 0.65em;
|
167
|
+
}
|
168
|
+
|
169
|
+
pre {
|
170
|
+
-webkit-overflow-scrolling: touch;
|
171
|
+
font-family: _font(family-fixed);
|
172
|
+
font-size: 0.9em;
|
173
|
+
margin: 0 0 _size(element-margin) 0;
|
174
|
+
|
175
|
+
code {
|
176
|
+
display: block;
|
177
|
+
line-height: 1.75;
|
178
|
+
padding: 1em 1.5em;
|
179
|
+
overflow-x: auto;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
hr {
|
184
|
+
border: 0;
|
185
|
+
border-bottom: solid _size(border-width) _palette(border);
|
186
|
+
margin: _size(element-margin) 0;
|
187
|
+
|
188
|
+
&.major {
|
189
|
+
margin: (_size(element-margin) * 1.5) 0;
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
.align-left {
|
194
|
+
text-align: left;
|
195
|
+
}
|
196
|
+
|
197
|
+
.align-center {
|
198
|
+
text-align: center;
|
199
|
+
}
|
200
|
+
|
201
|
+
.align-right {
|
202
|
+
text-align: right;
|
203
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
///
|
2
|
+
/// Phantom by HTML5 UP
|
3
|
+
/// html5up.net | @ajlkn
|
4
|
+
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
5
|
+
///
|
6
|
+
|
7
|
+
/* Box */
|
8
|
+
|
9
|
+
.box {
|
10
|
+
border-radius: _size(border-radius);
|
11
|
+
border: solid _size(border-width) _palette(border);
|
12
|
+
margin-bottom: _size(element-margin);
|
13
|
+
padding: 1.5em;
|
14
|
+
|
15
|
+
> :last-child,
|
16
|
+
> :last-child > :last-child,
|
17
|
+
> :last-child > :last-child > :last-child {
|
18
|
+
margin-bottom: 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
&.alt {
|
22
|
+
border: 0;
|
23
|
+
border-radius: 0;
|
24
|
+
padding: 0;
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,88 @@
|
|
1
|
+
///
|
2
|
+
/// Phantom by HTML5 UP
|
3
|
+
/// html5up.net | @ajlkn
|
4
|
+
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
5
|
+
///
|
6
|
+
|
7
|
+
/* Button */
|
8
|
+
|
9
|
+
input[type="submit"],
|
10
|
+
input[type="reset"],
|
11
|
+
input[type="button"],
|
12
|
+
button,
|
13
|
+
.button {
|
14
|
+
@include vendor('appearance', 'none');
|
15
|
+
@include vendor('transition', (
|
16
|
+
'background-color #{_duration(transition)} ease-in-out',
|
17
|
+
'color #{_duration(transition)} ease-in-out',
|
18
|
+
'box-shadow #{_duration(transition)} ease-in-out'
|
19
|
+
));
|
20
|
+
background-color: transparent;
|
21
|
+
border-radius: _size(border-radius);
|
22
|
+
border: 0;
|
23
|
+
box-shadow: inset 0 0 0 (_size(border-width) * 2) _palette(fg);
|
24
|
+
color: _palette(fg) !important;
|
25
|
+
cursor: pointer;
|
26
|
+
display: inline-block;
|
27
|
+
font-size: 0.8em;
|
28
|
+
font-weight: _font(weight-bold);
|
29
|
+
height: 3.5em;
|
30
|
+
letter-spacing: _font(letter-spacing);
|
31
|
+
line-height: 3.45em;
|
32
|
+
overflow: hidden;
|
33
|
+
padding: 0 1.25em 0 #{1.25em + _font(letter-spacing)};
|
34
|
+
text-align: center;
|
35
|
+
text-decoration: none;
|
36
|
+
text-overflow: ellipsis;
|
37
|
+
text-transform: uppercase;
|
38
|
+
white-space: nowrap;
|
39
|
+
|
40
|
+
&.icon {
|
41
|
+
&:before {
|
42
|
+
margin-right: 0.5em;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
&.fit {
|
47
|
+
display: block;
|
48
|
+
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
49
|
+
width: 100%;
|
50
|
+
}
|
51
|
+
|
52
|
+
&:hover {
|
53
|
+
color: _palette(accent1) !important;
|
54
|
+
box-shadow: inset 0 0 0 (_size(border-width) * 2) _palette(accent1);
|
55
|
+
}
|
56
|
+
|
57
|
+
&:active {
|
58
|
+
background-color: transparentize(_palette(accent1), 0.9);
|
59
|
+
}
|
60
|
+
|
61
|
+
&.small {
|
62
|
+
font-size: 0.6em;
|
63
|
+
}
|
64
|
+
|
65
|
+
&.big {
|
66
|
+
font-size: 1em;
|
67
|
+
}
|
68
|
+
|
69
|
+
&.special {
|
70
|
+
box-shadow: none;
|
71
|
+
background-color: _palette(fg);
|
72
|
+
color: _palette(bg) !important;
|
73
|
+
|
74
|
+
&:hover {
|
75
|
+
background-color: _palette(accent1);
|
76
|
+
}
|
77
|
+
|
78
|
+
&:active {
|
79
|
+
background-color: darken(_palette(accent1), 8);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
&.disabled,
|
84
|
+
&:disabled {
|
85
|
+
@include vendor('pointer-events', 'none');
|
86
|
+
opacity: 0.25;
|
87
|
+
}
|
88
|
+
}
|
@@ -0,0 +1,206 @@
|
|
1
|
+
///
|
2
|
+
/// Phantom by HTML5 UP
|
3
|
+
/// html5up.net | @ajlkn
|
4
|
+
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
5
|
+
///
|
6
|
+
|
7
|
+
/* Form */
|
8
|
+
|
9
|
+
form {
|
10
|
+
margin: (_size(element-margin) * -0.5) 0 _size(element-margin) 0;
|
11
|
+
|
12
|
+
&:after {
|
13
|
+
content: '';
|
14
|
+
display: block;
|
15
|
+
clear: both;
|
16
|
+
height: 1px;
|
17
|
+
}
|
18
|
+
|
19
|
+
.field {
|
20
|
+
position: relative;
|
21
|
+
float: left;
|
22
|
+
margin: 0 0 (_size(element-margin) * 0.65) 0;
|
23
|
+
vertical-align: top;
|
24
|
+
width: 100%;
|
25
|
+
}
|
26
|
+
|
27
|
+
.half {
|
28
|
+
width: calc(50% + #{_size(field-gutter) * 0.5}) !important;
|
29
|
+
padding-left: _size(field-gutter);
|
30
|
+
}
|
31
|
+
|
32
|
+
.half.first {
|
33
|
+
width: calc(50% - #{_size(field-gutter) * 0.5}) !important;
|
34
|
+
padding-left: 0;
|
35
|
+
}
|
36
|
+
|
37
|
+
:last-child {
|
38
|
+
margin-bottom: 0;
|
39
|
+
}
|
40
|
+
|
41
|
+
.half:nth-last-child(2) {
|
42
|
+
margin-bottom: 0;
|
43
|
+
}
|
44
|
+
|
45
|
+
.actions {
|
46
|
+
position: relative;
|
47
|
+
clear: both;
|
48
|
+
padding-top: (_size(element-margin) * 0.5);
|
49
|
+
}
|
50
|
+
|
51
|
+
@include breakpoint(xsmall) {
|
52
|
+
.half {
|
53
|
+
width: 100% !important;
|
54
|
+
padding-left: 0;
|
55
|
+
}
|
56
|
+
|
57
|
+
.half.first {
|
58
|
+
width: 100% !important;
|
59
|
+
padding-left: 0;
|
60
|
+
}
|
61
|
+
|
62
|
+
.half:nth-last-child(2) {
|
63
|
+
margin: 0 0 (_size(element-margin) * 0.65) 0;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
label {
|
69
|
+
display: block;
|
70
|
+
font-size: 0.9em;
|
71
|
+
font-weight: _font(weight-bold);
|
72
|
+
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
73
|
+
}
|
74
|
+
|
75
|
+
input[type="text"],
|
76
|
+
input[type="password"],
|
77
|
+
input[type="email"],
|
78
|
+
input[type="tel"],
|
79
|
+
select,
|
80
|
+
textarea {
|
81
|
+
@include vendor('appearance', 'none');
|
82
|
+
background-color: transparent;
|
83
|
+
border: none;
|
84
|
+
border-radius: 0;
|
85
|
+
border-bottom: solid _size(border-width) _palette(border);
|
86
|
+
color: inherit;
|
87
|
+
display: block;
|
88
|
+
outline: 0;
|
89
|
+
padding: 0;
|
90
|
+
text-decoration: none;
|
91
|
+
width: 100%;
|
92
|
+
|
93
|
+
&:invalid {
|
94
|
+
box-shadow: none;
|
95
|
+
}
|
96
|
+
|
97
|
+
&:focus {
|
98
|
+
border-bottom-color: _palette(accent1);
|
99
|
+
box-shadow: inset 0 -1px 0 0 _palette(accent1);
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
.select-wrapper {
|
104
|
+
@include icon;
|
105
|
+
display: block;
|
106
|
+
position: relative;
|
107
|
+
|
108
|
+
&:before {
|
109
|
+
color: _palette(border);
|
110
|
+
content: '\f078';
|
111
|
+
display: block;
|
112
|
+
height: _size(element-height);
|
113
|
+
line-height: _size(element-height);
|
114
|
+
pointer-events: none;
|
115
|
+
position: absolute;
|
116
|
+
right: 0;
|
117
|
+
text-align: center;
|
118
|
+
top: 0;
|
119
|
+
width: _size(element-height);
|
120
|
+
}
|
121
|
+
|
122
|
+
select::-ms-expand {
|
123
|
+
display: none;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
input[type="text"],
|
128
|
+
input[type="password"],
|
129
|
+
input[type="email"],
|
130
|
+
select {
|
131
|
+
height: _size(element-height);
|
132
|
+
}
|
133
|
+
|
134
|
+
textarea {
|
135
|
+
padding: 0;
|
136
|
+
min-height: (_size(element-height) * 1.25);
|
137
|
+
}
|
138
|
+
|
139
|
+
input[type="checkbox"],
|
140
|
+
input[type="radio"], {
|
141
|
+
@include vendor('appearance', 'none');
|
142
|
+
display: block;
|
143
|
+
float: left;
|
144
|
+
margin-right: -2em;
|
145
|
+
opacity: 0;
|
146
|
+
width: 1em;
|
147
|
+
z-index: -1;
|
148
|
+
|
149
|
+
& + label {
|
150
|
+
@include icon;
|
151
|
+
color: _palette(fg);
|
152
|
+
cursor: pointer;
|
153
|
+
display: inline-block;
|
154
|
+
font-size: 1em;
|
155
|
+
font-weight: _font(weight);
|
156
|
+
padding-left: (_size(element-height) * 0.6) + 0.75em;
|
157
|
+
padding-right: 0.75em;
|
158
|
+
position: relative;
|
159
|
+
|
160
|
+
&:before {
|
161
|
+
border-radius: _size(border-radius);
|
162
|
+
border: solid _size(border-width) _palette(border);
|
163
|
+
content: '';
|
164
|
+
display: inline-block;
|
165
|
+
height: (_size(element-height) * 0.6);
|
166
|
+
left: 0;
|
167
|
+
line-height: (_size(element-height) * 0.575);
|
168
|
+
position: absolute;
|
169
|
+
text-align: center;
|
170
|
+
top: 0;
|
171
|
+
width: (_size(element-height) * 0.6);
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
&:checked + label {
|
176
|
+
&:before {
|
177
|
+
background: _palette(fg);
|
178
|
+
border-color: _palette(fg);
|
179
|
+
color: _palette(bg);
|
180
|
+
content: '\f00c';
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
&:focus + label {
|
185
|
+
&:before {
|
186
|
+
border-color: _palette(accent1);
|
187
|
+
box-shadow: 0 0 0 _size(border-width) _palette(accent1);
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
input[type="checkbox"] {
|
193
|
+
& + label {
|
194
|
+
&:before {
|
195
|
+
border-radius: _size(border-radius);
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
input[type="radio"] {
|
201
|
+
& + label {
|
202
|
+
&:before {
|
203
|
+
border-radius: 100%;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|