/*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: -3.25rem; } 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; max-width: 100%; img, picture, video, canvas, svg { display: block; margin-top: $spacing-sm; margin-bottom: $spacing-sm; max-width: 100%; } } pre, .sourceCode { overflow: auto; } // ancres a { display: inline-block; border-radius: $border-radius-md; color: $color-link; text-decoration: none; padding: 0.25rem; max-width: 65ch; word-wrap: anywhere; 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; max-width: 65ch; text-align: justify; a { padding: 0.25rem; } } #root, #__next { isolation: isolate; } ul { padding-left: 4ch; padding-right: 4ch; } li { margin-bottom: 0.25rem; #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, p.blog-subtitle { color: $color-background; text-shadow: 0 0 $spacing-sm #555; width: 100%; margin: $spacing-sm auto; } #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-date { border-top: 1px solid #ddd; } .article-navigation { margin-top: $spacing-lg; margin-bottom: $spacing-lg; a { padding-right: $spacing-lg; min-width: 45%; min-height: 2rem; } } .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: 110ch; max-width: calc(100vw - 6rem); margin: 0 auto; line-height: 1rem; } .footer-nav { max-width: 63ch; margin-top: 2rem; } iframe { max-width: 100%; } @media (max-width: 800px) { body { padding: 0; } .header-img a { float: left; } .site-icon { width: 2rem; height: 2rem; } main { padding: $spacing-sm; } #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; } }