diff --git a/scss/barrio.scss b/scss/barrio.scss index 4efaed888ebe9b91ce35030aecfe77ba8b8dbd51..baad91ccdef0e1746ef63729ccc4b1e9dcc1b597 100644 --- a/scss/barrio.scss +++ b/scss/barrio.scss @@ -21,6 +21,7 @@ @import "./components/indented"; @import "./components/item-list"; @import "./components/list-group"; +@import "./components/media"; @import "./components/node"; @import "./components/node-preview"; @import "./components/page"; diff --git a/scss/components/media.scss b/scss/components/media.scss new file mode 100644 index 0000000000000000000000000000000000000000..2a7a7bb22871833e7187b954d6071e43350acd7d --- /dev/null +++ b/scss/components/media.scss @@ -0,0 +1,106 @@ +/** + * @file + * Media related specific CSS. + */ + +/* Media Image */ +.field--name-field-media-image img { + max-width: 100%; + height: auto; +} + +/* Node Dialog Add/Select Overlay */ + +/* Two Column Layout */ +.media-library-wrapper { + display: flex; + flex-wrap: wrap; +} + +/* Left Menu Layout */ +.media-library-menu { + margin: 5px 5px 5px 0; + padding: 20px 15px; + border: 1px solid $border-color; + border-radius: 3px; + background: $gray-200; + height: 100%; +} + +.media-library-menu li { + margin: 5px; + white-space: nowrap; + height: 45px; +} + +.media-library-menu li::marker { + color: $gray-200; +} + +.media-library-menu__link { + margin: 5px 5px 5px 0; + padding: 10px 15px; + border: 1px solid $border-color; + border-radius: 3px; + background: $gray-200; +} + +.active.media-library-menu__link { + background: #fff; +} + +/* Form Elements Layout */ +.media-library-content { + flex: 2; +} + +.media-library-wrapper .form--inline { + display: flex; + flex-wrap: wrap; + align-items: end; +} + +.js-form-item { + margin: 5px; +} + +.media-library-wrapper .form-type-textfield { + flex: 2; +} + +/* Fix Form Insert Button to Bottom of Popup */ +.form-actions { + position: sticky; + bottom: 0; + background: #fff; + padding: 5px; +} + +.media-library-widget-modal .ui-dialog-content { + padding-bottom: 0; +} + +/* Grid Layout */ +.ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.media-library-widget-modal.ui-dialog--narrow { + width: 80% !important; + left: 10% !important; +} + +.media-library-views-form__rows { + display: flex; + flex-wrap: wrap; +} + +.media-library-item--grid { + margin: 10px; + width: 220px; +} + +.media-library-item--grid .js-form-type-checkbox, .media-library-item--grid .form-check-label { + padding-left: 0; +} + +/* Add or Select Media */ +.media-library-add-form__media::marker { + color: #fff; +}