-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.css
More file actions
145 lines (128 loc) · 2.23 KB
/
Copy paththeme.css
File metadata and controls
145 lines (128 loc) · 2.23 KB
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
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
body{
background: #666;
font-family: "Roboto", sans-serif;
}
.container{
padding-top: 5rem;
width: 800px;
margin: 0 auto;
}
.card{
border-radius: 6px;
background: #fff;
padding: 1rem;
box-shadow: 2px 3px 10px rgba(0, 0, 0, .2);
}
/* КНОПКА */
.btn{
color: #42b983;
position: relative;
border-radius: 99px;
border: 1px solid #42b983;
text-decoration: none;
text-transform: uppercase;
padding: 0.5rem 1.5rem;
font-weight: 700;
outline: none;
background: #fff;
transition: all 0.22s;
cursor: pointer;
margin-right: 1rem;
}
.btn.primary{
background: #42b983;
color: #fff;
}
.btn:active{
box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.3);
}
.btn:hover{
cursor: pointer;
opacity: 0.8;
}
input[type=file]{
display: none;
}
/* БЛОК СКАРТИНКАМИ */
.preview{
display: flex;
flex-wrap: wrap;
padding: .5rem;
}
.preview-image{
position: relative;
width: 180px;
height: 145px;
margin-bottom: .5rem;
margin-right: .5rem;
overflow: hidden;
}
.preview-image.removing{
transform: scale(0);
transition: transform .3s;
}
.preview-image img{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.preview-remove{
opacity: 0;
width: 30px;
height: 30px;
background: rgba(255, 255, 255, 0.5);
position: absolute;
top: 0px;
right: 0px;
z-index: 10;
cursor: pointer;
display: flex;
align-items: flex-start;
text-align: center;
justify-content: center;
transition: opacity .22s;
}
.preview-remove span{
font-size: 23px;
font-weight: bold;
}
.preview-image:hover .preview-remove{
opacity: 1;
}
.preview-info{
width: calc(100% - 10px);
background: rgba(255, 255, 255, 0.5);
position: absolute;
bottom: -20px;
opacity: 0;
left: 0px;
height: 25px;
font-size: .8rem;
z-index: 10;
display: flex;
align-items: center;
justify-content: space-between;
transition: all 0.4s ease 0s;
font-weight: 700;
padding: 0px 5px;
}
.preview-image:hover .preview-info{
bottom: 0;
opacity: 1;
}
.preview-info-progress{
position: absolute;
left: 0;
bottom: 0;
text-align: center;
transition: width .22s;
height: 25px;
background: #42b983;
display: flex;
justify-content: center;
align-items: center;
}