@appdirect/sfb-theme-plaza 0.0.1
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.
- package/CHANGELOG.md +29 -0
- package/README.md +3 -0
- package/assets/css/platform-global/global-index.scss +1 -0
- package/assets/css/theme/components/_sticky-button-page-scroll.scss +15 -0
- package/assets/css/theme/definitions/_accessibility.scss +42 -0
- package/assets/css/theme/definitions/_colors.scss +58 -0
- package/assets/css/theme/definitions/_functions.scss +11 -0
- package/assets/css/theme/definitions/_mixins.scss +111 -0
- package/assets/css/theme/definitions/_typography.scss +48 -0
- package/assets/css/theme/definitions/_variables.scss +7 -0
- package/assets/css/theme/generic/_default.scss +126 -0
- package/assets/css/theme/generic/_normalize.scss +351 -0
- package/assets/css/theme/grid/_bootstrap-grid.scss +32 -0
- package/assets/css/theme/grid/_functions.scss +49 -0
- package/assets/css/theme/grid/_grid.scss +52 -0
- package/assets/css/theme/grid/_mock-grid.scss +36 -0
- package/assets/css/theme/grid/_variables.scss +42 -0
- package/assets/css/theme/layout/_reset.scss +5 -0
- package/assets/css/theme/mixins/_breakpoints.scss +123 -0
- package/assets/css/theme/mixins/_grid-framework.scss +67 -0
- package/assets/css/theme/mixins/_grid.scss +52 -0
- package/assets/css/theme/mixins/_scroll-button.scss +17 -0
- package/assets/css/theme/pages/_bundle.scss +10 -0
- package/assets/css/theme/pages/_listing.scss +3 -0
- package/assets/css/theme/pages/_product.scss +3 -0
- package/assets/css/theme/pages/_profile.scss +89 -0
- package/assets/css/theme/theme-index.scss +9 -0
- package/assets/css/theme/utilities/_display.scss +38 -0
- package/assets/css/theme/utilities/_flex.scss +51 -0
- package/assets/fonts/AppDirectIcons.woff +0 -0
- package/assets/fonts/slick/slick.eot +0 -0
- package/assets/fonts/slick/slick.svg +14 -0
- package/assets/fonts/slick/slick.ttf +0 -0
- package/assets/fonts/slick/slick.woff +0 -0
- package/assets/images/logo_white_2x.png +0 -0
- package/assets/js/listing.js +26 -0
- package/assets/js/polyfills/ie11CustomProperties.js +2 -0
- package/content/layout/base.html +80 -0
- package/content/layout/bundle.html +12 -0
- package/content/layout/profile.html +22 -0
- package/content/macros/profile/profile-navigation.html +38 -0
- package/content/macros/sfb-components-bundles.html +26 -0
- package/content/macros/sfb-custom-components-bundles.html +6 -0
- package/content/pages/bundle/bundle.html +9 -0
- package/content/pages/compare/compare.html +14 -0
- package/content/pages/error/error.html +49 -0
- package/content/pages/help/help.html +15 -0
- package/content/pages/home/home.html +14 -0
- package/content/pages/listing/listing-items.html +1 -0
- package/content/pages/listing/listing.html +25 -0
- package/content/pages/orderConfirmation/orderConfirmation.html +7 -0
- package/content/pages/profile/profile-add-lead.html +13 -0
- package/content/pages/profile/profile-add-question.html +13 -0
- package/content/pages/profile/profile-add-review.html +13 -0
- package/content/pages/profile/profile-configure.html +15 -0
- package/content/pages/profile/profile-cross-sell-management.html +12 -0
- package/content/pages/profile/profile-editions.html +17 -0
- package/content/pages/profile/profile-features.html +14 -0
- package/content/pages/profile/profile-questions.html +14 -0
- package/content/pages/profile/profile-resources.html +14 -0
- package/content/pages/profile/profile-reviews.html +14 -0
- package/content/pages/profile/profile-standaloneDomains.html +22 -0
- package/content/pages/profile/profile-support.html +15 -0
- package/content/pages/profile/profile-variants.html +15 -0
- package/content/pages/profile/profile.html +24 -0
- package/design-properties.json +18 -0
- package/editor-properties.json +231 -0
- package/env-data.json +2 -0
- package/header-footer/checkout.html +14 -0
- package/header-footer/css/footer/_INDEX.scss +264 -0
- package/header-footer/css/header-components/_INDEX.scss +11 -0
- package/header-footer/css/header-components/_MPLogo.scss +47 -0
- package/header-footer/css/header-components/_cart.scss +514 -0
- package/header-footer/css/header-components/_dropdown.scss +110 -0
- package/header-footer/css/header-components/_header.scss +85 -0
- package/header-footer/css/header-components/_icons.scss +123 -0
- package/header-footer/css/header-components/_mobile-menu.scss +46 -0
- package/header-footer/css/header-components/_myapps-dropdown.scss +111 -0
- package/header-footer/css/header-components/_notifications.scss +50 -0
- package/header-footer/css/header-components/_responsive.scss +78 -0
- package/header-footer/css/header-components/_search-bar.scss +17 -0
- package/header-footer/css/header-components/_tooltips.scss +60 -0
- package/header-footer/css/header-index.scss +4 -0
- package/header-footer/css/settings/_INDEX.scss +3 -0
- package/header-footer/css/settings/_custom-variables.scss +70 -0
- package/header-footer/css/settings/_font-icons.scss +53 -0
- package/header-footer/css/settings/_static-variables.scss +24 -0
- package/header-footer/footer.html +53 -0
- package/header-footer/logged-in.html +37 -0
- package/header-footer/logged-out.html +25 -0
- package/header-footer/sso.html +14 -0
- package/package.json +15 -0
- package/settings-schema.json +4 -0
- package/settings.json +1873 -0
- package/translations/cs-cz.yml +136 -0
- package/translations/cs.yml +136 -0
- package/translations/da-dk.yml +136 -0
- package/translations/da.yml +136 -0
- package/translations/de-de.yml +136 -0
- package/translations/de.yml +136 -0
- package/translations/el-gr.yml +136 -0
- package/translations/en-us.yml +177 -0
- package/translations/es-es.yml +136 -0
- package/translations/es-la.yml +136 -0
- package/translations/es.yml +136 -0
- package/translations/fi-fi.yml +136 -0
- package/translations/fi.yml +136 -0
- package/translations/fr-ca.yml +136 -0
- package/translations/fr-fr.yml +136 -0
- package/translations/fr.yml +136 -0
- package/translations/hr-hr.yml +136 -0
- package/translations/hr.yml +136 -0
- package/translations/hu-hu.yml +136 -0
- package/translations/hu.yml +136 -0
- package/translations/id-id.yml +136 -0
- package/translations/it-it.yml +136 -0
- package/translations/it.yml +136 -0
- package/translations/ja-jp.yml +136 -0
- package/translations/ja.yml +136 -0
- package/translations/ko-kr.yml +136 -0
- package/translations/ko.yml +136 -0
- package/translations/lt-lt.yml +136 -0
- package/translations/lt.yml +136 -0
- package/translations/nl-nl.yml +136 -0
- package/translations/nl.yml +136 -0
- package/translations/no-no.yml +136 -0
- package/translations/no.yml +136 -0
- package/translations/pt-br.yml +136 -0
- package/translations/pt.yml +136 -0
- package/translations/ru-ru.yml +136 -0
- package/translations/ru.yml +136 -0
- package/translations/sq-al.yml +136 -0
- package/translations/sq.yml +136 -0
- package/translations/sv-se.yml +136 -0
- package/translations/sv.yml +136 -0
- package/translations/th-th.yml +136 -0
- package/translations/th.yml +136 -0
- package/translations/tr-tr.yml +136 -0
- package/translations/tr.yml +136 -0
- package/translations/zh-cn.yml +136 -0
- package/translations/zh-tw.yml +136 -0
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
|
+
|
|
3
|
+
/* Document
|
|
4
|
+
========================================================================== */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 1. Correct the line height in all browsers.
|
|
8
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
html {
|
|
12
|
+
line-height: 1.15; /* 1 */
|
|
13
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Sections
|
|
17
|
+
========================================================================== */
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Remove the margin in all browsers.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
body {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Render the `main` element consistently in IE.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
main {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
37
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
h1 {
|
|
41
|
+
font-size: 2em;
|
|
42
|
+
margin: 0.67em 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Grouping content
|
|
46
|
+
========================================================================== */
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 1. Add the correct box sizing in Firefox.
|
|
50
|
+
* 2. Show the overflow in Edge and IE.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
hr {
|
|
54
|
+
box-sizing: content-box; /* 1 */
|
|
55
|
+
height: 0; /* 1 */
|
|
56
|
+
overflow: visible; /* 2 */
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
61
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
pre {
|
|
65
|
+
font-family: monospace, monospace; /* 1 */
|
|
66
|
+
font-size: 1em; /* 2 */
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Text-level semantics
|
|
70
|
+
========================================================================== */
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Remove the gray background on active links in IE 10.
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
a {
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
color: var(--linkText, #009abf);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* 1. Remove the bottom border in Chrome 57-
|
|
83
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
abbr[title] {
|
|
87
|
+
border-bottom: none; /* 1 */
|
|
88
|
+
text-decoration: underline; /* 2 */
|
|
89
|
+
text-decoration: underline dotted; /* 2 */
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
b,
|
|
97
|
+
strong {
|
|
98
|
+
font-weight: bolder;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
103
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
code,
|
|
107
|
+
kbd,
|
|
108
|
+
samp {
|
|
109
|
+
font-family: monospace, monospace; /* 1 */
|
|
110
|
+
font-size: 1em; /* 2 */
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Add the correct font size in all browsers.
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
small {
|
|
118
|
+
font-size: 80%;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
123
|
+
* all browsers.
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
sub,
|
|
127
|
+
sup {
|
|
128
|
+
font-size: 75%;
|
|
129
|
+
line-height: 0;
|
|
130
|
+
position: relative;
|
|
131
|
+
vertical-align: baseline;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
sub {
|
|
135
|
+
bottom: -0.25em;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
sup {
|
|
139
|
+
top: -0.5em;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Embedded content
|
|
143
|
+
========================================================================== */
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Remove the border on images inside links in IE 10.
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
img {
|
|
150
|
+
border-style: none;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Forms
|
|
154
|
+
========================================================================== */
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* 1. Change the font styles in all browsers.
|
|
158
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
button,
|
|
162
|
+
input,
|
|
163
|
+
optgroup,
|
|
164
|
+
select,
|
|
165
|
+
textarea {
|
|
166
|
+
font-family: inherit; /* 1 */
|
|
167
|
+
font-size: 100%; /* 1 */
|
|
168
|
+
line-height: 1.15; /* 1 */
|
|
169
|
+
margin: 0; /* 2 */
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Show the overflow in IE.
|
|
174
|
+
* 1. Show the overflow in Edge.
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
button,
|
|
178
|
+
input { /* 1 */
|
|
179
|
+
overflow: visible;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
184
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
button,
|
|
188
|
+
select { /* 1 */
|
|
189
|
+
text-transform: none;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
button,
|
|
197
|
+
[type="button"],
|
|
198
|
+
[type="reset"],
|
|
199
|
+
[type="submit"] {
|
|
200
|
+
-webkit-appearance: button;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Remove the inner border and padding in Firefox.
|
|
205
|
+
*/
|
|
206
|
+
|
|
207
|
+
button::-moz-focus-inner,
|
|
208
|
+
[type="button"]::-moz-focus-inner,
|
|
209
|
+
[type="reset"]::-moz-focus-inner,
|
|
210
|
+
[type="submit"]::-moz-focus-inner {
|
|
211
|
+
border-style: none;
|
|
212
|
+
padding: 0;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Restore the focus styles unset by the previous rule.
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
button:-moz-focusring,
|
|
220
|
+
[type="button"]:-moz-focusring,
|
|
221
|
+
[type="reset"]:-moz-focusring,
|
|
222
|
+
[type="submit"]:-moz-focusring {
|
|
223
|
+
outline: 1px dotted ButtonText;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Correct the padding in Firefox.
|
|
228
|
+
*/
|
|
229
|
+
|
|
230
|
+
fieldset {
|
|
231
|
+
padding: 0.35em 0.75em 0.625em;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
236
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
237
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
238
|
+
* `fieldset` elements in all browsers.
|
|
239
|
+
*/
|
|
240
|
+
|
|
241
|
+
legend {
|
|
242
|
+
box-sizing: border-box; /* 1 */
|
|
243
|
+
color: inherit; /* 2 */
|
|
244
|
+
display: table; /* 1 */
|
|
245
|
+
max-width: 100%; /* 1 */
|
|
246
|
+
padding: 0; /* 3 */
|
|
247
|
+
white-space: normal; /* 1 */
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
252
|
+
*/
|
|
253
|
+
|
|
254
|
+
progress {
|
|
255
|
+
vertical-align: baseline;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Remove the default vertical scrollbar in IE 10+.
|
|
260
|
+
*/
|
|
261
|
+
|
|
262
|
+
textarea {
|
|
263
|
+
overflow: auto;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* 1. Add the correct box sizing in IE 10.
|
|
268
|
+
* 2. Remove the padding in IE 10.
|
|
269
|
+
*/
|
|
270
|
+
|
|
271
|
+
[type="checkbox"],
|
|
272
|
+
[type="radio"] {
|
|
273
|
+
box-sizing: border-box; /* 1 */
|
|
274
|
+
padding: 0; /* 2 */
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
282
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
283
|
+
height: auto;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
288
|
+
* 2. Correct the outline style in Safari.
|
|
289
|
+
*/
|
|
290
|
+
|
|
291
|
+
[type="search"] {
|
|
292
|
+
-webkit-appearance: textfield; /* 1 */
|
|
293
|
+
outline-offset: -2px; /* 2 */
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
298
|
+
*/
|
|
299
|
+
|
|
300
|
+
[type="search"]::-webkit-search-decoration {
|
|
301
|
+
-webkit-appearance: none;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
306
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
307
|
+
*/
|
|
308
|
+
|
|
309
|
+
::-webkit-file-upload-button {
|
|
310
|
+
-webkit-appearance: button; /* 1 */
|
|
311
|
+
font: inherit; /* 2 */
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* Interactive
|
|
315
|
+
========================================================================== */
|
|
316
|
+
|
|
317
|
+
/*
|
|
318
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
319
|
+
*/
|
|
320
|
+
|
|
321
|
+
details {
|
|
322
|
+
display: block;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/*
|
|
326
|
+
* Add the correct display in all browsers.
|
|
327
|
+
*/
|
|
328
|
+
|
|
329
|
+
summary {
|
|
330
|
+
display: list-item;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/* Misc
|
|
334
|
+
========================================================================== */
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Add the correct display in IE 10+.
|
|
338
|
+
*/
|
|
339
|
+
|
|
340
|
+
template {
|
|
341
|
+
display: none;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Add the correct display in IE 10.
|
|
346
|
+
*/
|
|
347
|
+
|
|
348
|
+
[hidden] {
|
|
349
|
+
display: none;
|
|
350
|
+
}
|
|
351
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Bootstrap Grid v4.1.3 (https://getbootstrap.com/)
|
|
3
|
+
* Copyright 2011-2018 The Bootstrap Authors
|
|
4
|
+
* Copyright 2011-2018 Twitter, Inc.
|
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@at-root {
|
|
9
|
+
@-ms-viewport { width: device-width; } // stylelint-disable-line at-rule-no-vendor-prefix
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
html {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
-ms-overflow-style: scrollbar;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
*, ::after, ::before {
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@import "functions";
|
|
23
|
+
@import "variables";
|
|
24
|
+
|
|
25
|
+
@import "../mixins/breakpoints";
|
|
26
|
+
@import "../mixins/grid-framework";
|
|
27
|
+
@import "../mixins/grid";
|
|
28
|
+
|
|
29
|
+
@import "grid";
|
|
30
|
+
@import "../utilities/display";
|
|
31
|
+
@import "../utilities/flex";
|
|
32
|
+
@import "mock-grid";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// Bootstrap functions
|
|
2
|
+
//
|
|
3
|
+
// Utility mixins and functions for evaluating source code across our variables, maps, and mixins.
|
|
4
|
+
|
|
5
|
+
// Ascending
|
|
6
|
+
// Used to evaluate Sass maps like our grid breakpoints.
|
|
7
|
+
@mixin _assert-ascending($map, $map-name) {
|
|
8
|
+
$prev-key: null;
|
|
9
|
+
$prev-num: null;
|
|
10
|
+
@each $key, $num in $map {
|
|
11
|
+
@if $prev-num == null {
|
|
12
|
+
// Do nothing
|
|
13
|
+
} @else if not comparable($prev-num, $num) {
|
|
14
|
+
@warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
|
|
15
|
+
} @else if $prev-num >= $num {
|
|
16
|
+
@warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";
|
|
17
|
+
}
|
|
18
|
+
$prev-key: $key;
|
|
19
|
+
$prev-num: $num;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Starts at zero
|
|
24
|
+
// Another grid mixin that ensures the min-width of the lowest breakpoint starts at 0.
|
|
25
|
+
@mixin _assert-starts-at-zero($map) {
|
|
26
|
+
$values: map-values($map);
|
|
27
|
+
$first-value: nth($values, 1);
|
|
28
|
+
@if $first-value != 0 {
|
|
29
|
+
@warn "First breakpoint in `$grid-breakpoints` must start at 0, but starts at #{$first-value}.";
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Replace `$search` with `$replace` in `$string`
|
|
34
|
+
// Used on our SVG icon backgrounds for custom forms.
|
|
35
|
+
//
|
|
36
|
+
// @author Hugo Giraudel
|
|
37
|
+
// @param {String} $string - Initial string
|
|
38
|
+
// @param {String} $search - Substring to replace
|
|
39
|
+
// @param {String} $replace ('') - New value
|
|
40
|
+
// @return {String} - Updated string
|
|
41
|
+
@function str-replace($string, $search, $replace: "") {
|
|
42
|
+
$index: str-index($string, $search);
|
|
43
|
+
|
|
44
|
+
@if $index {
|
|
45
|
+
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@return $string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Container widths
|
|
2
|
+
//
|
|
3
|
+
// Set the container width, and override it for fixed navbars in media queries.
|
|
4
|
+
|
|
5
|
+
@if $enable-grid-classes {
|
|
6
|
+
.container {
|
|
7
|
+
@include make-container();
|
|
8
|
+
@include make-container-max-widths();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Fluid container
|
|
13
|
+
//
|
|
14
|
+
// Utilizes the mixin meant for fixed width containers, but with 100% width for
|
|
15
|
+
// fluid, full width layouts.
|
|
16
|
+
|
|
17
|
+
@if $enable-grid-classes {
|
|
18
|
+
.container-fluid {
|
|
19
|
+
@include make-container();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Row
|
|
24
|
+
//
|
|
25
|
+
// Rows contain and clear the floats of your columns.
|
|
26
|
+
|
|
27
|
+
@if $enable-grid-classes {
|
|
28
|
+
.row {
|
|
29
|
+
@include make-row();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Remove the negative margin from default .row, then the horizontal padding
|
|
33
|
+
// from all immediate children columns (to prevent runaway style inheritance).
|
|
34
|
+
.no-gutters {
|
|
35
|
+
margin-right: 0;
|
|
36
|
+
margin-left: 0;
|
|
37
|
+
|
|
38
|
+
> .col,
|
|
39
|
+
> [class*="col-"] {
|
|
40
|
+
padding-right: 0;
|
|
41
|
+
padding-left: 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Columns
|
|
47
|
+
//
|
|
48
|
+
// Common styles for small and large grid columns
|
|
49
|
+
|
|
50
|
+
@if $enable-grid-classes {
|
|
51
|
+
@include make-grid-columns();
|
|
52
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.utility_overlay {
|
|
2
|
+
position: absolute;
|
|
3
|
+
z-index: 999;
|
|
4
|
+
background-color: rgba(0,255,0,0.1);
|
|
5
|
+
opacity: 0.2;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
top: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
}
|
|
11
|
+
.utility-grid--columns {
|
|
12
|
+
@include make-row();
|
|
13
|
+
height: 100%;
|
|
14
|
+
width: auto;
|
|
15
|
+
padding-right: 0;
|
|
16
|
+
padding-left: 0;
|
|
17
|
+
max-width: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.utility-grid--column {
|
|
21
|
+
@include make-col-ready;
|
|
22
|
+
@include make-col(1);
|
|
23
|
+
background-color: rgba(0,255,0,0.4);
|
|
24
|
+
background-clip: content-box;
|
|
25
|
+
height: 100%;
|
|
26
|
+
&:nth-child(n+13){
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.utility_overlay--container {
|
|
32
|
+
@include make-container();
|
|
33
|
+
@include make-container-max-widths();
|
|
34
|
+
height: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
$enable-grid-classes: true !default;
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
// Grid breakpoints
|
|
6
|
+
//
|
|
7
|
+
// Define the minimum dimensions at which your layout will change,
|
|
8
|
+
// adapting to different screen sizes, for use in media queries.
|
|
9
|
+
|
|
10
|
+
$grid-breakpoints: (
|
|
11
|
+
xs: 0,
|
|
12
|
+
sm: 576px,
|
|
13
|
+
md: 768px,
|
|
14
|
+
lg: 992px,
|
|
15
|
+
xl: 1330px
|
|
16
|
+
) !default;
|
|
17
|
+
|
|
18
|
+
@include _assert-ascending($grid-breakpoints, "$grid-breakpoints");
|
|
19
|
+
@include _assert-starts-at-zero($grid-breakpoints);
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
// Grid containers
|
|
23
|
+
//
|
|
24
|
+
// Define the maximum width of `.container` for different screen sizes.
|
|
25
|
+
|
|
26
|
+
$container-max-widths: (
|
|
27
|
+
sm: 540px,
|
|
28
|
+
md: 720px,
|
|
29
|
+
lg: 1100px,
|
|
30
|
+
xl: 1320px
|
|
31
|
+
) !default;
|
|
32
|
+
|
|
33
|
+
@include _assert-ascending($container-max-widths, "$container-max-widths");
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
// Grid columns
|
|
37
|
+
//
|
|
38
|
+
// Set the number of columns and specify the width of the gutters.
|
|
39
|
+
|
|
40
|
+
$grid-columns: 12 !default;
|
|
41
|
+
$grid-gutter-width: 28px !default;
|
|
42
|
+
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// Breakpoint viewport sizes and media queries.
|
|
2
|
+
//
|
|
3
|
+
// Breakpoints are defined as a map of (name: minimum width), order from small to large:
|
|
4
|
+
//
|
|
5
|
+
// (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)
|
|
6
|
+
//
|
|
7
|
+
// The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
|
|
8
|
+
|
|
9
|
+
// Name of the next breakpoint, or null for the last breakpoint.
|
|
10
|
+
//
|
|
11
|
+
// >> breakpoint-next(sm)
|
|
12
|
+
// md
|
|
13
|
+
// >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
14
|
+
// md
|
|
15
|
+
// >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
|
|
16
|
+
// md
|
|
17
|
+
@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
|
|
18
|
+
$n: index($breakpoint-names, $name);
|
|
19
|
+
@return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
|
23
|
+
//
|
|
24
|
+
// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
25
|
+
// 576px
|
|
26
|
+
@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
|
|
27
|
+
$min: map-get($breakpoints, $name);
|
|
28
|
+
@return if($min != 0, $min, null);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Maximum breakpoint width. Null for the largest (last) breakpoint.
|
|
32
|
+
// The maximum value is calculated as the minimum of the next one less 0.02px
|
|
33
|
+
// to work around the limitations of `min-` and `max-` prefixes and viewports with fractional widths.
|
|
34
|
+
// See https://www.w3.org/TR/mediaqueries-4/#mq-min-max
|
|
35
|
+
// Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.
|
|
36
|
+
// See https://bugs.webkit.org/show_bug.cgi?id=178261
|
|
37
|
+
//
|
|
38
|
+
// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
39
|
+
// 767.98px
|
|
40
|
+
@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
|
|
41
|
+
$next: breakpoint-next($name, $breakpoints);
|
|
42
|
+
@return if($next, breakpoint-min($next, $breakpoints) - .02px, null);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.
|
|
46
|
+
// Useful for making responsive utilities.
|
|
47
|
+
//
|
|
48
|
+
// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
49
|
+
// "" (Returns a blank string)
|
|
50
|
+
// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
51
|
+
// "-sm"
|
|
52
|
+
@function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
|
|
53
|
+
@return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}");
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
|
|
57
|
+
// Makes the @content apply to the given breakpoint and wider.
|
|
58
|
+
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
|
|
59
|
+
$min: breakpoint-min($name, $breakpoints);
|
|
60
|
+
@if $min {
|
|
61
|
+
@media (min-width: $min) {
|
|
62
|
+
@content;
|
|
63
|
+
}
|
|
64
|
+
} @else {
|
|
65
|
+
@content;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Media of at most the maximum breakpoint width. No query for the largest breakpoint.
|
|
70
|
+
// Makes the @content apply to the given breakpoint and narrower.
|
|
71
|
+
@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
|
|
72
|
+
$max: breakpoint-max($name, $breakpoints);
|
|
73
|
+
@if $max {
|
|
74
|
+
@media (max-width: $max) {
|
|
75
|
+
@content;
|
|
76
|
+
}
|
|
77
|
+
} @else {
|
|
78
|
+
@content;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Media that spans multiple breakpoint widths.
|
|
83
|
+
// Makes the @content apply between the min and max breakpoints
|
|
84
|
+
@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
|
|
85
|
+
$min: breakpoint-min($lower, $breakpoints);
|
|
86
|
+
$max: breakpoint-max($upper, $breakpoints);
|
|
87
|
+
|
|
88
|
+
@if $min != null and $max != null {
|
|
89
|
+
@media (min-width: $min) and (max-width: $max) {
|
|
90
|
+
@content;
|
|
91
|
+
}
|
|
92
|
+
} @else if $max == null {
|
|
93
|
+
@include media-breakpoint-up($lower, $breakpoints) {
|
|
94
|
+
@content;
|
|
95
|
+
}
|
|
96
|
+
} @else if $min == null {
|
|
97
|
+
@include media-breakpoint-down($upper, $breakpoints) {
|
|
98
|
+
@content;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// Media between the breakpoint's minimum and maximum widths.
|
|
104
|
+
// No minimum for the smallest breakpoint, and no maximum for the largest one.
|
|
105
|
+
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
|
|
106
|
+
@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
|
|
107
|
+
$min: breakpoint-min($name, $breakpoints);
|
|
108
|
+
$max: breakpoint-max($name, $breakpoints);
|
|
109
|
+
|
|
110
|
+
@if $min != null and $max != null {
|
|
111
|
+
@media (min-width: $min) and (max-width: $max) {
|
|
112
|
+
@content;
|
|
113
|
+
}
|
|
114
|
+
} @else if $max == null {
|
|
115
|
+
@include media-breakpoint-up($name, $breakpoints) {
|
|
116
|
+
@content;
|
|
117
|
+
}
|
|
118
|
+
} @else if $min == null {
|
|
119
|
+
@include media-breakpoint-down($name, $breakpoints) {
|
|
120
|
+
@content;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|