Modifications to block list and modal styles to accomodate selectable block list in modal

This commit is contained in:
Andrew Croce
2018-08-29 09:55:14 -04:00
parent 5ce9355ccf
commit b4a5956a73
3 changed files with 76 additions and 32 deletions

View File

@@ -1,7 +1,7 @@
@mixin block-list {
@include panel-margin;
> ul {
ul, dl {
list-style: none;
margin: 0;
padding: 0;
@@ -72,26 +72,6 @@
margin: -$gap 0;
}
label {
margin: 0;
max-width: 100%;
&:hover {
color: $color-blue;
}
dd {
width: 94%;
}
&:before {
float: right;
position: relative;
top: $gap*4;
margin-right: $gap*4;
}
}
.icon-link,
.label {
&:first-child {
@@ -115,6 +95,30 @@
.block-list__item {
@include block-list-item;
&.block-list__item--selectable {
> label {
margin: 0;
max-width: none;
display: flex;
flex-direction: row-reverse;
align-items: center;
justify-content: space-between;
&::before {
flex-shrink: 0;
}
&:hover {
color: $color-primary;
}
}
input:checked {
+ label {
color: $color-primary;
}
}
}
}
.block-list__footer {

View File

@@ -18,11 +18,15 @@ h1, h2, h3, h4, h5, h6 {
font-family: $font-sans;
margin: ($gap * 2) 0;
+ .subtitle * {
margin-top: 0;
.subtitle,
+ .subtitle {
color: $color-gray;
}
+ .subtitle, * {
margin-top: 0;
}
}
.h1 { @include h1; }