Repository navigation
Expand file tree
/
Copy pathresponsive.css
More file actions
109 lines (92 loc) · 1.49 KB
/
Copy pathresponsive.css
File metadata and controls
109 lines (92 loc) · 1.49 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
/* Responsive Design */
@media (max-width: 768px) {
#home h1 {
font-size: 2.5rem;
}
#home p {
font-size: 1rem;
}
/* .home-img {
width: 100%;
height: 100vh;
position: absolute;
top: 0;
left: 0;
z-index: 1;
border-radius: 0;
margin: 0;
} */
#home .container {
position: absolute;
z-index: 2;
text-align: center;
width: 100%;
color: white;
}
#home::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 1;
}
#banner h1 {
font-size: 2rem;
}
.product {
margin-bottom: 20px;
}
.footer-one {
text-align: center;
margin-bottom: 30px;
}
}
@media (max-width: 576px) {
#home {
height: 90vh; /* this is to change the view hight for small size */
}
#home h1 {
font-size: 2rem;
}
#banner {
height: 50vh;
}
#banner h1 {
font-size: 1.8rem;
}
.navbar-nav {
text-align: center;
}
.nav-link {
margin: 5px 0;
}
}
/* CENTER MENU ON LARGE SCREEN */
@media (min-width: 992px) {
.navbar-collapse {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
}
/* MOBILE CLEANUP */
@media (max-width: 991px) {
.navbar-collapse {
background: #fff;
padding: 20px;
margin-top: 10px;
border-radius: 10px;
}
.navbar-nav {
text-align: center;
}
.nav-link {
color: #333 !important;
}
.nav-link {
margin: 10px 0;
}
}