-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
74 lines (66 loc) · 1.87 KB
/
style.css
File metadata and controls
74 lines (66 loc) · 1.87 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
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
#centrebox {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
box-shadow: 0 0 10px grey;
border-radius: 5px;
outline: solid 1px black;
height: 650px;
width: 100%;
max-width: 1200px; /* Ensures the centrebox does not exceed 1200px */
max-height: 100vh; /* Ensure it doesn't exceed the viewport height */
overflow-y: auto; /* Allows scrolling if content overflows */
padding: 20px; /* Adds padding for a more aesthetic look */
box-sizing: border-box; /* Ensures padding is included in the width/height calculations */
}
body {
font-family: "Open Sans", serif;
font-optical-sizing: auto;
font-weight: 300;
margin: 0;
padding: 0;
height: 100vh; /* Ensure the body takes the full height of the screen */
display: flex;
justify-content: center;
align-items: center;
overflow: hidden; /* Prevents horizontal scrolling */
}
h1 {
font-family: "Open Sans", serif;
font-optical-sizing: auto;
font-weight: 500;
}
h2 {
font-family: "Open Sans", serif;
font-optical-sizing: auto;
font-weight: 400;
}
h3 {
font-family: "Open Sans", serif;
font-optical-sizing: auto;
font-weight: 300;
}
#main {
padding-left: 30px;
max-height: calc(100vh - 80px); /* Prevents the main section from exceeding the height */
overflow-y: auto; /* Scrollable if content overflows */
overflow-x: hidden; /* Prevents horizontal scrolling */
}
#copyright {
position: absolute;
bottom: 20px;
margin-bottom: 20px;
}
#hublink {
background-color: #138275;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
color: white;
font-family: "Open Sans", serif;
font-optical-sizing: auto;
font-weight: 500;
}