-
Notifications
You must be signed in to change notification settings - Fork 36
/
Style.css
180 lines (157 loc) · 3.24 KB
/
Style.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
* {
box-sizing: border-box;
}
body {
background-color: #ffffff;
}
.container {
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
/* Banner Image CSS */
.header-img {
padding: 0;
height: 200px;
margin: 50px auto;
}
/* Grid CSS */
.grid-container{
display: grid;
grid-template-columns: 280px 280px 280px;
justify-items: center;
grid-row-gap: 18px;
grid-column-gap: 18px;
}
/* Image CSS */
.img-f {
border-radius: 15px;
cursor: pointer;
transition: 0.3s;
width: 100%;
height: 100%;
-webkit-user-select: none; /* Chrome/Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+ */
}
.img-f:hover {
opacity: 0.7;
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0, 0, 0); /* Fallback color */
background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}
/* The footer*/
.footer {
padding: 15px;
color: #222;
background-color: #f5f5f5;
margin-top: 100px;
text-align: center;
}
/* Modal Content (image) */
.modal-content {
margin: auto;
display: block;
width: 540px;
max-width: 677px;
height: 540px;
-webkit-user-select: none; /* Chrome/Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+ */
}
/* Caption of Modal Image */
#caption {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
text-align: center;
color: #ccc;
padding: 10px 0;
height: 150px;
}
/* Add Animation */
.modal-content,
#caption {
-webkit-animation-name: zoom;
-webkit-animation-duration: 0.6s;
animation-name: zoom;
animation-duration: 0.6s;
}
@-webkit-keyframes zoom {
from {
-webkit-transform: scale(0);
}
to {
-webkit-transform: scale(1);
}
}
@keyframes zoom {
from {
transform: scale(0);
}
to {
transform: scale(1);
}
}
/* The Close Button */
.close {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
}
.close:hover,
.close:focus {
color: #bbb;
text-decoration: none;
cursor: pointer;
}
/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
.header-img {
padding: 0;
height: 100px;
margin: 50px auto;
display: block;
}
.grid-container{
display: grid;
grid-template-columns: 150px 150px;
}
.last{
grid-column: 1/-1;
width: 150px;
}
.modal-content {
margin: 16vh auto;
display: block;
width: 250px;
height: 250px;
-webkit-user-select: none; /* Chrome/Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+ */
}
}
@media screen and (min-width: 710px) and (max-width:800px) {
.grid-container{
display: grid;
grid-template-columns: 200px 200px 200px;
}
}