-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.css
99 lines (84 loc) · 1.81 KB
/
main.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
/* Move edit on GitHub button to the top left */
.markdown-section>:first-child {
position: absolute;
left: 0;
top: -35px;
}
/* CSS related to increase font size */
.markdown-section>:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code {
font-size: 1rem;
}
.markdown-section>* {
font-size: 1.1rem;
}
.markdown-section pre {
padding: 0 0.7rem;
}
.sidebar ul li a {
font-size: 17px;
}
/* General page layout */
code {
white-space: pre-wrap !important;
background-color: #e9e9e9 !important;
}
.markdown-section pre {
background-color: #e9e9e9;
}
details {
background-color: #e9e9e9;
padding: 10px;
}
summary {
padding: 4px;
border: none;
cursor: pointer;
color: #2c3e50;
font-weight: 600;
}
/* Styling of picture caption (https://stackoverflow.com/a/30366422/5263954) */
/* Select all em elements, that are placed immediately after img elements */
img + em {
display: block;
}
/* Language selector */
.app-nav {
margin: 25px 100px 0 0;
top: 0;
}
#lang-selection {
padding: .375rem 1.75rem .375rem .75rem;
background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%232d3348' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px;
border-radius: .25rem;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
/* Back to top button */
.to-top{
cursor: pointer;
position: fixed;
background: #42b983;
color: white;
width: 40px;
height: 40px;
text-align: center;
font-size: 25px;
border-radius: 50%;
right: 7px;
bottom: 15px;
transition: background 0.5s;
z-index: 1;
}
.to-top:hover {
color: #42b983;
background: white;
}
/* Donate button */
.tc_tip_button {
background: #42b983;
color: white;
}
.tc_tip_button:hover {
opacity: 0.9;
}