Skip to content

Commit e120fed

Browse files
committed
change scss
1 parent b78a91b commit e120fed

25 files changed

Lines changed: 113 additions & 151 deletions

_styles/-theme.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,23 @@
33

44
// colors
55
[data-dark="false"] {
6-
--primary: #0795d9;
6+
--primary: #0ea5e9;
77
--secondary: #7dd3fc;
88
--text: #000000;
99
--background: #ffffff;
1010
--background-alt: #fafafa;
1111
--light-gray: #e0e0e0;
1212
--gray: #808080;
13-
--dark-gray: #404040;
1413
--overlay: #00000020;
1514
}
1615
[data-dark="true"] {
17-
--primary: #0795d9;
16+
--primary: #0ea5e9;
1817
--secondary: #075985;
1918
--text: #ffffff;
2019
--background: #181818;
2120
--background-alt: #1c1c1c;
2221
--light-gray: #404040;
2322
--gray: #808080;
24-
--dark-gray: #b0b0b0;
2523
--overlay: #ffffff10;
2624
}
2725

@@ -33,6 +31,7 @@
3331
--code: "Roboto Mono", monospace;
3432

3533
// font sizes
34+
--medium: 1rem;
3635
--large: 1.2rem;
3736
--xl: 1.4rem;
3837
--xxl: 1.6rem;
@@ -45,10 +44,8 @@
4544

4645
// text line spacing
4746
--spacing: 2;
48-
--compact: 1.5;
4947

5048
// effects
5149
--rounded: 3px;
5250
--shadow: 0 0 10px 0 var(--overlay);
53-
--transition: 0.2s ease;
5451
}

_styles/alert.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
font-size: var(--large);
2929
}
3030

31-
.alert-content > :first-child {
31+
.alert-content > *:first-child {
3232
margin-top: 0;
3333
}
3434

35-
.alert-content > :last-child {
35+
.alert-content > *:last-child {
3636
margin-bottom: 0;
3737
}

_styles/all.scss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
---
22
---
33

4-
*,
5-
::before,
6-
::after {
4+
* {
75
box-sizing: border-box;
8-
-moz-text-size-adjust: none;
9-
-webkit-text-size-adjust: none;
10-
text-size-adjust: none;
6+
transition: none 0.2s;
117
}

_styles/anchor.scss

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@
44
.anchor {
55
display: inline-block;
66
position: relative;
7-
top: -0.15em;
8-
left: 0.5em;
97
width: 0;
10-
margin: 0 !important;
8+
margin: 0;
9+
left: 0.5em;
1110
color: var(--primary) !important;
1211
opacity: 0;
13-
font-size: 0.75em !important;
12+
font-size: 0.75em;
1413
text-decoration: none;
15-
transition: opacity var(--transition), color var(--transition);
14+
transition-property: opacity, color;
1615
}
1716

18-
:hover > .anchor,
17+
*:hover > .anchor,
1918
.anchor:focus {
2019
opacity: 1;
2120
}

_styles/body.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
---
22
---
33

4+
html,
45
body {
5-
display: flex;
6-
flex-direction: column;
76
margin: 0;
87
padding: 0;
98
min-height: 100vh;
109
background: var(--background);
1110
color: var(--text);
1211
font-family: var(--body);
12+
}
13+
14+
body {
15+
display: flex;
16+
flex-direction: column;
1317
text-align: center;
14-
line-height: var(--compact);
1518
}

_styles/button.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,20 @@ button {
1616
gap: 10px;
1717
max-width: calc(100% - 5px - 5px);
1818
margin: 5px;
19-
padding: 8px 15px;
19+
padding: 10px 15px;
2020
border: none;
2121
border-radius: var(--rounded);
2222
background: var(--primary);
2323
color: var(--background);
2424
text-align: center;
25-
font: inherit;
2625
font-family: var(--heading);
2726
font-weight: var(--semi-bold);
27+
line-height: 1;
2828
text-decoration: none;
2929
vertical-align: middle;
30+
-webkit-appearance: none;
3031
appearance: none;
31-
transition: background var(--transition), color var(--transition);
32+
transition-property: background, color;
3233
}
3334

3435
.button:hover {

_styles/card.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
padding: 20px;
3838
}
3939

40-
.card-text > * {
41-
margin: 0 !important;
40+
.card-text > *,
41+
.card-text > .tags {
42+
margin: 0;
4243
}
4344

4445
.card-title {
@@ -47,6 +48,6 @@
4748
}
4849

4950
.card-subtitle {
50-
margin-top: -10px !important;
51+
margin-top: -15px;
5152
font-style: italic;
5253
}

_styles/citation.scss

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@
44
$thumb-size: 180px;
55
$wrap: 800px;
66

7-
.citation-container {
8-
container-type: inline-size;
9-
}
10-
117
.citation {
128
display: flex;
13-
margin: 20px 0;
9+
margin: 15px 0;
1410
border-radius: var(--rounded);
1511
background: var(--background);
1612
overflow: hidden;
@@ -36,7 +32,7 @@ $wrap: 800px;
3632
position: relative;
3733
display: inline-flex;
3834
flex-wrap: wrap;
39-
gap: 10px;
35+
gap: 15px;
4036
max-width: 100%;
4137
height: min-content;
4238
padding: 20px;
@@ -51,6 +47,7 @@ $wrap: 800px;
5147
.citation-details,
5248
.citation-description {
5349
width: 100%;
50+
line-height: calc(var(--spacing) - 0.4);
5451
}
5552

5653
.citation-title {
@@ -67,10 +64,6 @@ $wrap: 800px;
6764
z-index: -1;
6865
}
6966

70-
.citation-publisher {
71-
text-transform: capitalize;
72-
}
73-
7467
.citation-description {
7568
color: var(--gray);
7669
}
@@ -91,7 +84,7 @@ $wrap: 800px;
9184
margin: 0;
9285
}
9386

94-
@container (max-width: #{$wrap}) {
87+
@media (max-width: $wrap) {
9588
.citation {
9689
flex-direction: column;
9790
}

_styles/code.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ code.highlighter-rouge {
1313
padding: 2px 6px;
1414
background: var(--light-gray);
1515
border-radius: var(--rounded);
16+
line-height: calc(var(--spacing) - 0.2);
1617
}
1718

1819
// code block
@@ -23,6 +24,7 @@ div.highlighter-rouge {
2324
overflow-x: auto;
2425
overflow-y: auto;
2526
text-align: left;
27+
line-height: calc(var(--spacing) - 0.4);
2628

2729
div.highlight {
2830
display: contents;

_styles/cols.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ $one: 500px;
1818
min-height: 0;
1919
}
2020

21-
.cols > div > :first-child {
21+
.cols > div > *:first-child {
2222
margin-top: 0 !important;
2323
}
2424

25-
.cols > div > :last-child {
25+
.cols > div > *:last-child {
2626
margin-bottom: 0 !important;
2727
}
2828

0 commit comments

Comments
 (0)