-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
82 lines (74 loc) · 1.63 KB
/
styles.css
File metadata and controls
82 lines (74 loc) · 1.63 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
75
76
77
78
79
80
81
82
@import url('https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap');
body {
/*background: darkred;
background-image: url("./frame.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;*/
background-color: #8968CD;
color: white;
margin: 0;
padding: 2rem;
height: calc(100vh - 4rem);
max-height: 100vh;
font-family: "Major Mono Display", Arial, sans-serif;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
height: 4rem;
padding: 0 2rem;
}
button {
background-color: darkslateblue;
color: white;
border: none;
padding: 0.5rem;
cursor: pointer;
font-size: 1rem;
border-radius: 5px;
font-family: "Major Mono Display", Arial, sans-serif;
font-size: smaller;
}
.container {
display: flex;
height: min(calc(100% - 7rem), calc(100vw - 4rem));
aspect-ratio: 1 / 1;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
align-items: stretch;
box-sizing: border-box;
gap: 1px;
margin: 2rem auto 0 auto;
background-color: white;
z-index: 10;
}
.box {
background-color: linen;
flex: 1 1 calc((100% - (var(--grid-size)*1px - 1px)) / var(--grid-size));
aspect-ratio: 1/1;
z-index: 10;
}
.frame {
width: 100%;
height: 100%;
z-index: -1;
position: absolute;
}
:root {
--grid-size: 16;
}
@media (max-width: 1200px) {
nav {
flex-direction: column;
height: auto;
}
nav :first-child {
margin-bottom: 1rem;
}
nav > * {
margin: 0.5rem 0;
}
}