/*style général scss*/ // Variables de couleurs $color-text: #000; $color-background: #fff; $color-heading: #333; $color-heading-h1: #221d30; $color-link: rgb(0, 123, 255); $color-footer-bg: #aaa; $color-footer-text: #dedede; $color-page-bg: #f4f4f4; $color-border: #dedede; $color-blockquote-border: grey; $color-link-hover-bg: #303030; // Variables de taille $article-width: 75ch; $container-max-width: 70ch; $font-size-base: 1rem; $font-size-body: 1.5rem; $font-size-content: 1.2rem; $font-size-h1: 2.5rem; $font-size-h2: 2rem; $font-size-h3: 1.5rem; $line-height-base: 1.5em; $line-height-heading: 1.3em; // Variables d'espacement $spacing-xs: 0.5rem; $spacing-sm: 1rem; $spacing-md: 1.5rem; $spacing-lg: 2rem; $spacing-xl: 5rem; $padding-container: 5% 6%; $border-radius-sm: 0.5rem; $border-radius-md: 1rem; // Variables de police $font-family-base: Helvetica, "Ubuntu Sans", "Noto Sans", Calibri, Arial, sans-serif; $font-family-heading: Helvetica, "Ubuntu Sans", "Noto Sans", Calibri, Arial, sans-serif; // Variables de transition $transition-hover: 0.25s all ease-in; $transition-out: 0.25s box-shadow ease-out; * { 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; } hr+h1 { margin-top: $spacing-xl; } h1:first-letter { text-transform: uppercase; } 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; } #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; } } @media (max-width: $article-width) { body { padding: 0; } main { padding: $spacing-sm; } }