-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
114 lines (101 loc) · 1.89 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
:root {
--primary-color : #008080 ;
--bcg-color :#f5f5f5 ;
--padding : 20px ;
--text-color :#fff ;
--border-radius : 5px ;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: var(--bcg-color);
width: 100vw;
}
header {
background-color: var(--primary-color) ;
padding:var(--padding) ;
color: var(--text-color);
}
header h1 {
font-size: 36px;
}
main {
min-height: 80vh;
padding: var(--padding);
max-width: 800px;
margin: 0 auto;
}
main form {
display: flex;
justify-content: center;
align-items: center;
}
form input ,button ,.result div a{
border: none;
font-size: 16px;
font-weight: 500;
border-radius:var(--border-radius) ;
padding: calc(var(--padding)/2);
}
form input {
flex-grow: 1;
}
form button {
background-color: var(--primary-color) ;
color: var(--text-color);
margin-left: 10px;
cursor: pointer;
}
footer {
background-color: var(--primary-color);
color: var(--text-color);
padding: 10px;
text-align: center;
font-size: 18px;
position: fixed;
width: 100%;
}
.result {
background-color: #fff;
padding: var(--padding);
border-radius: var(--border-radius);
margin-top: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, .2);
}
.result p {
margin-top: 10px;
}
.partOfSpeech {
font-style: italic;
color: #808080;
margin-top: 2px;
}
.result div {
margin-top: 20px;
}
.result div a {
text-decoration: none;
background-color: var(--primary-color);
color: var(--text-color);
transition: all ease .2s;
}
.result div a:hover {
background-color: #158d8d;
}
.result li {
padding: calc(var(--padding)/6);
margin-left: 20px;
}
@media screen and (max-width:320px) {
main form {
flex-direction: column;
}
form button {
margin-left: 0px;
margin-top: 10px;
}
}