Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
193 lines (169 loc) · 3.72 KB
/
Copy pathstyles.css
File metadata and controls
193 lines (169 loc) · 3.72 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/* start light mode styling */
:root {
--text: darkslategrey;
--border: lightgrey;
--accent: teal;
--bg: #4394f1;
--gradientTop: rgba(185, 215, 242, 0.8);
--gradientBottom: rgba(161, 186, 209, 0.8);
}
header {
background: url('***light mode banner image***');
}
/* end light mode styling */
/* start dark mode styling */
@media (prefers-color-scheme: dark) {
:root {
--text: white;
--border: #5a7678;
--accent: #74C365;
--bg: #9552e3;
--gradientBottom: #511fd0;
--gradientTop: #7b52e3;
a:link { color: lightblue; }
}
header {
background: url('./img/old-site.jpg');
}
}
/* end dark mode styling */
* {
box-sizing: border-box;
}
body {
padding: 10px;
font-family: 'MS PGothic', sans-serif;
color: var(--text);
/* page background pattern */
background-color: #9552e3;
background-image: url("./img/gplay.png"); /* https://www.transparenttextures.com/ gplay texture by https://dhesign.com/ */
}
.container {
max-width: 55rem;
margin: 5vw auto 12px auto;
border: 6px ridge var(--border);
outline: 3px solid var(--gradientTop);
outline-offset: 4px;
border-radius: 10px;
display: flex;
flex-wrap: wrap;
padding: 5px;
gap: 5px;
/* container background pattern */
background-color: var(--gradientBottom);
background-image: repeating-radial-gradient( circle at 0 0, transparent 0, var(--gradientBottom) 9px ), repeating-linear-gradient( var(--bg), var(--bg));
}
/* these control the column widths */
.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }
header {
background-size: cover;
background-position: center;
width: 100%;
height: 120px; /* change banner height here*/
border: 2px ridge var(--border);
border-radius: 5px;
position: relative;
}
header span {
font-size: 2.5rem;
position: absolute;
bottom: 0;
right: 10px;
margin: 10px;
font-weight: bold;
text-shadow: 1px 1px var(--text),
-1px 1px var(--text),
1px -1px var(--accent),
-1px -1px var(--accent);
color: var(--gradientTop);
}
nav {
border: 2px ridge var(--border);
border-radius: 5px;
padding: 5px;
background: linear-gradient(var(--gradientTop),var(--gradientBottom));
}
nav div {
text-align: center;
font-size: 1.25rem;
margin: 5px 5px 10px 5px;
}
nav a {
display: block;
margin: 5px;
background: linear-gradient(to right,var(--bg),var(--gradientBottom));
border-radius: 5px;
padding: 2px 7px;
text-decoration: none;
}
nav a:link, nav a:visited {
color: var(--text);
}
nav a:hover, nav a:focus {
background: linear-gradient(to right,var(--bg), var(--gradientBottom), var(--gradientTop));
}
/* optional button styling like in the preview */
div.small > img {
display: block;
margin: 5px auto;
border:2px ridge var(--border);
border-radius: 5px;
}
section {
border: 2px ridge var(--border);
border-radius: 5px;
background: linear-gradient(var(--gradientTop),var(--gradientBottom));
padding: 5px;
}
footer {
text-align: center;
margin-bottom: 5vw;
font-size: 0.8rem;
}
footer a {
text-decoration: none;
}
h1, h2, h3, h4, h5, h6, p {
margin: 5px;
line-height: 1.2;
}
h1 {
font-size: 1.4rem;
letter-spacing: 2px;
font-weight: normal;
text-align: center;
border-bottom: 2px ridge var(--border);
padding-bottom: 5px;
}
h2 {
font-size: 1.25rem;
font-weight: normal;
text-align: center;
}
h3 {
font-size: 1.1rem;
}
h4 {
font-size: 1rem;
color: var(--accent);
padding-left: 12px;
}
/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }
a:hover, a:focus {
font-style: italic;
}
a:visited {
color: var(--accent);
}
/* https://spencermortensen.com/articles/email-obfuscation/#text-display */
div.email > span:nth-child(5) {
display: none;
}
div.blurpleapp > span:nth-child(15) {
display: none;
}