Skip to content

Commit ad9dd6a

Browse files
chore: remove duplicate scss, (#17005)
Co-authored-by: Nick Schonning <nschonni@gmail.com>
1 parent 10022b1 commit ad9dd6a

7 files changed

Lines changed: 12 additions & 56 deletions

File tree

docs/.stylelintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"indentation": 4,
1515
"max-line-length": null,
1616
"no-descending-specificity": null,
17-
"no-duplicate-selectors": null,
1817
"number-leading-zero": null,
1918
"number-no-trailing-zeros": null,
2019
"selector-class-pattern": null,

docs/src/assets/scss/components/alert.scss

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
color: var(--color-rose-600);
1717

1818
[data-theme="dark"] & {
19+
border: 1px solid var(--color-rose-300);
1920
color: var(--color-rose-300);
2021
background-color: var(--color-rose-900);
2122
}
@@ -27,6 +28,7 @@
2728

2829
[data-theme="dark"] & {
2930
color: var(--color-warning-300);
31+
border: 1px solid var(--color-warning-300);
3032
background-color: var(--color-warning-900);
3133
}
3234
}
@@ -37,23 +39,8 @@
3739

3840
[data-theme="dark"] & {
3941
color: var(--color-success-300);
40-
background-color: var(--color-success-900);
41-
}
42-
}
43-
}
44-
45-
[data-theme="dark"] {
46-
.alert {
47-
&.alert--warning {
48-
border: 1px solid var(--color-rose-300);
49-
}
50-
51-
&.alert--important {
52-
border: 1px solid var(--color-warning-300);
53-
}
54-
55-
&.alert--tip {
5642
border: 1px solid var(--color-success-300);
43+
background-color: var(--color-success-900);
5744
}
5845
}
5946
}

docs/src/assets/scss/components/theme-switcher.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,3 @@
7575
}
7676
}
7777
}
78-
79-
.theme-switcher__button:hover {
80-
.theme-switcher__icon {
81-
color: var(--link-color);
82-
}
83-
}

docs/src/assets/scss/components/toc.scss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
.docs-toc {
22
margin: 2rem 0;
3-
}
4-
5-
.docs-toc {
6-
.docs-aside & {
7-
display: none;
8-
}
93

104
@media all and (min-width: 1400px) {
115
display: none;
126
}
137

148
.docs-aside & {
9+
display: none;
10+
1511
@media all and (min-width: 1400px) {
1612
display: block;
1713
}

docs/src/assets/scss/foundations.scss

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ html {
6262
}
6363

6464
body {
65+
font-size: var(--step-0);
6566
position: relative;
6667
margin: 0 auto;
6768
line-height: 1.5;
@@ -171,11 +172,6 @@ code {
171172
}
172173
}
173174

174-
p:empty {
175-
display: none;
176-
margin: 0;
177-
}
178-
179175
.c-icon {
180176
color: var(--icon-color);
181177
flex: none;
@@ -346,10 +342,6 @@ nav {
346342
}
347343

348344
/* typography */
349-
body {
350-
font-size: var(--step-0);
351-
line-height: 1.5;
352-
}
353345

354346
.eyebrow {
355347
color: var(--link-color);

docs/src/assets/scss/tokens/spacing.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@
66

77
--fluid-screen: 100vw;
88
--fluid-bp: calc((var(--fluid-screen) - var(--fluid-min-width) / 16 * 1rem) / (var(--fluid-max-width) - var(--fluid-min-width)));
9-
}
10-
11-
@media screen and (min-width: 1024px) {
12-
:root {
13-
--fluid-screen: calc(var(--fluid-max-width) * 1px);
14-
}
15-
}
169

17-
:root {
1810
--fc-3xs-min: (var(--fc-s-min) * 0.25);
1911
--fc-3xs-max: (var(--fc-s-max) * 0.25);
2012

docs/src/assets/scss/tokens/typography.scss

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
/* @link https://utopia.fyi/type/calculator?c=320,16,1.125,1280,16,1.25,6,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l */
22

3-
:root {
4-
--fluid-min-width: 320;
5-
--fluid-max-width: 1280;
6-
7-
--fluid-screen: 100vw;
8-
--fluid-bp: calc((var(--fluid-screen) - var(--fluid-min-width) / 16 * 1rem) / (var(--fluid-max-width) - var(--fluid-min-width)));
9-
}
10-
113
@media screen and (min-width: 1280px) {
124
:root {
135
--fluid-screen: calc(var(--fluid-max-width) * 1px);
146
}
157
}
168

179
:root {
10+
--fluid-min-width: 320;
11+
--fluid-max-width: 1280;
12+
13+
--fluid-screen: 100vw;
14+
--fluid-bp: calc((var(--fluid-screen) - var(--fluid-min-width) / 16 * 1rem) / (var(--fluid-max-width) - var(--fluid-min-width)));
15+
1816
--f--2-min: 12.64;
1917
--f--2-max: 10.24;
2018
--step--2: calc(((var(--f--2-min) / 16) * 1rem) + (var(--f--2-max) - var(--f--2-min)) * var(--fluid-bp));
@@ -50,9 +48,7 @@
5048
--f-6-min: 32.44;
5149
--f-6-max: 61.04;
5250
--step-6: calc(((var(--f-6-min) / 16) * 1rem) + (var(--f-6-max) - var(--f-6-min)) * var(--fluid-bp));
53-
}
5451

55-
:root {
5652
--mono-font: "Mono Punctuators", "Space Mono", monospace;
5753
--text-font:
5854
"Inter",

0 commit comments

Comments
 (0)