-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.css
More file actions
149 lines (130 loc) · 2.88 KB
/
app.css
File metadata and controls
149 lines (130 loc) · 2.88 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
/* Palette available to all! */
:root {
/* Greyscale */
--off-white: #fff;
--light-grey: #e2e1e0;
--grey: #777;
--off-black: #333;
/* Shadows */
--black-shadow-light: rgba(0, 0, 0, 0.15);
--black-shadow-mid: rgba(0, 0, 0, 0.5);
--black-shadow-heavy: rgba(0, 0, 0, 0.85);
/* Color Scale */
--green: #6eb01b;
--light-green: #79c01c;
}
* {
font-family: 'Open Sans', sans-serif;
}
body {
min-width: 200px;
margin: 0;
padding-bottom: 120px;
background: var(--light-grey);
transition: background ease 300s; /*you are dust, and to dust you shall return*/
}
body:hover {
background: var(--off-black);
}
h1,
h2 {
margin-top: 0;
}
h1 {
font-size: 2.75em;
}
p > a {
color: var(--green);
}
p > a:focus,
p > a:hover {
color: var(--off-white);
background: linear-gradient(var(--green), var(--light-green));
border-radius: 3px;
outline: none;
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
#title {
/* No need to mask when you can overlay one with the background-image */
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)),
url(avatar.jpg);
background-size: 100%;
background-position-y: 50%;
}
.tile {
position: relative;
min-width: 140px;
width: 300px;
min-height: 100px;
max-height: 300px;
overflow-x: hidden;
overflow-y: scroll;
padding: 1em;
margin: 1em;
border-radius: 2px;
background: var(--off-white);
/* Double box shadow adds up to same shadow */
/* box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23); */
box-shadow: 0 3px 6px var(--black-shadow-mid);
}
@media (max-width: 742px) {
.tile {
max-height: none;
overflow-y: hidden;
}
}
.tile:hover {
box-shadow: 0 14px 28px var(--black-shadow-light), 0 10px 10px var(--black-shadow-light);
transition: box-shadow ease 0.3s;
}
footer {
display: flex;
justify-content: space-between;
position: fixed;
bottom: 0;
max-height: 8rem;
left: 0;
right: 0;
background-color: var(--off-white);
border: 1px solid var(--light-grey);
box-shadow: 0 -10px 20px var(--black-shadow-light), 0 -6px 6px var(--black-shadow-light);
}
.tile li,
footer li {
display: inline-block;
}
.tile ul,
footer ul {
display: flexbox;
flex-flow: row;
flex-wrap: wrap;
padding-left: 0;
margin: 0;
list-style: none;
}
/*
Originally, when you hovered over a block, you could not actually click the block.
I made the links the focus of the highlight and display properties to avoid confusion and user error.
*/
.tile li a,
footer li a {
display: inherit;
padding: 0.5rem;
margin: 0.5rem;
background: var(--grey);
border-radius: 3px;
box-shadow: 0 0 3px var(--grey);
color: var(--off-white);
}
.tile a:focus,
.tile a:hover,
footer a:focus,
footer a:hover {
color: var(--off-white);
background: linear-gradient(var(--green), var(--light-green));
outline: none;
}