add main edito to home

This commit is contained in:
isUnknown 2024-04-11 10:38:07 +02:00
parent 0529b131a0
commit 00935dbf8e
5 changed files with 35 additions and 18 deletions

View file

@ -37,7 +37,7 @@ body {
--entry-btns-height: 10svh;
}
body[data-template="home"] {
--entry-btns-height: 30svh;
--entry-btns-height: 15svh;
}
.page-cover {
@ -49,6 +49,14 @@ body[data-template="home"] {
display: flex;
flex-direction: column;
}
.page-cover .edito {
max-height: 43svh;
overflow: auto;
margin-top: var(--unit--vertical);
box-sizing: border-box;
border-top: 1px solid #fff;
border-bottom: 1px solid #fff;
}
.page-cover .text-wrapper {
height: 100%;
@ -76,8 +84,8 @@ body[data-template="home"] {
align-items: start;
}
.entry-btn--left::after,
.entry-btn--right::before {
button.toggle.left::after,
button.toggle.right::before {
transition: all 0.5s var(--curve-sine);
content: "+";
}

View file

@ -12,13 +12,8 @@ ul {
}
button {
background: none;
color: inherit;
border: none;
padding: 0;
font: inherit;
all: unset;
cursor: pointer;
outline: inherit;
}
a {

View file

@ -55,11 +55,14 @@ article h2 {
}
.title-center {
--margin-left: calc(4 * var(--unit--horizontal));
--margin-left: calc(3 * var(--unit--horizontal));
width: calc(100% - var(--margin-left));
margin-left: var(--margin-left);
font-size: var(--font-size-l);
line-height: var(--unit--vertical);
font-size: var(--font-size-l);
}
.title-center h2 {
font-size: var(--font-size-l);
}
.main-title {