style sass

This commit is contained in:
Tykayn 2024-11-10 18:43:38 +01:00 committed by tykayn
parent f016f842c9
commit 8c45ae05f9
24 changed files with 803 additions and 647 deletions

View file

@ -17,14 +17,20 @@ body {
background: #fff;
}
nav, .navbar,
nav,
.navbar,
.container,
.body-wrap {
max-width: 70ch;
margin: 0 auto;
}
h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: Helvetica, "Ubuntu Sans", "Noto Sans", Calibri, Arial, sans-serif;
margin-top: 1em;
margin-bottom: 2rem;
@ -44,12 +50,15 @@ body {
-webkit-font-smoothing: antialiased;
font-family: Helvetica, Arial, sans-serif;
padding-bottom: 20vh;
padding-left: 2rem;
padding-bottom: 2rem;
}
/* Improve media defaults */
img, picture, video, canvas, svg {
img,
picture,
video,
canvas,
svg {
display: block;
width: 100%;
margin-top: 1rem;
@ -58,16 +67,24 @@ img, picture, video, canvas, svg {
}
/* Inherit fonts for form controls */
input, button, textarea, select {
input,
button,
textarea,
select {
font: inherit;
}
/* Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
/* Improve line wrapping */
p {
text-wrap: pretty;
margin-top: 1.5rem;
@ -87,26 +104,28 @@ h3 {
font-size: 1.5rem;
}
h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
text-wrap: balance;
line-height: 1.3em;
}
#root, #__next {
#root,
#__next {
isolation: isolate;
}
input, button, textarea, select {
input,
button,
textarea,
select {
font: inherit;
}
a {
display: inline-block;
padding: 0.5rem 2rem;
margin-right: 1rem;
margin-bottom: 1rem;
}
ul {
padding-left: 4ch;
padding-right: 4ch;
@ -126,12 +145,54 @@ li {
margin-right: 1rem;
}
#masthead {
text-align: center;
}
#masthead .site-icon {
width: 9rem;
height: auto;
margin: 1rem auto;
position: static;
padding: 1rem;
}
.header-image {
padding: 1rem;
}
.blog-title,
.blog-subtitle {
margin: 1rem;
}
.content {
min-height: 50rem;
}
@media (max-width: 20rem) {
.site-footer {
min-height: 20vh;
padding: 2rem;
}
a {
display: inline-block;
padding: 0.55rem 2rem;
margin-right: 1rem;
margin-bottom: 1rem;
border-radius: 1rem;
color: rgb(0, 123, 255);
text-decoration: none;
}
main a:hover {
background: #303030;
color: #dedede;
}
@media (max-width: 75ch) {
body {
padding: 0;
}
main {
padding: 1rem;
}
}

View file

@ -1 +1 @@
{"version":3,"sourceRoot":"","sources":["../styles_src/style_general.scss"],"names":[],"mappings":"AAAA;EACI;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EAEA;EACA;EAEA;EACA;;;AAGF;AAAA;AAAA;EAGE;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;AAEA;EACE;;AAEA;EACE;;;AAIJ;AACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;AAEA;EACE;EACA;EACA;EACA;EACA;;;AAGF;AAEA;EACE;;;AAGF;AAEA;EACE;;;AAGF;AAEA;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;;;AAEF;EACE;EACA;;;AAGF;EACE;;;AAIF;EACE;;;AAIA;EAEE;EACA;EACA;;;AAIJ;EACE;;;AAEF;EACE;IACE","file":"style_general.css"}
{"version":3,"sourceRoot":"","sources":["../styles_src/style_general.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EAEA;EACA;EAEA;EACA;;;AAGF;AAAA;AAAA;AAAA;EAIE;EACA;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;EACA;EACA;EACA;;;AAGF;AAEA;EACE;;AAEA;EAEE;;;AAIJ;AACE;EACA;EACA;EACA;EACA;;;AAKF;AAEA;AAAA;AAAA;AAAA;AAAA;EAKE;EACA;EACA;EACA;EACA;;;AAGF;AAEA;AAAA;AAAA;AAAA;EAIE;;;AAGF;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAOE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EAME;EACA;;;AAGF;AAAA;EAEE;;;AAGF;AAAA;AAAA;AAAA;EAIE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAIF;EACE;;;AAIA;EAEE;EACA;EACA;;;AAIJ;EACE;;AACA;EACE;EACA;EACA;EACA;EACA;;;AAGJ;EACE;;;AAEF;AAAA;EAEE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAIF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;;AAKJ;EACE;IACE;;EAEF;IACE","file":"style_general.css"}

View file

@ -1,148 +1,213 @@
* {
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;
}
/* 1. Use a more-intuitive box-sizing model */
* {
box-sizing: border-box;
&::before,
&::after {
box-sizing: border-box;
margin: 0;
}
}
body {
/* Improve text rendering */
-webkit-font-smoothing: antialiased;
font-family: Helvetica, Arial, sans-serif;
padding-bottom: 20vh;
padding-bottom: 2rem;
// background: #222;
// color: #fff;
}
/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
display: block;
width: 100%;
margin-top: 1rem;
margin-bottom: 1rem;
max-width: 100%;
}
/* Inherit fonts for form controls */
input,
button,
textarea,
select {
font: inherit;
}
/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
p {
text-wrap: pretty;
margin-top: 1.5rem;
margin-bottom: 1rem;
}
h1 {
font-size: 4rem;
color: #221d30;
}
h2 {
font-size: 3rem;
}
h3 {
font-size: 1.5rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
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;
}
// balise crée par pandoc
#title-block-header {
display: none;
}
.navbar-menu {
img {
width: 2rem;
height: 2rem;
margin-right: 1rem;
}
}
#masthead {
text-align: center;
.site-icon {
width: 9rem;
height: auto;
margin: 1rem auto;
position: static;
padding: 1rem;
}
}
.header-image{
padding: 1rem;
}
.blog-title,
.blog-subtitle {
margin: 1rem;
}
.content {
min-height: 50rem;
}
.site-footer{
min-height: 20vh;
padding: 2rem;
}
// ancres
a {
display: inline-block;
padding: 0.55rem 2rem;
margin-right: 1rem;
margin-bottom: 1rem;
border-radius: 1rem;
color: rgb(0, 123, 255);
text-decoration: none;
main &:hover {
background: #303030;
color: #dedede;
}
}
@media (max-width: 75ch) {
body{
padding: 0;
}
html {
font-size: 1rem;
font-family: Helvetica, "Ubuntu Sans", "Noto Sans", Calibri, Arial, sans-serif;
main {
padding: 1rem;
}
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;
}
/* 1. Use a more-intuitive box-sizing model */
* {
box-sizing: border-box;
&::before, &::after {
box-sizing: border-box;
}
}
body {
/* Improve text rendering */
-webkit-font-smoothing: antialiased;
font-family: Helvetica, Arial, sans-serif;
padding-bottom: 20vh;
padding-left: 2rem;
padding-bottom: 2rem;
}
/* Improve media defaults */
img, picture, video, canvas, svg {
display: block;
width: 100%;
margin-top: 1rem;
margin-bottom: 1rem;
max-width: 100%;
}
/* Inherit fonts for form controls */
input, button, textarea, select {
font: inherit;
}
/* Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
/* Improve line wrapping */
p {
text-wrap: pretty;
margin-top: 1.5rem;
margin-bottom: 1rem;
}
h1 {
font-size: 4rem;
color: #221d30;
}
h2 {
font-size: 3rem;
}
h3 {
font-size: 1.5rem;
}
h1, h2, h3, h4, h5, h6 {
text-wrap: balance;
line-height: 1.3em;
}
#root, #__next {
isolation: isolate;
}
input, button, textarea, select {
font: inherit;
}
a{
display: inline-block;
padding: 0.5rem 2rem;
margin-right: 1rem;
margin-bottom: 1rem;
}
ul {
padding-left: 4ch;
padding-right: 4ch;
}
li {
margin-bottom: 1em;
}
// balise crée par pandoc
#title-block-header {
display: none;
}
.navbar-menu{
img{
width: 2rem;
height: 2rem;
margin-right: 1rem;
}
}
.content{
min-height: 50rem;
}
@media (max-width: 20rem) {
body {
padding: 1rem;
}
}
}