-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
128 lines (114 loc) · 2.1 KB
/
Copy pathstyle.css
File metadata and controls
128 lines (114 loc) · 2.1 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
.brutalist-card {
width: 220px;
border: 4px solid #000;
/* background-color: #fff; */
padding: 1.5rem;
box-shadow: 10px 10px 0 #000;
}
/* 输入框 */
.input-container {
position: relative;
margin-bottom: 24px;
}
.input {
padding: 4px;
height: 28px;
border: 2px solid #0b2447;
border-top: none;
border-bottom: none;
font-size: 14px;
background: transparent;
outline: none;
box-shadow: 7px 7px 0px 0px #0b2447;
transition: all 0.5s;
}
.input:focus {
box-shadow: none;
transition: all 0.5s;
}
.label {
position: absolute;
top: 10px;
left: 10px;
color: #0b2447;
transition: all 0.5s;
transform: scale(0);
z-index: 1;
}
.input-container .topline {
position: absolute;
content: '';
background-color: #0b2447;
width: 0%;
height: 2px;
right: 0;
top: 0;
transition: all 0.5s;
}
.input-container input[type='text']:focus ~ .topline {
width: 35%;
transition: all 0.5s;
}
.input-container .underline {
position: absolute;
content: '';
background-color: #0b2447;
width: 0%;
height: 2px;
right: 0;
bottom: 0;
transition: all 0.5s;
}
.input-container input[type='text']:focus ~ .underline {
width: 100%;
transition: all 0.5s;
}
.input-container input[type='text']:focus ~ .label {
top: -10px;
transform: scale(1);
transition: all 0.5s;
}
.input-container input[type='text'] {
font-size: 12px;
}
/* 按钮样式 */
.button {
height: 32px;
width: 135px;
position: relative;
background-color: transparent;
cursor: pointer;
border: 2px solid #252525;
overflow: hidden;
border-radius: 25px;
color: #333;
transition: all 0.5s ease-in-out;
}
.btn-txt {
z-index: 2;
font-weight: 800;
letter-spacing: 4px;
}
.type1::after {
content: '';
position: absolute;
left: 0;
top: 0;
transition: all 0.5s ease-in-out;
background-color: #333;
border-radius: 30px;
visibility: hidden;
height: 10px;
width: 10px;
z-index: -1;
}
.button:hover {
box-shadow: 1px 1px 200px #252525;
color: #fff !important;
border: none;
z-index: 2;
}
.type1:hover::after {
visibility: visible;
transform: scale(100) translateX(2px);
}