forked from pulkit-jasti/Star-Wars-Weather-App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
106 lines (88 loc) · 1.57 KB
/
style.scss
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
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');
/* font-family: 'Montserrat', sans-serif; */
//COLORS
$bright-red: #ff5851;
$yellow: #fdef52;
$gray: #343436;
$not-black-but-dark: #1c1b20;
$silver: #f8f8f8;
//GLOBAL STYLES
* {
margin: 0px;
padding: 0px;
box-sizing: border-box;
background-size: cover;
background-repeat: no-repeat;
font-family: 'Montserrat', sans-serif;
}
//MIXIN
@mixin flexcenter {
display: flex;
justify-content: center;
align-items: center;
}
//MAIN CSS
.landing-page {
//overflow-x: hidden;
height: 100vh;
width: 100%;
.image-container {
position: absolute;
z-index: 0;
height: 100%;
width: 100%;
img {
height: 100%;
width: 100%;
object-fit: cover;
}
}
.main-container {
position: absolute;
z-index: 1;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.25);
//@include flexcenter();
.text-wrapper {
height: 100%;
padding: 40px 80px;
color: #fff;
//background-color: lightblue;
display: flex;
flex-direction: column;
justify-content: flex-end;
#temp {
font-size: 9rem;
font-weight: 600;
}
#info {
margin: 30px 0 10px 0;
font-size: 1.7rem;
font-weight: 500;
}
#planet-name {
font-size: 7rem;
font-weight: 600;
}
}
}
}
@media screen and (max-width: 600px) {
.landing-page {
.main-container {
.text-wrapper {
padding: 20px 30px;
#temp {
font-size: 5rem;
}
#info {
font-size: 1.3rem;
}
#planet-name {
font-size: 4rem;
}
}
}
}
}