Files
com.xaymar.www/_sass/_block-details.scss
T

89 lines
2.2 KiB
SCSS
Raw Normal View History

2022-01-10 09:22:52 +01:00
// --------------------------------------------------------------------------------
// Details
// --------------------------------------------------------------------------------
2023-04-03 22:25:08 +02:00
details.block {
2022-01-10 09:22:52 +01:00
margin: 0;
margin-left: -0.75rem;
margin-right: -0.75rem;
padding: 0.75rem;
}
2023-04-03 22:25:08 +02:00
details.block > summary {
2022-01-10 09:22:52 +01:00
margin-top: -0.75rem;
margin-left: -0.75rem;
margin-right: -0.75rem;
margin-bottom: 0.75rem;
2022-11-26 23:32:24 +01:00
cursor: pointer;
2022-01-10 09:22:52 +01:00
}
2023-06-22 20:57:27 +02:00
/* details.block > summary:has(h1),
2023-04-03 22:25:08 +02:00
details.block > summary:has(h2),
details.block > summary:has(h3),
details.block > summary:has(h4),
details.block > summary:has(h5),
2023-06-22 20:57:27 +02:00
details.block > summary:has(h6), */
details.block > summary[data-has~=h1],
details.block > summary[data-has~=h2],
details.block > summary[data-has~=h3],
details.block > summary[data-has~=h4],
details.block > summary[data-has~=h5],
details.block > summary[data-has~=h6] {
2022-01-10 09:22:52 +01:00
font-variant: small-caps;
font-weight: bold;
line-height: 1.333em;
2022-01-10 09:22:52 +01:00
padding: 0.5rem 0.75rem;
}
2023-06-22 20:57:27 +02:00
/* details.block > summary:has(h1), */
details.block > summary[data-has~=h1]{
2022-01-10 09:22:52 +01:00
font-size: 2.0rem;
background: $theme-article-heading-h1-background;
}
2023-06-22 20:57:27 +02:00
/* details.block > summary:has(h2), */
details.block > summary[data-has~=h2] {
2022-01-10 09:22:52 +01:00
font-size: 1.8rem;
background: $theme-article-heading-h2-background;
}
2023-06-22 20:57:27 +02:00
/* details.block > summary:has(h3), */
details.block > summary[data-has~=h3] {
2022-01-10 09:22:52 +01:00
font-size: 1.6667rem;
background: $theme-article-heading-h3-background;
}
2023-06-22 20:57:27 +02:00
/* details.block > summary:has(h4), */
details.block > summary[data-has~=h4] {
2022-01-10 09:22:52 +01:00
font-size: 1.45rem;
background: $theme-article-heading-h4-background;
}
2023-06-22 20:57:27 +02:00
/* details.block > summary:has(h5), */
details.block > summary[data-has~=h5] {
2022-01-10 09:22:52 +01:00
font-size: 1.3333rem;
background: $theme-article-heading-h5-background;
}
2023-06-22 20:57:27 +02:00
/* details.block > summary:has(h6), */
details.block > summary[data-has~=h6] {
2022-01-10 09:22:52 +01:00
font-size: 1.2rem;
background: $theme-article-heading-h6-background;
}
2023-04-03 22:25:08 +02:00
details.block > summary > h1,
details.block > summary > h2,
details.block > summary > h3,
details.block > summary > h4,
details.block > summary > h5,
details.block > summary > h6 {
display: inline-block;
margin: 0;
padding: 0;
font-size: inherit;
font-weight: inherit;
font-variant: inherit;
font-style: inherit;
color: inherit;
background-color: transparent;
}