LogSource/arise-source/config/main.css

175 lines
3.2 KiB
CSS
Raw Normal View History

2025-10-13 18:54:08 -03:00
/*** Core page styles to set the primary colours and styles to be inherited by everything else ***/
/* Core Styling */
2025-09-08 17:38:31 -03:00
html * {
2025-10-13 19:11:32 -03:00
font-family: sans-serif;
2025-09-08 17:38:31 -03:00
}
2025-10-13 19:11:32 -03:00
body {
margin: 40px auto;
max-width: 650px;
line-height: 1.6;
font-size: 18px;
color: #65f85a;
background-color: #121619;
padding: 0 10px;
2025-09-08 17:38:31 -03:00
}
2025-10-13 19:11:32 -03:00
/*** Post styling ***/
2025-09-08 17:38:31 -03:00
img {
max-width: 100%;
max-height: 100%;
2025-10-13 19:11:32 -03:00
margin-top: 20px;
margin-bottom: 20px;
border-radius: 16px;
2025-10-13 18:50:56 -03:00
margin-left: auto;
margin-right: auto;
2025-09-08 17:38:31 -03:00
display: block;
}
2025-10-13 19:11:32 -03:00
/* Inline code */
2025-09-08 17:38:31 -03:00
code {
2025-10-13 19:11:32 -03:00
background-color: #293137;
border-radius: 16px;
padding-left: 30px;
padding-right: 30px;
padding-top: 1px;
padding-bottom: 1px;
line-height: 2em;
color: #65f85a;
font-family: monospace;
}
2025-10-13 19:13:46 -03:00
/* Target all spans and links inside Arise code blocks */
pre.sourceCode, pre.sourceCode code, pre.sourceCode code span, pre.sourceCode code span a {
2025-10-13 19:11:32 -03:00
font-family: monospace, "Courier New", Courier, monospace;
background-color: #293137;
color: #65f85a;
2025-10-13 19:13:46 -03:00
line-height: 1.2em; /* tight line spacing */
padding: 4px 12px; /* padding for readability */
display: inline; /* keep spans inline so line-height stacks correctly */
}
/* pre element itself */
pre.sourceCode {
2025-10-13 19:11:32 -03:00
overflow-x: auto;
2025-10-13 19:13:46 -03:00
padding: 0; /* remove extra padding */
margin: 1em 0;
2025-09-08 17:38:31 -03:00
}
2025-10-13 19:13:46 -03:00
2025-10-13 19:11:32 -03:00
/* pre element itself */
2025-09-08 17:38:31 -03:00
pre {
2025-10-13 19:11:32 -03:00
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;
2025-10-13 18:49:33 -03:00
}
2025-09-08 17:38:31 -03:00
blockquote {
2025-10-13 19:11:32 -03:00
border-left: 1px solid #65f85a;
display: block;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 30px;
padding-left: 10px;
margin-right: 40px;
font-style: italic;
color: #46ab3e;
2025-09-08 17:38:31 -03:00
}
hr {
2025-10-13 19:11:32 -03:00
color: #65f85a;
margin-left: auto;
margin-right: auto;
max-width: 300px;
2025-09-08 17:38:31 -03:00
}
2025-10-13 19:11:32 -03:00
#endline {
color: #65f85a;
margin-left: auto;
margin-right: auto;
max-width: 300px;
margin-top: 80px;
2025-09-08 17:38:31 -03:00
}
a {
2025-10-13 19:11:32 -03:00
color: #b8f1b4;
text-decoration: none;
2025-10-13 18:13:55 -03:00
}
2025-09-08 17:38:31 -03:00
2025-10-13 19:11:32 -03:00
h1 {
line-height: 1.2;
2025-09-08 17:38:31 -03:00
}
2025-10-13 18:50:56 -03:00
2025-10-13 19:11:32 -03:00
h2, h3 {
padding-top: 24px;
line-height: 1.2;
2025-09-08 17:38:31 -03:00
}
2025-10-13 19:11:32 -03:00
/* Inline dates */
2025-09-08 17:38:31 -03:00
.date {
2025-10-13 19:11:32 -03:00
padding-bottom: 0;
margin-bottom: 0;
font-size: 14px;
2025-09-08 17:38:31 -03:00
}
2025-10-13 18:50:56 -03:00
2025-09-08 17:38:31 -03:00
@media screen and (max-width: 900px) {
2025-10-13 19:11:32 -03:00
.date {
text-align: right;
}
2025-09-08 17:38:31 -03:00
}
@media screen and (min-width: 901px) {
2025-10-13 19:11:32 -03:00
.date {
float: right;
margin-left: 30px;
}
2025-09-08 17:38:31 -03:00
}
2025-10-13 19:11:32 -03:00
/*** Modular component styles ***/
2025-09-08 17:38:31 -03:00
2025-10-13 19:11:32 -03:00
/* Logo */
2025-09-08 17:38:31 -03:00
.logo {
2025-10-13 19:11:32 -03:00
margin-bottom: 20px;
text-align: center;
2025-09-08 17:38:31 -03:00
}
2025-10-13 19:11:32 -03:00
/* Navbar styling */
2025-09-08 17:38:31 -03:00
.topbar {
2025-10-13 19:11:32 -03:00
padding-right: 10px;
border-top: 1px solid #65f85a;
border-bottom: 1px solid #65f85a;
margin-bottom: 20px;
text-align: center;
2025-09-08 17:38:31 -03:00
}
.topbar a {
2025-10-13 19:11:32 -03:00
color: #65f85a;
text-decoration: none;
2025-10-13 18:23:48 -03:00
}
2025-09-08 17:38:31 -03:00
2025-10-13 19:11:32 -03:00
/* Footer styling */
2025-09-08 17:38:31 -03:00
.footer {
2025-10-13 19:11:32 -03:00
border-top: 2px solid #65f85a;
font-size: 12px;
margin-top: 120px;
text-align: center;
2025-10-13 18:54:08 -03:00
}
/*** Other misc garbage ***/
/* Arise Index Style */
.arise-toc-td {
2025-10-13 19:11:32 -03:00
border-width: 1px;
border-color: #65f85a;
border-top-style: solid;
text-align: center;
padding-right: 10px;
padding-bottom: 5px;
2025-10-13 18:54:08 -03:00
}
.arise-toc-th {
2025-10-13 19:11:32 -03:00
padding-bottom: 20px;
border-bottom: 1px;
border-bottom-style: solid;
2025-10-13 18:45:47 -03:00
}