-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
executable file
·142 lines (138 loc) · 2.5 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
.gallery {
display: flex;
flex-direction: column;
align-items: left;
max-width: 100%;
}
.gallery__bg {
opacity: 0.5;
position: absolute;
z-index: 0;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.gallery__bg img {
width: 105%;
height: 105%;
object-fit: cover;
object-position: center center;
filter: blur(5px);
position: absolute;
top: -2.5%;
left: -2.5%;
z-index: 2;
}
.gallery__bg img.fade-in {
z-index: 1;
}
.gallery__bg img.fade-out {
transition: opacity 400ms;
opacity: 0;
}
.gallery__search {
position: relative;
z-index: 1;
display: flex;
margin-bottom: 10px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}
.gallery__search label {
background: #333;
color: white;
padding: 11px 10px 10px;
}
.gallery__search input {
appearance: none;
-webkit-appearance: none;
border: none;
padding: 1px 6px 0;
font-family: "Poppins", sans-serif;
font-size: 16px;
}
.gallery__search input:focus {
outline: none;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}
.gallery__main {
position: relative;
z-index: 1;
margin: 0 75px 0 20px;
width: 620px;
max-width: calc(100% - 95px);
}
.gallery__core {
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
overflow: hidden;
width: 100%;
padding-top: 100%;
position: relative;
}
.gallery__core img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center center;
transform: translateY(0);
}
.gallery__core img.slide-in {
top: 100%;
}
.gallery__core img.shift-up {
transition: transform 400ms;
transform: translateY(-100%);
}
.gallery__track {
position: absolute;
top: 10px;
right: 0;
transform: translate(110px, 0);
display: -webkit-flex;
-webkit-flex-direction: column;
-webkit-flex-wrap: wrap;
align-items: center;
height: auto;
max-height: 620px;
gap: 10px;
}
.gallery__track__item {
width: 42px;
height: 42px;
cursor: pointer;
margin-bottom: 10px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
overflow: hidden;
border-radius: 100%;
transition: transform 350ms;
}
.gallery__track__item img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center center;
}
.gallery__track__item:hover {
transform: scale(1.2);
}
.gallery__track__item.active {
width: 40px;
height: 40px;
border: 3px solid white;
}
details {
text-align: right;
transition: max-height 400ms ease-out;
max-height: 10rem;
overflow: hidden;
}
summary{
color:blue;
}
summary:hover{
color:red;
}