eleventy-riksolo-com/content/style.scss

338 lines
4.6 KiB
SCSS
Raw Normal View History

@use "sass:color";
2025-01-28 03:35:11 +01:00
$grey-vdark: rgb(17, 24, 39);
$grey-dark: color.adjust($grey-vdark, $lightness: 5%);
$grey-medium: color.adjust($grey-vdark, $lightness: 15%);
2025-01-28 03:12:25 +01:00
$grey-light: #4c566a;
$white-dark: #d8dee9;
$white-light: #eceff4;
$white-vdark: color.adjust($white-light, $lightness: -15%);
2025-01-28 03:12:25 +01:00
$blue: #88c0d0;
$blue-med: #81a1c1;
$blue-dark: #5e81ac;
$text-default: $white-light;
$primary: $blue;
$secondary: $blue-med;
2025-02-13 00:26:40 +01:00
$default-font-family: 'Inconsolata', monospace;
2025-02-13 00:02:33 +01:00
$default-font-weight: 400;
2025-01-28 03:12:25 +01:00
body {
2025-01-28 03:35:11 +01:00
color: $text-default;
background-color: $grey-vdark;
2025-02-13 00:02:33 +01:00
font-family: $default-font-family;
2025-01-28 03:35:11 +01:00
line-height: 1.3rem;
2025-02-13 20:56:23 +01:00
margin: 0;
margin-top: 0.2rem;
2025-01-28 03:35:11 +01:00
.col-white-vdark {
color: $white-vdark;
}
2025-01-28 03:12:25 +01:00
.container {
max-width: 900px;
margin-left: auto;
margin-right: auto;
2025-01-31 02:18:17 +01:00
display: block;
2025-02-13 20:56:23 +01:00
}
2025-01-28 03:12:25 +01:00
2025-02-13 20:56:23 +01:00
.blog {
max-width: 700px;
margin-left: auto;
margin-right: auto;
2025-01-28 03:12:25 +01:00
2025-02-13 20:56:23 +01:00
&-header {
&>* {
display: block;
}
2025-01-28 03:12:25 +01:00
2025-02-13 20:56:23 +01:00
a,
a:visited {
color: $primary;
2025-01-28 03:35:11 +01:00
}
2025-02-13 20:56:23 +01:00
small {
margin-top: 0.1em;
margin-bottom: 0.4em;
2025-01-28 03:35:11 +01:00
}
2025-02-13 20:56:23 +01:00
}
2025-01-28 03:12:25 +01:00
2025-02-13 20:56:23 +01:00
&-content {
border-top: 1px solid $grey-medium;
margin-top: 1em;
2025-01-28 03:35:11 +01:00
}
2025-02-04 19:38:08 +01:00
2025-02-13 20:56:23 +01:00
}
2025-02-13 02:28:59 +01:00
2025-02-13 20:56:23 +01:00
.portfolio-list-item {
padding: 0.5rem;
background-color: $grey-dark;
margin-top: 1rem;
.flex {
flex-wrap: nowrap;
align-items: center;
width: 100%;
2025-02-13 02:28:59 +01:00
2025-02-13 20:56:23 +01:00
@media (max-width: 500px) {
flex-wrap: wrap !important;
}
2025-02-13 02:28:59 +01:00
2025-02-13 20:56:23 +01:00
picture {
display: block;
height: 15rem;
flex-grow: 1;
img {
height: 100%;
max-height: 100%;
min-width: 100%;
object-fit: cover;
2025-02-13 02:28:59 +01:00
}
}
2025-02-13 20:56:23 +01:00
}
2025-02-13 02:28:59 +01:00
2025-02-13 20:56:23 +01:00
&-header {
display: block;
width: 100%;
margin-bottom: 0.3rem;
2025-02-13 02:28:59 +01:00
2025-02-13 20:56:23 +01:00
& * {
display: inline;
margin: 0;
padding: 0;
2025-02-13 02:28:59 +01:00
2025-02-13 20:56:23 +01:00
margin-right: 0.2rem;
}
2025-02-13 02:50:07 +01:00
2025-02-13 20:56:23 +01:00
a {
margin-left: auto;
float: right;
2025-02-13 02:28:59 +01:00
}
}
2025-02-13 20:56:23 +01:00
}
2025-02-13 02:28:59 +01:00
2025-02-13 20:56:23 +01:00
.portfolio-detail {
width: 100vw;
2025-02-04 19:38:08 +01:00
2025-02-13 20:56:23 +01:00
&-header {
text-align: justify;
2025-02-11 20:48:28 +01:00
2025-02-13 20:56:23 +01:00
&>* {
display: block;
}
2025-02-04 19:38:08 +01:00
}
2025-02-13 20:56:23 +01:00
&-images {
display: flex;
flex-wrap: wrap;
margin-top: 1rem;
a {
2025-02-13 20:56:23 +01:00
display: block;
height: 22vw;
flex-grow: 1;
max-width: 33.33%;
@media screen and (max-width: 1250px) {
height: 30vw;
max-width: 50%;
}
@media screen and (max-width: 750px) {
max-width: 100%;
height: 100%;
}
2025-02-04 19:38:08 +01:00
2025-02-13 20:56:23 +01:00
img {
max-height: 100%;
height: 100% !important;
min-width: 100%;
object-fit: cover;
}
}
2025-02-04 19:38:08 +01:00
}
2025-02-13 20:56:23 +01:00
}
ol:not(ol *, ul *),
ul:not(ol *, ul *) {
margin-left: 0rem;
margin-top: 0rem;
margin-bottom: 1rem;
padding-left: 1.5rem;
margin-right: 2rem;
list-style-position: outside;
}
2025-02-04 19:38:08 +01:00
2025-02-13 20:56:23 +01:00
ol ol,
ol ul,
ul ol,
ul ul {
padding-left: 1rem;
2025-01-28 03:12:25 +01:00
}
2025-02-13 20:56:23 +01:00
ol p,
ul p {
margin: 0.3rem 0rem;
display: inline;
}
ol {
list-style-type: decimal;
}
ul {
list-style-type: "- ";
}
2025-02-14 04:33:14 +01:00
table {
border-collapse: collapse;
th {
text-align: left;
}
th,
td {
margin: 0;
padding: 0.2rem 0.5rem;
border: $grey-light 1px solid;
}
thead {
background-color: $grey-dark;
}
}
2025-02-13 20:56:23 +01:00
2025-02-11 22:01:11 +01:00
figure {
background-color: $grey-dark;
display: inline-block;
padding: 0.5rem;
margin: 0rem 1rem;
}
2025-01-28 03:12:25 +01:00
2025-02-13 00:02:33 +01:00
pre[class*="language-"],
code[class*="language-"] {
font-family: $default-font-family !important;
font-weight: $default-font-weight;
tab-size: 2;
line-height: 1.3rem;
}
pre[class*="language-"] {
max-width: 100%;
background: $grey-dark !important;
border-radius: 0;
padding: 0.5rem;
}
2025-01-28 03:12:25 +01:00
.nav {
width: 100%;
2025-01-28 03:54:06 +01:00
padding-top: 0.2rem;
padding-bottom: 0.9em;
2025-01-28 03:12:25 +01:00
margin-bottom: 0.6em;
2025-01-28 03:35:11 +01:00
border-bottom: 1px $grey-dark solid;
2025-01-31 02:18:17 +01:00
display: flex;
align-items: center;
flex-wrap: wrap;
2025-01-28 03:12:25 +01:00
2025-01-28 03:54:06 +01:00
a.main-logo {
font-weight: 700;
font-size: 1.2em;
text-decoration: none;
color: $text-default !important;
2025-01-31 02:18:17 +01:00
display: flex;
align-items: center;
margin-right: 1rem;
img {
height: 20px;
width: auto;
margin-right: 0.6rem;
}
2025-01-28 03:54:06 +01:00
}
2025-01-28 03:12:25 +01:00
a,
a:visited {
2025-01-28 03:54:06 +01:00
color: $primary;
2025-01-28 03:12:25 +01:00
}
}
a {
color: $primary;
&:visited {
color: $secondary;
}
2025-02-13 00:29:28 +01:00
&:active {
color: $grey-dark !important;
background-color: $primary;
}
2025-01-28 03:12:25 +01:00
}
h1,
h2,
h3,
h4 {
2025-01-28 03:35:11 +01:00
font-weight: 700;
2025-01-31 02:18:17 +01:00
line-height: 1.6rem;
2025-01-28 03:35:11 +01:00
}
h1,
h2 {
2025-01-31 02:18:17 +01:00
margin-bottom: 0.2rem;
margin-top: 0.8rem;
}
h3,
h4,
h5 {
margin-bottom: 0rem;
2025-01-31 02:18:17 +01:00
margin-top: 0.3rem;
}
2025-01-28 03:35:11 +01:00
p {
margin-top: 0.4rem;
margin-bottom: 1.4rem;
2025-01-28 03:35:11 +01:00
}
2025-01-28 03:12:25 +01:00
2025-01-28 03:35:11 +01:00
code,
pre {
background-color: $grey-dark;
padding: 0.1rem 0.4rem;
display: inline-block;
2025-01-28 03:12:25 +01:00
}
2025-01-28 03:54:06 +01:00
2025-02-13 20:56:23 +01:00
.d-inline-block {
display: inline-block;
}
2025-01-31 02:18:17 +01:00
2025-02-13 20:56:23 +01:00
img {
max-width: 100%;
2025-01-31 02:18:17 +01:00
2025-02-13 20:56:23 +01:00
&[width][height] {
height: auto;
}
2025-01-31 02:18:17 +01:00
}
2025-02-04 19:38:08 +01:00
}
2025-02-11 20:48:28 +01:00
.flex {
display: flex;
flex-shrink: 0;
flex-wrap: wrap;
}
.sl-overlay {
background: $grey-vdark !important;
}
.sl-wrapper button {
color: $text-default !important;
2025-01-28 03:12:25 +01:00
}