-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
136 lines (135 loc) · 3 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500&display=swap');
*{
margin: 0;
padding: 0;
font-family: 'Poppins',Arial, Helvetica, sans-serif;
box-sizing: border-box;
}
body{
background-color: royalblue;
}
nav{
background-color: orangered;
padding: 10px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
display: flex;
align-items: center;
justify-content: space-between;
}
nav h1{
color: white;
font-size :25px;
}
nav .settings{
display: flex;
align-items: center;
gap: 20px;
}
nav .settings div{
position: relative;
}
nav .settings button{
padding: 10px;
border-radius: 15px;
border: none;
outline: none;
background-color: rgba(255, 255, 255, 0.3);
cursor: pointer;
}
nav .settings ul{
position: absolute;
top: 55px;
right: 0;
text-align: center;
list-style: none;
padding: 5px;
border-radius: 10px;
background-color: rgba(255, 255, 255, 0.15);
transform: scale(0);
transition: .2s ease-in-out;
transform-origin: top right;
}
nav .settings button:hover + ul,nav .settings ul:hover{
transform: scale(1);
}
nav .settings ul li{
cursor: pointer;
color: white;
font-size: 14px;
padding: 7px 12px;
margin-bottom: 3px;
border-radius: 30px;
background: linear-gradient(to bottom, rgba(47, 47, 47, 0.8),rgba(34, 34, 34,.8), rgba(7, 7, 7, 0.8));
}
nav .settings ul li:hover{
background: linear-gradient(to bottom, rgb(47, 47, 47),rgb(34, 34, 34), rgb(7, 7, 7));
}
.container{
margin: 75px auto 0;
padding: 35px 10px;
max-width: 500px;
min-width: 200px;
background-color: rgba(255, 255, 255, 0.3);
border-radius: 20px;
}
.container .game{
display: flex;
width: 100%;
justify-content: center;
align-items: center;
gap: 7px;
}
.container .game h2{
font-size: 24px;
}
.container .game h2:nth-child(2){
font-weight: normal;
font-size: 20px;
}
.container .input{
margin: 20px auto 0;
width: 70%;
display: flex;
align-items: center;
justify-content: space-between;
background-color: royalblue;
border-radius: 10px;
}
.container .input input{
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
padding: 7px 10px;
outline: none;
border: none;
color: rgb(34, 34, 34);
font-size: 16px;
width: 100%;
}
.container .input input::placeholder{
font-size: 14px;
}
.container .input i{
width: 45px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
@media screen and (max-width: 500px) {
nav{
flex-direction: column;
gap: 10px;
}
nav .settings ul{
transform-origin: top;
}
header h1{
text-align: center;
}
}
@media screen and (max-width: 280px) {
.container .input{
width: 85%;
}
}