Skip to content

Commit 0c9a0b4

Browse files
committed
feat: install/integrate sparkle
1 parent dd04e64 commit 0c9a0b4

File tree

15 files changed

+1223
-345
lines changed

15 files changed

+1223
-345
lines changed

package-lock.json

Lines changed: 1195 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
],
3939
"dependencies": {
4040
"@babel/polyfill": "^7.4.0",
41+
"@sparkbox/sparkle": "^0.2.0",
4142
"autoprefixer": "^9.4.2",
4243
"babel-loader": "^8.0.4",
4344
"core-js": "^3.1.3",
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
$settings: map-merge(
2+
$settings,
3+
(
4+
'prefix': 'utility',
5+
'loop-mq': true,
6+
'print-classes': true,
7+
'utility-background-color': true,
8+
'utility-border-color': true,
9+
'utility-foreground-color': true,
10+
'utility-outline-color': true,
11+
'utility-text-decoration-color': true,
12+
'utility-z-index': true,
13+
'utility-display': true,
14+
'utility-position': true,
15+
'utility-text-align': true,
16+
'utility-visually-hidden': true
17+
)
18+
);

src/scss/base.scss

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// 7. Vendors
1818
// 8. Utilities
1919

20+
2021
// =====================================================================
2122
// 1. Settings
2223
// When using a preprocessor, settings are used to define variable.
@@ -28,20 +29,19 @@
2829
// to write comments describing the colors and font stacks as a guide.
2930
// If using features such as custom properties, those that are global
3031
// custom properties should be described in this section.
32+
@import "../../node_modules/@sparkbox/sparkle/settings";
33+
@import 'import-sparkle-settings';
3134
@import "settings/variables";
3235
@import "settings/colors";
3336
@import "settings/fonts";
34-
@import "settings/z-index";
35-
36-
3737
// =====================================================================
3838
// 2. Tools
3939
// This section is specifically for preprocessor global mixins and
4040
// functions. No CSS should be generated by the preprocessor from
4141
// partials in this section.
42-
@import "tools/functions";
43-
@import "tools/mixins";
4442

43+
@import "../../node_modules/@sparkbox/sparkle/tools";
44+
@import "tools/mixins";
4545

4646
// =====================================================================
4747
// 3. Generic
@@ -53,7 +53,6 @@
5353
@import "generic/keyframes";
5454
@import "generic/safe-focus";
5555

56-
5756
// =====================================================================
5857
// 4. Elements
5958
// Styling for bare HTML elements (like H1, A, etc.). These come with
@@ -72,7 +71,7 @@
7271
// 5. Objects
7372
// Class-based selectors which define undecorated design patterns,
7473
// for example media object known from OOCSS.
75-
@import "object/grid";
74+
7675
@import "object/width-limiter";
7776

7877

@@ -101,6 +100,4 @@
101100
// 8. Utilities
102101
// Utilities and helper classes with ability to override anything
103102
// which goes before in the triangle, eg. hide helper class
104-
@import "utilities/display";
105-
@import "utilities/spacing";
106-
@import "utilities/text";
103+
@import "../../node_modules/@sparkbox/sparkle/utilities";

src/scss/components/_expandable-content.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
&__button {
33
position: relative;
44

5-
z-index: $z-index-expandable-content-button;
5+
z-index: z-index(1);
66
}
77

88
&__content {

src/scss/components/_skip-to-content.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
position: absolute;
33
top: 1rem;
44
left: -100%;
5-
z-index: $z-index-skip-to-link;
5+
z-index: z-index(10);
66

77
&:focus {
88
left: 1rem;

src/scss/object/_grid.scss

Lines changed: 0 additions & 79 deletions
This file was deleted.

src/scss/settings/_variables.scss

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,13 @@
33
//
44
$font-stack-primary: "Helvetica Neue", Helvetica, Arial, sans-serif;
55

6-
//
7-
// BREAKPOINTS
8-
//
9-
$bp-sm: 30rem;
10-
$bp-md: 50rem;
11-
$bp-lg: 60rem;
12-
$bp-xl: 80rem;
13-
14-
$grid-breakpoints: (
15-
sm: $bp-sm,
16-
md: $bp-md,
17-
lg: $bp-lg,
18-
xl: $bp-xl
19-
);
20-
216
//
227
// LENGTHS
238
//
249
$page-margin: 1.75rem;
2510

2611
$max-page-width: 53rem;
2712

28-
//
29-
// SPACING
30-
//
31-
$spacer: 1rem;
32-
$spacers: () !default;
33-
$spacers: map-merge(
34-
(
35-
none: 0,
36-
xs: $spacer * 0.25,
37-
sm: $spacer * 0.5,
38-
md: $spacer,
39-
lg: $spacer * 1.5,
40-
xl: $spacer * 3,
41-
xxl: $spacer * 5,
42-
),
43-
$spacers
44-
);
4513

4614
//
4715
// LINE HEIGHTS

src/scss/settings/_z-index.scss

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/scss/tools/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)