Newer
Older
--spacing-1: #{$spacing-1}
--spacing-2: #{$spacing-2}
--spacing-3: #{$spacing-3}
--spacing-4: #{$spacing-4}
--spacing-5: #{$spacing-5}
--spacing-6: #{$spacing-6}
--spacing-7: #{$spacing-7}
--header-menu-max-height: calc(100vh - var(--header-height) - #{$spacing-6})
// TODO: choisir entre margin top / bottom --> https://matthewjamestaylor.com/css-margin-top-vs-bottom
body
color: $body-color
background: $body-background-color
@media (prefers-reduced-motion: reduce)
*
transition-duration: 0s !important
// &:not(.is-loaded)
// *
// transition-duration: 0s !important
padding-bottom: $spacing-5
margin-top: $spacing-5
ul,
ol
// https://since1979.dev/aligning-your-lists-with-your-text/
padding-left: 0
list-style-position: inside
margin-bottom: $spacing-5
details
&:not([open]):hover
summary::after
transform: translateY(5px)
summary
padding-bottom: $spacing-2
padding-top: $spacing-2
margin-left: pxToRem(10)
line-height: pxToRem(22)
transition: transform 0.25s
&::marker
content: none
&::-webkit-details-marker
display: none
&[open]
summary
justify-content: center
height: 100vh
left: 0
overflow: hidden
position: fixed
top: 0
width: 100%
padding: $spacing-4
width: auto
max-height: 100vh
overflow-y: auto
padding: $spacing-5
margin-bottom: $spacing-2
button
@include button-reset
@include icon-block(close, before)
position: absolute