jetpack
/
jetpack_vendor
/
automattic
/
jetpack-search
/
src
/
widgets
/
css
/
search-widget-admin-ui.css
search-widget-admin-ui.css
150 lines
| 1 | .jetpack-search-filters-widget__filter { |
| 2 | background: #f6f7f7; |
| 3 | border: 1px solid #dcdcde; |
| 4 | padding: 0 12px; |
| 5 | margin-bottom: 12px; |
| 6 | cursor: move; |
| 7 | } |
| 8 | |
| 9 | .jetpack-search-filters-widget__controls { |
| 10 | text-align: right; |
| 11 | } |
| 12 | |
| 13 | .jetpack-search-filters-widget .jetpack-search-filters-widget__sort-controls-enabled { |
| 14 | margin-left: 24px; |
| 15 | } |
| 16 | |
| 17 | .jetpack-search-filters-widget__controls .delete { |
| 18 | color: #d63638; |
| 19 | font-size: 1rem; |
| 20 | text-decoration: none; |
| 21 | cursor: pointer; |
| 22 | } |
| 23 | |
| 24 | .jetpack-search-filters-widget__controls .delete:hover { |
| 25 | text-decoration: underline; |
| 26 | } |
| 27 | |
| 28 | .jetpack-search-filters-widget.hide-filters .jetpack-search-filters-widget__filter { |
| 29 | display: none; |
| 30 | } |
| 31 | |
| 32 | .button.jetpack-search-filters-widget__add-filter { |
| 33 | margin-bottom: 10px; |
| 34 | } |
| 35 | |
| 36 | /* Assume that taxonomy select is the default selected. |
| 37 | * Other controls should be hidden here. */ |
| 38 | .jetpack-search-filters-widget__post-type-select { |
| 39 | display: none; |
| 40 | } |
| 41 | |
| 42 | .jetpack-search-filters-widget__date-histogram-select { |
| 43 | display: none; |
| 44 | } |
| 45 | |
| 46 | .jetpack-search-filters-widget__filter-placeholder { |
| 47 | border: 1px #555 dashed; |
| 48 | background-color: #f0f0f1; |
| 49 | height: 286px; |
| 50 | margin-bottom: 12px; |
| 51 | } |
| 52 | |
| 53 | /* When post type is selected, remove the other controls */ |
| 54 | .jetpack-search-filters-widget__filter.is-post_type .jetpack-search-filters-widget__taxonomy-select { |
| 55 | display: none; |
| 56 | } |
| 57 | |
| 58 | /* When author type is selected, remove the other controls */ |
| 59 | .jetpack-search-filters-widget__filter.is-author .jetpack-search-filters-widget__taxonomy-select { |
| 60 | display: none; |
| 61 | } |
| 62 | |
| 63 | /* When blog ID type is selected, remove the other controls */ |
| 64 | .jetpack-search-filters-widget__filter.is-blog_id .jetpack-search-filters-widget__taxonomy-select { |
| 65 | display: none; |
| 66 | } |
| 67 | |
| 68 | /* When date is selected, remove the other controls */ |
| 69 | .jetpack-search-filters-widget__filter.is-date_histogram .jetpack-search-filters-widget__date-histogram-select { |
| 70 | display: inline; |
| 71 | } |
| 72 | |
| 73 | .jetpack-search-filters-widget__filter.is-date_histogram .jetpack-search-filters-widget__taxonomy-select { |
| 74 | display: none; |
| 75 | } |
| 76 | |
| 77 | /* When product attribute is selected, hide taxonomy select, |
| 78 | title, and filter count */ |
| 79 | .jetpack-search-filters-widget__filter.is-product_attribute .jetpack-search-filters-widget__taxonomy-select { |
| 80 | display: none; |
| 81 | } |
| 82 | |
| 83 | .jetpack-search-filters-widget__filter.is-product_attribute .jetpack-search-filters-widget__title { |
| 84 | display: none; |
| 85 | } |
| 86 | |
| 87 | .jetpack-search-filters-widget__filter.is-product_attribute .jetpack-search-filters-widget__filter-count { |
| 88 | display: none; |
| 89 | } |
| 90 | |
| 91 | /* Hide product attribute inclusions by default */ |
| 92 | .jetpack-search-filters-widget__product-attribute-inclusions { |
| 93 | display: none; |
| 94 | } |
| 95 | |
| 96 | /* Show product attribute inclusions only when product attribute is selected */ |
| 97 | .jetpack-search-filters-widget__filter.is-product_attribute .jetpack-search-filters-widget__product-attribute-inclusions { |
| 98 | display: block; |
| 99 | } |
| 100 | |
| 101 | /* Style the attribute checkboxes in a three-column layout */ |
| 102 | .jetpack-search-filters-widget__attribute-checkboxes { |
| 103 | display: grid; |
| 104 | grid-template-columns: 1fr 1fr 1fr; |
| 105 | gap: 4px 12px; |
| 106 | margin-bottom: 12px; |
| 107 | } |
| 108 | |
| 109 | .jetpack-search-filters-widget__attribute-checkbox { |
| 110 | display: flex; |
| 111 | align-items: center; |
| 112 | margin: 0; |
| 113 | font-size: 0.9rem; |
| 114 | } |
| 115 | |
| 116 | .jetpack-search-filters-widget__attribute-checkbox input[type="checkbox"] { |
| 117 | margin: 0 6px 0 0; |
| 118 | } |
| 119 | |
| 120 | .jetpack-search-filters-widget.hide-post-types .jetpack-search-filters-widget__post-types-select { |
| 121 | display: none; |
| 122 | } |
| 123 | |
| 124 | .jetpack-search-filters-help::before { |
| 125 | display: inline-block; |
| 126 | position: relative; |
| 127 | font-family: dashicons; |
| 128 | font-size: 20px; |
| 129 | top: 5px; |
| 130 | line-height: 1px; |
| 131 | content: "\f223"; |
| 132 | } |
| 133 | |
| 134 | .jetpack-search-filters-help { |
| 135 | padding: 5px 5px 15px 0; |
| 136 | } |
| 137 | |
| 138 | .jetpack-search-filters-widget__post-types-select label { |
| 139 | display: block; |
| 140 | margin-bottom: 4px; |
| 141 | } |
| 142 | |
| 143 | .jetpack-search-filters-widget__post-types-select input[type="checkbox"] { |
| 144 | margin-left: 24px; |
| 145 | } |
| 146 | |
| 147 | body.no-js .jetpack-search-filters-widget__add-filter-wrapper { |
| 148 | display: none; |
| 149 | } |
| 150 |