2024-01-07 22:33:22 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
Example layout:
|
|
|
|
<button class="menu-list-item menu-list-item--right">
|
|
|
|
<div class="menu-list-item__bullet">•</div>
|
|
|
|
<div class="menu-list-item__label">Setup controls</div>
|
|
|
|
</button>
|
|
|
|
- Variants:
|
|
|
|
.menu-list-item--right (align to right side)
|
|
|
|
- Optional:
|
|
|
|
- <div class="subtitle-title__disclaimer">Coming Soon™</div>
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
.menu-list-item {
|
2024-01-10 17:03:46 +01:00
|
|
|
@include set-color($color-text-dim);
|
2024-01-07 22:33:22 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
|
|
|
padding: space(16);
|
|
|
|
border-radius: $border-radius-sm;
|
|
|
|
background-color: rgba(0, 0, 0, 0);
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&--right {
|
|
|
|
flex-direction: row-reverse;
|
2024-04-21 17:54:48 +02:00
|
|
|
align-content: flex-end;
|
2024-01-07 22:33:22 +01:00
|
|
|
|
|
|
|
.menu-list-item__bullet {
|
|
|
|
margin-left: space(12);
|
2024-04-21 17:54:48 +02:00
|
|
|
opacity: 1;
|
2024-01-07 22:33:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&.menu-list-item:focus:not(:disabled, [disabled]),
|
|
|
|
&.menu-list-item:hover:not(:disabled, [disabled]) {
|
|
|
|
decorator: $primary-rl-fade;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus:not(:disabled, [disabled]),
|
|
|
|
&:hover:not(:disabled, [disabled]) {
|
2024-01-10 17:03:46 +01:00
|
|
|
@include set-color($color-primary);
|
2024-01-07 22:33:22 +01:00
|
|
|
decorator: $primary-lr-fade;
|
|
|
|
|
|
|
|
.menu-list-item__bullet {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:disabled, [disabled]) {
|
|
|
|
@extend %nav-all;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:disabled, &[disabled] {
|
|
|
|
opacity: 0.5;
|
|
|
|
tab-index: none;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2024-04-21 17:54:48 +02:00
|
|
|
|
2024-01-07 22:33:22 +01:00
|
|
|
.menu-list-item__label {
|
2024-04-21 17:54:48 +02:00
|
|
|
@extend %label-lg;
|
2024-01-07 22:33:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu-list-item__bullet {
|
|
|
|
margin-right: space(12);
|
2024-04-21 17:54:48 +02:00
|
|
|
opacity: 0;
|
2024-01-07 22:33:22 +01:00
|
|
|
}
|