-
Notifications
You must be signed in to change notification settings - Fork 56
/
custom.scss
154 lines (127 loc) · 2.78 KB
/
custom.scss
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
.main-content {
// External links
a[href]:not(:where(
/* exclude hash only links */
[href^="#"],
/* exclude relative links */
[href^="/"],
/* domains to exclude */
[href*="://machinetranslate.org"],
[href*="://localhost:"],
[class="no-arrow"],
)):after {
/* ↗️ is too ugly on iOS and Firefox, so we hack it. */
content: '→';
transform: rotate(-45deg);
display: inline-block;
padding-left: 0.2em;
font-weight: lighter;
}
// all links
a {
white-space: pre-wrap;
}
blockquote {
background-color: $grey-lt-000;
padding: 0.1em;
padding-left: 2em;
padding-right: 1em;
overflow-wrap: anywhere;
}
}
h1, h2, h3, h4, h5 {
background: -webkit-linear-gradient(45deg, $btn-primary-color, #ed7f78, $btn-primary-color, #71150f);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
h1 code, h2 code, h3 code, h4 code, h5 code {
-webkit-text-fill-color: $btn-primary-color;
}
h1, .text-alpha {
font-weight: 500;
}
button {
background-color: white;
color: $btn-primary-color;
border-radius: 3px;
padding: 0.5em;
border: 1px solid $btn-primary-color;
cursor: pointer;
font-weight: 500;
}
button:hover, button:active, button:focus {
color: white;
background-color: $btn-primary-color;
border-color: white;
}
// Hide 'Just the Docs' branding
.site-footer {
display: none;
}
.site-logo {
width: 50px;
}
.site-title {
padding-left: 0em;
padding-right: 0em;
}
// Icons for other platforms
.social-links {display: inline-block; vertical-align: middle; }
.social-links:after {content: ""; display: block; clear: both;}
.social-links > a {
position: relative;
text-align: left;
height: 64px;
width: 64px;
float: left;
text-align: center;
}
.social-links > a > svg {
height: 40px;
fill: $btn-primary-color;
margin-top: 16px;
}
footer .social-links > a > svg {
height: 20px;
fill: #d5d5d5;
margin-top: 8px;
}
footer .social-links > a {
position: relative;
text-align: left;
height: 36px;
width: 32px;
float: left;
text-align: center;
}
.social-links > a:hover {cursor: pointer;}
.social-links > a.github:hover > svg {fill: #171515;}
.social-links > a.facebook:hover > svg {fill: #3B5998;}
.social-links > a.twitter:hover > svg {fill: #55ACEE;}
.social-links > a.linkedin:hover > svg {fill: #0077b5;}
// Muted text
.hint {
font-size: small;
color: lightgray;
}
// For twirldowns
summary::marker {
color: $btn-primary-color;
font-size: x-large;
}
details[open] summary .preview {
display: none;
}
details[open] ul {
animation: animateDown 0.5s linear forwards;
}
@keyframes animateDown {
0% {
opacity: 0;
transform: translatey(-15px);
}
100% {
opacity: 1;
transform: translatey(0);
}
}