2020-09-09 16:28:38 +02:00
|
|
|
/*!
|
|
|
|
* Hugo Theme Stack
|
|
|
|
*
|
|
|
|
* @author: Jimmy Cai
|
|
|
|
* @website: https://jimmycai.com
|
|
|
|
* @link: https://github.com/CaiJimmy/hugo-theme-stack
|
|
|
|
*/
|
|
|
|
|
2020-09-09 16:03:09 +02:00
|
|
|
@import "breakpoints.scss";
|
2020-08-22 13:20:08 +02:00
|
|
|
@import "variables.scss";
|
|
|
|
|
|
|
|
@import "external/normalize.scss";
|
|
|
|
|
|
|
|
@import "partials/menu.scss";
|
|
|
|
@import "partials/article.scss";
|
|
|
|
@import "partials/widgets.scss";
|
|
|
|
@import "partials/footer.scss";
|
|
|
|
@import "partials/pagination.scss";
|
|
|
|
@import "partials/sidebar.scss";
|
|
|
|
@import "partials/base.scss";
|
2020-09-13 11:22:47 +02:00
|
|
|
@import "partials/layout/archives.scss";
|
2020-08-22 13:20:08 +02:00
|
|
|
@import "partials/layout/article.scss";
|
|
|
|
@import "partials/layout/taxonomy.scss";
|
|
|
|
@import "partials/layout/404.scss";
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
color: var(--accent-color);
|
2020-08-24 23:39:53 +02:00
|
|
|
|
2020-08-22 13:20:08 +02:00
|
|
|
&:hover {
|
|
|
|
color: var(--accent-color-darker);
|
|
|
|
}
|
2020-09-09 17:22:19 +02:00
|
|
|
|
|
|
|
&.link {
|
|
|
|
box-shadow: 0px -2px 0px rgba(var(--link-background-color), var(--link-background-opacity)) inset;
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
box-shadow: 0px -10px 0px rgba(var(--link-background-color), var(--link-background-opacity-hover)) inset;
|
|
|
|
}
|
|
|
|
}
|
2020-08-22 13:20:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
|
|
|
|
&.extended {
|
|
|
|
@media (min-width: $on-phone) {
|
2020-09-05 00:59:50 +02:00
|
|
|
max-width: 800px;
|
2020-08-22 13:20:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: $on-tablet) {
|
|
|
|
max-width: 972px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: $on-desktop) {
|
|
|
|
max-width: 1200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: $on-desktop-large) {
|
|
|
|
max-width: 1536px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
main.main {
|
|
|
|
min-width: 0;
|
|
|
|
padding: 0 15px;
|
|
|
|
max-width: 100%;
|
2020-09-03 23:37:48 +02:00
|
|
|
flex-grow: 1;
|
2020-09-07 11:34:28 +02:00
|
|
|
padding-top: var(--main-top-padding);
|
2020-08-22 13:20:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.main-grid {
|
|
|
|
@media (max-width: $on-phone) {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.flex {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
&.column {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.on-phone--column {
|
|
|
|
@media (max-width: $on-phone) {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.align-items--flex-start {
|
|
|
|
align-items: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.grow {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.do-not-shrink {
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.do-not-overflow {
|
|
|
|
min-width: 0;
|
|
|
|
flex-shrink: 1;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.full-width {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert {
|
|
|
|
position: fixed;
|
|
|
|
right: 20px;
|
|
|
|
bottom: 20px;
|
|
|
|
z-index: 5;
|
|
|
|
background: var(--card-background);
|
|
|
|
max-width: 400px;
|
|
|
|
padding: 15px 20px;
|
|
|
|
border-radius: var(--card-border-radius);
|
|
|
|
line-height: 1.75;
|
|
|
|
color: var(--card-text-color-secondary);
|
2020-09-09 16:14:30 +02:00
|
|
|
box-shadow: var(--shadow-l2);
|
2020-08-22 13:20:08 +02:00
|
|
|
|
|
|
|
@media (max-width: $on-phone) {
|
|
|
|
max-width: 100vw;
|
|
|
|
width: calc(100% - 30px);
|
|
|
|
left: 15px;
|
|
|
|
}
|
|
|
|
}
|