-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
89 lines (77 loc) · 1.47 KB
/
main.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
/* main.css */
:root {
--header-height: 60px;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Nunito', Arial, sans-serif;
font-size: 16px;
background-color: #f0f0f0;
min-height: 100vh;
display: flex;
flex-direction: column;
}
.notebook-page {
background-color: white;
padding: 10px 20px;
border-radius: 0 0 5px 5px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
display: flex;
justify-content: center;
align-items: center;
width: 100%;
position: fixed;
top: 0;
left: 0;
height: var(--header-height);
z-index: 1000;
}
.notebook-page::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 2px;
background-color: #ff9999;
}
.notebook-page h1 {
margin: 0;
font-size: clamp(1rem, 5vw, 1.5rem);
color: #333;
}
.content {
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
padding: calc(var(--header-height) + 20px) 20px 20px;
min-height: 100vh;
}
.logo {
max-width: 90%;
max-height: 90vh;
object-fit: contain;
}
@media (max-width: 768px) {
:root {
--header-height: 50px;
}
.notebook-page {
padding: 5px 10px;
}
.content {
padding-top: calc(var(--header-height) + 10px);
}
}
@media (max-width: 480px) {
:root {
--header-height: 40px;
}
.notebook-page h1 {
font-size: clamp(0.875rem, 4vw, 1.25rem);
}
}