313 lines
6.1 KiB
CSS
313 lines
6.1 KiB
CSS
|
|
/*** Core page styles to set the primary colours and styles to be inherited by everything else ***/
|
|
|
|
/* Core Styling */
|
|
|
|
:root {
|
|
/* Sets the colors for the website. */
|
|
--accent-color: #B404AE;
|
|
--bg-color: #2A0A22;
|
|
--bg-color-box: #AAAAAA;
|
|
--trans_pink: #F5A9B8;
|
|
--trans_blue: #5BCEFA;
|
|
}
|
|
|
|
html * {
|
|
font-family:sans-serif;
|
|
}
|
|
body{
|
|
margin:40px auto;
|
|
max-width:1024px;
|
|
line-height:1.6;
|
|
font-size:16px;
|
|
color:#fff;
|
|
background-color:linear-gradient(var(--bg-color),black);
|
|
padding:0 10px;
|
|
text-align: justify;
|
|
text-align-last: none;
|
|
hyphens: auto;
|
|
}
|
|
/********************************/
|
|
/********************************/
|
|
|
|
/*** Post styling. This section is for defining markup classes to make it easier to write prettier posts. ***/
|
|
|
|
img {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
margin-top:20px;
|
|
margin-bottom:20px;
|
|
border-radius:16px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
display: block;
|
|
}
|
|
|
|
video {
|
|
display: block;
|
|
margin: auto;
|
|
}
|
|
|
|
code {
|
|
background-color:var(--bg-color);
|
|
border-radius:16px;
|
|
padding-left:30px;
|
|
padding-right:30px;
|
|
line-height:2em;
|
|
|
|
padding-top:1px;
|
|
padding-bottom:1px;
|
|
color:#fff;
|
|
font-family:monospace;
|
|
}
|
|
|
|
pre {
|
|
overflow-x: auto;
|
|
white-space: pre-wrap;
|
|
white-space: -moz-pre-wrap;
|
|
white-space: -pre-wrap;
|
|
white-space: -o-pre-wrap;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
blockquote {
|
|
border-left:1px solid var(--accent-color);
|
|
display:block;
|
|
margin-top: 1em;
|
|
margin-bottom: 1em;
|
|
margin-left: 30px;
|
|
padding-left: 10px;
|
|
margin-right: 40px;
|
|
font-style: italic;
|
|
color:#46ab3e;
|
|
}
|
|
|
|
hr {
|
|
color:var(--accent-color);
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
max-width: 300px;
|
|
}
|
|
|
|
#endline { /* Special kind of <hr> for spacing out footnotes from the rest of a post */
|
|
color:var(--accent-color);
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
max-width: 300px;
|
|
margin-top: 80px;
|
|
}
|
|
|
|
a:link {
|
|
text-decoration:underline;
|
|
color:white;
|
|
}
|
|
|
|
a:visited{
|
|
text-decoration:underline;
|
|
color=white;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
color: var(--trans_pink);
|
|
}
|
|
|
|
h1{
|
|
line-height:1.2
|
|
}
|
|
|
|
h2,h3{
|
|
padding-top:24px;
|
|
line-height:1.2
|
|
}
|
|
|
|
/* Style for inline dates. These are configured via a separate include file in /config/content_header.html. See notes on Arise page creation for more details. */
|
|
.date {
|
|
padding-bottom:0;
|
|
margin-bottom:0;
|
|
font-size:14px;
|
|
}
|
|
|
|
@media screen and (max-width: 900px) {
|
|
.date {
|
|
text-align:right;
|
|
}
|
|
}
|
|
@media screen and (min-width: 901px) {
|
|
.date {
|
|
float:right;
|
|
margin-left:30px;
|
|
}
|
|
}
|
|
|
|
/********************************/
|
|
/********************************/
|
|
|
|
|
|
/*** Modular component styles. Includes styling for the headers, navigation controls, and footer. ***/
|
|
.header {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
line-height: 48px;
|
|
vertical-align: middle;
|
|
text-align: center;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
justify-content: space-between;
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
border-bottom: solid 1px var(--accent-color);
|
|
|
|
}
|
|
|
|
.header a:link
|
|
{
|
|
text-decoration: none;
|
|
color: white;
|
|
}
|
|
|
|
.header a:hover {
|
|
color: white;
|
|
background: linear-gradient(to right, var(--trans_blue), var(--trans_pink), white, var(--trans_pink), var(--trans_blue));
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Site logo. Styled to responsively move to either left or be centred, depending if the page is being viewed on desktop or mobile respectively. */
|
|
.logo {
|
|
margin-bottom:20px;
|
|
text-align:left;
|
|
}
|
|
|
|
/* Navbar styling. */
|
|
.topbar {
|
|
padding-right:10px;
|
|
border-top:1px solid var(--accent-color);
|
|
border-bottom:1px solid var(--accent-color);
|
|
margin-bottom:20px;
|
|
text-align:center;
|
|
}
|
|
.topbar a {
|
|
color:#fff;
|
|
text-decoration:none;
|
|
}
|
|
|
|
nav ul {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: auto;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px;
|
|
border-bottom: solid 1px var(--accent-color);
|
|
}
|
|
|
|
nav li {
|
|
list-style: none;
|
|
margin: auto;
|
|
font-size: 1.5em;
|
|
display: inline-block;
|
|
text-align: center;
|
|
align-items: center;
|
|
align-content: center;
|
|
}
|
|
|
|
@media (min-width: 45em) {
|
|
nav ul {
|
|
flex-direction: row;
|
|
text-align: center;
|
|
}
|
|
nav li {
|
|
font-size: 1em;
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
/* Site footer styling */
|
|
.footer {
|
|
border-top:2px solid var(--accent-color);
|
|
font-size:12px;
|
|
margin-top:120px;
|
|
text-align:center;
|
|
}
|
|
|
|
/********************************/
|
|
/********************************/
|
|
|
|
|
|
/*** Other misc garbage ***/
|
|
|
|
/*** Imagelib Stuff ***/
|
|
|
|
.row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding: 0 4px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* Create four equal columns that sits next to each other */
|
|
.column {
|
|
flex: 25%;
|
|
max-width: 25%;
|
|
padding: 0 4px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.column img {
|
|
margin-top: 8px;
|
|
vertical-align: middle;
|
|
width: 100%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.column div.desc {
|
|
padding: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Responsive layout - makes a two column-layout instead of four columns */
|
|
@media screen and (max-width: 800px) {
|
|
.column {
|
|
flex: 50%;
|
|
max-width: 50%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
}
|
|
|
|
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
|
|
@media screen and (max-width: 600px) {
|
|
.column {
|
|
flex: 100%;
|
|
max-width: 100%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
}
|
|
|
|
p {
|
|
margin-top:3cm;
|
|
}
|
|
|
|
/* Arise Index Style */
|
|
.arise-toc-td {
|
|
border-width: 1px;
|
|
border-color: var(--accent-color);
|
|
border-top-style: solid;
|
|
text-align: center;
|
|
padding-right: 10px;
|
|
padding-bottom: 5px
|
|
}
|
|
.arise-toc-th {
|
|
padding-bottom: 20px;
|
|
border-bottom: 1px;
|
|
border-bottom-style: solid;
|
|
}
|