-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbekasi.css
100 lines (87 loc) · 1.69 KB
/
bekasi.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body */
body {
font-family: 'Poppins', sans-serif;
line-height: 1.6;
padding: 1rem;
}
/* Header */
header {
background-color: #4a5c53;
color: white;
padding: 1rem;
text-align: center;
}
header nav ul {
display: flex;
flex-direction: column; /* Default mobile */
justify-content: center;
list-style: none;
gap: 0.5rem;
}
header nav ul li a {
color: white;
text-decoration: none;
padding: 0.5rem;
display: block;
text-align: center;
}
header nav ul li a:hover {
text-decoration: underline;
}
/* Main */
main {
display: flex;
flex-direction: column; /* Default mobile */
gap: 1.5rem; /* Jarak antara artikel dan aside */
padding: 1rem;
}
/* Article */
article {
width: 100%; /* Full width untuk mobile */
text-align: justify;
}
/* Aside */
aside {
background: #e0e0e0;
padding: 1.5rem;
text-align: center;
border-radius: 10px;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
margin-top: 1.5rem; /* Menambah jarak dari article */
}
aside img {
max-width: 80%;
height: auto;
border-radius: 50%;
margin-bottom: 1rem;
}
/* Footer */
footer {
background-color: #333;
color: white;
text-align: center;
padding: 1rem;
margin-top: 2rem;
}
/* ===== Media Query untuk Layar Besar (Tablet & Desktop) ===== */
@media (min-width: 768px) {
main {
flex-direction: row;
justify-content: space-between;
padding: 2rem;
}
article {
flex: 3;
max-width: 800px;
}
aside {
flex: 1;
padding: 2rem;
margin-top: 0; /* Reset margin top agar sejajar dengan article */
}
}