/** * #.# Styles * * CSS for both Frontend+Backend. */ $zindex-0: 1 !default; $zindex-1: 100 !default; $zindex-2: 200 !default; $zindex-3: 300 !default; $zindex-4: 400 !default; $control-width-xs: 180px !default; $control-width-sm: 320px !default; $control-width-md: 640px !default; $control-width-lg: 960px !default; $unit-h: .1rem !default; $unit-1: .2rem !default; $unit-2: .4rem !default; $unit-3: .6rem !default; $unit-4: .8rem !default; $border-radius: $unit-h !default; $layout-spacing: $unit-2 !default; $layout-spacing-sm: $unit-1 !default; @mixin shadow-variant($offset) { box-shadow: 0 $offset ($offset + .05rem) * 2 rgba(black, .3); } .wp-block-cgb-block-mobilizon { margin: 0 auto; max-width: 600px; padding: 0.5rem 0; list-style: none; time { font-size: 1rem; } h2 { margin: 0.5rem 0; } li { margin-bottom: 3rem; } a, a:hover { text-decoration: none; } img { width: 100%; } } // Modals .modal { align-items: center; background: var(--global--color-background); bottom: 0; display: none; justify-content: center; left: 0; opacity: 0; overflow: hidden; padding: $layout-spacing; position: fixed; right: 0; top: 0; &:target, &.active { display: flex; opacity: 1; z-index: $zindex-4; .modal-overlay { //background: rgba($bg-color, .75); bottom: 0; cursor: default; display: block; left: 0; position: absolute; right: 0; top: 0; } .modal-container { animation: slide-down .2s ease 1; z-index: $zindex-0; } } &.modal-sm { .modal-container { max-width: $control-width-sm; padding: 0 $unit-2; } } &.modal-lg { .modal-overlay { background: inherit; } .modal-container { //box-shadow: none; max-width: $control-width-lg; } } } .modal-container { @include shadow-variant(.2rem); background: inherit; border-radius: $border-radius; display: flex; flex-direction: column; max-height: 75vh; max-width: $control-width-md; padding: 0 $unit-4; width: 100%; &.modal-fullheight { max-height: 100vh; } .modal-header { color: inherit; padding: $unit-4; .btn-clear { background: 0 0; border: 0; color: currentColor; height: 1rem; line-height: .8rem; margin-left: .2rem; margin-right: -2px; opacity: 1; padding: .1rem; text-decoration: none; width: 1rem; cursor: pointer; border-radius: .1rem; appearance: none; outline: 0; font-size: 1.5rem; text-align: center; transition: background .2s,border .2s,box-shadow .2s,color .2s; user-select: none; white-space: nowrap; } .btn-clear::before { content: "\2715"; } .float-right { float: right !important; } } .modal-body { overflow-y: auto; padding: $unit-4; position: relative; .event-description-wrapper { display: flex; flex-direction: row-reverse; flex-wrap: wrap; .event-metadata { min-width: 20rem; flex: 1; padding-left: 1rem; margin: 2rem auto; display: block; .eventMetaDataBlock { margin-bottom: 1rem; } } .event-description { min-width: 20rem; padding: 1rem; flex: 2; } } } .modal-footer { padding: $unit-4; text-align: right; a:hover { text-decoration: underline; } } }