sass-site/source/assets/css/components/_lists.scss

143 lines
2.5 KiB
SCSS
Raw Normal View History

2018-12-28 01:31:28 +01:00
.sl-c-list {
2013-02-11 00:04:29 +01:00
2018-12-28 01:31:28 +01:00
&,
&-horizontal-wrapper ul,
&-navigation-wrapper ul {
margin: 0;
padding: 0;
list-style: none;
2013-02-09 04:10:33 +01:00
}
2013-10-11 22:06:20 +02:00
2018-12-28 01:31:28 +01:00
&-horizontal-wrapper {
2018-10-27 08:06:47 +02:00
@include sl-breakpoint--medium {
// add margin-bottom space
// to the twitter follow button
margin-bottom: 1rem;
}
2018-12-28 01:31:28 +01:00
@include sl-breakpoint--large {
2013-10-11 22:06:20 +02:00
2018-12-28 01:31:28 +01:00
ul {
display: flex;
margin: {
right: -0.5rem;
left: -0.5rem;
};
2013-10-09 12:30:53 +02:00
}
2013-10-12 20:25:16 +02:00
2018-12-28 01:31:28 +01:00
li {
padding: {
right: .5rem;
left: .5rem;
};
}
2013-10-12 20:25:16 +02:00
}
}
2018-12-28 01:31:28 +01:00
&-navigation-wrapper {
2018-12-29 01:42:05 +01:00
position: relative;
2013-10-12 23:39:55 +02:00
2019-03-05 01:59:06 +01:00
li {
margin: .5rem 0;
line-height: 1.25;
}
&--collapsible {
user-select: none;
ul ul a { padding-left: 1rem; }
ul ul ul a { padding-left: 2rem; }
ul ul ul ul a { padding-left: 3rem; }
a {
border: none;
cursor: pointer;
display: block;
margin: -0.5rem 0;
padding: 0.3rem;
width: 100%;
&:hover { background-color: $sl-color--dawn-pink; }
}
li.overview a {
font-size: $sl-font-size--small;
2019-12-13 03:52:14 +01:00
&:not(.selected) { color: transparentize($sl-color--midnight-blue, 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: $sl-color--dawn-pink; }
}
}
}
2013-10-13 01:26:11 +02:00
}
2013-10-12 23:39:55 +02:00
}
2019-03-05 04:11:26 +01:00
.sl-c-description-list--horizontal {
margin: {
right: -1rem;
left: -1rem;
};
&,
> div { display: flex; }
> div {
border-left: 1px solid $sl-color--iron;
padding: 0 1rem;
&:first-child { border: 0; }
}
.compatibility {
font-weight: 600;
2019-12-12 08:47:51 +01:00
color: $sl-color--midnight-blue;
+ div { border: 0; }
}
2019-03-05 04:11:26 +01:00
dt,
dd {
padding-left: 1rem;
&:first-child { padding-left: 0; }
}
&.impl-status {
font-size: 0.8em;
margin-top: -1em;
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); }
}
}
2019-03-05 04:11:26 +01:00
}