about summary refs log tree commit diff
path: root/served/styles/home.css
blob: be276b2062a09c163039d94759cf9b2ccf089064 (plain)
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
194
body {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

main,
header {
	max-width: 35rem;
	margin: 0 auto;
}

header {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	row-gap: 1rem;
}

header img {
	width: 96px;
	height: 96px;
	margin-top: 1.5em;
}

#contact a {
	text-decoration: none;
	color: var(--color-a);
	border-bottom: none;
}

#contact ul {
	line-height: normal;
	list-style: none;
	padding: 0;
	margin: 0;
}

#contact h2 {
	margin: 0;
}

#greeting {
	flex: 1 0 15rem;
}

#greeting h1 {
	margin-top: 0;
}

#notice {
	font-style: italic;
	text-align: center;
}

.thing-list {
	padding: 0.5rem 0;
	margin: 0;
	list-style-position: inside;
}

ul.thing-list {
	padding: 0;
	list-style: none;
}

section h2 {
	margin: 0;
}

ol,
ul.thing-list {
	line-height: 1.5;
}

#scrap {
	max-width: 25rem;
}

#changelog {
	margin: 0.5rem 1rem;
	padding: 1rem 0;
	border-top: 1px solid var(--text);
}

#changelog h2 {
	font-size: 1.5rem;
	margin-bottom: 0.25rem;
	display: inline-block;
}

#changelog h3 {
	font-size: 1rem;
	font-weight: normal;
	align-self: baseline;
	display: inline-block;
}

#changelog ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#changelog time {
	color: var(--text-dim);
	font-style: italic;
	margin-right: 0.5rem;
}

@media (min-width: 40rem) {
	main {
		padding: 1rem 0;
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 1rem;
		row-gap: 0.5rem;
	}

	#greeting {
		grid-column: 1 / 3;
	}

	#greeting p {
		max-width: 25rem;
	}

	p#notice {
		/* there's too much space without this. only on desktop. i think it's
		to do with the grid gap */
		margin-bottom: 0rem;
		max-width: 100%;
	}

	#scrap {
		width: 100%;
		/* a padding on desktop so it falls below the multimedia heading and
		looks like it's kind of part of that section even if maybe it's not */
		padding-top: 2.25rem;
		position: relative;
		padding-right: 1rem;
	}

	#scrap h2 {
		display: inline;
		margin: 0 0.5rem 0 0;
	}

	/* tried https://stackoverflow.com/a/68283780 but it didn't seem to want
	to work for right and bottom at the same time */
	#scrap-halfborder {
		position: absolute;
		right: 0;
		bottom: 0;

		z-index: -1;
		width: 50%;
		height: 50%;
		border: 1px solid var(--text);
		border-width: 0px 1px 1px 0px;
	}

	#writing-halfborder,
	#feed-halfborder {
		position: absolute;
		left: 0;
		top: 0;

		z-index: -1;
		width: 25%;
		height: min(50%, 2rem);
		border: 1px solid var(--text);
		border-width: 1px 0 0 1px;
	}

	#writing {
		padding-left: 1rem;
		padding-top: 1rem;
		position: relative;

		grid-column: 1 / 3;
	}

	#feed {
		position: relative;
		margin: 1rem 0 0 1rem;
		padding: 1rem 0 0 1rem;
		width: 15rem;
		float: right;
	}

	#changelog {
		grid-column: 1 / 3;
	}
}