-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
138 lines (132 loc) · 2.72 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
:root {
--yellow: #ffc600;
--black: #272727;
}
html {
/* border-box box model allows us to add padding and border to our elements without increasing their size */
box-sizing: border-box;
margin: 0;
padding: 0;
/* A system font stack so things load nice and quick! */
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-weight: 900;
font-size: 10px;
color: var(--black);
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
}
*,
*:before,
*:after {
box-sizing: inherit;
}
a {
text-decoration-color: rgb(162, 223, 251);
color: rgb(0, 0, 0);
}
a:hover {
color: rgb(90,90,90);
text-decoration: underline;
background-color: rgb(162, 225, 251);
}
a:visited {
color: rgb(90,90,90);
text-decoration: underline;
text-decoration-color: rgb(162, 223, 251);
}
.container {
/*margin: 0 auto;*/
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: 3;
grid-template-areas:
"header header header header"
". tags tags ."
"content content content content"
"footer footer footer footer"
;
grid-gap: 10px;
}
.header {
grid-area: header;
}
h1 {
grid-column: 1;
text-align: center;
font-size: 6em;
font-family: grad, serif;
text-decoration: underline;
text-decoration-color: rgb(162, 223, 251);
}
.tags {
grid-area: tags;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-end;
}
.tag {
border: 1px solid grey;
border-radius: 5px;
padding: 4px;
margin: 4px;
font-size: 1.2em;
font-weight: 150;
}
.tags div.active {
background-color: rgb(162, 223, 251);
}
article[data-status='show'] {
display: grid;
}
article[data-status='hide'] {
display: none;
}
.content {
grid-area: content;
display: grid;
grid-template-columns: repeat(auto-fill, 300px);
grid-template-rows: auto;
grid-gap: 15px;
justify-content: center;
}
article {
box-shadow: 3px 2px #888888;
/*box-shadow: 3px 2px rgb(90, 90, 90);*/
border-radius: 5px;
/*border: 2px solid grey;*/
/*border: 2px solid rgb(162, 223, 251);*/
border: 1px solid rgb(90, 90, 90);
height: 150px;
display: grid;
grid-template-columns: .5fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
grid-template-areas:
"icon title title"
"meta desc desc"
"meta desc desc"
}
article img.icon {
grid-area: icon;
margin-left: 10px;
margin-top: 10px;
}
article h2 {
grid-area: title;
font-size: 2em;
margin-right: 10px;
margin-bottom: 10px;
}
article .blurb {
grid-area: desc;
display: hidden;
overflow: hidden;
font-size: 1.4em;
font-weight: 300;
padding-right: 10px;
}
.footer {
grid-area: footer;
text-align: center;
font-size: 1.2em;
}