-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathstylesheet.css
145 lines (125 loc) · 2.41 KB
/
stylesheet.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
144
145
body {
background: linear-gradient(135deg, #EBDECA 40%, #FFFFFF 50%);
color: #333333;
font-family: 'Josefin Sans', sans-serif;
margin: 0;
min-height: 100vh;
padding: 0;
}
.header {
display: grid;
grid-template-areas: '. t .';
grid-template-columns: 4vw 1fr 4vw;
grid-template-rows: 1fr;
height: 20vh;
width: 100%;
}
.grid {
display: grid;
grid-template-areas: '. g .'
'. . .';
grid-template-columns: 4vw 1fr 4vw;
grid-template-rows: 1fr 12.5vh;
width: 100%;
}
.title {
align-self: center;
font-family: 'Josefin Sans', sans-serif;
font-size: 1em;
grid-area: t;
text-transform: uppercase;
}
.title.title--grid {
justify-self: center;
}
.title__link {
color: #333333;
text-decoration: none;
}
.title__link:hover {
color: #1DE9B6;
cursor: pointer;
}
.grid__items {
grid-area: g;
width: 100%;
column-count: 3;
column-gap: 1em;
}
.grid__item {
width: 100%;
display: inline-block;
margin: 0.5em auto;
}
.grid__item:hover {
cursor: pointer;
}
.grid__image {
width: 100%;
display: inline-block;
}
.detail {
display: grid;
grid-template-areas: '. i . n .'
'. . . . .';
grid-template-columns: 4vw 50vw 4vw 1fr 4vw;
grid-template-rows: 1fr 12.5vh;
height: 80vh;
width: 100vw;
}
.scrap-title {
align-self: center;
font-family: 'Josefin Sans', sans-serif;
font-size: 3em;
font-weight: 700;
grid-area: t;
justify-self: center;
text-transform: capitalize;
}
.image {
align-self: center;
box-shadow: 0px 0px 48px -16px rgba(0,0,0,0.75);
grid-area: i;
justify-self: center;
max-height: 100%;
max-width: 100%;
object-fit: contain;
}
.note {
font-family: 'Josefin Sans', sans-serif;
font-size: 2em;
font-weight: 700;
grid-area: n;
margin: 0;
}
.share-button {
grid-area: t;
align-self: center;
justify-self: end;
}
@media (max-width: 576px) {
.title {
align-self: flex-start;
justify-self: center;
}
.share-button {
align-self: flex-end;
justify-self: center;
}
.share-button.share-button--grid {
align-self: center;
}
.detail {
grid-template-areas: '. . .'
'. i .'
'. . .'
'. n .'
'. . .';
grid-template-columns: 4vw 1fr 4vw;
grid-template-rows: 0.5fr 50vh 0.5fr 1fr 0.5fr;
width: 100vw;
}
.grid__items {
column-count: 1;
}
}