Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit ec3c1b6

Browse files
committed
@use 'not-actual-styles' as base
1 parent 6eb4f23 commit ec3c1b6

File tree

15 files changed

+65
-68
lines changed

15 files changed

+65
-68
lines changed

src/assets/style/global.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Library =====================================
22
@use 'destyle.css/destyle';
33

4-
@use 'not-actual-styles' as base;
5-
64
// Style Instance ==============================
75
html {
86
color: base.colors('font');

src/assets/style/layouts/error.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
height: 90vh;
1212
margin: 0 auto;
1313
padding: {
14-
right: functions.pix-to-rem(16);
14+
right: base.pix-to-rem(16);
1515
bottom: 5vh;
16-
left: functions.pix-to-rem(16);
16+
left: base.pix-to-rem(16);
1717
}
1818
}
1919

src/assets/style/not-actual-styles/_variables.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,21 @@ $type-family: (
6060
);
6161

6262
// Like a Modular Scale ========================
63-
@function pix-to-rem($Number) {
63+
@function variables-pix-to-rem($Number) {
6464
$ratio: 1 / $root-font-size; // default 0.1
6565
$computed: math.round($Number * $ratio * 1000) / 1000;
6666
@return #{$computed}rem;
6767
}
6868

6969
$type-scale: (
70-
'extra': pix-to-rem(177),
71-
'h1': pix-to-rem(110),
72-
'h2': pix-to-rem(68),
73-
'h3': pix-to-rem(42),
74-
'h4': pix-to-rem(26),
75-
'subtitle': pix-to-rem(26),
76-
'body': pix-to-rem(16),
77-
'caption': pix-to-rem(10),
70+
'extra': variables-pix-to-rem(177),
71+
'h1': variables-pix-to-rem(110),
72+
'h2': variables-pix-to-rem(68),
73+
'h3': variables-pix-to-rem(42),
74+
'h4': variables-pix-to-rem(26),
75+
'subtitle': variables-pix-to-rem(26),
76+
'body': variables-pix-to-rem(16),
77+
'caption': variables-pix-to-rem(10),
7878
);
7979

8080
$type-weight: (

src/components/Atom/BaseLinkButton/index.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
display: inline-flex;
33
align-items: center;
44
justify-content: center;
5-
min-width: functions.pix-to-rem(160);
5+
min-width: base.pix-to-rem(160);
66
max-width: 90vw;
7-
min-height: functions.pix-to-rem(48);
8-
padding: functions.pix-to-rem(8) functions.pix-to-rem(16);
7+
min-height: base.pix-to-rem(48);
8+
padding: base.pix-to-rem(8) base.pix-to-rem(16);
99
line-height: 1.2;
1010
}
1111

@@ -18,7 +18,7 @@
1818
// Extra
1919
white-space: pre-line;
2020
border: 1px solid $_color;
21-
border-radius: functions.pix-to-rem(4);
21+
border-radius: base.pix-to-rem(4);
2222

2323
&:hover {
2424
color: white;

src/components/Atom/BaseLinkText/index.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
// Extra
1717
white-space: pre-line;
18-
border-radius: functions.pix-to-rem(4);
18+
border-radius: base.pix-to-rem(4);
1919
transition: transform 0.1s cubic-bezier(0.46, 0.03, 0.52, 0.96);
2020

2121
&:hover {
@@ -31,13 +31,13 @@
3131

3232
// Style Instance ===============
3333
.green {
34-
@include link(#{functions.colors('green')});
34+
@include link(#{base.colors('green')});
3535
}
3636

3737
.grey {
38-
@include link(#{functions.colors('inverted')});
38+
@include link(#{base.colors('inverted')});
3939
}
4040

4141
.white {
42-
@include link(#{functions.colors('white')});
42+
@include link(#{base.colors('white')});
4343
}

src/components/Atom/BaseNuxtLink/index.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
// Extra
1717
white-space: pre-line;
18-
border-radius: functions.pix-to-rem(4);
18+
border-radius: base.pix-to-rem(4);
1919
transition: transform 0.1s cubic-bezier(0.46, 0.03, 0.52, 0.96);
2020

2121
&:hover {
@@ -31,13 +31,13 @@
3131

3232
// Style Instance ===============
3333
.green {
34-
@include link(#{functions.colors('green')});
34+
@include link(#{base.colors('green')});
3535
}
3636

3737
.grey {
38-
@include link(#{functions.colors('inverted')});
38+
@include link(#{base.colors('inverted')});
3939
}
4040

4141
.white {
42-
@include link(#{functions.colors('white')});
42+
@include link(#{base.colors('white')});
4343
}

src/components/Atom/BaseTypography/index.scss

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
display: block;
33
max-width: 100vw;
44
line-height: 1.15;
5-
color: functions.colors('font');
5+
color: base.colors('font');
66
word-wrap: break-word;
7-
overflow-wrap: break-word;
87

98
// Extra
109
white-space: pre-line;
@@ -13,27 +12,27 @@
1312
.h1 {
1413
@include typography;
1514

16-
font-size: functions.type-scale('h1');
17-
font-weight: functions.type-weight('h1');
15+
font-size: base.type-scale('h1');
16+
font-weight: base.type-weight('h1');
1817
}
1918

2019
.h2 {
2120
@include typography;
2221

23-
font-size: functions.type-scale('h2');
24-
font-weight: functions.type-weight('h2');
22+
font-size: base.type-scale('h2');
23+
font-weight: base.type-weight('h2');
2524
}
2625

2726
.h3 {
2827
@include typography;
2928

30-
font-size: functions.type-scale('h3');
31-
font-weight: functions.type-weight('h3');
29+
font-size: base.type-scale('h3');
30+
font-weight: base.type-weight('h3');
3231
}
3332

3433
.h4 {
3534
@include typography;
3635

37-
font-size: functions.type-scale('h4');
38-
font-weight: functions.type-weight('h4');
36+
font-size: base.type-scale('h4');
37+
font-weight: base.type-weight('h4');
3938
}

src/components/Atom/TheNuxtLogo/index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
@include triangle(60, 35);
3737

3838
border-right: 70px solid transparent;
39-
border-bottom: 120px solid functions.colors('inverted');
39+
border-bottom: 120px solid base.colors('inverted');
4040
border-left: 70px solid transparent;
4141
animation: go-right 0.5s linear forwards 3.5s;
4242
}
@@ -45,7 +45,7 @@
4545
@include triangle(120, 70);
4646

4747
border-right: 35px solid transparent;
48-
border-bottom: 60px solid functions.colors('background');
48+
border-bottom: 60px solid base.colors('background');
4949
border-left: 35px solid transparent;
5050
animation: go-down 0.5s linear forwards 3s;
5151
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.icon {
2-
margin-right: functions.pix-to-rem(8);
2+
margin-right: base.pix-to-rem(8);
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.icon {
2-
margin-right: functions.pix-to-rem(4);
2+
margin-right: base.pix-to-rem(4);
33
}

src/components/Molecule/TheFooter/index.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
.footer {
22
padding: 3em 5em 1em;
3-
font-size: functions.type-scale('body');
4-
font-weight: functions.type-weight('body');
5-
color: functions.colors('white');
6-
background-color: functions.colors('inverted');
3+
font-size: base.type-scale('body');
4+
font-weight: base.type-weight('body');
5+
color: base.colors('white');
6+
background-color: base.colors('inverted');
77
}
88

99
.copy {
10-
padding: functions.type-scale('body') 0;
11-
margin-top: functions.type-scale('body');
12-
font-size: functions.type-scale('caption');
13-
font-weight: functions.type-weight('caption');
10+
padding: base.type-scale('body') 0;
11+
margin-top: base.type-scale('body');
12+
font-size: base.type-scale('caption');
13+
font-weight: base.type-weight('caption');
1414
text-align: center;
15-
border-top: 1px solid functions.colors('whiteAlpha');
15+
border-top: 1px solid base.colors('whiteAlpha');
1616
}
1717

1818
.row {
@@ -22,7 +22,7 @@
2222
min-height: 2em;
2323

2424
&:not(:first-of-type) {
25-
margin-top: functions.pix-to-rem(4);
25+
margin-top: base.pix-to-rem(4);
2626
}
2727

2828
> dt {

src/components/Molecule/TheMobileFooter/index.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
.footer {
22
padding: 3em 5em 1em;
3-
font-size: functions.type-scale('body');
4-
font-weight: functions.type-weight('body');
5-
color: functions.colors('white');
6-
background-color: functions.colors('inverted');
3+
font-size: base.type-scale('body');
4+
font-weight: base.type-weight('body');
5+
color: base.colors('white');
6+
background-color: base.colors('inverted');
77
}
88

99
.copy {
10-
padding: functions.type-scale('body') 0;
11-
margin-top: functions.type-scale('body');
12-
font-size: functions.type-scale('caption');
13-
font-weight: functions.type-weight('caption');
10+
padding: base.type-scale('body') 0;
11+
margin-top: base.type-scale('body');
12+
font-size: base.type-scale('caption');
13+
font-weight: base.type-weight('caption');
1414
text-align: center;
15-
border-top: 1px solid functions.colors('whiteAlpha');
15+
border-top: 1px solid base.colors('whiteAlpha');
1616
}
1717

1818
.rowMobile {
@@ -23,7 +23,7 @@
2323
min-height: 2em;
2424

2525
&:not(:first-of-type) {
26-
margin-top: functions.pix-to-rem(8);
26+
margin-top: base.pix-to-rem(8);
2727
}
2828

2929
> dt {

src/components/Organism/BindNavigation/index.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
left: 1.2em;
88
}
99

10-
font-size: functions.type-scale('subtitle');
11-
font-weight: functions.type-weight('subtitle');
10+
font-size: base.type-scale('subtitle');
11+
font-weight: base.type-weight('subtitle');
1212

1313
&.isActive {
14-
color: functions.colors('accent');
14+
color: base.colors('accent');
1515
}
1616

1717
.icon {

src/components/Template/BaseLayout/index.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
height: 90vh;
1212
margin: 0 auto;
1313
padding: {
14-
right: functions.pix-to-rem(16);
14+
right: base.pix-to-rem(16);
1515
bottom: 5vh;
16-
left: functions.pix-to-rem(16);
16+
left: base.pix-to-rem(16);
1717
}
1818

1919
.nav {
2020
margin: {
21-
top: functions.pix-to-rem(16);
21+
top: base.pix-to-rem(16);
2222
}
2323
}
2424
}

src/layouts/default.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.root {
2-
background-color: functions.colors('background');
2+
background-color: base.colors('background');
33
}
44

55
@mixin flash-animation {
@@ -16,7 +16,7 @@
1616

1717
@keyframes flashA {
1818
0% {
19-
background-color: functions.colors('background');
19+
background-color: base.colors('background');
2020
}
2121

2222
100% {
@@ -26,7 +26,7 @@
2626

2727
@keyframes flashB {
2828
0% {
29-
background-color: functions.colors('background');
29+
background-color: base.colors('background');
3030
}
3131

3232
100% {

0 commit comments

Comments
 (0)