-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
119 lines (97 loc) · 1.87 KB
/
styles.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&family=Poppins&family=Roboto:wght@100;300;400;500;700;900&display=swap");
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html,
body {
font-family: "Open Sans", Arial, sans-serif;
line-height: 1.5;
}
body {
display: flex;
}
nav header,
main header {
font-size: 1.8em;
font-weight: 400;
color: black;
}
/* Nav */
#navbar {
border-right: 2px solid rgba(0, 22, 22, 0.4);
width: 900px;
}
#navbar header {
margin: 10px;
text-align: center;
font-size: 1.8em;
}
#navbar ul {
margin-block-start: 1em;
margin-block-end: 1em;
padding: 0;
}
#navbar li {
border-top: 1px solid #4d4e53;
list-style: none;
}
#navbar a {
display: block;
padding: 10px 30px;
text-decoration: none;
color: #4d4e53;
}
/* Main */
#main-doc {
padding: 20px;
height: 100vh;
overflow-y: scroll;
}
section article {
margin: 15px;
color: #4d4e53;
font-size: 0.96em;
}
section li {
margin: 15px 0 0 20px;
}
ul {
padding-inline-start: 40px;
}
p {
/* margin block start sama aja dengan margin top, namun pendefinisiannya lebih rinci */
margin-block-start: 1em;
margin-block-end: 1em;
font-size: 0.96em;
color: #4d4e53;
}
code {
text-align: left;
padding: 15px;
margin: 10px;
background-color: #f7f7f7;
/* preline membuat baris baru */
white-space: pre-line;
display: block;
border-radius: 5px;
line-height: 2;
}
code {
font-family: monospace;
}
/* Media Query */
@media (max-width: 820px) {
body {
flex-direction: column;
}
nav {
max-height: 275px;
overflow-y: scroll;
border-bottom: 2px solid rgba(0, 22, 22, 0.4);
}
main {
overflow-y: unset;
}
}