@use 'sass:color'; @use '../breakpoints'; @use '../visual-design/theme'; @use '../visual-design/typography'; .sl-c-list { &, &-horizontal-wrapper ul, &-navigation-wrapper ul { margin: 0; padding: 0; list-style: none; } &-horizontal-wrapper { @include breakpoints.sl-breakpoint--medium { // add margin-bottom space // to the twitter follow button margin-bottom: var(--gutter); } @include breakpoints.sl-breakpoint--large { ul { display: flex; margin: { right: calc(var(--gutter-half) * -1); left: calc(var(--gutter-half) * -1); } } li { padding: { right: var(--gutter-half); left: var(--gutter-half); } } } } &-navigation-wrapper { position: relative; li { margin: var(--gutter-half) 0; line-height: 1.25; } &--collapsible { user-select: none; ul ul a { padding-left: var(--gutter); } ul ul ul a { padding-left: var(--gutter-double); } ul ul ul ul a { padding-left: var(--gutter-triple); } a { border: none; cursor: pointer; display: block; margin: calc(var(--gutter-half) * -1) 0; padding: 0.3rem; width: 100%; &:hover { background-color: theme.$sl-color--dawn-pink; } } li.overview a { font-size: typography.$sl-font-size--small; &:not(.selected) { color: color.adjust(theme.$sl-color--midnight-blue, $alpha: -0.3); } } li a { &.section { &::after { content: '▶'; float: right; font-size: 0.5em; text-align: center; margin-top: 5px; transition: transform 0.1s; width: 19px; } &.open::after { transform: rotate(90deg); } + ul { display: none; } &.open + ul { display: block; } } &.selected { font-weight: bold; &:not(.section) { background-color: theme.$sl-color--dawn-pink; } } } } } } .sl-c-description-list--horizontal { margin: { right: calc(var(--gutter) * -1); left: calc(var(--gutter) * -1); } &, > div { display: flex; } > div { border-left: 1px solid theme.$sl-color--iron; padding: 0 var(--gutter); &:first-child { border: 0; } } .compatibility { font-weight: 600; color: theme.$sl-color--midnight-blue; display: block; + div { border: 0; } } dt, dd { padding-left: var(--gutter); &:first-child { padding-left: 0; } } &.impl-status { font-size: 0.8em; margin-top: calc(var(--gutter) * -1); dt { word-break: normal; } a { transition: transform 0.1s; border-bottom: none; background: none; cursor: pointer; width: 19px; text-align: center; transform-origin: 8px 11px; &.expanded { transform: rotate(90deg); } } } }