-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy paththeme.css
160 lines (135 loc) · 4.61 KB
/
theme.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/* base variables */
/* Edit the CSS properties in this file to create a custom
Distill theme. Only edit values in the right column
for each row; values shown are the CSS defaults.
To return any property to the default,
you may set its value to: unset
All rows must end with a semi-colon. */
/* Optional: embed custom fonts here with `@import` */
/* This must remain at the top of this file. */
@import url('https://fonts.googleapis.com/css2?family=Lato');
@import url('https://fonts.googleapis.com/css2?family=Fira+Mono');
@import url('https://fonts.googleapis.com/css2?family=Montserrat');
html {
/*-- Main font sizes --*/
--title-size: 50px;
--body-size: 1.0rem; /* edited */
--code-size: 0.9rem; /* edited */
--aside-size: 12px;
--fig-cap-size: 13px;
/*-- Main font colors --*/
--title-color: #000000;
--heading-color: rgba(0, 0, 0, 0.8);
--body-color: #383838; /* edited */
--aside-color: rgba(0, 0, 0, 0.6);
--fig-cap-color: rgba(0, 0, 0, 0.6);
/*-- Specify custom fonts ~~~ must be imported above --*/
--heading-font: 'Lato', sans-serif; /* edited */
--mono-font: 'Fira Mono', monospace; /* edited */
--body-font: 'Lato', sans-serif; /* edited */
--navbar-font: 'Montserrat', sans-serif; /* edited */
}
/*-- ARTICLE METADATA --*/
d-byline {
--heading-size: 0.6rem;
--heading-color: rgba(0, 0, 0, 0.5);
--body-size: 0.8rem;
--body-color: rgba(0, 0, 0, 0.8);
}
/*-- ARTICLE TABLE OF CONTENTS --*/
.d-contents {
--heading-size: 18px;
--contents-size: 13px;
}
/*-- ARTICLE APPENDIX --*/
d-appendix {
--heading-size: 15px;
--heading-color: rgba(0, 0, 0, 0.65);
--text-size: 0.8em;
--text-color: rgba(0, 0, 0, 0.5);
}
/*-- WEBSITE HEADER + FOOTER --*/
/* These properties only apply to Distill sites and blogs */
.distill-site-header {
--title-size: 20px; /* edited */
--text-color: #FFFFFF; /* edited */
--text-size: 20px; /* edited */
--hover-color: #383838; /* edited */
--bkgd-color: rgb(249, 83, 85); /* edited */
}
.distill-site-footer {
--text-color: rgba(255, 255, 255, 0.8);
--text-size: 15px;
--hover-color: white;
--bkgd-color: #0F2E3D;
}
/*-- Additional custom styles --*/
.posts-list .metadata .publishedDate {
color: rgb(249, 83, 85);
}
d-article p code {
color: #383838;
background: rgba(249, 83, 85, 0.1);
font-weight: 400;
font-size: 0.9em;
}
d-article a {
border-bottom: 2px solid rgba(249, 83, 85, 0.4);
text-decoration: none;
}
.distill-site-header .title {
font-weight: 600;
}
ul > li::marker {
color: rgb(249, 83, 85);
}
/*-- Change links on postcard --*/
.btn-outline-dark {
background-color: transparent;
color: rgba(249, 83, 85, 1.0);
border: 1px solid;
border-color: rgba(249, 83, 85, 1.0);
}
.btn-outline-dark:hover {
background-color: rgba(249, 83, 85, 1.0);
border-color: rgba(249, 83, 85, 1.0);
color: white;
}
/*-- animated hand wave --*/
/* credit here: https://jarv.is/notes/css-waving-hand-emoji/ */
.wave {
animation-name: wave-animation; /* Refers to the name of your @keyframes element below */
animation-duration: 2.5s; /* Change to speed up or slow down */
animation-iteration-count: infinite; /* Never stop waving :) */
transform-origin: 70% 70%; /* Pivot around the bottom-left palm */
display: inline-block;
}
@keyframes wave-animation {
0% { transform: rotate( 0.0deg) }
10% { transform: rotate(14.0deg) } /* The following five values can be played with to make the waving more or less extreme */
20% { transform: rotate(-8.0deg) }
30% { transform: rotate(14.0deg) }
40% { transform: rotate(-4.0deg) }
50% { transform: rotate(10.0deg) }
60% { transform: rotate( 0.0deg) } /* Reset for the last half to pause */
100% { transform: rotate( 0.0deg) }
}
/* styling for icon-link buttons (see distilltools::icon_link()) */
/* adapted from Ella Kaye */
.icon-link {
background-color: transparent;
color: rgba(249, 83, 85, 1.0);
border: 1px solid;
border-color: rgba(249, 83, 85, 1.0);
padding: 5px .4rem 5px .4rem;
/*margin: 4px;*/
margin-top: 4px;
margin-right: 8px;
margin-bottom: 4px;
border-radius: 5px; /* Rounded edges */
}
.icon-link:hover {
background-color: rgba(249, 83, 85, 1.0);
border-color: rgba(249, 83, 85, 1.0);
color: white;
}