-
Notifications
You must be signed in to change notification settings - Fork 642
/
Copy pathstyle.css
153 lines (138 loc) · 2.41 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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
body {
display: flex;
align-items: center;
justify-content: center;
background-color: rgb(160, 158, 156);
min-height: 100vh;
}
.wrapper {
width: 420px;
background-color: #fff;
border-radius: 7px;
padding: 28px 28px;
}
.wrapper header {
font-size: 28px;
font-weight: 500;
text-align: center;
}
.wrapper .search {
margin: 35px 0 18px;
position: relative;
}
.search input {
height: 53px;
width: 100%;
outline: none;
border: 1px solid #999;
border-radius: 5px;
font-size: 16px;
padding: 0 42px;
}
.search :where(i, span) {
position: absolute;
top: 50%;
color: #999;
transform: translateY(-50%);
}
.search input::placeholder{
color: #b8b8b8;
}
.search input:focus{
border: 2px solid #4d59fb;
padding: 0 41px;
}
.search i {
left: 18px;
font-size: 16px;
pointer-events: none;
}
.search input:focus ~ i {
color: #4d59fb;
}
.search span {
right: 15px;
cursor: pointer;
font-size: 18px;
display: none;
}
.search input:valid ~ span {
display: block;
}
.wrapper ul li{
display: flex;
margin-bottom: 14px;
padding-bottom: 17px;
border-bottom: 1px solid #ccc;
justify-content: space-between;
align-items: center;
}
ul .word p{
font-size: 22px;
font-weight: 500;
}
.wrapper .info-text {
font-size: 13px;
color: #9a9a9a;
margin: -3px 0 -10px;
}
.wrapper ul {
height: 0;
opacity: 0;
overflow: hidden;
transition: all 0.3s ease;
}
ul .word i {
cursor: pointer;
font-size: 15px;
color: #999;
}
ul li:last-child{
margin-bottom: 0px;
padding-bottom: 0px;
border-bottom: 0px;
}
.content li .details{
border-left: 3px solid #4d59fb;
border-radius: 4px 0 0 4px;
padding-left: 10px;
}
.content li .details p {
font-size: 17px;
color: #7e7e7e;
}
.synonyms .details .list {
display: flex;
flex-wrap: wrap;
}
.synonyms .details .list span {
margin-right: 5px;
text-decoration: underline;
cursor: pointer;
}
.info-text span{
font-weight: 500;
}
.wrapper.active ul {
height: 303px;
opacity: 1;
}
.wrapper.active ul{
display: block;
}
.wrapper.active .info-text {
display: none;
}
ul .content {
max-height: 215px;
overflow-y: auto;
}
ul .content::-webkit-scrollbar{
width: 0px;
}