barbican-reset 2.17.0 → 2.19.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.
- package/helpers/mixins/_font.scss +10 -0
- package/helpers/variables/_fonts.scss +4 -0
- package/helpers/variables/index.scss +1 -0
- package/package.json +2 -2
- package/patterns/scss/colors/_brand.scss +11 -11
- package/patterns/scss/styles.scss +3 -3
- package/scss/_atomic.scss +9 -8
- package/scss/_close-icon.scss +1 -1
- package/scss/_fonts.scss +6 -21
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
@mixin fontfamily-light {
|
|
2
|
+
font-family: $fontfamily-light;
|
|
3
|
+
font-weight: 400;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin fontfamily-black {
|
|
7
|
+
font-family: $fontfamily-black;
|
|
8
|
+
font-weight: 400;
|
|
9
|
+
}
|
|
10
|
+
|
|
1
11
|
// https://caniuse.com/#search=font-smoothing
|
|
2
12
|
|
|
3
13
|
@mixin font-smoothing($value: on) {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
$fontfamily-light: Supreme-Light, Arial, Helvetica, sans-serif;
|
|
2
|
+
$fontfamily-light-italic: Supreme-LightItalic, Arial, Helvetica, sans-serif;
|
|
3
|
+
$fontfamily-black: Supreme-Black, Arial, Helvetica, sans-serif;
|
|
4
|
+
$fontfamily-black-italic: Supreme-BlackItalic, Arial, Helvetica, sans-serif;
|
package/package.json
CHANGED
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"animations/**/*",
|
|
81
81
|
"components/**/*",
|
|
82
82
|
"dist/**/*",
|
|
83
|
-
"fonts
|
|
83
|
+
"fonts/*",
|
|
84
84
|
"helpers/**/*",
|
|
85
85
|
"icons/**/*",
|
|
86
86
|
"patterns/**/*",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"watch:patterns": "cd patterns && gulp watch"
|
|
104
104
|
},
|
|
105
105
|
"style": "dist/css/barbican-reset.css",
|
|
106
|
-
"version": "2.
|
|
106
|
+
"version": "2.19.0"
|
|
107
107
|
}
|
|
@@ -60,19 +60,19 @@ $brands: ();
|
|
|
60
60
|
$brands: map-merge($brands, $map);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
@function
|
|
63
|
+
@function brandColor($name, $variant: base) {
|
|
64
64
|
@return map-get(map-get($brands, $name), $variant);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
$c-brand-cinema-dark:
|
|
68
|
-
$c-brand-shop-light:
|
|
69
|
-
$c-brand-shop-dark:
|
|
70
|
-
$c-brand-generic-s60-l99:
|
|
71
|
-
$c-brand-generic-s100-l95:
|
|
72
|
-
$c-brand-generic-s50-l90:
|
|
73
|
-
$c-brand-generic-s100-l38:
|
|
74
|
-
$c-brand-generic-s100-l15:
|
|
67
|
+
$c-brand-cinema-dark: brandColor(cinema, shade-20); // deprecated
|
|
68
|
+
$c-brand-shop-light: brandColor(shop, tint-85); // deprecated
|
|
69
|
+
$c-brand-shop-dark: brandColor(shop, shade-20); // deprecated
|
|
70
|
+
$c-brand-generic-s60-l99: brandColor(generic, tint-95); // faint deprecated
|
|
71
|
+
$c-brand-generic-s100-l95: brandColor(generic, tint-85); // light deprecated
|
|
72
|
+
$c-brand-generic-s50-l90: brandColor(generic, tint-70); // shade deprecated
|
|
73
|
+
$c-brand-generic-s100-l38: brandColor(generic, shade-10); // dark deprecated
|
|
74
|
+
$c-brand-generic-s100-l15: brandColor(generic, shade-65); // x-dark deprecated
|
|
75
75
|
|
|
76
|
-
$c-brand-classical-light:
|
|
77
|
-
$c-brand-classical-dark:
|
|
76
|
+
$c-brand-classical-light: brandColor(classical-music, tint-95); // deprecated
|
|
77
|
+
$c-brand-classical-dark: brandColor(classical-music, shade-20); // deprecated
|
|
78
78
|
$c-brand-membership-dark: hsl(223, 87%, 21%);
|
|
@@ -32,17 +32,17 @@ body {
|
|
|
32
32
|
|
|
33
33
|
@include brand using($color, $variant) {
|
|
34
34
|
.item.item-palette {
|
|
35
|
-
background-color:
|
|
35
|
+
background-color: brandColor($color);
|
|
36
36
|
|
|
37
37
|
@each $shade in $shades {
|
|
38
38
|
&.shade-#{$shade} {
|
|
39
|
-
background-color:
|
|
39
|
+
background-color: brandColor($color, shade-#{$shade});
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
@each $tint in $tints {
|
|
44
44
|
&.tint-#{$tint} {
|
|
45
|
-
background-color:
|
|
45
|
+
background-color: brandColor($color, tint-#{$tint});
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
package/scss/_atomic.scss
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
$gaps: 'margin-top', 'margin-bottom', 'min-height', 'padding-left', 'padding-right';
|
|
2
2
|
$text-aligns: 'left', 'center', 'right';
|
|
3
|
-
$font-weights: '700', '400';
|
|
4
3
|
$margins05: 'margin-top', 'margin-bottom', 'margin-right', 'margin-left';
|
|
5
4
|
$paddings05: 'padding-top', 'padding-bottom', 'padding-right', 'padding-left';
|
|
6
5
|
|
|
@@ -18,12 +17,6 @@ $paddings05: 'padding-top', 'padding-bottom', 'padding-right', 'padding-left';
|
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
@each $weight in $font-weights {
|
|
22
|
-
.font-weight-#{$weight} {
|
|
23
|
-
font-weight: #{$weight};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
20
|
@each $margin in $margins05 {
|
|
28
21
|
.#{$margin}-05 {
|
|
29
22
|
#{$margin}: 0.5rem;
|
|
@@ -36,6 +29,14 @@ $paddings05: 'padding-top', 'padding-bottom', 'padding-right', 'padding-left';
|
|
|
36
29
|
}
|
|
37
30
|
}
|
|
38
31
|
|
|
32
|
+
.font-weight-700 {
|
|
33
|
+
@include fontfamily-black;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.font-weight-400 {
|
|
37
|
+
@include fontfamily-light;
|
|
38
|
+
}
|
|
39
|
+
|
|
39
40
|
.border-radius-lg {
|
|
40
41
|
border-radius: $border-radius-lg;
|
|
41
42
|
}
|
|
@@ -83,7 +84,7 @@ $paddings05: 'padding-top', 'padding-bottom', 'padding-right', 'padding-left';
|
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
.background-color-alt {
|
|
86
|
-
background-color:
|
|
87
|
+
background-color: brandColor(generic, tint-95);
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
.min-width-3 {
|
package/scss/_close-icon.scss
CHANGED
package/scss/_fonts.scss
CHANGED
|
@@ -1,42 +1,27 @@
|
|
|
1
1
|
$supreme: "SupremeLLWeb";
|
|
2
2
|
$font-family: #{$supreme}, "Helvetica", "Arial", sans-serif;
|
|
3
|
-
$font-file-path: "
|
|
3
|
+
$font-file-path: "/fonts/";
|
|
4
4
|
|
|
5
5
|
@font-face {
|
|
6
6
|
font-family: "Supreme-Light";
|
|
7
7
|
src: url("#{$font-file-path}#{$supreme}-Light.woff") format("woff"),
|
|
8
|
-
|
|
8
|
+
url("#{$font-file-path}#{$supreme}-Light.woff2") format("woff2");
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
@font-face {
|
|
12
12
|
font-family: "Supreme-LightItalic";
|
|
13
13
|
src: url("#{$font-file-path}#{$supreme}-LightItalic.woff") format("woff"),
|
|
14
|
-
|
|
14
|
+
url("#{$font-file-path}#{$supreme}-LightItalic.woff2") format("woff2");
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@font-face {
|
|
18
18
|
font-family: "Supreme-Black";
|
|
19
19
|
src: url("#{$font-file-path}#{$supreme}-Black.woff") format("woff"),
|
|
20
|
-
|
|
20
|
+
url("#{$font-file-path}#{$supreme}-Black.woff2") format("woff2");
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
@font-face {
|
|
24
24
|
font-family: "Supreme-BlackItalic";
|
|
25
25
|
src: url("#{$font-file-path}#{$supreme}-BlackItalic.woff") format("woff"),
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
$fontfamily-light: Supreme-Light, Arial, Helvetica, sans-serif;
|
|
30
|
-
$fontfamily-light-italic: Supreme-LightItalic, Arial, Helvetica, sans-serif;
|
|
31
|
-
$fontfamily-black: Supreme-Black, Arial, Helvetica, sans-serif;
|
|
32
|
-
$fontfamily-black-italic: Supreme-BlackItalic, Arial, Helvetica, sans-serif;
|
|
33
|
-
|
|
34
|
-
@mixin fontfamily-light {
|
|
35
|
-
font-family: $fontfamily-light;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@mixin fontfamily-black {
|
|
39
|
-
font-family: $fontfamily-black;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// letter-spacing: 0.03em;
|
|
26
|
+
url("#{$font-file-path}#{$supreme}-BlackItalic.woff2") format("woff2");
|
|
27
|
+
}
|