-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
143 lines (120 loc) · 1.96 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
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
:root {
--bg-color: #ffffff;
--text-color: #000000;
}
[data-theme = "dark"] {
--bg-color: rgb(13, 17, 23);
--text-color: rgb(201, 209, 217);
--anchor: #3ff7f7;
}
*, *::after, *::before {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0;
}
html {
font-family: 'Courier Prime', monospace;
background: var(--bg-color);
color: var(--text-color);
}
body {
line-height: 1.5;
}
.container {
display: flex;
flex-direction: column;
min-height: 100vh;
max-width: 80ch;
margin: 0 auto;
}
.header {
margin-top: 3em;
}
.main {
flex-grow: 1;
}
.title {
font-size: 3em;
}
.writeup {
line-height: 2;
font-size: 2em;
margin: 2em 0;
}
/* Cards styles */
.cards {
display: grid;
grid-gap: 1em;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
height: auto;
}
.card {
background-color: #041b27;
display: flex;
flex-direction: column;
justify-content: flex-start;
box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.3);
border-radius: 3px;
}
.card .card-header {
font-size: 1.75em;
font-weight: 500;
width: 100%;
min-height: 3em;
display: flex;
justify-content: center;
align-items: center;
background-color: hsl(0deg 91% 25%);
/* opacity: 0.7; */
}
.card .card-body {
display: flex;
flex-direction: column;
padding: 1em;
line-height: 2;
}
.social {
word-spacing: 1ch;
}
.footer {
min-height: 5em;
margin-top: 2em;
}
/*** Elements ***/
a {
color: var(--anchor, -webkit-link);
}
/*** Helper classes ***/
.centered {
text-align: center;
}
.margin-lr-auto {
margin-left: auto;
margin-right: auto;
}
.margin-tb-1x {
margin-top: 1em;
margin-bottom: 1em;
}
.margin-t-1x {
margin-top: 1em;
}
.margin-b-1x {
margin-bottom: 1em;
}
.padding-lr-1x {
padding-left: 1em;
padding-right: 1em;
}
/*** Media Queries ***/
@media screen and (max-width: 550px) {
.title {
font-size: 2em;
}
}
@media screen and (max-width: 450px) {
.title {
font-size: 1.8em;
}
}