Files
mehl.mx/themes/hugo-sustain/assets/scss/default.scss

387 lines
5.5 KiB
SCSS
Raw Normal View History

2025-03-21 12:39:43 +01:00
/* Variables */
:root {
--primary-color: #0D76EC;
--hover-color: #12437A;
--light-bg: #fff;
--primary-color-dark: #4da3ff;
--hover-color-dark: #91c9ff;
--dark-bg: #222;
--dark-font-color: #eee;
2025-03-21 22:50:46 +01:00
--dark-nav-color: #ddd;
2025-03-21 12:39:43 +01:00
}
/* Main page with sticky footer */
2019-03-18 16:50:46 +01:00
html, body {
height: 100%;
2025-03-21 12:39:43 +01:00
background-color: var(--light-bg);
2019-03-18 16:50:46 +01:00
font-family: 'Source Sans Pro', sans-serif;
2025-03-21 12:39:43 +01:00
border-top: 3px solid var(--primary-color);
2019-03-18 16:50:46 +01:00
}
#wrap {
padding-bottom: 50px;
2019-03-18 16:50:46 +01:00
min-height: 100%;
height: auto;
margin: 0 auto -65px;
// Avoid scrollbar jumps in centering
margin-left: calc(100vw - 100%);
2019-03-18 16:50:46 +01:00
}
/* Content containers */
2019-03-18 16:50:46 +01:00
.container {
width: auto;
max-width: 800px;
text-align: center;
.text-muted {
margin: 20px 0;
}
a {
2025-03-21 12:39:43 +01:00
color: var(--primary-color);
&:hover {
2025-03-21 12:39:43 +01:00
color: var(--hover-color);
}
&.label-rss {
background-color: rgba(242, 101, 34, 0.8);
color: #fff;
&:hover {
background-color: rgba(242, 101, 34, 1);
}
}
}
.label-success {
background-color: rgba(92, 139, 184, 0.6);
color: #fff;
&:hover,
&.active {
background-color: rgba(92, 139, 184, 0.9);
color: #fff;
}
}
h1 {
font-weight: bold;
2025-03-21 12:39:43 +01:00
color: var(--primary-color);
}
h4 a {
2025-03-21 12:39:43 +01:00
color: var(--primary-color);
&:hover {
2025-03-21 12:39:43 +01:00
color: var(--hover-color);
}
}
2019-03-18 16:50:46 +01:00
}
/* Images */
.container p img,
.img-responsive {
2019-03-18 16:50:46 +01:00
display: block;
height: auto;
margin: 2rem auto;
max-width: 100%;
}
/* Panels */
.panel {
2019-03-18 16:50:46 +01:00
border-style: none;
box-shadow: none;
-webkit-box-shadow: none;
&-body {
padding-top: -10px;
text-align: left;
}
&-default {
h4, h5 {
text-align: left;
}
h4 {
line-height: 24px;
font-size: 22px;
}
h5 {
line-height: 30px;
font-size: 18px;
}
h6 {
font-size: 15px;
}
}
2019-03-18 16:50:46 +01:00
}
/* Social */
2019-03-18 16:50:46 +01:00
.social-links {
display: flex;
justify-content: center;
margin: 40px auto 0;
padding: 0;
2019-03-18 16:50:46 +01:00
width: 100%;
text-align: center;
animation: fade 1s ease 1s both;
li {
display: inline-block;
padding: 0 5px;
text-align: center;
a {
font-size: 26px;
color: #000;
padding: 10px 10px 4px;
transition: all 0.4s ease;
&:hover {
color: #000;
}
i {
transform: scale(0.8);
transition: transform 0.3s;
&:hover {
transform: scale(1);
}
}
}
}
2019-03-18 16:50:46 +01:00
}
/* Layout tweaks */
2019-03-18 16:50:46 +01:00
.avatar {
padding-top: 5%;
img {
max-height: 190px;
}
2019-03-18 16:50:46 +01:00
}
.blog-post {
2019-03-18 16:50:46 +01:00
padding-top: 15px;
}
.blog-title {
2019-03-18 16:50:46 +01:00
padding-top: 2px;
}
2019-03-18 16:50:46 +01:00
.label {
display: inline-block;
margin-bottom: 5px;
}
2019-03-18 16:50:46 +01:00
.related-posts h4 {
text-align: center;
}
2019-03-18 16:50:46 +01:00
.page-not-found {
padding-top: 20%;
}
2019-03-18 16:50:46 +01:00
.disqus {
padding-bottom: 15px;
}
/* Blog content */
.blogpost {
2019-03-18 16:50:46 +01:00
text-align: left;
line-height: 30px;
font-size: 18px;
.header-image {
img {
width: 100%;
height: auto;
padding-bottom: 2px;
}
p {
opacity: 0.7;
font-size: 0.8em;
text-align: center;
line-height: 1em;
margin-bottom: 1.5em;
}
}
}
/* Metadata */
.metadata-page {
font-size: 18px;
text-align: left;
margin: 3em 0 2em;
.row {
padding-bottom: 0;
}
}
.metadata-summary {
font-size: 0.8em;
opacity: 0.7;
}
.blog-summary {
padding-bottom: 1em;
p:last-of-type {
display: inline;
}
}
/* Learn more link */
a.learn-more {
font-size: 1.8em;
line-height: 0.8em;
font-weight: 700;
font-variant: small-caps;
text-transform: lowercase;
padding: 0 1em 0 0.3em;
position: absolute;
&::after {
position: absolute;
right: 0.3em;
content: " » ";
opacity: 0.8;
transition: all 150ms linear;
}
&:hover::after {
right: 0;
opacity: 1;
}
2019-03-18 16:50:46 +01:00
}
2025-03-21 12:39:43 +01:00
/* Pagination */
.pagination {
2025-03-21 23:29:09 +01:00
li.page-item:not(.active) {
2025-03-21 12:39:43 +01:00
a {
color: var(--primary-color);
&:hover {
color: var(--hover-color);
}
}
}
}
/* Footer */
2025-03-21 12:39:43 +01:00
footer {
border-bottom: 5px solid var(--primary-color);
2019-03-18 16:50:46 +01:00
text-decoration: none !important;
.text-muted {
color: #6b6b6b;
}
2019-03-18 16:50:46 +01:00
}
/* Site specific */
section#about p {
font-size: 18px;
margin-bottom: 20px;
2019-03-18 16:50:46 +01:00
}
div.contact p {
line-height: 1.5em;
margin-bottom: 30px;
2019-03-18 16:50:46 +01:00
}
/* Helpers */
.vertical-align {
display: flex;
align-items: center;
}
pre code {
white-space: pre;
}
2025-03-21 12:39:43 +01:00
/* Dark mode */
@media (prefers-color-scheme: dark) {
html, body {
background-color: var(--dark-bg);
color: var(--dark-font-color);
}
2025-03-21 22:50:46 +01:00
// Navbar
2025-03-21 12:39:43 +01:00
.luxbar-menu a,
.luxbar-item a {
2025-03-21 22:50:46 +01:00
color: var(--dark-nav-color);
}
.luxbar-menu-light .luxbar-hamburger span {
&, &::before, &::after {
background-color: var(--dark-nav-color);
}
2025-03-21 12:39:43 +01:00
}
2025-03-21 22:50:46 +01:00
// Links, headlines etc.
2025-03-21 12:39:43 +01:00
.container {
a {
color: var(--primary-color-dark);
&:hover {
color: var(--hover-color-dark);
}
}
h4 span {
cursor: default;
}
2025-03-21 12:39:43 +01:00
h1,
h4 a {
color: var(--primary-color-dark);
&:hover {
color: var(--hover-color-dark);
}
}
}
.panel {
background-color: var(--dark-bg);
color: #ddd;
}
.social-links li a {
color: #ddd;
&:hover {
color: #fff;
}
}
// Pagination
.pagination {
li.page-item {
a {
color: var(--primary-color-dark);
background-color: #222;
&:hover {
color: var(--hover-color-dark);
background-color: #000;
}
}
}
}
footer {
.text-muted {
color: #a5a5a5 !important;
}
}
}