-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
107 lines (104 loc) · 1.81 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
body {
overflow-x: hidden;
background-color: black;
}
h1 {
background-color: black;
color: white;
padding: 2rem;
position: relative;
top: -1rem;
margin-bottom: 2rem;
}
.container {
color: white;
background-color: black;
padding: 0;
}
img {
display: block;
width: 100%;
height: auto;
}
section {
text-align: center;
}
.cap {
text-transform: capitalize;
}
.label {
font-weight: bold;
color: black;
}
.one-picture,
.thumbnail {
width: 100%;
max-width: 350px;
min-height: 500px;
margin: auto;
display: flex;
flex-direction: column;
justify-content: space-between;
background-color: rgb(213, 255, 222);
color: black;
}
.error-msg {
display: block;
padding: 15%;
background-color: white;
}
.gallery-title {
position: sticky;
top: 0;
left: 0;
background-color: black;
color: white;
padding: 1em 0;
width: auto;
text-align: left;
}
.gallery-nav {
padding: 1em 0;
background-color: black;
text-align: center;
width: 90%;
margin: auto;
}
#gallery-pagination {
text-align: center;
margin: auto;
overflow-x: scroll;
}
/*https://css-tricks.com/seamless-responsive-photo-grid/*/
#gallery {
/* background-image: url("./assets/paws-6757808_1280.png"); */
/* background-repeat: no-repeat; */
/* background-size: auto; */
/* background-position: bottom center; */
/* padding-bottom: 200px; */
line-height: 0;
-webkit-column-count: 3;
-webkit-column-gap: 0px;
-moz-column-count: 3;
-moz-column-gap: 0px;
column-count: 3;
column-gap: 0px;
}
.gallery-item {
width: 100% !important;
height: auto !important;
}
@media (max-width: 800px) {
#gallery {
-moz-column-count: 2;
-webkit-column-count: 2;
column-count: 2;
}
}
@media (max-width: 400px) {
#gallery {
-moz-column-count: 1;
-webkit-column-count: 1;
column-count: 1;
}
}