From 0a5f9970015769dffaec4682383f639ee471d7de Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Wed, 13 Mar 2019 13:12:47 -0300 Subject: [PATCH] Uptate classes for tainacan modal on gutenberg. --- src/assets/scss/editor-style.scss | 9 ++----- src/editor-style.css | 40 ++++++++----------------------- src/editor-style.css.map | 2 +- 3 files changed, 13 insertions(+), 38 deletions(-) diff --git a/src/assets/scss/editor-style.scss b/src/assets/scss/editor-style.scss index 5796735..265b159 100644 --- a/src/assets/scss/editor-style.scss +++ b/src/assets/scss/editor-style.scss @@ -253,17 +253,12 @@ } /* Tainacan Selection Modal */ - .wp-block-tainacan-items-modal .modal-items-footer, - .wp-block-tainacan-terms-modal .modal-terms-footer, - .wp-block-tainacan-collections-modal .modal-collections-footer { + .wp-block-tainacan-modal .modal-footer-area{ margin: 0; border: none; padding-top: 0; } - - .wp-block-tainacan-items-modal .modal-items-search-area, - .wp-block-tainacan-collections-modal .modal-collections-search-area, - .wp-block-tainacan-terms-modal .modal-terms-search-area { + .wp-block-tainacan-modal .modal-search-area { padding: 0 14px; .components-base-control { diff --git a/src/editor-style.css b/src/editor-style.css index 37a86fa..ba701af 100644 --- a/src/editor-style.css +++ b/src/editor-style.css @@ -359,43 +359,23 @@ .edit-post-visual-editor.editor-styles-wrapper .wp-block-table td, .components-modal__screen-overlay .wp-block-table td { border: 1px solid #f2f2f2; } - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-items-modal .modal-items-footer, - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-terms-modal .modal-terms-footer, - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-collections-modal .modal-collections-footer, - .components-modal__screen-overlay .wp-block-tainacan-items-modal .modal-items-footer, - .components-modal__screen-overlay .wp-block-tainacan-terms-modal .modal-terms-footer, - .components-modal__screen-overlay .wp-block-tainacan-collections-modal .modal-collections-footer { + .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-modal .modal-footer-area, + .components-modal__screen-overlay .wp-block-tainacan-modal .modal-footer-area { margin: 0; border: none; padding-top: 0; } - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-items-modal .modal-items-search-area, - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-collections-modal .modal-collections-search-area, - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-terms-modal .modal-terms-search-area, - .components-modal__screen-overlay .wp-block-tainacan-items-modal .modal-items-search-area, - .components-modal__screen-overlay .wp-block-tainacan-collections-modal .modal-collections-search-area, - .components-modal__screen-overlay .wp-block-tainacan-terms-modal .modal-terms-search-area { + .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-modal .modal-search-area, + .components-modal__screen-overlay .wp-block-tainacan-modal .modal-search-area { padding: 0 14px; } - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-items-modal .modal-items-search-area .components-base-control, - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-collections-modal .modal-collections-search-area .components-base-control, - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-terms-modal .modal-terms-search-area .components-base-control, - .components-modal__screen-overlay .wp-block-tainacan-items-modal .modal-items-search-area .components-base-control, - .components-modal__screen-overlay .wp-block-tainacan-collections-modal .modal-collections-search-area .components-base-control, - .components-modal__screen-overlay .wp-block-tainacan-terms-modal .modal-terms-search-area .components-base-control { + .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-modal .modal-search-area .components-base-control, + .components-modal__screen-overlay .wp-block-tainacan-modal .modal-search-area .components-base-control { width: 100%; } - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-items-modal .modal-items-search-area .components-base-control .components-base-control__field, - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-collections-modal .modal-collections-search-area .components-base-control .components-base-control__field, - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-terms-modal .modal-terms-search-area .components-base-control .components-base-control__field, - .components-modal__screen-overlay .wp-block-tainacan-items-modal .modal-items-search-area .components-base-control .components-base-control__field, - .components-modal__screen-overlay .wp-block-tainacan-collections-modal .modal-collections-search-area .components-base-control .components-base-control__field, - .components-modal__screen-overlay .wp-block-tainacan-terms-modal .modal-terms-search-area .components-base-control .components-base-control__field { + .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-modal .modal-search-area .components-base-control .components-base-control__field, + .components-modal__screen-overlay .wp-block-tainacan-modal .modal-search-area .components-base-control .components-base-control__field { display: flex; align-items: center; } - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-items-modal .modal-items-search-area .components-base-control .components-base-control__field label, - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-collections-modal .modal-collections-search-area .components-base-control .components-base-control__field label, - .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-terms-modal .modal-terms-search-area .components-base-control .components-base-control__field label, - .components-modal__screen-overlay .wp-block-tainacan-items-modal .modal-items-search-area .components-base-control .components-base-control__field label, - .components-modal__screen-overlay .wp-block-tainacan-collections-modal .modal-collections-search-area .components-base-control .components-base-control__field label, - .components-modal__screen-overlay .wp-block-tainacan-terms-modal .modal-terms-search-area .components-base-control .components-base-control__field label { + .edit-post-visual-editor.editor-styles-wrapper .wp-block-tainacan-modal .modal-search-area .components-base-control .components-base-control__field label, + .components-modal__screen-overlay .wp-block-tainacan-modal .modal-search-area .components-base-control .components-base-control__field label { flex-shrink: 0; margin-right: 12px; } diff --git a/src/editor-style.css.map b/src/editor-style.css.map index 3f0bb30..8833e16 100644 --- a/src/editor-style.css.map +++ b/src/editor-style.css.map @@ -1,6 +1,6 @@ { "version": 3, -"mappings": "AAAA;iCACkC;EAE9B,WAAW,EAAE,+BAA+B;EAO5C,uBAAuB;EAOvB,4BAA4B;EAM5B,4BAA4B;EAQ5B,gBAAgB;EAchB,aAAa;EAcb,aAAa;EAoCb,gBAAgB;EA2ChB,YAAY;EAMZ,qBAAqB;EAKrB,kBAAkB;EAelB,iCAAiC;EAiDjC,gBAAgB;EAahB,eAAe;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