-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
138 lines (120 loc) · 2.6 KB
/
index.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
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600&display=swap');
html {
height: -webkit-fill-available;
font-family: 'Outfit', sans-serif;
}
body {
overflow: hidden;
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-image: url(/images/defaultBackground.jpg);
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
background-color: #1d3557;
height: -webkit-fill-available;
width: 100vw;
}
.mainCard {
position: relative;
color: white;
display: flex;
flex-direction: column;
align-items: center;
gap: 2em;
width: 350px;
}
#card {
position: relative;
width: calc(100% - 4em);
display: flex;
flex-direction: column;
align-items: center;
border: 1px solid #FFF;
padding-left: 2em;
padding-right: 2em;
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
background-color: rgba(255, 255, 255, 0.1);
}
#weatherIcon {
width: 80%;
}
#temperature {
font-size: 5em;
text-align: center;
font-weight: bold;
margin-bottom: 0.5em;
}
#description {
font-size: 1.1em;
text-align: center;
margin-top: 2em;
text-wrap: wrap;
}
#inputCity {
position: relative;
z-index: 10;
transition: all ease-in-out 150ms;
width: calc(100% - 60px);
font-size: small;
color: white;
background-color: rgba(0, 0, 0, 0.2);
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.5);
padding: 15px 30px 15px 30px;
}
#inputCity:focus {
outline: none;
border-bottom: 1px solid white;
}
#inputCity::placeholder {
transition: all ease-in-out 150ms;
color: rgba(255, 255, 255, 0.75);
}
#inputCity:focus::placeholder {
opacity: 0.1;
}
#submit {
position: relative;
z-index: 10;
transition: all ease-in-out 150ms;
font-size: 1.1em;
display: flex;
width: 100%;
padding-top: 0.5em;
padding-bottom: 0.5em;
justify-content: center;
align-items: center;
border-radius: 9999px;
background: linear-gradient(90deg, #289FD1 0%, #28D1A9 100%);
}
#submit:hover {
transform: translateY(-10px);
cursor: pointer;
}
.decoration {
position: absolute;
z-index: -100;
scale: 0.7;
}
@media only screen and (max-width: 600px) {
.decoration {
display: none;
}
}
@media only screen and (min-width: 1600px) {
.decoration {
scale: 1;
}
.mainCard {
width: 450px;
}
body {
font-size: 1.5em;
}
}