mirror of
https://forge.chapril.org/tykayn/orgmode-to-gemini-blog
synced 2025-06-20 09:04:42 +02:00
372 lines
No EOL
5.2 KiB
SCSS
372 lines
No EOL
5.2 KiB
SCSS
/*style général scss*/
|
|
@use 'variables' as *;
|
|
$spacing-xl: 5rem;
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
&::before,
|
|
&::after {
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
|
|
html {
|
|
font-size: $font-size-base;
|
|
font-family: $font-family-base;
|
|
}
|
|
|
|
body {
|
|
text-align: left;
|
|
font-size: $font-size-body;
|
|
line-height: $line-height-base;
|
|
color: $color-text;
|
|
background: $color-background;
|
|
-webkit-font-smoothing: antialiased;
|
|
padding-bottom: $spacing-lg;
|
|
}
|
|
|
|
nav,
|
|
.navbar,
|
|
.container,
|
|
.body-wrap {
|
|
max-width: $container-max-width;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-family: $font-family-heading;
|
|
margin-top: $spacing-sm;
|
|
margin-bottom: $spacing-lg;
|
|
color: $color-heading;
|
|
text-decoration: none !important;
|
|
overflow-wrap: break-word;
|
|
text-wrap: balance;
|
|
line-height: $line-height-heading;
|
|
|
|
}
|
|
|
|
.article-title,
|
|
hr+h1 {
|
|
margin-top: $spacing-xl;
|
|
border-left: 3px solid gray;
|
|
padding-left: 3rem;
|
|
margin-left: -4rem;
|
|
}
|
|
|
|
h1:first-letter {
|
|
text-transform: uppercase;
|
|
font-size: 4.5rem;
|
|
}
|
|
|
|
h1 {
|
|
color: $color-heading-h1;
|
|
font-size: $font-size-h1;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
h2 {
|
|
font-size: $font-size-h2;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
h3 {
|
|
font-size: $font-size-h3;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.content {
|
|
font-size: $font-size-content;
|
|
min-height: 15rem;
|
|
|
|
img,
|
|
picture,
|
|
video,
|
|
canvas,
|
|
svg {
|
|
width: $article-width;
|
|
display: block;
|
|
margin-top: $spacing-sm;
|
|
margin-bottom: $spacing-sm;
|
|
max-width: 100vw;
|
|
}
|
|
}
|
|
|
|
pre,
|
|
.sourceCode {
|
|
overflow: auto;
|
|
}
|
|
|
|
// ancres
|
|
a {
|
|
display: inline-block;
|
|
border-radius: $border-radius-md;
|
|
color: $color-link;
|
|
text-decoration: none;
|
|
padding: $spacing-sm;
|
|
|
|
main &:hover {
|
|
background: $color-link-hover-bg;
|
|
color: $color-link;
|
|
|
|
h2 {
|
|
color: $color-link;
|
|
}
|
|
}
|
|
|
|
.nav &,
|
|
.page__index & {
|
|
padding: $spacing-xs $spacing-lg;
|
|
display: block;
|
|
margin-right: $spacing-sm;
|
|
margin-bottom: $spacing-sm;
|
|
}
|
|
|
|
.site-footer & {
|
|
margin: 0 $spacing-sm;
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
a img {
|
|
transition: $transition-out;
|
|
|
|
&:hover {
|
|
box-shadow: 0 0 $spacing-sm #ccc;
|
|
transition: $transition-hover;
|
|
}
|
|
}
|
|
|
|
input,
|
|
button,
|
|
textarea,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
p {
|
|
overflow-wrap: break-word;
|
|
text-wrap: pretty;
|
|
margin-top: $spacing-md;
|
|
margin-bottom: $spacing-sm;
|
|
font-size: 1.25rem;
|
|
line-height: 1.75rem;
|
|
}
|
|
|
|
#root,
|
|
#__next {
|
|
isolation: isolate;
|
|
}
|
|
|
|
ul {
|
|
padding-left: 4ch;
|
|
padding-right: 4ch;
|
|
}
|
|
|
|
li {
|
|
margin-bottom: $spacing-sm;
|
|
|
|
#tags_page & {
|
|
display: inline;
|
|
}
|
|
|
|
a {
|
|
display: inline-block;
|
|
margin-right: $spacing-sm;
|
|
}
|
|
}
|
|
|
|
// balise crée par pandoc
|
|
#title-block-header {
|
|
display: none;
|
|
}
|
|
|
|
.navbar-brand {
|
|
visibility: hidden;
|
|
text-align: left;
|
|
}
|
|
|
|
.navbar-start {
|
|
>.navbar-item {
|
|
float: left;
|
|
}
|
|
}
|
|
|
|
.navbar-menu {
|
|
img {
|
|
width: $spacing-lg;
|
|
height: $spacing-lg;
|
|
margin-right: $spacing-sm;
|
|
}
|
|
|
|
a {
|
|
margin: 0 $spacing-sm;
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
#recherche {
|
|
margin-top: $spacing-md;
|
|
margin-bottom: $spacing-md;
|
|
float: right;
|
|
|
|
input {
|
|
background: transparent;
|
|
padding: $spacing-xs;
|
|
border: solid 1px #555;
|
|
border-radius: $border-radius-sm;
|
|
}
|
|
}
|
|
|
|
#masthead {
|
|
text-align: center;
|
|
|
|
.site-icon {
|
|
width: 9rem;
|
|
height: auto;
|
|
margin: $spacing-sm auto;
|
|
position: static;
|
|
padding: $spacing-sm;
|
|
}
|
|
}
|
|
|
|
.header-image {
|
|
text-align: center;
|
|
padding: $spacing-sm;
|
|
background-position: center;
|
|
background-size: cover;
|
|
}
|
|
|
|
.blog-title,
|
|
.blog-subtitle {
|
|
margin: $spacing-sm;
|
|
color: $color-background;
|
|
text-shadow: 0 0 $spacing-sm #555;
|
|
}
|
|
|
|
#page {
|
|
background: $color-page-bg;
|
|
}
|
|
|
|
.body-wrap {
|
|
background: $color-background;
|
|
padding: $padding-container;
|
|
margin-bottom: 5%;
|
|
margin-top: $spacing-sm;
|
|
border-radius: $border-radius-md;
|
|
margin-top: 7rem;
|
|
|
|
.site-header {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.site-footer {
|
|
min-height: 20vh;
|
|
padding: $spacing-lg;
|
|
background: $color-footer-bg;
|
|
color: $color-footer-text;
|
|
}
|
|
|
|
article {
|
|
width: $article-width;
|
|
max-width: calc(100vw - 6rem);
|
|
}
|
|
|
|
.after-article {
|
|
border-top: 1px solid $color-border;
|
|
padding: $spacing-sm;
|
|
}
|
|
|
|
.article-navigation {
|
|
margin-top: $spacing-lg;
|
|
margin-bottom: $spacing-lg;
|
|
|
|
a {
|
|
padding-right: $spacing-lg;
|
|
}
|
|
}
|
|
|
|
.article-tags {
|
|
margin-top: $spacing-sm;
|
|
margin-bottom: $spacing-sm;
|
|
|
|
a {
|
|
margin-right: 1ch;
|
|
padding: $spacing-xs;
|
|
}
|
|
}
|
|
|
|
|
|
.article-tags,
|
|
.tags {
|
|
ul {
|
|
list-style-type: none;
|
|
}
|
|
|
|
li {
|
|
margin-right: 2ch;
|
|
display: inline-block;
|
|
|
|
a {
|
|
margin-right: 1ch;
|
|
padding: $spacing-xs;
|
|
}
|
|
}
|
|
}
|
|
|
|
blockquote,
|
|
q {
|
|
-webkit-hyphens: none;
|
|
-moz-hyphens: none;
|
|
-ms-hyphens: none;
|
|
hyphens: none;
|
|
quotes: none;
|
|
border-left: 3px solid $color-blockquote-border;
|
|
padding-left: $spacing-lg;
|
|
padding-top: $spacing-md;
|
|
padding-bottom: $spacing-md;
|
|
}
|
|
|
|
.article-main-content {
|
|
min-height: 80vh;
|
|
}
|
|
|
|
.more-content {
|
|
.column {
|
|
width: 20%;
|
|
|
|
&:nth-of-type(2) {
|
|
width: 80%;
|
|
}
|
|
}
|
|
|
|
img {
|
|
max-width: 3rem;
|
|
height: 3rem;
|
|
margin-right: $spacing-sm;
|
|
}
|
|
}
|
|
|
|
.site-foot-soutien {
|
|
font-size: 0.8rem;
|
|
width: 75ch;
|
|
max-width: calc(100vw - 6rem);
|
|
}
|
|
|
|
@media (max-width: $article-width) {
|
|
body {
|
|
padding: 0;
|
|
}
|
|
|
|
main {
|
|
padding: $spacing-sm;
|
|
}
|
|
} |