-
Notifications
You must be signed in to change notification settings - Fork 0
/
galery-style.css
170 lines (150 loc) · 3.41 KB
/
galery-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
:root {
--main-1: rgb(127, 233, 110);
--main-1-darker: #6db33f;
--main-2: rgb(28,137,255);
--main-border:rgba(104, 151, 117, 0.4);
--main-author:rgba(127, 233, 110, 0.8);
--gray: #b1bcbe;
--black:#1b1f23;
--black-2:rgba(21, 21, 21, 0.5);
--white:#ffffff;
--hover-link:#ad8174;
--font-1: font-family: 'Exo', sans-serif;
--font-2: font-family: font-family: 'Sorts Mill Goudy', serif;
}
*{
margin: 0; padding: 0;
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
transition:all .3s cubic-bezier(.34,1.12,.68,1.31);
list-style: none;
text-decoration: none;
color: var(--gray);
}
body {
background-color: var(--black);
}
main {
display: flex;
flex-wrap: wrap;
max-width: 1200px;
width: 90%;
margin: 0 auto;
}
.about-galery h1 {
font-family: var(--font-2);
margin-left: 2rem;
}
.about-galery h1 a {
color: var(--white);
font-family: var(--font-1);
}
.about-galery h1 a:hover {
color: var(--hover-link);
width: 90%;
}
.gallery{
min-height: 100vh;
padding-bottom: 100px;
width: 100%;
margin-top: 40px;
}
.gallery .controls{
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
position: relative;
padding:15px 0;
border-radius: 1rem;
border-left: 1px solid var(--main-border);
border-right: 1px solid var(--main-border);
}
.gallery .controls:before {
content:"Filter gallery:";
position: absolute;
left:1.5rem;
top:0.8rem;
font-family: var(--font-2);
font-size: .9rem;
}
.gallery .controls .buttons{
height:40px;
min-width: 110px;
padding: 0 .2rem;
color:var(--white);
font-size: 1.2rem;
font-family: var(--font-1);
line-height: 40px;
cursor: pointer;
margin:1rem;
box-shadow: 0 2px 2px 2px rgba(3, 3, 3, 0.6) inset;
text-align: center;
border-radius: .5rem;
}
.gallery .controls .buttons.active{
/* background: var(--main-1); */
color: var(--main-1-darker);
}
.gallery .image-container{
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
margin-top: 1rem;
border-top: 2px solid var(--main-border);
border-bottom: 2px solid var(--main-border);
border-radius: 1rem;
}
.gallery .image-container .image{
height:220px;
width: 280px;
overflow: hidden;
border-radius: .5rem;
box-shadow: 1px 1px 4px 1px var(--main-border);
margin: 10px;
}
.gallery .image-container .image img{
height: 100%;
width:100%;
object-fit: cover;
transition:all .5s cubic-bezier(.34,1.12,.68,1.31);
}
.gallery .image-container .image:hover img{
transform: scale(1.1);
}
@media screen and (min-width: 768px) {
#content-wrapper {
width: 70%;
}
}
/* mediaquery for desktop*/
@media screen and (min-width: 1024px) {
html {
font-size: 17px;
}
#main-wrapper {
max-width: 1400px;
margin: 0 auto;
}
main {
margin-top: 80px;
}
/* leftbar and rightbar for desktop */
#left-bar {
width: 20%;
border-right: 3px solid var(--main-1-darker);
border-left: 3px solid var(--main-1-darker);
border-radius:1rem;
padding-left: 1rem;
}
#content-wrapper {
width: 60%;
}
#right-bar {
width: 20%;
}
#hamburger{
display: none;
}
}