vodoraslo.xyz/static/style.css

556 lines
7.6 KiB
CSS
Raw Normal View History

2023-05-28 09:54:40 +02:00
/* @font-face {
font-family: "FiraCode";
src: url("/fonts/FiraCode-VF.woff") format('woff');
2023-05-28 09:54:40 +02:00
} */
2023-04-03 18:25:08 +02:00
:root {
--bg: #141414;
--fg: rgb(232, 228, 228);
2023-04-07 20:57:26 +02:00
--links: #5da0f2;
--muted_text: rgb(179, 182, 186);
--h1: rgb(167, 83, 23);
--h2: rgb(185, 97, 35);
--h3: rgb(196, 110, 49);
--h4: rgb(216, 126, 61);
--h5: rgb(235, 139, 70);
--h6: rgb(244, 156, 93);
--strong: #FD6A02;
--hover-link: yellow;
--code-background: #282c34;
--code-fg: #ebf1f5;
2023-07-12 21:46:08 +02:00
/* --bodyImg: 80%; */
2023-04-07 20:57:26 +02:00
}
@media (prefers-color-scheme: light) {
:root {
--bg: #fafafa;
--fg: #2f343f;
--links: #4084d6;
--muted_text: rgb(93, 93, 99);
--h1: rgb(167, 83, 23);
--h2: rgb(185, 97, 35);
--h3: rgb(196, 110, 49);
--h4: rgb(216, 126, 61);
--h5: rgb(235, 139, 70);
--h6: rgb(244, 156, 93);
--strong: #FD6A02;
--hover-link: rgb(217, 144, 8);
--code-background: #282c34;
--code-fg: #ebf1f5;
/* --bodyImg: 100%; */
}
}
html,
body {
2023-07-15 10:51:13 +02:00
padding: 0;
margin: 0;
}
2023-04-03 18:25:08 +02:00
2023-10-17 20:02:05 +02:00
/* .main-background-image{
background: url(/img/cat.jpg); */
/* background-image: url(/img/cat.jpg); */
/* filter: brightness(var(--bodyImg)); */
2023-10-17 20:02:05 +02:00
/* } */
2023-04-03 18:25:08 +02:00
2022-12-17 07:30:26 +01:00
body {
2023-07-12 21:46:08 +02:00
margin: 0%;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
/* 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif */
2023-05-28 09:54:40 +02:00
/* font-family: 'FiraCode', sans-serif; */
2023-04-03 18:25:08 +02:00
background: var(--bg);
2022-12-17 17:15:37 +01:00
/* color: rgb(143, 185, 58) ; */
2023-04-03 18:25:08 +02:00
color: var(--fg);
2022-12-17 07:30:26 +01:00
}
main {
2022-12-27 13:30:02 +01:00
max-width: 800px;
margin: auto;
2023-07-12 21:46:08 +02:00
background-color: var(--bg);
border-top-left-radius: 25px;
border-top-right-radius: 25px;
2022-12-17 07:30:26 +01:00
}
img {
2022-12-27 13:30:02 +01:00
max-width: 100%;
2022-12-17 07:30:26 +01:00
}
header h1 {
2022-12-27 13:30:02 +01:00
text-align: center;
2022-12-17 07:30:26 +01:00
}
footer {
2022-12-27 13:30:02 +01:00
text-align: center;
clear: both;
background-color: var(--bg);
max-width: 800px;
2023-07-12 21:46:08 +02:00
margin: auto;
border-bottom-left-radius: 25px;
border-bottom-right-radius: 25px;
2022-12-17 07:30:26 +01:00
}
/* For TAGLIST.HTML */
.taglist {
2022-12-27 13:30:02 +01:00
text-align: center;
clear: both;
2023-07-21 17:57:40 +02:00
padding-top: 0.5em
2022-12-17 07:30:26 +01:00
}
/* For NEXTPREV.HTML */
#nextprev {
/* The container for both the previous and next articles. */
margin-top: 15px;
2022-12-17 07:30:26 +01:00
}
2022-12-27 13:30:02 +01:00
2022-12-17 07:30:26 +01:00
#prevart {
2022-12-27 13:30:02 +01:00
float: left;
text-align: left;
2022-12-17 07:30:26 +01:00
}
2022-12-27 13:30:02 +01:00
2022-12-17 07:30:26 +01:00
#nextart {
2022-12-27 13:30:02 +01:00
float: right;
text-align: right;
2022-12-17 07:30:26 +01:00
}
2022-12-27 13:30:02 +01:00
#nextart,
#prevart {
max-width: 33%;
2022-12-17 07:30:26 +01:00
}
2022-12-17 17:15:37 +01:00
2022-12-27 13:30:02 +01:00
a {
text-decoration: none;
color: var(--links);
2022-12-27 13:30:02 +01:00
}
/* Globally */
2022-12-17 17:15:37 +01:00
/* Each state */
2022-12-27 13:30:02 +01:00
a:visited {
text-decoration: none;
2023-04-03 18:25:08 +02:00
color: var(--links);
2022-12-27 13:30:02 +01:00
}
a:hover {
text-decoration: none;
2023-04-03 18:25:08 +02:00
color: var(--links);
2022-12-27 13:30:02 +01:00
}
2023-04-03 18:25:08 +02:00
/* a:focus {
2022-12-27 13:30:02 +01:00
text-decoration: none;
color: yellow;
2023-04-03 18:25:08 +02:00
} */
2022-12-27 13:30:02 +01:00
a:hover,
a:active {
text-decoration: none;
2023-04-03 18:25:08 +02:00
color: var(--hover-link);
2022-12-27 13:30:02 +01:00
}
strong {
2023-04-03 18:25:08 +02:00
color: var(--strong);
2022-12-27 13:30:02 +01:00
}
h1 {
2023-10-08 09:57:26 +02:00
color: var(--strong);
2022-12-27 13:30:02 +01:00
}
h2 {
2023-10-08 09:57:26 +02:00
color: var(--strong);
2022-12-27 13:30:02 +01:00
}
h3 {
2023-10-08 09:57:26 +02:00
color: var(--strong);
2022-12-27 13:30:02 +01:00
}
h4 {
2023-10-08 09:57:26 +02:00
color: var(--strong);
2022-12-27 13:30:02 +01:00
}
h5 {
2023-10-08 09:57:26 +02:00
color: var(--strong);
2022-12-27 13:30:02 +01:00
}
h6 {
2023-10-08 09:57:26 +02:00
color: var(--strong);
2023-02-04 21:26:25 +01:00
}
pre {
2023-04-09 09:21:53 +02:00
background: #282c34;
2023-04-03 18:25:08 +02:00
color: white;
border: 1px solid var(--strong);
2023-06-24 18:57:33 +02:00
border-radius: 15px;
2023-02-04 21:26:25 +01:00
padding: 1em;
/* white-space: pre-wrap; */
2023-02-04 21:26:25 +01:00
overflow-wrap: break-word;
max-width: 800px;
margin: auto;
/* font-family: 'FiraCode'; */
overflow: auto;
2023-03-31 20:06:39 +02:00
}
.spanForHeader {
2023-03-31 20:06:39 +02:00
color: rgba(0, 255, 255, 0);
}
.spanForHeader:hover {
color: var(--links);
2023-04-03 18:25:08 +02:00
}
.tenRecentPosts li {
2023-04-03 18:25:08 +02:00
padding-top: 10px;
}
.white_span {
2023-04-03 18:25:08 +02:00
color: var(--fg);
}
.white_link a {
2023-04-03 18:25:08 +02:00
color: var(--fg);
}
.muted_text {
2023-04-03 18:25:08 +02:00
color: var(--muted_text);
2023-04-05 19:31:34 +02:00
}
article p {
line-height: 1.4em;
2023-04-05 19:31:34 +02:00
}
2023-04-05 20:22:27 +02:00
ul {
2023-04-05 19:31:34 +02:00
line-height: 1.3em;
}
2023-04-05 20:22:27 +02:00
.footnotes {
line-height: 0px;
2023-04-07 21:02:50 +02:00
}
ol {
line-height: 1.5em;
2023-04-07 21:18:34 +02:00
}
/* ol li {
2023-04-07 21:18:34 +02:00
margin-top: 1em;
} */
2023-04-07 21:18:34 +02:00
ol li::marker {
2023-04-07 21:18:34 +02:00
color: var(--strong);
}
ul li::marker {
2023-04-07 21:18:34 +02:00
color: var(--strong)
}
h1:hover .anchor,
h2:hover .anchor,
h3:hover .anchor,
h4:hover .anchor,
h5:hover .anchor,
h6:hover .anchor {
display: inline-flex;
color: var(--links);
margin-inline-start: 8px;
font-weight: 500;
user-select: none;
}
.post-content a {
box-shadow: 0 1px 0;
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
}
2023-04-11 22:07:20 +02:00
.category-links {
font-size: 1.3em;
2023-04-11 22:14:23 +02:00
}
.index-links a,
.tenRecentPosts a,
.footnote-ref {
text-decoration: none;
2023-04-11 22:07:20 +02:00
box-shadow: none;
2023-04-11 22:28:30 +02:00
}
.post-content blockquote {
margin: 20px 0;
padding: 0 14px;
border-inline-start: 3px solid var(--fg);
2023-04-15 08:18:42 +02:00
}
ul li {
2023-04-15 08:18:42 +02:00
padding-top: 0.1em;
}
.rssSvg {
2023-04-15 08:18:42 +02:00
padding-top: 0.5em;
}
p code,
li code {
background: var(--code-background);
color: var(--code-fg);
padding: 0.1rem 0.2rem;
2023-04-30 14:45:40 +02:00
}
.indexImage {
margin: auto;
display: inline-block;
max-width: 25%;
2023-04-30 14:45:40 +02:00
width: 35%;
min-width: 275px;
2023-04-30 14:45:40 +02:00
}
2023-04-30 20:19:21 +02:00
.indexImage img {
max-width: 70%;
}
2023-04-30 14:45:40 +02:00
.indexImage figcaption {
padding-top: 0.5em;
font-size: 1.05em;
}
#tagcloud {
clear: both;
padding: 0;
border-radius: 10px;
text-align: center;
margin: 0 auto;
border: solid 1px;
border-style: dashed;
list-style: none;
}
#tagcloud li {
display: inline-block;
}
#tagcloud a {
display: block;
width: auto;
border-radius: 10px;
padding: .25em;
margin: 2px;
}
#tagcloud a:hover {
box-shadow: 2px 2px 2px 2px black;
}
/* figcaption {
text-align: center ;
display: block ;
font-style: italic ;
}
*/
2023-05-15 20:42:40 +02:00
.removeLineHeight p {
line-height: 0.5em;
}
2023-05-18 17:28:55 +02:00
.breadcrumbs {
font-size: smaller;
2023-05-18 17:28:55 +02:00
}
article {
padding: 0 0.5em;
padding: 2%;
2023-07-15 10:51:13 +02:00
/* min-height: 77.02vh; */
}
.footnotes ol li::marker {
color: var(--fg);
}
.footnotes ul li::marker {
color: var(--fg)
}
.highlight-title {
background: #282c34;
color: white;
/* border: 1px solid var(--strong); */
border-radius: 20px;
padding: .55em;
white-space: pre-wrap;
overflow-wrap: break-word;
max-width: 800px;
margin: auto;
font-family: 'FiraCode';
font-weight: 600;
}
summary::marker {
color: var(--strong);
}
details p {
padding-left: 2em;
}
#tag_blog:before {
content: "📜";
}
#tag_updates:before {
content: "🆕";
}
#tag_library:before {
content: "📚";
}
#tag_hackbook:before {
content: "📖";
}
#tag_ted\ kaczynski:before {
content: "💣";
}
#tag_ted-kaczynski:before {
content: "💣";
}
#tag_Blog:before {
content: "📜";
}
#tag_Updates:before {
content: "🆕";
}
#tag_Library:before {
content: "📚";
}
#tag_Hackbook:before {
content: "📖";
}
#tag_Ted\ Kaczynski:before {
content: "💣";
}
#tag_Ted-Kaczynski:before {
content: "💣";
}
#tag_BLOG:before {
content: "📜";
}
#tag_UPDATES:before {
content: "🆕";
}
#tag_Library:before {
content: "📚";
}
#tag_HACKBOOK:before {
content: "📖";
}
#tag_TED\ KACZYNSKI:before {
content: "💣";
}
#tag_TED-KACZYNSKI:before {
content: "💣";
}
#tag_personal:before {
content: "😎";
}
#tag_Personal:before {
content: "😎";
}
2023-06-24 18:57:33 +02:00
/* https://learn.netlify.app/en/shortcodes/notice/ */
div.notices {
margin: 2rem 0;
position: relative;
2023-06-24 18:57:33 +02:00
}
2023-06-24 18:57:33 +02:00
div.notices p {
padding: 15px;
display: block;
font-size: 1rem;
margin-top: 0rem;
margin-bottom: 0rem;
color: #141414;
border-radius: 15px;
2023-06-24 18:57:33 +02:00
}
2023-06-24 18:57:33 +02:00
div.notices p:first-child:before {
position: absolute;
top: 2px;
color: #fff;
/* font-family: "Font Awesome 5 Free"; */
font-weight: 900;
content: "!";
left: 10px;
2023-06-24 18:57:33 +02:00
}
2023-06-24 18:57:33 +02:00
div.notices p:first-child:after {
position: absolute;
top: 2px;
color: #fff;
left: 2rem;
2023-06-24 18:57:33 +02:00
}
2023-06-24 18:57:33 +02:00
div.notices.info p {
border-top: 30px solid #F0B37E;
background: #FFF2DB;
2023-06-24 18:57:33 +02:00
}
2023-06-24 18:57:33 +02:00
div.notices.info p:first-child:after {
content: 'Info';
2023-06-24 18:57:33 +02:00
}
2023-06-24 18:57:33 +02:00
div.notices.warning p {
border-top: 30px solid rgba(217, 83, 79, 0.8);
background: #FAE2E2;
2023-06-24 18:57:33 +02:00
}
2023-06-24 18:57:33 +02:00
div.notices.warning p:first-child:after {
content: 'Warning';
2023-06-24 18:57:33 +02:00
}
2023-06-24 18:57:33 +02:00
div.notices.warning p:first-child:before {
content: "!!!";
2023-06-24 18:57:33 +02:00
}
2023-06-24 18:57:33 +02:00
div.notices.note p {
border-top: 30px solid #6AB0DE;
background: #E7F2FA;
2023-06-24 18:57:33 +02:00
}
2023-06-24 18:57:33 +02:00
div.notices.note p:first-child:after {
content: 'Note';
2023-06-24 18:57:33 +02:00
}
2023-06-24 18:57:33 +02:00
div.notices.tip p {
border-top: 30px solid rgba(92, 184, 92, 0.8);
background: #E6F9E6;
2023-06-24 18:57:33 +02:00
}
2023-06-24 18:57:33 +02:00
div.notices.tip p:first-child:after {
content: 'Tip';
}
/* https://geekthis.net/post/hugo-footnotes-and-citations/ */
a.footnote-ref::before {
content: '[';
}
a.footnote-ref::after {
content: ']';
2023-06-24 18:57:33 +02:00
}