Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 37 additions & 19 deletions src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,43 @@

--default-radius: 30px;
--max-section-width: 800px;

/* Horizontal scroll indicator */
--header-size: 90px;
--scrollbar-height: 4px;
--scrollbar-bg: #a9a4a4;
--scrollbar-progress-color: #ffffff;
}

html body {
background-color: var(--black);
color: var(--white);
font-family: "Courier Prime", "Nimbus Mono PS", "Courier New", monospace;
overflow-x: hidden; /* needed to allow full-bleed elements within sections on chrome */
}

@media (max-width:480px) {
html body {
margin-top:120px;
background: linear-gradient(
to right top,
var(--scrollbar-progress-color) 50%,
var(--scrollbar-bg) 50%
);
background-size: 100%
calc(100% - 100vh + var(--header-size) + var(--scrollbar-height) + 1px);
}

html body::before {
background: var(--black);
bottom: 0;
content: "";
top: calc(var(--header-size) + var(--scrollbar-height));
position: fixed;
width: 100%;
}

@media (max-width:480px) {
html body {
margin-top: 120px;
}
}

h1 {
Expand Down Expand Up @@ -97,17 +121,21 @@ a:focus {
}
}


header {
align-items: center;
background-color: var(--black);
display: flex;
height: var(--header-size);
justify-content: space-between; /* Push items to the edges */
padding: 1rem 0;
background-color: var(--black);
z-index: 99999;
width: 100%;
position: fixed;
top:0;
top: 0;
width: 100%;
z-index: 99999;
}

main {
margin-top: calc(var(--header-size) + var(--scrollbar-height));
}

header h1 {
Expand Down Expand Up @@ -179,6 +207,7 @@ header nav li a:active {
}
}


#introduction {
background-color: var(--white);
background-image: url(/images/introduction-background.png);
Expand Down Expand Up @@ -253,15 +282,6 @@ nav.pagination a.next::after {
width: 100vw;
}

#ulterior-motives,
#public-order-safety .graph-container,
#panic-lit,
#facial-recognition,
#incompetence-posts-and-papers{
background: var(--black);
}


#public-order-safety .graph-container {
margin-top:200px;
}
Expand All @@ -272,8 +292,6 @@ nav.pagination a.next::after {
}
}



#data-loss {
max-width: 100%;
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/elm/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ viewDocument model =
)
]
]
, Html.div [] (View.viewSections model)
, Html.main_ [] (View.viewSections model)
, viewPageNavigation model.currentView
, Html.footer [ Html.Attributes.id "footer" ] []
]
Expand Down