Modifications to block list and modal styles to accomodate selectable block list in modal
This commit is contained in:
parent
5ce9355ccf
commit
b4a5956a73
@ -1,3 +1,5 @@
|
|||||||
|
$fixed-footer-height: 5rem + ($gap * 4);
|
||||||
|
|
||||||
.modal {
|
.modal {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
@ -7,13 +9,20 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
background-color: $color-overlay;
|
background-color: $color-overlay;
|
||||||
|
|
||||||
|
.modal__container {
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
.modal__dialog {
|
.modal__dialog {
|
||||||
padding: $gap;
|
padding: $gap;
|
||||||
height: 100vh;
|
margin: 0 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
max-width: 80rem;
|
||||||
|
max-height: 100%;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
@include media($medium-screen) {
|
@include media($medium-screen) {
|
||||||
padding: $gap * 2;
|
padding: $gap * 2;
|
||||||
@ -26,14 +35,11 @@
|
|||||||
.modal__body {
|
.modal__body {
|
||||||
background-color: $color-white;
|
background-color: $color-white;
|
||||||
padding: $gap * 2;
|
padding: $gap * 2;
|
||||||
flex-grow: 1;
|
width: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
max-width: 80rem;
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
@include media($medium-screen) {
|
@include media($medium-screen) {
|
||||||
padding: $gap * 4;
|
padding: $gap * 4;
|
||||||
flex-grow: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2 {
|
h1, h2 {
|
||||||
@ -53,20 +59,50 @@
|
|||||||
|
|
||||||
.block-list {
|
.block-list {
|
||||||
margin: -$gap * 2;
|
margin: -$gap * 2;
|
||||||
|
padding-bottom: $fixed-footer-height;
|
||||||
|
|
||||||
@include media($medium-screen) {
|
@include media($medium-screen) {
|
||||||
margin: -$gap * 4;
|
margin: -$gap * 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-list__header {
|
.block-list__header {
|
||||||
display: block;
|
border-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-group {
|
.block-list__item {
|
||||||
margin-right: $gap*4;
|
&:last-child {
|
||||||
margin-left: $gap*3;
|
border: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.block-list__footer {
|
||||||
|
height: $fixed-footer-height;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 ($gap * 2);
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
position: absolute;
|
||||||
|
bottom: $gap;
|
||||||
|
left: $gap;
|
||||||
|
right: $gap;
|
||||||
|
background: $color-white;
|
||||||
|
border-top: 1px solid $color-gray-light;
|
||||||
|
|
||||||
|
@include media($medium-screen) {
|
||||||
|
bottom: $gap * 2;
|
||||||
|
left: $gap * 2;
|
||||||
|
right: $gap * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media($large-screen) {
|
||||||
|
bottom: $gap * 4;
|
||||||
|
left: $gap * 4;
|
||||||
|
right: $gap * 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-group {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@mixin block-list {
|
@mixin block-list {
|
||||||
@include panel-margin;
|
@include panel-margin;
|
||||||
|
|
||||||
> ul {
|
ul, dl {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -72,26 +72,6 @@
|
|||||||
margin: -$gap 0;
|
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,
|
.icon-link,
|
||||||
.label {
|
.label {
|
||||||
&:first-child {
|
&:first-child {
|
||||||
@ -115,6 +95,30 @@
|
|||||||
|
|
||||||
.block-list__item {
|
.block-list__item {
|
||||||
@include 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 {
|
.block-list__footer {
|
||||||
|
@ -18,11 +18,15 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
font-family: $font-sans;
|
font-family: $font-sans;
|
||||||
margin: ($gap * 2) 0;
|
margin: ($gap * 2) 0;
|
||||||
|
|
||||||
+ .subtitle * {
|
.subtitle,
|
||||||
margin-top: 0;
|
+ .subtitle {
|
||||||
color: $color-gray;
|
color: $color-gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+ .subtitle, * {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.h1 { @include h1; }
|
.h1 { @include h1; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user