mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 07:18:57 +00:00
dd6d320654
* BREAKING CHANGE: refactor with Dart Sass (supplement to #741) * chore: update .gitignore to include .vercel and .env*.local * CI: add build script for Hugo site deployment on Vercel * CI: update build script for Hugo site deployment on Vercel * refactor: update SCSS layout styles and introduce page-style mixin * refactor: reorganize SCSS files and improve layout structure * refactor: rename copy button classes and update related styles
117 lines
2.0 KiB
SCSS
117 lines
2.0 KiB
SCSS
@use "core/functions" as *;
|
|
@use "core/mixins" as *;
|
|
|
|
.single .post-footer {
|
|
margin: 2rem 0;
|
|
|
|
&~.post-reward {
|
|
margin-block: -2rem 0;
|
|
}
|
|
|
|
.post-info {
|
|
border-bottom: 1px solid fi-var(global-border-color);
|
|
padding: 0.3rem 0;
|
|
|
|
.post-info-line {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
.post-info-mod {
|
|
font-size: 0.8em;
|
|
color: fi-var(global-font-secondary-color);
|
|
|
|
@include link(false, false);
|
|
}
|
|
|
|
.post-info-license {
|
|
font-size: 0.8em;
|
|
color: fi-var(global-font-secondary-color);
|
|
|
|
@include link(false, false);
|
|
}
|
|
|
|
.post-info-md {
|
|
font-size: 0.8rem;
|
|
width: fit-content;
|
|
|
|
@include link(false, false);
|
|
|
|
>span:not(:first-child)::before {
|
|
content: '|';
|
|
margin-left: 0.25rem;
|
|
margin-right: 0.25rem;
|
|
color: fi-var(global-font-secondary-color);
|
|
}
|
|
}
|
|
|
|
.post-info-share {
|
|
a * {
|
|
vertical-align: text-bottom;
|
|
}
|
|
|
|
@include media('print') {
|
|
display: none !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.post-info-more {
|
|
padding: 0.3rem 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.9rem;
|
|
|
|
section:last-child {
|
|
@include media('print') {
|
|
display: none !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.post-tags {
|
|
max-width: 65%;
|
|
|
|
* {
|
|
display: inline;
|
|
}
|
|
|
|
@include link(true, true);
|
|
|
|
.post-tag:not(:last-child)::after {
|
|
content: ',';
|
|
margin-right: 0.25rem;
|
|
}
|
|
}
|
|
|
|
.post-nav {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 1.5rem;
|
|
padding-block: 0.5rem;
|
|
|
|
.post-nav-item {
|
|
flex: 1;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease-out;
|
|
|
|
&[rel='next'] {
|
|
text-align: right;
|
|
}
|
|
|
|
&[rel='prev']:hover {
|
|
transform: translateX(-4px);
|
|
}
|
|
|
|
&[rel='next']:hover {
|
|
transform: translateX(4px);
|
|
}
|
|
}
|
|
|
|
@include media('print') {
|
|
display: none !important;
|
|
}
|
|
}
|
|
}
|