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
|
html,body {
padding: 0;
margin: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-family: sans-serif;
font-weight: 300;
text-align: center;
background: #fff;
}
body.about,
body.entry,
body.submit {
overflow: hidden;
}
a {
color: #2947f3
}
#header {
width: 100%;
margin: 0;
background: #fff;
padding: 10px;
box-shadow: 0 5px 10px #ddd;
}
h1, h2 {
font-weight: 300;
}
#about, #entry, #submit {
position: fixed;
top: 0; left: 0;
width: 100%;
height: 100%;
pointer-events: none;
opacity: 0;
background: rgba(105,135,195,0.8);
transition: opacity 0.2s;
cursor: pointer;
}
.inner {
cursor: normal;
position: absolute;
top: 50%; left: 50%;
min-width: 400px;
max-width: 80vw;
height: 80vh;
padding: 10px;
transform: translate3d(-50%, -50%, 0);
background: #fff;
}
.about #about,
.entry #entry,
.submit #submit {
opacity: 1;
pointer-events: auto;
}
.cell {
display: inline-block;
width: 24vw;
height: 23vw;
color: white;
cursor: pointer;
background-size: cover;
background-position: center center;
position: relative;
}
.cell .title {
position: absolute;
top: 50%; left: 50%;
transform: translate3d(-50%, -50%, 0);
text-transform: uppercase;
font-weight: bold;
text-align: center;
font-size: 20px;
color: black;
background: white;
padding: 5px;
}
.desktop .cell {
opacity: 0.9;
transition: opacity 0.2s;
}
.desktop .cell:hover {
opacity: 1;
}
.media {
width: 100%;
max-height: 50vh;
}
.content {
text-align: left;
padding: 20px 50px;
line-height: 1.5;
}
.cell:nth-child(2n+1) { background-color: #4f658e; }
.cell:nth-child(2n+2) { background-color: #7a7067; }
.close {
position: absolute;
top: 10px;
right: 10px;
padding: 5px;
font-size: 24px;
color: white;
background: black;
border: 2px solid;
cursor: pointer;
}
@media (max-width: 700px) {
.cell {
width: 100vw;
height: 20vh;
}
}
|