2025-02-23 17:37:53 +01:00

391 lines
4.7 KiB
SCSS

/*style général scss*/
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 1rem;
font-family: Helvetica, "Ubuntu Sans", "Noto Sans", Calibri, Arial, sans-serif;
}
body {
text-align: left;
font-size: 1.5rem;
line-height: 1.5em;
color: #000;
background: #fff;
}
nav,
.navbar,
.container,
.body-wrap {
max-width: 70ch;
margin: 0 auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: Helvetica, "Ubuntu Sans", "Noto Sans", Calibri, Arial, sans-serif;
margin-top: 1em;
margin-bottom: 2rem;
color: #333;
text-decoration: none !important;
}
hr+h1 {
margin-top: 5rem;
}
h1:first-letter {
text-transform: uppercase;
}
/* 1. Use a more-intuitive box-sizing model */
* {
box-sizing: border-box;
&::before,
&::after {
box-sizing: border-box;
}
}
body {
-webkit-font-smoothing: antialiased;
font-family: Helvetica, Arial, sans-serif;
padding-bottom: 20vh;
padding-bottom: 2rem;
}
/* Improve media defaults */
.content {
font-size: 1.2rem;
img,
picture,
video,
canvas,
svg {
width: 75ch;
display: block;
margin-top: 1rem;
margin-bottom: 1rem;
max-width: 100%;
}
}
pre,
.sourceCode {
overflow: auto;
}
// ancres
a {
display: inline-block;
border-radius: 1rem;
color: rgb(0, 123, 255);
text-decoration: none;
padding: 1rem;
main &:hover {
background: #303030;
color: rgb(0, 123, 255);
h2 {
color: rgb(0, 123, 255);
}
}
.nav &,
.page__index & {
padding: 0.55rem 2rem;
display: block;
margin-right: 1rem;
margin-bottom: 1rem;
}
.site-footer & {
margin: 0 1rem;
text-decoration: underline;
}
}
a img {
transition: 0.25s box-shadow ease-out;
&:hover {
box-shadow: 0 0 1rem #ccc;
transition: 0.25s all ease-in;
}
}
input,
button,
textarea,
select {
font: inherit;
}
p {
overflow-wrap: break-word;
text-wrap: pretty;
margin-top: 1.5rem;
margin-bottom: 1rem;
}
h1 {
color: #221d30;
font-size: 2.5rem;
text-decoration: underline;
}
h2 {
font-size: 2rem;
text-decoration: underline;
}
h3 {
font-size: 1.5rem;
text-decoration: underline;
}
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
text-wrap: balance;
line-height: 1.3em;
}
#root,
#__next {
isolation: isolate;
}
input,
button,
textarea,
select {
font: inherit;
}
ul {
padding-left: 4ch;
padding-right: 4ch;
}
li {
margin-bottom: 1em;
#tags_page & {
display: inline;
}
a {
display: inline-block;
margin-right: 1em;
}
}
// 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: 2rem;
height: 2rem;
margin-right: 1rem;
}
a {
margin: 0 1rem;
text-decoration: underline;
}
}
#recherche {
margin-top: 1.5rem;
margin-bottom: 1.5rem;
float: right;
input {
background: transparent;
padding: 0.5rem;
border: solid 1px #555;
border-radius: 0.5rem;
}
}
#masthead {
text-align: center;
.site-icon {
width: 9rem;
height: auto;
margin: 1rem auto;
position: static;
padding: 1rem;
}
}
.header-image {
text-align: center;
padding: 1rem;
background-position: center;
background-size: cover;
}
.blog-title,
.blog-subtitle {
margin: 1rem;
color: #fff;
text-shadow: 0 0 1rem #555;
}
#page {
background: #f4f4f4;
}
.body-wrap {
background: #fff;
padding: 5% 6%;
margin-bottom: 5%;
margin-top: 1rem;
border-radius: 1rem;
margin-top: 7rem;
}
.content {
min-height: 15rem;
}
.after-article {
border-top: 1px solid #dedede;
padding: 1rem;
}
.site-footer {
min-height: 20vh;
padding: 2rem;
background: #aaa;
color: #dedede;
}
.body-wrap {
.site-header {
display: none;
}
}
.article-navigation {
margin-top: 2rem;
margin-bottom: 2rem;
a {
padding-right: 2rem;
}
}
.article-tags {
margin-top: 1rem;
margin-bottom: 1rem;
a {
margin-right: 1ch;
padding: 0.5rem;
}
}
.article-tags,
.tags {
ul {
list-style-type: none;
}
li {
margin-right: 2ch;
display: inline-block;
a {
margin-right: 1ch;
padding: 0.5rem;
}
}
}
blockquote,
q {
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
quotes: none;
border-left: 3px solid grey;
padding-left: 2rem;
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
.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: 1rem;
}
}
@media (max-width: 75ch) {
body {
padding: 0;
}
main {
padding: 1rem;
}
}