-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
152 lines (152 loc) · 2.52 KB
/
style.css
File metadata and controls
152 lines (152 loc) · 2.52 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
146
147
148
149
150
151
152
/* Import Google Font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body{
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: teal;
}
::selection{
color: #fff;
background: teal;
}
.wrapper{
width: 420px;
border-radius: 7px;
background: #fff;
padding: 25px 28px 45px;
box-shadow: 7px 7px 20px rgba(0, 0, 0, 0.05);
}
.wrapper header{
font-size: 28px;
font-weight: 500;
text-align: center;
}
.wrapper .search{
position: relative;
margin: 35px 0 18px;
}
.search input{
height: 53px;
width: 100%;
outline: none;
font-size: 16px;
border-radius: 5px;
padding: 0 42px;
border: 1px solid #999;
}
.search input:focus{
padding: 0 41px;
border: 2px solid teal;
}
.search input::placeholder{
color: #B8B8B8;
}
.search :where(i, span){
position: absolute;
top: 50%;
color: #999;
transform: translateY(-50%);
}
.search i{
left: 18px;
pointer-events: none;
font-size: 16px;
}
.search input:focus ~ i{
color: teal;
}
.search span{
right: 15px;
cursor: pointer;
font-size: 18px;
display: none;
}
.search input:valid ~ span{
display: block;
}
.wrapper .info-text{
font-size: 13px;
color: #9A9A9A;
margin: -3px 0 -10px;
}
.wrapper.active .info-text{
display: none;
}
.info-text span{
font-weight: 500;
}
.wrapper ul{
height: 0;
opacity: 0;
padding-right: 1px;
overflow-y: hidden;
transition: all 0.2s ease;
}
.wrapper.active ul{
opacity: 1;
height: 303px;
}
.wrapper ul li{
display: flex;
list-style: none;
margin-bottom: 14px;
align-items: center;
padding-bottom: 17px;
border-bottom: 1px solid #D9D9D9;
justify-content: space-between;
}
ul li:last-child{
margin-bottom: 0;
border-bottom: 0;
padding-bottom: 0;
}
ul .word p{
font-size: 22px;
font-weight: 500;
}
ul .word span{
font-size: 12px;
color: #989898;
}
ul .word i{
color: #999;
font-size: 15px;
cursor: pointer;
}
ul .content{
max-height: 215px;
overflow-y: auto;
}
ul .content::-webkit-scrollbar{
width: 0px;
}
.content li .details{
padding-left: 10px;
border-radius: 4px 0 0 4px;
border-left: 3px solid teal;
}
.content li p{
font-size: 17px;
font-weight: 500;
}
.content li span{
font-size: 15px;
color: #7E7E7E;
}
.content .synonyms .list{
display: flex;
flex-wrap: wrap;
}
.content .synonyms span{
cursor: pointer;
margin-right: 5px;
text-decoration: underline;
}