Skip to content

Commit

Permalink
added popup styling; cleaned up basic layout
Browse files Browse the repository at this point in the history
this is super janky tbh but it's not like there'll be many styled pages I guess
  • Loading branch information
MarshDeer committed Aug 30, 2024
1 parent 1e8d4b0 commit dff0fb0
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ body {
color: var(--fg);
display: grid;
grid-template-rows: auto auto 1fr auto;
grid-template-areas:
"bannertop"
"header"
"main"
"bannerbot";
font-family: "Roboto", sans-serif;
}

Expand All @@ -40,6 +45,7 @@ header {
justify-content: center;
align-items: center;
background: var(--bg);
grid-area: header;
}

header svg {
Expand All @@ -61,6 +67,7 @@ main {
max-width: 80ch;
padding: 0 2ch;
margin: 0 auto;
grid-area: main;
}

label :has(input) {
Expand Down Expand Up @@ -103,6 +110,7 @@ input[type=checkbox] {
border: 2px solid var(--gray);
border-radius: 5px;
background: var(--bg);
transition: .2s all;
}

input[type=checkbox]+svg {
Expand All @@ -127,6 +135,52 @@ input[type=checkbox]:checked+svg {
display: block;
}

/* Popup */
main:has(.popup) {
justify-content: center;
}

.popup {
display: flex;
flex-direction: column;
justify-content: space-between;
height: calc(100% - 4em);
max-height: 400px;
padding: 2em 0;
}

.popup h1 {
text-align: center;
margin: 0;
}

.popup .buttoncontainer {
width: 100%;
display: flex;
flex-direction: column;
align-content: center;
}

.popup button {
background: var(--accent);
color: var(--fg);
width: 60%;
height: 3em;
border-radius: 1.5em;
border: none;
cursor: pointer;
margin: 1em auto;
font-size: larger;
font-weight: bold;
font-family: 'Roboto', sans-serif;
transition: .2s all;
}

.popup button:where(:hover, :focus) {
background: var(--fg);
color: var(--bg);
}

/* "Not a phishing site" warning tape */
aside {
background: repeating-linear-gradient(
Expand All @@ -140,3 +194,11 @@ aside em {
background: var(--bg);
color: var(--accent);
}

aside.top {
grid-area: bannertop;
}

aside.bottom {
grid-area: bannerbot;
}

0 comments on commit dff0fb0

Please sign in to comment.