-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
77 lines (68 loc) · 1.33 KB
/
styles.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
:root {
--bg_colour: white;
--text_colour: #2f2f33;
--bookmarklet_colour: orange;
--bookmarklet_shadow: #976100;
--bookmarklet_version_colour: gray;
}
@media (prefers-color-scheme: dark) {
:root {
--bg_colour: #2f2f33;
--text_colour: white;
}
}
html {
background-color: var(--bg_colour);
color: var(--text_colour);
font-family: sans-serif;
}
body {
max-width: calc(100% - 20vw);
margin: 0 auto;
}
h1, h2, h3, h4, h5, h6 {
font-family: Times;
}
h1 {
text-align: center;
margin: 50px 0;
}
.bookmarklet {
background-color: var(--bookmarklet_colour);
margin: 10px 5px;
padding: 10px 20px 10px 40px;
border-radius: 10px;
color: white;
text-decoration: none;
font-family: sans-serif;
display: inline-block;
cursor: grab;
box-shadow: 5px 5px var(--bookmarklet_shadow);
position: relative;
}
.bookmarklet:active {
cursor: grabbing;
}
.bookmarklet_version {
display: inline-block;
font-size: 10px;
background: var(--bookmarklet_version_colour);
padding: 2px 8px;
border-radius: 10px;
margin-left: 5px;
}
.bookmarklet_docs {
position: absolute;
top: -10px;
right: -10px;
width: 30px;
height: 30px;
background-color: grey;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
border: none;
cursor: pointer;
fill: var(--text_colour);
}