-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
110 lines (103 loc) · 1.84 KB
/
style.css
File metadata and controls
110 lines (103 loc) · 1.84 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
body {
--sb-color: #0bda51;
--sa-color: #30d5c8;
}
.app{
display: flex;
align-items: center;
flex-direction: column;
}
#input {
height: 30px;
margin: 30px 0;
}
#input .color{
border: 1px solid #E3E6EA;
box-sizing: border-box;
border-radius: 3px;
height: 100%;
padding: 2px;
}
#input .btn{
text-shadow: 0 1px 0 rgba(19,74,70,.4);
background: #7AB893;
border-radius: 3px;
border: none;
height: 100%;
padding: 2px;
cursor: pointer;
}
.card{
width: 250px; height: 300px;
position: relative; cursor: pointer;
}
.card_block {
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.089);
backdrop-filter: blur(20px);
border: 1px solid white;
color: white;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
/*box-shadow: 00 30px rgba(0, 0, 0, 0.055); */ /*При необходимости включить */
transition: all .4s;
}
.card_paragraph {
padding: 0.3em 1.5em;
}
.paragraph {
font-size: 0.8em;
text-align: center;
}
.card:hover .card_block{
color: rgb(36, 36, 36);
}
.card::before, .card::after {
content: "";
position: absolute;
width: 100%;
height: 50%;
background-color: var(--sb-color);
z-index: -20;
transition: all .4s;
}
.card::before{
top: 0;
right: 0;
}
.card::after{
bottom: 0;
left: 0;
background-color: var(--sa-color);
}
.card:hover::before{
width: 50px;
height: 50px;
transform: translate(20px, -20px);
border-radius: 50%;
}
.card:hover::after{
width: 100px;
height: 100px;
transform: translate(-20px, 20px);
border-radius: 50%;
}
.card_heading {
font-size: 26px;
}