-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
166 lines (139 loc) · 2.57 KB
/
style.css
File metadata and controls
166 lines (139 loc) · 2.57 KB
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
161
162
163
164
165
166
/*
* Basics
*/
:root {
background-color: var(--bg-color-primary);
background-image: linear-gradient( -20deg, var(--bg-color-primary), var(--bg-color-secondary));
box-shadow: 2rem 1rem 10rem 1rem var(--bg-color-tertiary) inset;
color: var(--main-color);
font-size: 20px;
line-height: 1.5rem;
font-family: sans-serif;
min-width: 100%;
min-height: 100%;
color-scheme: light dark;
/* Light mode colors */
--main-color: darkslateblue;
--bg-color-primary: palegoldenrod;
--bg-color-secondary: peachpuff;
--bg-color-tertiary: thistle;
--focus-color: lightsalmon;
}
@media (prefers-color-scheme: dark) {
:root {
/* Dark mode colors */
--main-color: lavender;
--bg-color-primary: darkslategray;
--bg-color-secondary: saddlebrown;
--bg-color-tertiary: darkslateblue;
--focus-color: mediumslateblue;
}
}
* {
box-sizing: border-box;
margin: 0;
}
:focus {
outline: 0;
}
:focus-visible {
outline: 0.25rem solid var(--focus-color);
}
a {
color: inherit;
text-decoration-style: dotted;
border-radius: 0.25rem;
}
a:hover {
text-decoration-style: solid;
}
body {
padding: 2rem;
display: flex;
flex-direction: column;
height: 100%;
}
/*
* Content
*/
main {
flex: 1;
}
.action,
.idea,
.footer {
width: 100%;
max-width: 36rem;
margin: 0 auto;
}
.action,
.idea {
margin-bottom: 2rem;
}
.randomize-button {
appearance: none;
cursor: pointer;
text-decoration: none;
color: currentcolor;
background-color: transparent;
height: auto;
margin: 0;
font: inherit;
border: 1.5px solid currentcolor;
box-shadow: 0 0.4rem 0 0 currentcolor;
padding: 0.75rem 1rem;
border-radius: 0.25rem;
font-weight: 400;
overflow-wrap: break-word;
display: flex;
align-items: center;
gap: 0.5rem;
}
.randomize-button:hover {
background-color: var(--focus-color);
}
.randomize-button:active {
/* Makes it look pressed down */
transform: translateY(0.125rem);
box-shadow: 0 calc(0.4rem - 0.125rem) 0 0 currentcolor;
}
.randomize-button svg {
fill: currentcolor;
width: 1.5rem;
height: 1.5rem;
}
.randomize-button label {
cursor: inherit;
}
.idea {
padding: 2rem;
border: 2.5px dotted currentColor;
border-radius: 1rem;
}
.idea-name {
font-size: 1.5rem;
font-weight: 600;
margin: 0 auto;
}
.idea-name,
.idea-description {
overflow-wrap: break-word;
}
.idea-description:not(:empty) {
margin: 1rem auto 0;
}
.footer {
font-size: 0.666rem;
}
@media (max-width: 600px) {
:root {
font-size: 18px;
}
body {
padding: 1.5rem;
}
.action,
.idea {
margin-bottom: 1.5rem;
}
}