orgmode-to-gemini-blog/templates/styles_src/style_general.scss

439 lines
6 KiB
SCSS
Raw Normal View History

2024-11-11 00:02:50 +01:00
/*style général scss*/
2025-03-27 13:37:26 +01:00
@use 'variables' as *;
2025-05-13 00:13:57 +02:00
$spacing-xl: 5rem;
2025-03-09 17:00:59 +01:00
2024-11-10 00:01:15 +01:00
* {
2024-11-10 18:43:38 +01:00
box-sizing: border-box;
margin: 0;
padding: 0;
2025-03-09 17:00:59 +01:00
&::before,
&::after {
box-sizing: border-box;
}
2024-11-10 18:43:38 +01:00
}
2024-11-10 18:03:31 +01:00
2024-11-10 18:43:38 +01:00
html {
2025-03-09 17:00:59 +01:00
font-size: $font-size-base;
font-family: $font-family-base;
2024-11-10 18:43:38 +01:00
}
2024-11-10 18:03:31 +01:00
2024-11-10 18:43:38 +01:00
body {
text-align: left;
2025-03-09 17:00:59 +01:00
font-size: $font-size-body;
line-height: $line-height-base;
color: $color-text;
background: $color-background;
-webkit-font-smoothing: antialiased;
padding-bottom: $spacing-lg;
2024-11-10 18:43:38 +01:00
}
nav,
.navbar,
.container,
.body-wrap {
2025-03-09 17:00:59 +01:00
max-width: $container-max-width;
2024-11-10 18:43:38 +01:00
margin: 0 auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
2025-03-09 17:00:59 +01:00
font-family: $font-family-heading;
margin-top: $spacing-sm;
margin-bottom: $spacing-lg;
color: $color-heading;
text-decoration: none !important;
2025-03-09 17:00:59 +01:00
overflow-wrap: break-word;
text-wrap: balance;
line-height: $line-height-heading;
2025-05-13 00:13:57 +02:00
}
2025-05-13 00:13:57 +02:00
.article-title,
hr+h1 {
2025-03-09 17:00:59 +01:00
margin-top: $spacing-xl;
2025-05-13 00:13:57 +02:00
border-left: 3px solid gray;
padding-left: 3rem;
2025-05-13 12:31:24 +02:00
margin-left: -3.25rem;
}
h1:first-letter {
text-transform: uppercase;
2025-05-13 00:13:57 +02:00
font-size: 4.5rem;
2024-11-10 18:43:38 +01:00
}
2025-03-09 17:00:59 +01:00
h1 {
color: $color-heading-h1;
font-size: $font-size-h1;
text-decoration: underline;
}
2024-11-10 18:43:38 +01:00
2025-03-09 17:00:59 +01:00
h2 {
font-size: $font-size-h2;
text-decoration: underline;
2024-11-10 18:43:38 +01:00
}
2025-03-09 17:00:59 +01:00
h3 {
font-size: $font-size-h3;
text-decoration: underline;
2024-11-10 18:43:38 +01:00
}
2024-11-19 23:50:42 +01:00
.content {
2025-03-09 17:00:59 +01:00
font-size: $font-size-content;
min-height: 15rem;
2025-05-13 12:31:24 +02:00
max-width: 100%;
2024-11-14 16:22:34 +01:00
2024-11-19 23:50:42 +01:00
img,
picture,
video,
canvas,
svg {
2025-05-13 12:50:28 +02:00
2024-11-19 23:50:42 +01:00
display: block;
2025-03-09 17:00:59 +01:00
margin-top: $spacing-sm;
margin-bottom: $spacing-sm;
2025-05-13 12:50:28 +02:00
max-width: 100%;
2024-11-19 23:50:42 +01:00
}
2024-11-10 18:43:38 +01:00
}
2024-11-19 23:50:42 +01:00
pre,
.sourceCode {
overflow: auto;
2024-11-11 01:25:10 +01:00
}
2024-11-14 16:22:34 +01:00
// ancres
a {
display: inline-block;
2025-03-09 17:00:59 +01:00
border-radius: $border-radius-md;
color: $color-link;
2024-11-14 16:22:34 +01:00
text-decoration: none;
2025-05-13 12:11:17 +02:00
padding: 0.25rem;
max-width: 65ch;
2025-05-13 12:50:28 +02:00
word-wrap: anywhere;
2024-11-14 16:22:34 +01:00
main &:hover {
2025-03-09 17:00:59 +01:00
background: $color-link-hover-bg;
color: $color-link;
2025-02-23 17:37:53 +01:00
h2 {
2025-03-09 17:00:59 +01:00
color: $color-link;
2025-02-23 17:37:53 +01:00
}
2024-11-14 16:22:34 +01:00
}
.nav &,
2024-11-19 23:50:42 +01:00
.page__index & {
2025-03-09 17:00:59 +01:00
padding: $spacing-xs $spacing-lg;
2024-11-19 23:50:42 +01:00
display: block;
2025-03-09 17:00:59 +01:00
margin-right: $spacing-sm;
margin-bottom: $spacing-sm;
2024-11-19 23:50:42 +01:00
}
.site-footer & {
2025-03-09 17:00:59 +01:00
margin: 0 $spacing-sm;
2024-11-19 23:50:42 +01:00
text-decoration: underline;
}
}
a img {
2025-03-09 17:00:59 +01:00
transition: $transition-out;
&:hover {
2025-03-09 17:00:59 +01:00
box-shadow: 0 0 $spacing-sm #ccc;
transition: $transition-hover;
2024-11-19 23:50:42 +01:00
}
2024-11-14 16:22:34 +01:00
}
2024-11-10 18:43:38 +01:00
input,
button,
textarea,
select {
font: inherit;
}
2024-11-10 18:43:38 +01:00
p {
2024-11-19 23:50:42 +01:00
overflow-wrap: break-word;
2024-11-10 18:43:38 +01:00
text-wrap: pretty;
2025-03-09 17:00:59 +01:00
margin-top: $spacing-md;
margin-bottom: $spacing-sm;
2025-05-13 00:13:57 +02:00
font-size: 1.25rem;
line-height: 1.75rem;
2025-05-13 12:31:24 +02:00
max-width: 65ch;
2025-05-13 12:11:17 +02:00
text-align: justify;
a {
padding: 0.25rem;
}
2024-11-10 18:43:38 +01:00
}
#root,
#__next {
isolation: isolate;
}
ul {
padding-left: 4ch;
padding-right: 4ch;
}
li {
2025-05-13 12:31:24 +02:00
margin-bottom: 0.25rem;
#tags_page & {
2024-11-19 23:50:42 +01:00
display: inline;
}
2024-11-19 23:50:42 +01:00
a {
display: inline-block;
2025-03-09 17:00:59 +01:00
margin-right: $spacing-sm;
2024-11-19 23:50:42 +01:00
}
2024-11-10 18:43:38 +01:00
}
// balise crée par pandoc
#title-block-header {
display: none;
}
2024-11-19 23:50:42 +01:00
.navbar-brand {
visibility: hidden;
text-align: left;
}
2024-11-19 23:50:42 +01:00
.navbar-start {
>.navbar-item {
2024-11-19 23:50:42 +01:00
float: left;
}
}
2024-11-10 18:43:38 +01:00
.navbar-menu {
img {
2025-03-09 17:00:59 +01:00
width: $spacing-lg;
height: $spacing-lg;
margin-right: $spacing-sm;
2024-11-10 00:01:15 +01:00
}
2024-11-19 23:50:42 +01:00
a {
2025-03-09 17:00:59 +01:00
margin: 0 $spacing-sm;
2024-11-19 23:50:42 +01:00
text-decoration: underline;
}
}
#recherche {
2025-03-09 17:00:59 +01:00
margin-top: $spacing-md;
margin-bottom: $spacing-md;
2024-11-19 23:50:42 +01:00
float: right;
input {
2024-11-19 23:50:42 +01:00
background: transparent;
2025-03-09 17:00:59 +01:00
padding: $spacing-xs;
2024-11-19 23:50:42 +01:00
border: solid 1px #555;
2025-03-09 17:00:59 +01:00
border-radius: $border-radius-sm;
2024-11-19 23:50:42 +01:00
}
2024-11-10 18:43:38 +01:00
}
2024-11-10 00:16:15 +01:00
2024-11-10 18:43:38 +01:00
#masthead {
text-align: center;
2024-11-10 18:43:38 +01:00
.site-icon {
width: 9rem;
height: auto;
2025-03-09 17:00:59 +01:00
margin: $spacing-sm auto;
2024-11-10 18:43:38 +01:00
position: static;
2025-03-09 17:00:59 +01:00
padding: $spacing-sm;
2024-11-10 18:43:38 +01:00
}
}
2024-11-19 23:50:42 +01:00
.header-image {
2025-02-20 17:14:53 +01:00
text-align: center;
2025-03-09 17:00:59 +01:00
padding: $spacing-sm;
2024-11-19 23:50:42 +01:00
background-position: center;
background-size: cover;
2024-11-10 18:43:38 +01:00
}
2024-11-10 18:43:38 +01:00
.blog-title,
2025-05-13 12:31:24 +02:00
p.blog-subtitle {
2025-03-09 17:00:59 +01:00
color: $color-background;
text-shadow: 0 0 $spacing-sm #555;
2025-05-13 12:31:24 +02:00
width: 100%;
margin: $spacing-sm auto;
2024-11-10 18:43:38 +01:00
}
2024-11-19 23:50:42 +01:00
#page {
2025-03-09 17:00:59 +01:00
background: $color-page-bg;
2024-11-19 23:50:42 +01:00
}
2024-11-14 16:22:34 +01:00
2024-11-19 23:50:42 +01:00
.body-wrap {
2025-03-09 17:00:59 +01:00
background: $color-background;
padding: $padding-container;
2024-11-19 23:50:42 +01:00
margin-bottom: 5%;
2025-03-09 17:00:59 +01:00
margin-top: $spacing-sm;
border-radius: $border-radius-md;
2024-11-19 23:50:42 +01:00
margin-top: 7rem;
2024-11-14 16:22:34 +01:00
2025-03-09 17:00:59 +01:00
.site-header {
display: none;
}
2024-11-19 23:50:42 +01:00
}
.site-footer {
2024-11-10 18:43:38 +01:00
min-height: 20vh;
2025-03-09 17:00:59 +01:00
padding: $spacing-lg;
background: $color-footer-bg;
color: $color-footer-text;
2024-11-10 18:43:38 +01:00
}
2025-03-09 17:00:59 +01:00
article {
width: $article-width;
max-width: calc(100vw - 6rem);
}
.after-article {
border-top: 1px solid $color-border;
padding: $spacing-sm;
2024-11-19 23:50:42 +01:00
}
2025-05-13 12:31:24 +02:00
.article-date {
border-top: 1px solid #ddd;
}
2025-02-20 17:14:53 +01:00
.article-navigation {
2025-03-09 17:00:59 +01:00
margin-top: $spacing-lg;
margin-bottom: $spacing-lg;
2025-02-20 17:14:53 +01:00
a {
2025-03-09 17:00:59 +01:00
padding-right: $spacing-lg;
2025-05-13 12:31:24 +02:00
min-width: 45%;
min-height: 2rem;
2025-02-20 17:14:53 +01:00
}
}
.article-tags {
2025-03-09 17:00:59 +01:00
margin-top: $spacing-sm;
margin-bottom: $spacing-sm;
2025-02-20 17:14:53 +01:00
a {
margin-right: 1ch;
2025-03-09 17:00:59 +01:00
padding: $spacing-xs;
2025-02-20 17:14:53 +01:00
}
}
2025-03-09 17:00:59 +01:00
2025-02-20 17:14:53 +01:00
.article-tags,
.tags {
ul {
list-style-type: none;
}
2024-11-19 23:50:42 +01:00
li {
margin-right: 2ch;
2025-02-20 17:14:53 +01:00
display: inline-block;
2024-11-19 23:50:42 +01:00
a {
margin-right: 1ch;
2025-03-09 17:00:59 +01:00
padding: $spacing-xs;
2024-11-19 23:50:42 +01:00
}
2024-11-17 01:13:07 +01:00
}
}
blockquote,
q {
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
quotes: none;
2025-03-09 17:00:59 +01:00
border-left: 3px solid $color-blockquote-border;
padding-left: $spacing-lg;
padding-top: $spacing-md;
padding-bottom: $spacing-md;
}
2025-02-20 14:53:59 +01:00
.article-main-content {
min-height: 80vh;
}
2025-02-20 17:14:53 +01:00
.more-content {
.column {
width: 20%;
&:nth-of-type(2) {
width: 80%;
}
}
img {
max-width: 3rem;
height: 3rem;
2025-03-09 17:00:59 +01:00
margin-right: $spacing-sm;
2025-02-20 17:14:53 +01:00
}
}
2025-05-13 00:13:57 +02:00
.site-foot-soutien {
font-size: 0.8rem;
2025-05-13 12:31:24 +02:00
width: 110ch;
2025-05-13 00:13:57 +02:00
max-width: calc(100vw - 6rem);
2025-05-13 12:31:24 +02:00
margin: 0 auto;
line-height: 1rem;
}
.footer-nav {
2025-05-13 12:32:20 +02:00
max-width: 63ch;
2025-05-13 12:31:24 +02:00
margin-top: 2rem;
2025-05-13 00:13:57 +02:00
}
2025-05-13 12:50:28 +02:00
iframe {
max-width: 100%;
}
@media (max-width: 800px) {
2024-11-19 23:50:42 +01:00
body {
2024-11-10 18:43:38 +01:00
padding: 0;
2024-11-10 18:03:31 +01:00
}
2025-05-13 12:50:28 +02:00
.header-img a {
float: left;
}
.site-icon {
width: 2rem;
height: 2rem;
}
2024-11-10 18:43:38 +01:00
main {
2025-03-09 17:00:59 +01:00
padding: $spacing-sm;
2024-11-10 00:01:15 +01:00
}
2025-05-13 12:50:28 +02:00
#recherche {
display: none;
}
#recherche_footer {
padding-left: 1.25rem;
font-size: 1rem;
}
.navbar-brand {
display: none;
}
.navbar-menu {
.logo {
display: none;
}
}
.navbar a {
font-size: 1rem;
padding: 0.5rem;
float: left;
}
.body-wrap {
margin-top: 0;
}
}