This repository has been archived by the owner on Nov 18, 2020. It is now read-only.
forked from proglangdesign/proglangdesign.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
125 lines (107 loc) · 3.17 KB
/
style.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
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
* { position: relative; margin: 0; padding: 0; box-sizing: border-box; }
body { width: 75%; min-height: 100vh; margin: 0 auto; padding-bottom: 100px; color: #444; background-color:white;}
:root { font-size: 16px; font-family: monospace; }
header {
display: flex;
justify-content: space-between;
padding: 10px 0;
max-width: 960px;
margin: 0 auto;
}
#pagelink {
/* needed to make the $ the right color */
color: #805AC3;
}
h1, h2 {
color: black;
}
header nav {
display: flex;
align-items: center;
justify-content: flex-end;
}
header nav a { margin-left: 20px; }
header nav h2 { font-size: 2em; }
#hero {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 960px;
margin: 40px auto;
}
#hero h1 { font-size: 4rem; max-width: 640px; }
#hero nav {
display: flex;
flex-direction: column;
width: 75%;
margin-left: 30px;
}
#hero nav h2 { font-size: 2rem; }
section { max-width: 960px; margin: 0 auto; }
#projects { display: flex; flex-wrap: wrap; padding-bottom: 25px; }
#projects h2 { width: 100%; color: #444;}
.project { width: 25%; min-width: 200px; padding: 20px 10px; }
.project img { display: inline-block; width: 1.5em; height: 1.5em; }
.project h3 { display: inline-block; font-size: 1.5em; }
.project a:hover { text-decoration: none; }
.project h3:hover { text-decoration: underline; }
.shell { text-transform: lowercase; font-family: monospace; }
.shell:before { content: "$ "; }
ul { margin: 20px; }
#irc li { list-style-type: none; }
.shell-list li:before { content: "$ "; font-family: monospace; }
li { padding: 3px 0; }
p { padding: 10px 0; }
p, li { max-width: 75ch; font-family: sans-serif; }
section > h2, section > h3 { padding-top: 15px; padding-bottom: 5px; }
.button {
background-color: #805AC3;
margin: 10px 0;
padding: 10px;
background-position: calc(100% - 5px) center;
background-repeat: no-repeat;
background-size: 30px auto;
color: white;
}
.button.discord { background-image: url(images/discord.svg); }
.button.reddit {
background-image: url(images/reddit.svg);
background-size: auto 25px;
}
.button.irc {
background-image: url(images/irc.svg);
background-size: 20px;
background-position-x: calc(100% - 8px);
}
a { color: #805AC3; text-decoration: none; }
a:hover { text-decoration: underline; }
span.author, cite { display: block; font-style: italic; margin-bottom: 5px; }
span.author:before { font-style: normal; content: "by "; }
@media (max-width: 960px) {
header h1 { font-size: 1.25rem; }
#hero { flex-direction: column; }
#hero h1 { font-size: 3rem; text-align: center; margin-bottom: 30px; }
#hero h2 { text-align: center; }
#hero nav { margin-left: 0; }
#projects { justify-content: center; }
#projects h2 { text-align: center; }
}
@media (max-width: 720px) {
body { width: 90%; }
header { flex-direction: column; padding: 10px 0; }
header h1 { text-align: center; }
header nav { justify-content: center; margin-top: 10px; }
header nav a:first-child { margin: 0; }
}
@media (max-width: 360px) {
#hero h1 { font-size: 2rem; }
}
header h2::after {
content: "_";
animation: blinker 1.75s step-start infinite;
}
@keyframes blinker {
30% {
opacity: 0;
}
}