orgmode-to-gemini-blog/templates/styles_src/style_general.scss

248 lines
3.0 KiB
SCSS
Raw Normal View History

2024-11-11 00:02:50 +01:00
/*style général scss*/
2024-11-10 00:01:15 +01:00
* {
2024-11-10 18:43:38 +01:00
box-sizing: border-box;
margin: 0;
padding: 0;
}
2024-11-10 18:03:31 +01:00
2024-11-10 18:43:38 +01:00
html {
font-size: 1rem;
font-family: Helvetica, "Ubuntu Sans", "Noto Sans", Calibri, Arial, sans-serif;
}
2024-11-10 18:03:31 +01:00
2024-11-10 18:43:38 +01:00
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 {
2024-11-10 00:01:15 +01:00
box-sizing: border-box;
}
2024-11-10 18:43:38 +01:00
}
body {
-webkit-font-smoothing: antialiased;
font-family: Helvetica, Arial, sans-serif;
padding-bottom: 20vh;
padding-bottom: 2rem;
}
/* Improve media defaults */
2024-11-14 16:22:34 +01:00
.content{
2024-11-19 14:04:52 +01:00
font-size: 1.2rem;
2024-11-14 16:22:34 +01:00
img,
picture,
video,
canvas,
svg {
display: block;
margin-top: 1rem;
margin-bottom: 1rem;
max-width: 100%;
width: 100%;
}
2024-11-10 18:43:38 +01:00
}
2024-11-11 01:25:10 +01:00
pre, .sourceCode{
overflow:auto;
}
2024-11-14 16:22:34 +01:00
// 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;
}
}
2024-11-10 18:43:38 +01:00
input,
button,
textarea,
select {
font: inherit;
}
p {
2024-11-14 16:22:34 +01:00
overflow-wrap: break-word;
2024-11-10 18:43:38 +01:00
text-wrap: pretty;
margin-top: 1.5rem;
margin-bottom: 1rem;
}
h1 {
color: #221d30;
2024-11-15 23:55:20 +01:00
font-size: 2.5rem;
text-decoration: underline;
2024-11-10 18:43:38 +01:00
}
h2 {
2024-11-15 23:55:20 +01:00
font-size: 2rem;
text-decoration: underline;
2024-11-10 18:43:38 +01:00
}
h3 {
font-size: 1.5rem;
2024-11-15 23:55:20 +01:00
text-decoration: underline;
2024-11-10 18:43:38 +01:00
}
h1,
h2,
h3,
h4,
h5,
h6 {
2024-11-15 23:55:20 +01:00
overflow-wrap: break-word;
2024-11-10 18:43:38 +01:00
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;
}
2024-11-10 18:43:38 +01:00
}
// balise crée par pandoc
#title-block-header {
display: none;
}
.navbar-brand{
display:blog;
text-align: left;
}
.navbar-start{
> .navbar-item{
2024-11-10 18:43:38 +01:00
float:left;
}
}
2024-11-10 18:43:38 +01:00
.navbar-menu {
img {
width: 2rem;
height: 2rem;
2024-11-10 00:01:15 +01:00
margin-right: 1rem;
}
2024-11-10 18:43:38 +01:00
}
2024-11-10 00:16:15 +01:00
2024-11-10 18:43:38 +01:00
#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;
}
2024-11-14 16:22:34 +01:00
#page{
background: #CCC;
}
.body-wrap{
background: #FFF;
padding: 5% 6%;
margin-bottom: 5%;
margin-top:1rem;
}
2024-11-10 18:43:38 +01:00
.content {
min-height: 50rem;
}
.site-footer{
min-height: 20vh;
padding: 2rem;
2024-11-15 16:24:31 +01:00
background: #aaa;
color: #dedede;
2024-11-10 18:43:38 +01:00
}
2024-11-17 01:13:07 +01:00
.body-wrap{
.site-header{
display:none;
}
}
2024-11-10 18:43:38 +01:00
@media (max-width: 75ch) {
body{
padding: 0;
2024-11-10 18:03:31 +01:00
}
2024-11-10 18:43:38 +01:00
main {
padding: 1rem;
2024-11-10 00:01:15 +01:00
}
2024-11-17 01:13:07 +01:00
}