generated from kevin-powell/JAMStack-blog-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
129 lines (104 loc) · 1.81 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
:root {
--codefont: "Jetbrains Mono", monospace;
--contfont: 'Arimo', sans-serif;
--contsize: 16px;
}
body {
background: url("assets/bg.jpg");
font-family: 'Arimo', sans-serif;
font-size: 16px;
max-width: 850px;
margin: auto;
line-height: 1.6;
}
hr {
margin: 0px 20px;
}
.myblog {
font-family: var(--codefont);
font-size: 64px;
text-align : center;
font-weight: 400;
margin: 10px;
}
.link {
text-decoration: none;
}
.card {
margin-bottom: 35px;
color: black;
margin: 20px;
}
.cardheader {
font-size: 22px;
}
.carddesc {
margin-top: -15px;
}
.arthead {
/* Article Header */
margin: 20px;
font-family: var(--codefont);
font-size: 38px;
text-align: center;
font-weight: 400;
margin: 10px;
}
/* For the code */
code,
pre,
blockquote {
background: #f2f2f2;
}
pre,
blockquote {
border-left: 2px solid #28a5da !important;
border: 1px solid transparent;
}
blockquote {
padding-left: 10px;
}
code {
padding: 2px 4px;
vertical-align: text-bottom;
font-family: var(--codefont);
}
pre {padding: 1em;}
blockquote:nth-child(even) {
background-color: rgba(0, 0, 0, 0.05);
}
.back {
/* For the back button in article */
font-family: var(--contfont);
margin: 20px;
text-decoration: none;
}
.options {
text-align: center;
margin: auto;
font-family: var(--contfont);
}
img {max-width: 200px;}
h1 {font-size: 32px;}
/* For dark mode */
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
}
body {
background: #2E3440;
color: #f2f2f2;
}
pre, code, blockquote {
background-color: #15202b;
}
img {
filter: grayscale(40%);
}
}
/* For printer */
@media print {
.back {
display: none;
}
}