-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
91 lines (91 loc) · 1.96 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
:root{
--color-primary: #006f90;
--color-secondary: #b3deca;
}
body {
height: 100vh;
width: 100vw;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
font-family: monospace;
font-size: 12pt;
background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
backdrop-filter: brightness(0.6);
}
.user-info {
position: relative;
width: 15rem;
margin: 0 auto;
background: linear-gradient(315deg, var(--color-primary), var(--color-secondary));
padding: 1rem;
border-radius: 10px;
max-height: 3rem;
overflow: hidden;
box-shadow: 3px 3px 5px rgb(0 70 90);
transition-duration: 1.5s;
}
.user-info:hover {
max-height: 20rem;
}
.user-info::before,
.user-info::after {
--img-size: 4rem;
content: '';
width: 100%;
background-size: var(--img-size);
background-repeat: no-repeat;
background-color: var(--color-primary);
position: absolute;
left: 0;
transition-duration: 1s;
}
.user-info::before {
height: 50%;
top: 0;
background-image: url(image/icon-lock-top.png);
background-position: bottom;
}
.user-info::after {
height: 55%;
bottom: 0;
background-image: url(image/icon-lock-bottom.png);
background-position: top;
}
.user-info:hover::before,
.user-info:hover::after {
height: 0%;
opacity: 0;
}
.user-info > .profile {
height: 5rem;
margin-bottom: 1rem;
text-align: center;
}
.user-info > .profile > img {
height: 100%;
border-radius: 50rem;
}
.user-info > form {
display: grid;
gap: 10px;
}
.user-info form > .data {
height: 2rem;
display: flex;
justify-content: space-between;
align-items: center;
background-color: rgb(255 255 255 / 50%);
border-radius: 5px;
}
.user-info form > .data > label {
padding: 0 10px;
}
.user-info form > .data > input {
width: 100%;
height: 100%;
background: transparent;
border: none;
outline: none;
}