-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
148 lines (139 loc) · 2.43 KB
/
style.css
File metadata and controls
148 lines (139 loc) · 2.43 KB
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
139
140
141
142
143
144
145
146
147
148
/* Comment */
:root {
--bgcolor: hsl(245, 71%, 66%);
}
body {
height: 100vh;
max-width: 90vw;
margin: auto;
}
.container {
display: grid;
grid-template-rows: 10vh 90vh;
}
/* navbar section */
.navbar-container {
display: grid;
grid-template-columns: 1fr 2fr 1fr;
justify-content: space-between;
align-items: center;
}
.navbar-container div img {
margin: auto;
height: 35px;
}
.grow-list .list {
display: grid;
list-style-type: none;
grid-template-columns: repeat(5, 1fr);
font-weight: 200;
font-size: 21px;
}
.list li:first-child {
font-weight: 900;
}
nav .nav-button {
align-items: center;
margin-left: 50%;
padding: 3px 20px;
font-size: 16px;
background-color: var(--bgcolor);
border-radius: 7px;
border: 0;
color: #fff;
}
/* end of navbar section */
/* banner section starts */
.banner-container {
display: grid;
grid-template-columns: 1fr 1fr;
}
.banner-container div img {
margin: auto;
height: 400px;
position: absolute;
right: 0;
}
.banner-container div {
margin-top: 15%;
text-align: center;
}
.heading-text {
font-size: 45px;
padding: 10px 20px;
font-weight: 800;
color: var(--bgcolor);
margin-left: 0;
}
.heading-text span {
color: #b63cdb;
}
.description {
word-spacing: 3px;
padding: 10px 20px;
font-size: 14px;
color: var(--bgcolor);
font-weight: 300;
margin-top: -20px;
}
.btn {
align-items: center;
margin-top: 15%;
padding: 10px 30px;
font-size: 21px;
background-color: var(--bgcolor);
border-radius: 7px;
border: 0;
color: #fff;
}
/* banner section ends */
/*media queries */
@media only screen and (max-width: 895px) {
.banner-container div img {
height: 350px;
}
.grow-list {
display: none;
}
div.button-group {
grid-column: 3/4;
text-align: center;
}
button.nav-button {
margin-left: 0;
}
}
@media only screen and (max-width: 790px) {
.banner-container div img {
height: 300px;
}
}
@media only screen and (max-width: 717px) {
.banner-container div img {
position: absolute;
height: 250px;
right: 5%;
left: 5%;
top: 7%;
}
.banner-container div:first-child {
position: absolute;
bottom: 0;
left: 8%;
right: 5%;
}
}
@media only screen and (max-width: 530px) {
.heading-text {
font-size: 30px;
}
.btn {
font-size: 18px;
padding: 3px 5px;
margin-bottom: 5%;
}
.button-group .nav-button {
font-size: 10px;
padding: 2px 5px;
}
}