-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
139 lines (118 loc) · 2.42 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
@font-face {
font-family: 'SalesforceSans';
src:
url('/fonts/salesforce/woff/SalesforceSans-Book.woff2') format('woff2'),
url('/fonts/salesforce/woff/SalesforceSans-Book.woff') format('woff');
font-display: swap;
font-style: normal;
font-weight: 400;
}
@font-face {
font-family: 'SalesforceSans';
src:
url('/fonts/salesforce/woff/SalesforceSans-Semibold.woff2') format('woff2'),
url('/fonts/salesforce/woff/SalesforceSans-Semibold.woff') format('woff');
font-display: swap;
font-style: medium;
font-weight: 500;
}
@font-face {
font-family: 'Fira Code';
src:
url('/fonts/firacode/woff2/FiraCode-Regular.woff2') format('woff2'),
url('/fonts/firacode/woff/FiraCode-Regular.woff') format('woff');
font-display: swap;
font-style: normal;
font-weight: 400;
}
:root {
--background-color-mid: rgba(0, 0, 0, 0.05);
}
@media (prefers-color-scheme: dark) {
:root {
--background-color-mid: rgba(255, 255, 255, 0.2);
}
}
body {
font-family: SalesforceSans;
}
h1,
h2 {
font-size: 2em;
letter-spacing: 0.05em;
line-height: 1.36em;
text-align: center;
text-wrap: balance;
}
h1,
.colorful {
-webkit-background-clip: text;
-webkit-box-decoration-break: clone;
-webkit-text-fill-color: transparent;
background-clip: text;
background-image: linear-gradient(to right, #5e9fff, #c084fc, #e879f9);
box-decoration-break: clone;
text-transform: uppercase;
filter: drop-shadow(rgb(0, 0, 0, 0.8) 1px 1px 1px);
}
h2 {
font-size: 1.5em;
}
a {
color: #5e9fff;
text-decoration: underline;
text-decoration-color: rgba(94, 159, 255, 0.5);
}
div.code-container {
padding: 12px 0;
border-radius: 20px;
}
code {
font-family: 'Fira Code', monospace;
}
p code,
li > code,
li a > code,
ul > code {
border-radius: 6px;
margin: 0 -1px;
overflow-wrap: anywhere;
padding: 0 3px;
}
p,
pre,
ul,
ol {
margin: 0.5em;
}
li:first-child {
margin-top: 0;
}
li:last-child {
margin-bottom: 0;
}
li::marker {
color: #c084fc;
}
table {
border-collapse: collapse;
border-spacing: 0;
vertical-align: middle;
}
table.comparison {
font-size: 0.6em;
}
table.comparison td {
text-align: center;
padding: 4px;
}
table.comparison thead {
text-transform: uppercase;
border-bottom: 1px solid var(--background-color-mid);
}
table.comparison tbody tr:nth-child(2n) {
background-color: var(--background-color-mid);
}
table.comparison tbody tr td:first-child {
font-weight: bold;
}