-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
104 lines (87 loc) · 1.93 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
/* Common styles for both mobile and desktop */
body {
background-color: #f0f0f0;
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.navbar {
background-color: #333;
height: 50px;
display: flex;
align-items: center;
justify-content: space-around;
}
.navbar ul {
list-style: none;
padding: 0;
margin: 0;
}
.navbar ul li {
display: inline;
margin-right: 20px;
}
.navbar ul li a {
text-decoration: none;
color: white;
font-size: 1.2rem;
}
.container {
max-width: 960px;
margin: 0 auto;
padding: 20px;
}
.flex-center {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
#home h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
.btn {
font-size: 1.5rem;
text-decoration: none;
color: white;
background-color: #007bff;
padding: 15px 30px;
border-radius: 5px;
margin-top: 1rem;
}
.btn:hover {
background-color: #0056b3;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
.navbar {
height: 70px; /* Increase height for better touch target */
}
.navbar ul li {
margin-right: 10px; /* Decrease margin for smaller screens */
}
#home h1 {
font-size: 2rem; /* Decrease font size for smaller screens */
}
.btn {
font-size: 1.2rem; /* Decrease font size for smaller screens */
padding: 10px 20px; /* Adjust padding for smaller screens */
}
}
/* Desktop responsiveness (if needed) */
@media (min-width: 769px) {
.navbar {
height: 50px; /* Reset height for larger screens */
}
.navbar ul li {
margin-right: 20px; /* Reset margin for larger screens */
}
#home h1 {
font-size: 3rem; /* Reset font size for larger screens */
}
.btn {
font-size: 1.5rem; /* Reset font size for larger screens */
padding: 15px 30px; /* Reset padding for larger screens */
}
}