samir1120 commited on
Commit
e84e7bd
·
verified ·
1 Parent(s): c083eb5

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +102 -18
style.css CHANGED
@@ -1,28 +1,112 @@
 
 
 
 
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
 
 
 
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ font-size: 'Poppins', 'sans-serif';
5
+ box-sizing: border-box;
6
+ }
7
+
8
  body {
9
+ background: #222;
 
10
  }
11
 
12
+ .card {
13
+ width: 90%;
14
+ max-width: 470px;
15
+ background: linear-gradient(0deg, #9E579D, #564BBF);
16
+ color: #fff;
17
+ margin: 100px auto 0;
18
+ border-radius: 20px;
19
+ padding: 40px 35px;
20
+ text-align: center;
21
  }
22
 
23
+ .search {
24
+ width: 100%;
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: space-between;
28
  }
29
 
30
+ .search input {
31
+ border: 0;
32
+ outline: 0;
33
+ background-color: #ebfffc;
34
+ color: #555;
35
+ padding: 10px 25px;
36
+ height: 60px;
37
+ border-radius: 30px;
38
+ flex: 1;
39
+ margin-right: 16px;
40
+ font-size: 18px;
41
+ }
42
+
43
+ .search button {
44
+ border: 0;
45
+ outline: 0;
46
+ background-color: #ebfffc;
47
+ border-radius: 50%;
48
+ width: 60px;
49
+ height: 60px;
50
+ cursor: pointer;
51
+ }
52
+
53
+ .search button img {
54
+ width: 16px;
55
+ }
56
+
57
+ .weather-icon {
58
+
59
+ mix-blend-mode: multiply;
60
+
61
+ width: 300px;
62
+ height: 300px;
63
+
64
  }
65
 
66
+ .weather h1 {
67
+ font-size: 80px;
68
+ font-weight: 500;
69
  }
70
+
71
+ .weather h2 {
72
+ font-size: 45px;
73
+ font-weight: 400;
74
+ margin-top: -10px;
75
+ }
76
+
77
+ .col img {
78
+ width: 40px;
79
+ margin-right: 10px;
80
+ }
81
+
82
+ .col {
83
+ display: flex;
84
+ align-items: center;
85
+ text-align: left;
86
+ }
87
+
88
+ .detail {
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: space-between;
92
+ padding: 0 20px;
93
+ margin-top: 50px;
94
+ }
95
+
96
+ .Humidity,
97
+ .Wind {
98
+ font-size: 28px;
99
+ margin-top: -6px;
100
+ }
101
+
102
+ .weather {
103
+ display: none;
104
+ }
105
+
106
+ .error {
107
+ text-align: left;
108
+ margin-left: 10px;
109
+ font-size: 14px;
110
+ margin-top: 10px;
111
+ display: none;
112
+ }