jekyll-theme-consulting 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/banner.html +12 -6
- data/_includes/contact.html +13 -0
- data/_includes/footer.html +3 -38
- data/_includes/head.html +6 -5
- data/_includes/header.html +37 -9
- data/_includes/navigation.html +9 -5
- data/_includes/scripts.html +5 -7
- data/_includes/sidebar.html +17 -0
- data/_includes/thread.html +21 -0
- data/_layouts/default.html +32 -16
- data/_layouts/home.html +4 -2
- data/_layouts/landing.html +21 -0
- data/_layouts/page.html +1 -1
- data/_layouts/post.html +22 -7
- data/_sass/base/_page.scss +39 -0
- data/_sass/base/_typography.scss +186 -140
- data/_sass/components/_box.scss +26 -247
- data/_sass/components/_button.scss +87 -65
- data/_sass/components/_features.scss +156 -0
- data/_sass/components/_form.scss +182 -88
- data/_sass/components/_icon.scss +17 -0
- data/_sass/components/_image.scss +74 -37
- data/_sass/components/_list.scss +255 -25
- data/_sass/components/_mini-posts.scss +31 -0
- data/_sass/components/_posts.scss +179 -0
- data/_sass/components/_section.scss +39 -0
- data/_sass/components/_table.scss +81 -35
- data/_sass/ie8.scss +28 -0
- data/_sass/ie9.scss +84 -0
- data/_sass/layout/_banner.scss +75 -44
- data/_sass/layout/_footer.scss +18 -44
- data/_sass/layout/_header.scss +49 -85
- data/_sass/layout/_main.scss +58 -0
- data/_sass/layout/_menu.scss +98 -0
- data/_sass/layout/_sidebar.scss +222 -0
- data/_sass/layout/_wrapper.scss +13 -0
- data/_sass/libs/_functions.scss +0 -56
- data/_sass/libs/_mixins.scss +1 -8
- data/_sass/libs/_skel.scss +585 -0
- data/_sass/libs/_vars.scss +25 -15
- data/_sass/main.scss +58 -51
- data/assets/css/font-awesome.min.css +2 -2
- data/assets/css/ie8.scss +5 -0
- data/assets/css/ie9.scss +5 -0
- data/assets/css/main.scss +5 -0
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +682 -2668
- 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/pic01.jpg +0 -0
- data/assets/images/pic02.jpg +0 -0
- data/assets/images/pic03.jpg +0 -0
- data/assets/images/pic04.jpg +0 -0
- data/assets/images/pic05.jpg +0 -0
- data/assets/images/pic06.jpg +0 -0
- data/assets/images/pic07.jpg +0 -0
- data/assets/images/pic08.jpg +0 -0
- data/assets/images/pic09.jpg +0 -0
- data/assets/images/pic10.jpg +0 -0
- data/assets/images/pic11.jpg +0 -0
- data/assets/js/ie/.directory +3 -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 -2
- data/assets/js/main.js +255 -76
- data/assets/js/skel.min.js +2 -0
- metadata +35 -30
- data/_sass/base/_reset.scss +0 -70
- data/_sass/components/_actions.scss +0 -18
- data/_sass/components/_container.scss +0 -14
- data/_sass/components/_icons.scss +0 -44
- data/_sass/components/_menu.scss +0 -21
- data/_sass/components/_poptrox.scss +0 -121
- data/_sass/components/_row.scss +0 -21
- data/_sass/components/_sections.scss +0 -18
- data/_sass/layout/_breakpoints.scss +0 -358
- data/_sass/libs/_breakpoints.scss +0 -223
- data/_sass/libs/_html-grid.scss +0 -149
- data/_sass/libs/_vendor.scss +0 -376
- data/_sass/noscript.scss +0 -25
- data/assets/css/images/arrow.svg +0 -17
- data/assets/css/images/banner.svg +0 -206
- data/assets/css/images/circles.svg +0 -30
- data/assets/css/images/falling.svg +0 -37
- data/assets/css/images/loader.gif +0 -0
- data/assets/css/images/overlay.png +0 -0
- data/assets/css/images/poptrox-closer.svg +0 -6
- data/assets/css/images/poptrox-nav.svg +0 -6
- data/assets/css/noscript.css +0 -19
- data/assets/css/styles.scss +0 -4
- data/assets/images/bouncing.svg +0 -50
- data/assets/js/breakpoints.min.js +0 -2
- data/assets/js/browser.min.js +0 -2
- data/assets/js/jquery.poptrox.min.js +0 -2
- data/assets/js/jquery.scrolly.min.js +0 -2
@@ -1,223 +0,0 @@
|
|
1
|
-
// breakpoints.scss v1.0 | @ajlkn | MIT licensed */
|
2
|
-
|
3
|
-
// Vars.
|
4
|
-
|
5
|
-
/// Breakpoints.
|
6
|
-
/// @var {list}
|
7
|
-
$breakpoints: () !global;
|
8
|
-
|
9
|
-
// Mixins.
|
10
|
-
|
11
|
-
/// Sets breakpoints.
|
12
|
-
/// @param {map} $x Breakpoints.
|
13
|
-
@mixin breakpoints($x: ()) {
|
14
|
-
$breakpoints: $x !global;
|
15
|
-
}
|
16
|
-
|
17
|
-
/// Wraps @content in a @media block targeting a specific orientation.
|
18
|
-
/// @param {string} $orientation Orientation.
|
19
|
-
@mixin orientation($orientation) {
|
20
|
-
@media screen and (orientation: #{$orientation}) {
|
21
|
-
@content;
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
/// Wraps @content in a @media block using a given query.
|
26
|
-
/// @param {string} $query Query.
|
27
|
-
@mixin breakpoint($query: null) {
|
28
|
-
|
29
|
-
$breakpoint: null;
|
30
|
-
$op: null;
|
31
|
-
$media: null;
|
32
|
-
|
33
|
-
// Determine operator, breakpoint.
|
34
|
-
|
35
|
-
// Greater than or equal.
|
36
|
-
@if (str-slice($query, 0, 2) == '>=') {
|
37
|
-
|
38
|
-
$op: 'gte';
|
39
|
-
$breakpoint: str-slice($query, 3);
|
40
|
-
|
41
|
-
}
|
42
|
-
|
43
|
-
// Less than or equal.
|
44
|
-
@elseif (str-slice($query, 0, 2) == '<=') {
|
45
|
-
|
46
|
-
$op: 'lte';
|
47
|
-
$breakpoint: str-slice($query, 3);
|
48
|
-
|
49
|
-
}
|
50
|
-
|
51
|
-
// Greater than.
|
52
|
-
@elseif (str-slice($query, 0, 1) == '>') {
|
53
|
-
|
54
|
-
$op: 'gt';
|
55
|
-
$breakpoint: str-slice($query, 2);
|
56
|
-
|
57
|
-
}
|
58
|
-
|
59
|
-
// Less than.
|
60
|
-
@elseif (str-slice($query, 0, 1) == '<') {
|
61
|
-
|
62
|
-
$op: 'lt';
|
63
|
-
$breakpoint: str-slice($query, 2);
|
64
|
-
|
65
|
-
}
|
66
|
-
|
67
|
-
// Not.
|
68
|
-
@elseif (str-slice($query, 0, 1) == '!') {
|
69
|
-
|
70
|
-
$op: 'not';
|
71
|
-
$breakpoint: str-slice($query, 2);
|
72
|
-
|
73
|
-
}
|
74
|
-
|
75
|
-
// Equal.
|
76
|
-
@else {
|
77
|
-
|
78
|
-
$op: 'eq';
|
79
|
-
$breakpoint: $query;
|
80
|
-
|
81
|
-
}
|
82
|
-
|
83
|
-
// Build media.
|
84
|
-
@if ($breakpoint and map-has-key($breakpoints, $breakpoint)) {
|
85
|
-
|
86
|
-
$a: map-get($breakpoints, $breakpoint);
|
87
|
-
|
88
|
-
// Range.
|
89
|
-
@if (type-of($a) == 'list') {
|
90
|
-
|
91
|
-
$x: nth($a, 1);
|
92
|
-
$y: nth($a, 2);
|
93
|
-
|
94
|
-
// Max only.
|
95
|
-
@if ($x == null) {
|
96
|
-
|
97
|
-
// Greater than or equal (>= 0 / anything)
|
98
|
-
@if ($op == 'gte') {
|
99
|
-
$media: 'screen';
|
100
|
-
}
|
101
|
-
|
102
|
-
// Less than or equal (<= y)
|
103
|
-
@elseif ($op == 'lte') {
|
104
|
-
$media: 'screen and (max-width: ' + $y + ')';
|
105
|
-
}
|
106
|
-
|
107
|
-
// Greater than (> y)
|
108
|
-
@elseif ($op == 'gt') {
|
109
|
-
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
110
|
-
}
|
111
|
-
|
112
|
-
// Less than (< 0 / invalid)
|
113
|
-
@elseif ($op == 'lt') {
|
114
|
-
$media: 'screen and (max-width: -1px)';
|
115
|
-
}
|
116
|
-
|
117
|
-
// Not (> y)
|
118
|
-
@elseif ($op == 'not') {
|
119
|
-
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
120
|
-
}
|
121
|
-
|
122
|
-
// Equal (<= y)
|
123
|
-
@else {
|
124
|
-
$media: 'screen and (max-width: ' + $y + ')';
|
125
|
-
}
|
126
|
-
|
127
|
-
}
|
128
|
-
|
129
|
-
// Min only.
|
130
|
-
@else if ($y == null) {
|
131
|
-
|
132
|
-
// Greater than or equal (>= x)
|
133
|
-
@if ($op == 'gte') {
|
134
|
-
$media: 'screen and (min-width: ' + $x + ')';
|
135
|
-
}
|
136
|
-
|
137
|
-
// Less than or equal (<= inf / anything)
|
138
|
-
@elseif ($op == 'lte') {
|
139
|
-
$media: 'screen';
|
140
|
-
}
|
141
|
-
|
142
|
-
// Greater than (> inf / invalid)
|
143
|
-
@elseif ($op == 'gt') {
|
144
|
-
$media: 'screen and (max-width: -1px)';
|
145
|
-
}
|
146
|
-
|
147
|
-
// Less than (< x)
|
148
|
-
@elseif ($op == 'lt') {
|
149
|
-
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
150
|
-
}
|
151
|
-
|
152
|
-
// Not (< x)
|
153
|
-
@elseif ($op == 'not') {
|
154
|
-
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
155
|
-
}
|
156
|
-
|
157
|
-
// Equal (>= x)
|
158
|
-
@else {
|
159
|
-
$media: 'screen and (min-width: ' + $x + ')';
|
160
|
-
}
|
161
|
-
|
162
|
-
}
|
163
|
-
|
164
|
-
// Min and max.
|
165
|
-
@else {
|
166
|
-
|
167
|
-
// Greater than or equal (>= x)
|
168
|
-
@if ($op == 'gte') {
|
169
|
-
$media: 'screen and (min-width: ' + $x + ')';
|
170
|
-
}
|
171
|
-
|
172
|
-
// Less than or equal (<= y)
|
173
|
-
@elseif ($op == 'lte') {
|
174
|
-
$media: 'screen and (max-width: ' + $y + ')';
|
175
|
-
}
|
176
|
-
|
177
|
-
// Greater than (> y)
|
178
|
-
@elseif ($op == 'gt') {
|
179
|
-
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
180
|
-
}
|
181
|
-
|
182
|
-
// Less than (< x)
|
183
|
-
@elseif ($op == 'lt') {
|
184
|
-
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
185
|
-
}
|
186
|
-
|
187
|
-
// Not (< x and > y)
|
188
|
-
@elseif ($op == 'not') {
|
189
|
-
$media: 'screen and (max-width: ' + ($x - 1) + '), screen and (min-width: ' + ($y + 1) + ')';
|
190
|
-
}
|
191
|
-
|
192
|
-
// Equal (>= x and <= y)
|
193
|
-
@else {
|
194
|
-
$media: 'screen and (min-width: ' + $x + ') and (max-width: ' + $y + ')';
|
195
|
-
}
|
196
|
-
|
197
|
-
}
|
198
|
-
|
199
|
-
}
|
200
|
-
|
201
|
-
// String.
|
202
|
-
@else {
|
203
|
-
|
204
|
-
// Missing a media type? Prefix with "screen".
|
205
|
-
@if (str-slice($a, 0, 1) == '(') {
|
206
|
-
$media: 'screen and ' + $a;
|
207
|
-
}
|
208
|
-
|
209
|
-
// Otherwise, use as-is.
|
210
|
-
@else {
|
211
|
-
$media: $a;
|
212
|
-
}
|
213
|
-
|
214
|
-
}
|
215
|
-
|
216
|
-
}
|
217
|
-
|
218
|
-
// Output.
|
219
|
-
@media #{$media} {
|
220
|
-
@content;
|
221
|
-
}
|
222
|
-
|
223
|
-
}
|
data/_sass/libs/_html-grid.scss
DELETED
@@ -1,149 +0,0 @@
|
|
1
|
-
// html-grid.scss v1.0 | @ajlkn | MIT licensed */
|
2
|
-
|
3
|
-
// Mixins.
|
4
|
-
|
5
|
-
/// Initializes the current element as an HTML grid.
|
6
|
-
/// @param {mixed} $gutters Gutters (either a single number to set both column/row gutters, or a list to set them individually).
|
7
|
-
/// @param {mixed} $suffix Column class suffix (optional; either a single suffix or a list).
|
8
|
-
@mixin html-grid($gutters: 1.5em, $suffix: '') {
|
9
|
-
|
10
|
-
// Initialize.
|
11
|
-
$cols: 12;
|
12
|
-
$multipliers: 0, 0.25, 0.5, 1, 1.50, 2.00;
|
13
|
-
$unit: 100% / $cols;
|
14
|
-
|
15
|
-
// Suffixes.
|
16
|
-
$suffixes: null;
|
17
|
-
|
18
|
-
@if (type-of($suffix) == 'list') {
|
19
|
-
$suffixes: $suffix;
|
20
|
-
}
|
21
|
-
@else {
|
22
|
-
$suffixes: ($suffix);
|
23
|
-
}
|
24
|
-
|
25
|
-
// Gutters.
|
26
|
-
$guttersCols: null;
|
27
|
-
$guttersRows: null;
|
28
|
-
|
29
|
-
@if (type-of($gutters) == 'list') {
|
30
|
-
|
31
|
-
$guttersCols: nth($gutters, 1);
|
32
|
-
$guttersRows: nth($gutters, 2);
|
33
|
-
|
34
|
-
}
|
35
|
-
@else {
|
36
|
-
|
37
|
-
$guttersCols: $gutters;
|
38
|
-
$guttersRows: 0;
|
39
|
-
|
40
|
-
}
|
41
|
-
|
42
|
-
// Row.
|
43
|
-
display: flex;
|
44
|
-
flex-wrap: wrap;
|
45
|
-
box-sizing: border-box;
|
46
|
-
align-items: stretch;
|
47
|
-
|
48
|
-
// Columns.
|
49
|
-
> * {
|
50
|
-
box-sizing: border-box;
|
51
|
-
}
|
52
|
-
|
53
|
-
// Gutters.
|
54
|
-
&.gtr-uniform {
|
55
|
-
> * {
|
56
|
-
> :last-child {
|
57
|
-
margin-bottom: 0;
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
|
62
|
-
// Alignment.
|
63
|
-
&.aln-left {
|
64
|
-
justify-content: flex-start;
|
65
|
-
}
|
66
|
-
|
67
|
-
&.aln-center {
|
68
|
-
justify-content: center;
|
69
|
-
}
|
70
|
-
|
71
|
-
&.aln-right {
|
72
|
-
justify-content: flex-end;
|
73
|
-
}
|
74
|
-
|
75
|
-
&.aln-top {
|
76
|
-
align-items: flex-start;
|
77
|
-
}
|
78
|
-
|
79
|
-
&.aln-middle {
|
80
|
-
align-items: center;
|
81
|
-
}
|
82
|
-
|
83
|
-
&.aln-bottom {
|
84
|
-
align-items: flex-end;
|
85
|
-
}
|
86
|
-
|
87
|
-
// Step through suffixes.
|
88
|
-
@each $suffix in $suffixes {
|
89
|
-
|
90
|
-
// Suffix.
|
91
|
-
@if ($suffix != '') {
|
92
|
-
$suffix: '-' + $suffix;
|
93
|
-
}
|
94
|
-
@else {
|
95
|
-
$suffix: '';
|
96
|
-
}
|
97
|
-
|
98
|
-
// Row.
|
99
|
-
|
100
|
-
// Important.
|
101
|
-
> .imp#{$suffix} {
|
102
|
-
order: -1;
|
103
|
-
}
|
104
|
-
|
105
|
-
// Columns, offsets.
|
106
|
-
@for $i from 1 through $cols {
|
107
|
-
> .col-#{$i}#{$suffix} {
|
108
|
-
width: $unit * $i;
|
109
|
-
}
|
110
|
-
|
111
|
-
> .off-#{$i}#{$suffix} {
|
112
|
-
margin-left: $unit * $i;
|
113
|
-
}
|
114
|
-
}
|
115
|
-
|
116
|
-
// Step through multipliers.
|
117
|
-
@each $multiplier in $multipliers {
|
118
|
-
|
119
|
-
// Gutters.
|
120
|
-
$class: null;
|
121
|
-
|
122
|
-
@if ($multiplier != 1) {
|
123
|
-
$class: '.gtr-' + ($multiplier * 100);
|
124
|
-
}
|
125
|
-
|
126
|
-
&#{$class} {
|
127
|
-
margin-top: ($guttersRows * $multiplier * -1);
|
128
|
-
margin-left: ($guttersCols * $multiplier * -1);
|
129
|
-
|
130
|
-
> * {
|
131
|
-
padding: ($guttersRows * $multiplier) 0 0 ($guttersCols * $multiplier);
|
132
|
-
}
|
133
|
-
|
134
|
-
// Uniform.
|
135
|
-
&.gtr-uniform {
|
136
|
-
margin-top: $guttersCols * $multiplier * -1;
|
137
|
-
|
138
|
-
> * {
|
139
|
-
padding-top: $guttersCols * $multiplier;
|
140
|
-
}
|
141
|
-
}
|
142
|
-
|
143
|
-
}
|
144
|
-
|
145
|
-
}
|
146
|
-
|
147
|
-
}
|
148
|
-
|
149
|
-
}
|
data/_sass/libs/_vendor.scss
DELETED
@@ -1,376 +0,0 @@
|
|
1
|
-
// vendor.scss v1.0 | @ajlkn | MIT licensed */
|
2
|
-
|
3
|
-
// Vars.
|
4
|
-
|
5
|
-
/// Vendor prefixes.
|
6
|
-
/// @var {list}
|
7
|
-
$vendor-prefixes: (
|
8
|
-
'-moz-',
|
9
|
-
'-webkit-',
|
10
|
-
'-ms-',
|
11
|
-
''
|
12
|
-
);
|
13
|
-
|
14
|
-
/// Properties that should be vendorized.
|
15
|
-
/// Data via caniuse.com, github.com/postcss/autoprefixer, and developer.mozilla.org
|
16
|
-
/// @var {list}
|
17
|
-
$vendor-properties: (
|
18
|
-
|
19
|
-
// Animation.
|
20
|
-
'animation',
|
21
|
-
'animation-delay',
|
22
|
-
'animation-direction',
|
23
|
-
'animation-duration',
|
24
|
-
'animation-fill-mode',
|
25
|
-
'animation-iteration-count',
|
26
|
-
'animation-name',
|
27
|
-
'animation-play-state',
|
28
|
-
'animation-timing-function',
|
29
|
-
|
30
|
-
// Appearance.
|
31
|
-
'appearance',
|
32
|
-
|
33
|
-
// Backdrop filter.
|
34
|
-
'backdrop-filter',
|
35
|
-
|
36
|
-
// Background image options.
|
37
|
-
'background-clip',
|
38
|
-
'background-origin',
|
39
|
-
'background-size',
|
40
|
-
|
41
|
-
// Box sizing.
|
42
|
-
'box-sizing',
|
43
|
-
|
44
|
-
// Clip path.
|
45
|
-
'clip-path',
|
46
|
-
|
47
|
-
// Filter effects.
|
48
|
-
'filter',
|
49
|
-
|
50
|
-
// Flexbox.
|
51
|
-
'align-content',
|
52
|
-
'align-items',
|
53
|
-
'align-self',
|
54
|
-
'flex',
|
55
|
-
'flex-basis',
|
56
|
-
'flex-direction',
|
57
|
-
'flex-flow',
|
58
|
-
'flex-grow',
|
59
|
-
'flex-shrink',
|
60
|
-
'flex-wrap',
|
61
|
-
'justify-content',
|
62
|
-
'order',
|
63
|
-
|
64
|
-
// Font feature.
|
65
|
-
'font-feature-settings',
|
66
|
-
'font-language-override',
|
67
|
-
'font-variant-ligatures',
|
68
|
-
|
69
|
-
// Font kerning.
|
70
|
-
'font-kerning',
|
71
|
-
|
72
|
-
// Fragmented borders and backgrounds.
|
73
|
-
'box-decoration-break',
|
74
|
-
|
75
|
-
// Grid layout.
|
76
|
-
'grid-column',
|
77
|
-
'grid-column-align',
|
78
|
-
'grid-column-end',
|
79
|
-
'grid-column-start',
|
80
|
-
'grid-row',
|
81
|
-
'grid-row-align',
|
82
|
-
'grid-row-end',
|
83
|
-
'grid-row-start',
|
84
|
-
'grid-template-columns',
|
85
|
-
'grid-template-rows',
|
86
|
-
|
87
|
-
// Hyphens.
|
88
|
-
'hyphens',
|
89
|
-
'word-break',
|
90
|
-
|
91
|
-
// Masks.
|
92
|
-
'mask',
|
93
|
-
'mask-border',
|
94
|
-
'mask-border-outset',
|
95
|
-
'mask-border-repeat',
|
96
|
-
'mask-border-slice',
|
97
|
-
'mask-border-source',
|
98
|
-
'mask-border-width',
|
99
|
-
'mask-clip',
|
100
|
-
'mask-composite',
|
101
|
-
'mask-image',
|
102
|
-
'mask-origin',
|
103
|
-
'mask-position',
|
104
|
-
'mask-repeat',
|
105
|
-
'mask-size',
|
106
|
-
|
107
|
-
// Multicolumn.
|
108
|
-
'break-after',
|
109
|
-
'break-before',
|
110
|
-
'break-inside',
|
111
|
-
'column-count',
|
112
|
-
'column-fill',
|
113
|
-
'column-gap',
|
114
|
-
'column-rule',
|
115
|
-
'column-rule-color',
|
116
|
-
'column-rule-style',
|
117
|
-
'column-rule-width',
|
118
|
-
'column-span',
|
119
|
-
'column-width',
|
120
|
-
'columns',
|
121
|
-
|
122
|
-
// Object fit.
|
123
|
-
'object-fit',
|
124
|
-
'object-position',
|
125
|
-
|
126
|
-
// Regions.
|
127
|
-
'flow-from',
|
128
|
-
'flow-into',
|
129
|
-
'region-fragment',
|
130
|
-
|
131
|
-
// Scroll snap points.
|
132
|
-
'scroll-snap-coordinate',
|
133
|
-
'scroll-snap-destination',
|
134
|
-
'scroll-snap-points-x',
|
135
|
-
'scroll-snap-points-y',
|
136
|
-
'scroll-snap-type',
|
137
|
-
|
138
|
-
// Shapes.
|
139
|
-
'shape-image-threshold',
|
140
|
-
'shape-margin',
|
141
|
-
'shape-outside',
|
142
|
-
|
143
|
-
// Tab size.
|
144
|
-
'tab-size',
|
145
|
-
|
146
|
-
// Text align last.
|
147
|
-
'text-align-last',
|
148
|
-
|
149
|
-
// Text decoration.
|
150
|
-
'text-decoration-color',
|
151
|
-
'text-decoration-line',
|
152
|
-
'text-decoration-skip',
|
153
|
-
'text-decoration-style',
|
154
|
-
|
155
|
-
// Text emphasis.
|
156
|
-
'text-emphasis',
|
157
|
-
'text-emphasis-color',
|
158
|
-
'text-emphasis-position',
|
159
|
-
'text-emphasis-style',
|
160
|
-
|
161
|
-
// Text size adjust.
|
162
|
-
'text-size-adjust',
|
163
|
-
|
164
|
-
// Text spacing.
|
165
|
-
'text-spacing',
|
166
|
-
|
167
|
-
// Transform.
|
168
|
-
'transform',
|
169
|
-
'transform-origin',
|
170
|
-
|
171
|
-
// Transform 3D.
|
172
|
-
'backface-visibility',
|
173
|
-
'perspective',
|
174
|
-
'perspective-origin',
|
175
|
-
'transform-style',
|
176
|
-
|
177
|
-
// Transition.
|
178
|
-
'transition',
|
179
|
-
'transition-delay',
|
180
|
-
'transition-duration',
|
181
|
-
'transition-property',
|
182
|
-
'transition-timing-function',
|
183
|
-
|
184
|
-
// Unicode bidi.
|
185
|
-
'unicode-bidi',
|
186
|
-
|
187
|
-
// User select.
|
188
|
-
'user-select',
|
189
|
-
|
190
|
-
// Writing mode.
|
191
|
-
'writing-mode',
|
192
|
-
|
193
|
-
);
|
194
|
-
|
195
|
-
/// Values that should be vendorized.
|
196
|
-
/// Data via caniuse.com, github.com/postcss/autoprefixer, and developer.mozilla.org
|
197
|
-
/// @var {list}
|
198
|
-
$vendor-values: (
|
199
|
-
|
200
|
-
// Cross fade.
|
201
|
-
'cross-fade',
|
202
|
-
|
203
|
-
// Element function.
|
204
|
-
'element',
|
205
|
-
|
206
|
-
// Filter function.
|
207
|
-
'filter',
|
208
|
-
|
209
|
-
// Flexbox.
|
210
|
-
'flex',
|
211
|
-
'inline-flex',
|
212
|
-
|
213
|
-
// Grab cursors.
|
214
|
-
'grab',
|
215
|
-
'grabbing',
|
216
|
-
|
217
|
-
// Gradients.
|
218
|
-
'linear-gradient',
|
219
|
-
'repeating-linear-gradient',
|
220
|
-
'radial-gradient',
|
221
|
-
'repeating-radial-gradient',
|
222
|
-
|
223
|
-
// Grid layout.
|
224
|
-
'grid',
|
225
|
-
'inline-grid',
|
226
|
-
|
227
|
-
// Image set.
|
228
|
-
'image-set',
|
229
|
-
|
230
|
-
// Intrinsic width.
|
231
|
-
'max-content',
|
232
|
-
'min-content',
|
233
|
-
'fit-content',
|
234
|
-
'fill',
|
235
|
-
'fill-available',
|
236
|
-
'stretch',
|
237
|
-
|
238
|
-
// Sticky position.
|
239
|
-
'sticky',
|
240
|
-
|
241
|
-
// Transform.
|
242
|
-
'transform',
|
243
|
-
|
244
|
-
// Zoom cursors.
|
245
|
-
'zoom-in',
|
246
|
-
'zoom-out',
|
247
|
-
|
248
|
-
);
|
249
|
-
|
250
|
-
// Functions.
|
251
|
-
|
252
|
-
/// Removes a specific item from a list.
|
253
|
-
/// @author Hugo Giraudel
|
254
|
-
/// @param {list} $list List.
|
255
|
-
/// @param {integer} $index Index.
|
256
|
-
/// @return {list} Updated list.
|
257
|
-
@function remove-nth($list, $index) {
|
258
|
-
|
259
|
-
$result: null;
|
260
|
-
|
261
|
-
@if type-of($index) != number {
|
262
|
-
@warn "$index: #{quote($index)} is not a number for `remove-nth`.";
|
263
|
-
}
|
264
|
-
@else if $index == 0 {
|
265
|
-
@warn "List index 0 must be a non-zero integer for `remove-nth`.";
|
266
|
-
}
|
267
|
-
@else if abs($index) > length($list) {
|
268
|
-
@warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
|
269
|
-
}
|
270
|
-
@else {
|
271
|
-
|
272
|
-
$result: ();
|
273
|
-
$index: if($index < 0, length($list) + $index + 1, $index);
|
274
|
-
|
275
|
-
@for $i from 1 through length($list) {
|
276
|
-
|
277
|
-
@if $i != $index {
|
278
|
-
$result: append($result, nth($list, $i));
|
279
|
-
}
|
280
|
-
|
281
|
-
}
|
282
|
-
|
283
|
-
}
|
284
|
-
|
285
|
-
@return $result;
|
286
|
-
|
287
|
-
}
|
288
|
-
|
289
|
-
/// Replaces a substring within another string.
|
290
|
-
/// @author Hugo Giraudel
|
291
|
-
/// @param {string} $string String.
|
292
|
-
/// @param {string} $search Substring.
|
293
|
-
/// @param {string} $replace Replacement.
|
294
|
-
/// @return {string} Updated string.
|
295
|
-
@function str-replace($string, $search, $replace: '') {
|
296
|
-
|
297
|
-
$index: str-index($string, $search);
|
298
|
-
|
299
|
-
@if $index {
|
300
|
-
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
301
|
-
}
|
302
|
-
|
303
|
-
@return $string;
|
304
|
-
|
305
|
-
}
|
306
|
-
|
307
|
-
/// Replaces a substring within each string in a list.
|
308
|
-
/// @param {list} $strings List of strings.
|
309
|
-
/// @param {string} $search Substring.
|
310
|
-
/// @param {string} $replace Replacement.
|
311
|
-
/// @return {list} Updated list of strings.
|
312
|
-
@function str-replace-all($strings, $search, $replace: '') {
|
313
|
-
|
314
|
-
@each $string in $strings {
|
315
|
-
$strings: set-nth($strings, index($strings, $string), str-replace($string, $search, $replace));
|
316
|
-
}
|
317
|
-
|
318
|
-
@return $strings;
|
319
|
-
|
320
|
-
}
|
321
|
-
|
322
|
-
// Mixins.
|
323
|
-
|
324
|
-
/// Wraps @content in vendorized keyframe blocks.
|
325
|
-
/// @param {string} $name Name.
|
326
|
-
@mixin keyframes($name) {
|
327
|
-
|
328
|
-
@-moz-keyframes #{$name} { @content; }
|
329
|
-
@-webkit-keyframes #{$name} { @content; }
|
330
|
-
@-ms-keyframes #{$name} { @content; }
|
331
|
-
@keyframes #{$name} { @content; }
|
332
|
-
|
333
|
-
}
|
334
|
-
|
335
|
-
/// Vendorizes a declaration's property and/or value(s).
|
336
|
-
/// @param {string} $property Property.
|
337
|
-
/// @param {mixed} $value String/list of value(s).
|
338
|
-
@mixin vendor($property, $value) {
|
339
|
-
|
340
|
-
// Determine if property should expand.
|
341
|
-
$expandProperty: index($vendor-properties, $property);
|
342
|
-
|
343
|
-
// Determine if value should expand (and if so, add '-prefix-' placeholder).
|
344
|
-
$expandValue: false;
|
345
|
-
|
346
|
-
@each $x in $value {
|
347
|
-
@each $y in $vendor-values {
|
348
|
-
@if $y == str-slice($x, 1, str-length($y)) {
|
349
|
-
|
350
|
-
$value: set-nth($value, index($value, $x), '-prefix-' + $x);
|
351
|
-
$expandValue: true;
|
352
|
-
|
353
|
-
}
|
354
|
-
}
|
355
|
-
}
|
356
|
-
|
357
|
-
// Expand property?
|
358
|
-
@if $expandProperty {
|
359
|
-
@each $vendor in $vendor-prefixes {
|
360
|
-
#{$vendor}#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
|
361
|
-
}
|
362
|
-
}
|
363
|
-
|
364
|
-
// Expand just the value?
|
365
|
-
@elseif $expandValue {
|
366
|
-
@each $vendor in $vendor-prefixes {
|
367
|
-
#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
|
368
|
-
}
|
369
|
-
}
|
370
|
-
|
371
|
-
// Neither? Treat them as a normal declaration.
|
372
|
-
@else {
|
373
|
-
#{$property}: #{$value};
|
374
|
-
}
|
375
|
-
|
376
|
-
}
|