-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
181 lines (161 loc) · 3.09 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
@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{
margin:0;
background-color:rgb(77,89,251);
min-width: 100vw;
min-height: 100vh;
display:flex;
justify-content: center;
align-items:center;
overflow: hidden;
}
.center{
padding:10px 30px 30px;
background-color: #FFFFFF;
border-radius: 6px;
min-width: 25rem;
width:30vw;
max-height:75vh;
/* min-height:330px; */
overflow-x: hidden;
overflow-y:auto;
transition:all 1s ease-in-out;
}
@media screen and (max-width:500px){
.center{
min-width:90vw;
min-height:70vh;
overflow-x: hidden;
}
.info-text{
padding:2em;
width:80%;
}
}
h3{
font-size:1rem;
}
h2{
font-size:1.8rem;
}
#title{
text-align: center;
font-weight: 300;
padding:20px 40px;
}
.search-box{
position: relative;
}
.search-box :where(i, span){
position: absolute;
top: 50%;
color: #999;
transform: translateY(-50%);
}
.search-box i{
left:18px;
pointer-events: none;
}
.search-box span{
font-size: 18px;
right:10px;
cursor:pointer;
display:none;
}
#search::-webkit-search-cancel-button{
-webkit-appearance: none;
}
.search-box input:valid~span{
display:block;
}
.search-box input~span:focus,.search-box input~span:hover{
color:rgb(77,89,251);
}
#search_container input{
outline:none;
border:1px solid rgb(153,155,166);
border-radius: 5px;
padding:10px 10px;
padding-left: 40px;
width:100%;
}
#search_container input:focus{
border:2px solid rgb(77,89,251);
}
#search_container input:focus~i{
color:rgb(77,89,251);
}
/* #search_container .info-text{
width:25rem;
} */
.content #phenotic{
display:flex;
position:relative;
padding:20px 0;
}
.search-content~i{
cursor:pointer;
}
.content #phenotic i{
position:absolute;
right:0;
bottom:0;
top:50%;
padding:10px 0;
transform:translateY(-50%);
}
.bor-bot{
border-bottom:1px solid rgb(126,126,126);
padding:7px 3px;
/* border-left:2px solid rgb(77,89,251); */
/* border-radius:3px; */
}
#synonym{
transition:all 1s ease-in-out;
padding:10px 0;
}
#meaning h3,#meaning p{
transition:all 1s ease-in-out;
padding:0;
margin:2px 0;
}
.small-content{
font-size:.90rem;
color:rgb(126,126,126);
}
#synonym span{
text-decoration: underline;
cursor:pointer;
}
.content{
transition:all 1s ease-in-out;
display:none;
}
.center.active .content {
max-height:330px;
display:block;
overflow-y:none;
}
/* .center.active .content::-webkit-scrollbar{
width:2px;
} */
#search_container p{
padding-right:30px;
width:90%;
font-size:.7rem;
margin-top:10px;
color:rgb(100, 101, 102);
font-weight: bold;
overflow:hidden;
/* text-align: center; */
/* flex-wrap: wrap; */
}
.center.active .info-text{
display:none;
}