blog.nek0.eu/site/css/default.css

482 lines
7.4 KiB
CSS
Raw Normal View History

2023-04-10 07:54:53 +00:00
:root {
2023-04-13 12:46:17 +00:00
--background-color: #2e4e4eff;
2023-04-11 12:05:05 +00:00
--text-color: gainsboro;
--link-color: chartreuse;
2023-04-10 20:11:09 +00:00
--link-visited-color: lightskyblue;
2023-04-13 13:49:10 +00:00
--box-color: #161525e5;
2023-04-11 13:23:38 +00:00
--border-radius: 10px;
2023-04-10 07:54:53 +00:00
}
2016-03-01 07:03:27 +00:00
body {
2023-04-10 13:27:11 +00:00
color: var(--text-color);
2023-04-10 07:54:53 +00:00
font-size: 12pt;
2023-04-11 12:05:05 +00:00
font-family: 'Courier Prime';
2019-09-02 19:33:18 +00:00
font-weight: normal;
font-style: normal;
margin: 0;
2019-10-13 08:10:56 +00:00
display: grid;
2023-04-10 07:54:53 +00:00
grid-template-columns: [leftcol] 1fr [maincol] auto [rightcol] 1fr;
2023-04-13 13:49:10 +00:00
grid-template-rows: [headerrow] 1fr [mainrow] auto [rule] 125px [plugrow] 0.6fr [extrasrow] 0.6fr;
2019-10-13 08:10:56 +00:00
grid-template-areas:
2023-04-10 07:54:53 +00:00
"inlinks logo outlinks"
"main main main"
2023-04-13 13:49:10 +00:00
"rule rule rule"
2023-04-10 13:27:11 +00:00
"plugs plugs plugs"
"extras extras extras";
2019-10-13 08:10:56 +00:00
justify-content: stretch;
align-content: stretch;
min-height: 100vh;
2023-04-10 13:27:11 +00:00
background-color: var(--background-color);
2023-04-13 12:46:17 +00:00
box-shadow: inset 0 0 50vw #203037ff;
2023-04-10 20:11:09 +00:00
box-sizing: border-box;
2016-03-01 07:03:27 +00:00
}
2019-09-09 17:44:48 +00:00
body::after {
content: "";
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-image: url(/images/brain.svg);
background-size: contain;
background-repeat: no-repeat;
background-attachment: fixed;
background-origin: padding-box;
background-clip: content-box;
background-position: center;
2023-04-10 13:27:11 +00:00
z-index: -2;
2019-09-09 17:44:48 +00:00
}
2020-07-08 02:31:05 +00:00
a {
2019-09-02 19:33:18 +00:00
text-decoration: none;
2016-03-01 07:03:27 +00:00
}
a:link {
2023-04-10 07:54:53 +00:00
color: var(--link-color);
2016-03-01 07:03:27 +00:00
}
a:visited {
2023-04-10 07:54:53 +00:00
color: var(--link-visited-color);
2016-03-01 07:03:27 +00:00
}
2018-07-22 22:05:39 +00:00
img, video {
2023-04-10 13:27:11 +00:00
padding: 10px;
2019-09-02 19:33:18 +00:00
width: 66%;
max-width: 500px;
2016-03-01 07:03:27 +00:00
}
hr {
2023-04-11 13:23:38 +00:00
color: var(--link-color);
2019-09-02 19:33:18 +00:00
border: 0;
2023-04-11 13:23:38 +00:00
background-color: var(--link-color);
2023-04-10 13:27:11 +00:00
height: 3px;
margin: 20px 10% 20px;
2016-03-01 07:03:27 +00:00
}
header {
2019-09-02 19:33:18 +00:00
padding: 20px;
2016-03-01 07:03:27 +00:00
}
header a {
2023-04-10 07:54:53 +00:00
color: var(--link-color);
2019-09-02 19:33:18 +00:00
font-size: 18pt;
font-weight: bold;
2016-03-01 07:03:27 +00:00
}
header a:visited {
2023-04-10 07:54:53 +00:00
color: var(--link-color);
2016-03-01 07:03:27 +00:00
}
article {
2019-09-02 19:33:18 +00:00
text-align: left;
2023-04-10 20:55:34 +00:00
padding: 0 20px 5px;
2023-04-13 13:49:10 +00:00
margin: 5em auto 0;
2019-09-02 19:33:18 +00:00
overflow: auto;
2019-10-13 08:10:56 +00:00
grid-area: main;
2023-04-10 07:54:53 +00:00
max-width: 80em;
2023-04-10 20:11:09 +00:00
line-height: 1.5;
2016-03-01 07:03:27 +00:00
}
2023-04-13 13:49:10 +00:00
article + hr {
2023-04-10 13:27:11 +00:00
margin-top: 100px;
2023-04-13 13:49:10 +00:00
grid-area: rule;
2023-04-10 13:27:11 +00:00
}
article a:hover, .extras a:hover{
2019-09-02 19:33:18 +00:00
text-decoration: underline;
2016-03-01 07:03:27 +00:00
}
article ul{
2019-09-02 19:33:18 +00:00
list-style: none;
2023-04-11 13:23:38 +00:00
margin: 0;
padding-top: 1em;
padding-bottom: 1em;
2016-03-01 07:03:27 +00:00
}
2023-04-10 20:11:09 +00:00
article li::before {
2023-04-13 12:46:17 +00:00
content: "";
color: var(--text-color);
2016-03-01 07:03:27 +00:00
}
article li {
2019-09-02 19:33:18 +00:00
text-indent: -2ex;
2016-03-01 07:03:27 +00:00
}
2023-04-13 13:49:10 +00:00
article > *, .tags, .info {
2023-04-11 13:23:38 +00:00
background-color: var(--box-color);
}
2023-04-13 13:49:10 +00:00
article > *:first-child {
2023-04-11 13:23:38 +00:00
border-top-left-radius: var(--border-radius);
border-top-right-radius: var(--border-radius);
}
2023-04-13 13:49:10 +00:00
article > *:last-child {
2023-04-11 13:23:38 +00:00
border-bottom-left-radius: var(--border-radius);
border-bottom-right-radius: var(--border-radius);
}
2018-09-08 20:31:48 +00:00
.liberapay {
2019-09-02 19:33:18 +00:00
height: 45px;
display: inline-block;
vertical-align: middle;
2016-05-09 20:09:13 +00:00
}
2023-04-10 07:54:53 +00:00
.inlinks {
grid-area: inlinks;
2023-04-10 13:27:11 +00:00
}
.inlinks ul {
2023-04-10 07:54:53 +00:00
justify-content: flex-end;
2020-07-08 02:31:05 +00:00
}
2023-04-10 07:54:53 +00:00
.logo {
grid-area: logo;
text-align: center;
2023-04-10 20:55:34 +00:00
display: inline-block;
2020-07-08 02:31:05 +00:00
}
2023-04-10 07:54:53 +00:00
.outlinks {
grid-area: outlinks;
2023-04-10 13:27:11 +00:00
}
2023-04-10 20:55:34 +00:00
.outlinks ul {
2023-04-10 07:54:53 +00:00
justify-content: flex-start;
2020-07-08 02:31:05 +00:00
}
2023-04-10 07:54:53 +00:00
.plugs {
grid-area: plugs;
2020-07-08 02:31:05 +00:00
}
2023-04-10 07:54:53 +00:00
.extras {
grid-area: extras;
2022-07-26 06:43:07 +00:00
}
2023-04-13 14:00:51 +00:00
.inlinks, .outlinks, .plugs, .extras {
padding: 20px;
2023-04-10 13:27:11 +00:00
line-height: 100%;
2022-07-26 06:43:07 +00:00
}
2023-04-13 14:00:51 +00:00
.tags {
padding: 0 20px 0;
}
2023-04-10 07:54:53 +00:00
.logo img {
width: 200px;
2016-03-01 07:03:27 +00:00
}
2023-04-13 12:46:17 +00:00
.inlinks, .outlinks, .logo {
background: rgb(32,48,55);
background: linear-gradient(180deg, rgba(32,48,55,1) 33%, rgba(32,48,55,0) 100%);
}
2023-04-10 13:27:11 +00:00
.tags p, .plugs p, article p {
2019-09-02 19:33:18 +00:00
text-align: left;
margin: 0;
2018-07-25 23:04:15 +00:00
}
2023-04-10 13:27:11 +00:00
.inlinks ul, .outlinks ul, .plugs ul, .extras ul {
2019-09-02 19:33:18 +00:00
list-style: none;
2023-04-10 07:54:53 +00:00
margin: 0;
2023-04-10 21:53:27 +00:00
padding: 0;
2023-04-10 07:54:53 +00:00
display: inline-block;
2023-04-10 13:27:11 +00:00
height: 100%;
2016-03-01 07:03:27 +00:00
}
2023-04-10 07:54:53 +00:00
.inlinks li a:link, .outlinks li a:link {
color: var(--link-color);
2019-09-02 19:33:18 +00:00
font-size: 16pt;
font-weight: bold;
margin: 0;
text-decoration: none;
text-transform: uppercase;
2016-03-01 07:03:27 +00:00
}
2023-04-10 07:54:53 +00:00
.inlinks li a:visited, .outlinks li a:visited {
color: var(--link-color);
2016-03-01 07:03:27 +00:00
}
2023-04-10 13:27:11 +00:00
.inlinks ul, .outlinks ul, .plugs, .extras, .plugs ul, .extras ul {
2019-09-02 19:33:18 +00:00
display: flex;
flex-direction: row;
2023-04-10 07:54:53 +00:00
align-items: center;
2016-04-21 23:21:42 +00:00
}
2023-04-10 13:27:11 +00:00
.inlinks li, .outlinks li {
2019-09-02 19:33:18 +00:00
display: inline-block;
2023-04-10 13:27:11 +00:00
margin: 0;
padding: 20px;
2016-04-21 23:21:42 +00:00
}
2023-04-10 07:54:53 +00:00
.plugs li a {
2019-09-02 19:33:18 +00:00
display: inline-block;
2016-04-21 23:21:42 +00:00
}
2023-04-10 13:27:11 +00:00
.plugs img {
2019-09-02 19:33:18 +00:00
width: 40px;
height: 40px;
2023-04-11 13:23:38 +00:00
background-color: var(--text-color);
border-radius: 5px;
2016-04-21 23:21:42 +00:00
}
2023-04-10 13:27:11 +00:00
.plugs, .extras {
padding: 0 40px 0;
margin: 0;
2023-04-11 13:23:38 +00:00
padding : 20px;
color: var(--text-color);
2023-04-10 13:27:11 +00:00
}
2023-04-11 13:23:38 +00:00
2023-04-10 13:27:11 +00:00
.plugs, .extras, .plugs ul, .extras ul {
2019-09-10 22:12:32 +00:00
list-style: none;
2023-04-11 13:23:38 +00:00
justify-content: center;
2019-09-10 22:12:32 +00:00
padding: 0;
2016-03-01 07:03:27 +00:00
}
2023-04-10 07:54:53 +00:00
.plugs li, .extras li {
2019-09-10 22:12:32 +00:00
display: inline-block;
2023-04-11 13:23:38 +00:00
margin: 0 20px 0;
2016-03-01 07:03:27 +00:00
}
2023-04-10 13:27:11 +00:00
.extras a {
display: inline-block;
height: 40px;
line-height: 40px;
padding: 10px;
2023-04-10 20:11:09 +00:00
font-weight: bold;
2023-04-10 13:27:11 +00:00
}
.extras a:link, .extras a:visited {
2023-04-11 13:23:38 +00:00
color: var(--text-color);
2023-04-10 13:27:11 +00:00
font-weight: bold;
}
.plug-container, .extras-container {
display: inline-block;
padding: 20px;
width: 25%;
2023-04-11 13:23:38 +00:00
background-color: var(--box-color);
border-radius: var(--border-radius);
2023-04-10 13:27:11 +00:00
}
2016-03-01 07:03:27 +00:00
pre {
2019-09-02 19:33:18 +00:00
border: dashed 1px #000000;
2023-04-11 13:23:38 +00:00
border-radius: (--border-radius);
2023-04-11 13:47:08 +00:00
background-color: #000000aa;
2019-09-02 19:33:18 +00:00
padding: 10px;
2016-03-01 07:03:27 +00:00
}
pre code {
2019-09-02 19:33:18 +00:00
border: none;
font-size: 14pt;
background: transparent;
background-color: transparent;
2016-03-01 07:03:27 +00:00
}
2023-04-10 20:11:09 +00:00
pre code::before {
2019-09-02 19:33:18 +00:00
content: attr(class);
position: relative;
float: right;
display: block;
color: white;
font-weight: bolder;
text-shadow: 0px 0px 3px black;
2016-03-01 07:03:27 +00:00
}
code {
2019-09-02 19:33:18 +00:00
font-size: 14pt;
2023-04-11 13:47:08 +00:00
background-color: #000000aa;
2019-09-02 19:33:18 +00:00
border: dashed 1px #000000;
2023-04-11 13:23:38 +00:00
border-radius: var(--border-radius);
2016-03-01 07:03:27 +00:00
}
h1 {
2023-04-10 07:54:53 +00:00
font-size: 42pt;
2016-03-01 07:03:27 +00:00
}
h2 {
2019-09-02 19:33:18 +00:00
font-size: 20pt;
2023-04-11 12:05:05 +00:00
}
2023-04-13 13:49:10 +00:00
h1, h2, h3, h4, h5 {
2023-04-11 12:05:05 +00:00
font-family: 'Tippa';
2023-04-13 13:49:10 +00:00
margin: 0;
padding: 20px;
2016-03-01 07:03:27 +00:00
}
.pagination {
2019-09-02 19:33:18 +00:00
display: inline-block;
width: 100%;
2023-04-13 14:00:51 +00:00
padding: 3em 0 3em;
2016-03-01 07:03:27 +00:00
}
.left, .right {
2019-09-02 19:33:18 +00:00
float: left;
2023-04-10 13:27:11 +00:00
padding-left: 25%;
2019-09-02 19:33:18 +00:00
display: inline-block;
fill: currentColor;
2016-03-01 07:03:27 +00:00
}
.left svg, .right svg {
2023-04-10 13:27:11 +00:00
padding-bottom: -3px;
padding-left: 0.8ex;
padding-right: 0.8ex;
2016-03-01 07:03:27 +00:00
}
.info {
2019-09-02 19:33:18 +00:00
font-size: 14pt;
font-style: italic;
2023-04-13 14:00:51 +00:00
padding: 20px 40px 30px;
2016-03-01 07:03:27 +00:00
}
2023-04-11 13:47:08 +00:00
.tags a {
2019-09-02 19:33:18 +00:00
display: inline-block;
2023-04-13 14:00:51 +00:00
padding: 2ex;
2018-07-25 13:53:14 +00:00
}
2023-04-10 20:11:09 +00:00
.feed a {
2019-09-02 19:33:18 +00:00
display: inline-block;
2023-04-10 20:11:09 +00:00
}
.scripture {
2019-09-02 19:33:18 +00:00
/* change font */
font-family: 'Inknut Antiqua';
color: black;
font-size: 12pt;
font-weight: normal;
font-style: normal;
/* box shadow */
2023-04-11 13:47:08 +00:00
box-shadow: 5px 5px 10px var(--box-color);
2019-09-02 19:33:18 +00:00
/* bg-colour */
2023-04-10 20:11:09 +00:00
background-color: blanchedalmond;
2019-09-02 19:33:18 +00:00
/* adjust line height */
line-height: 200%;
/* margin */
margin: 30px;
/* padding */
padding: 50px;
}
2017-08-10 01:58:44 +00:00
.scripture p {
2023-04-10 13:27:11 +00:00
padding-top: 25px;
2023-04-11 13:47:08 +00:00
background-color: transparent;
2017-08-10 01:58:44 +00:00
}
2023-04-10 20:55:34 +00:00
p {
2023-04-11 13:23:38 +00:00
padding: 1em;
2023-04-10 20:55:34 +00:00
}
.with-initial > p:first-child::first-letter {
2019-09-02 19:33:18 +00:00
font-family: 'Maximilian Antiqua Initialen';
color: black;
font-size: 65pt;
font-weight: normal;
font-style: normal;
float: left;
2023-04-10 13:27:11 +00:00
padding-top: 0.1ex;
padding-right: 5px;
}
2018-08-18 09:02:40 +00:00
.postlist {
2019-09-02 19:33:18 +00:00
columns: 2;
2018-08-18 09:02:40 +00:00
}
2023-04-10 13:27:11 +00:00
@media screen and (max-width: 1100px) {
2019-10-13 08:10:56 +00:00
body {
display: block;
2023-04-10 20:55:34 +00:00
padding: 5em;
2019-10-13 08:10:56 +00:00
}
2023-04-10 20:55:34 +00:00
.logo {
width: 100%;
2023-04-13 13:49:10 +00:00
background: rgb(32,48,55);
}
.inlinks {
background: rgb(32,48,55);
2023-04-10 20:55:34 +00:00
}
.logo img {
padding: 0;
float: none;
2019-09-02 19:33:18 +00:00
}
2019-09-09 13:21:33 +00:00
2023-04-10 20:55:34 +00:00
.logo a {
margin: 0 auto 0;
}
.inlinks, .outlinks{
2019-09-02 19:33:18 +00:00
columns: auto;
}
2019-09-09 13:21:17 +00:00
2023-04-10 20:55:34 +00:00
.inlinks ul, .outlinks ul {
justify-content: space-evenly;
}
2019-09-09 13:21:17 +00:00
.postlist {
columns: 1;
}
2023-04-13 13:49:10 +00:00
.plugs, .extras {
2023-04-10 20:55:34 +00:00
padding: 2em 0 2em;
2023-04-13 13:49:10 +00:00
display: block;
}
.plugs > li, .extras > li {
padding: 2em;
box-shadow: inset 0 0 50vw #203037ff;
box-sizing: border-box;
display: list-item;
margin: 10px 0 10px;
}
.plug-container, .extras-container {
display: list-item;
width: initial;
2019-09-02 19:33:18 +00:00
}
2019-09-09 13:21:33 +00:00
2019-09-02 19:33:18 +00:00
nav ul{
text-align: center;
padding-left: 0;
}
2019-09-09 13:21:33 +00:00
2019-09-02 19:33:18 +00:00
nav li{
display: inline-block;
}
2019-09-09 13:21:33 +00:00
2019-09-02 19:33:18 +00:00
article {
margin: 0;
2023-04-13 13:49:10 +00:00
padding: 0;
2019-09-02 19:33:18 +00:00
}
2019-09-09 13:21:33 +00:00
2019-09-02 19:33:18 +00:00
img {
2023-04-10 13:27:11 +00:00
padding: 10px;
2023-04-13 13:49:10 +00:00
}
article img {
float: right;
2019-09-09 13:21:33 +00:00
padding-left: 100%;
width: 230px;
2019-09-02 19:33:18 +00:00
}
2016-03-01 07:03:27 +00:00
}