orgmode-to-gemini-blog/templates/styles_src/style_general.scss
2024-11-14 16:22:34 +01:00

220 lines
2.6 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;
}
/* 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{
img,
picture,
video,
canvas,
svg {
display: block;
margin-top: 1rem;
margin-bottom: 1rem;
max-width: 100%;
width: 100%;
}
}
pre, .sourceCode{
overflow:auto;
}
// ancres
a {
display: inline-block;
border-radius: 1rem;
color: rgb(0, 123, 255);
text-decoration: none;
main &:hover {
background: #303030;
color: #dedede;
}
.nav &,
.page__index &{
padding: 0.55rem 2rem;
display:block;
margin-right: 1rem;
margin-bottom: 1rem;
}
}
input,
button,
textarea,
select {
font: inherit;
}
p {
overflow-wrap: break-word;
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 {
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;
}
// 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;
}
#page{
background: #CCC;
}
.body-wrap{
background: #FFF;
padding: 5% 6%;
margin-bottom: 5%;
margin-top:1rem;
}
.content {
min-height: 50rem;
}
.site-footer{
min-height: 20vh;
padding: 2rem;
}
@media (max-width: 75ch) {
body{
padding: 0;
}
main {
padding: 1rem;
}
}