| 1 |
@import "../../variables"; |
| 2 |
|
| 3 |
.ghostkit-component-icon-picker-wrapper:has(+ .ghostkit-component-icon-picker-wrapper) { |
| 4 |
margin-bottom: -9px; |
| 5 |
|
| 6 |
.ghostkit-component-icon-picker-toggle { |
| 7 |
border-bottom: none; |
| 8 |
} |
| 9 |
} |
| 10 |
|
| 11 |
.ghostkit-component-icon-picker-toggle { |
| 12 |
position: relative; |
| 13 |
width: 100%; |
| 14 |
height: auto; |
| 15 |
padding: 10px 12px; |
| 16 |
margin-bottom: 0; |
| 17 |
border: 1px solid rgba(0, 0, 0, 10%); |
| 18 |
border-radius: 0; |
| 19 |
|
| 20 |
&.ghostkit-component-icon-picker-toggle-active { |
| 21 |
color: var(--wp-admin-theme-color); |
| 22 |
background-color: #f0f0f0; |
| 23 |
} |
| 24 |
|
| 25 |
.ghostkit-component-icon-picker-toggle-indicator { |
| 26 |
position: relative; |
| 27 |
display: flex; |
| 28 |
width: 20px; |
| 29 |
min-height: 20px; |
| 30 |
margin-right: 8px; |
| 31 |
|
| 32 |
&:empty { |
| 33 |
background-color: #e4e4e4; |
| 34 |
border-radius: 4px; |
| 35 |
} |
| 36 |
|
| 37 |
svg { |
| 38 |
width: 100%; |
| 39 |
height: auto; |
| 40 |
fill: none; |
| 41 |
} |
| 42 |
} |
| 43 |
|
| 44 |
.ghostkit-component-icon-picker-toggle-label { |
| 45 |
overflow: hidden; |
| 46 |
text-overflow: ellipsis; |
| 47 |
white-space: nowrap; |
| 48 |
} |
| 49 |
} |
| 50 |
|
| 51 |
.ghostkit-component-icon-picker-wrapper { |
| 52 |
.components-dropdown { |
| 53 |
display: block; |
| 54 |
} |
| 55 |
} |
| 56 |
|
| 57 |
.ghostkit-component-icon-picker-button { |
| 58 |
display: flex; |
| 59 |
align-items: center; |
| 60 |
justify-content: center; |
| 61 |
width: 34px; |
| 62 |
height: 34px; |
| 63 |
padding: 0; |
| 64 |
font-size: 15px; |
| 65 |
text-align: center; |
| 66 |
border-radius: 4px; |
| 67 |
|
| 68 |
&.ghostkit-component-icon-picker-preview { |
| 69 |
cursor: pointer; |
| 70 |
border: 1px solid transparent; |
| 71 |
transition: 0.15s background-color, 0.15s border-color; |
| 72 |
|
| 73 |
&:hover, |
| 74 |
&.hover { |
| 75 |
background-color: $light-gray-200; |
| 76 |
border-color: $light-gray-200; |
| 77 |
} |
| 78 |
|
| 79 |
&.hover:hover { |
| 80 |
background-color: $light-gray-500; |
| 81 |
border-color: $light-gray-500; |
| 82 |
} |
| 83 |
|
| 84 |
&.ghostkit-component-icon-picker-button-active { |
| 85 |
background-color: #fff; |
| 86 |
border-color: $blue-medium-focus; |
| 87 |
} |
| 88 |
} |
| 89 |
} |
| 90 |
|
| 91 |
.ghostkit-component-icon-picker-preview-clickable { |
| 92 |
cursor: pointer; |
| 93 |
} |
| 94 |
|
| 95 |
.ghostkit-component-icon-picker { |
| 96 |
.components-base-control { |
| 97 |
// fix hidden right part of inputs. |
| 98 |
padding-right: 2px; |
| 99 |
|
| 100 |
+ .components-base-control { |
| 101 |
margin-top: 15px; |
| 102 |
margin-bottom: 0; |
| 103 |
} |
| 104 |
} |
| 105 |
|
| 106 |
.ghostkit-component-icon-picker-list-wrap { |
| 107 |
padding: 15px; |
| 108 |
|
| 109 |
.ReactVirtualized__Grid__innerScrollContainer > div { |
| 110 |
padding-bottom: 10px; |
| 111 |
} |
| 112 |
} |
| 113 |
|
| 114 |
.ghostkit-component-icon-picker-list-panel-toggle { |
| 115 |
border-bottom: none; |
| 116 |
|
| 117 |
&.is-opened > .components-panel__body-title { |
| 118 |
margin-bottom: -16px; |
| 119 |
} |
| 120 |
} |
| 121 |
|
| 122 |
.ghostkit-component-icon-picker-list { |
| 123 |
display: flex; |
| 124 |
flex-wrap: wrap; |
| 125 |
margin-left: -10px; |
| 126 |
|
| 127 |
> * { |
| 128 |
width: calc(33.33% - 10px); |
| 129 |
max-width: calc(33.33% - 10px); |
| 130 |
margin-left: 10px; |
| 131 |
} |
| 132 |
|
| 133 |
.ghostkit-component-icon-picker-button { |
| 134 |
width: 100%; |
| 135 |
height: 55px; |
| 136 |
font-size: 20px; |
| 137 |
} |
| 138 |
} |
| 139 |
} |
| 140 |
|
| 141 |
// add max height to popover. |
| 142 |
.ghostkit-component-icon-picker-content > .components-popover__content { |
| 143 |
overflow-y: hidden !important; |
| 144 |
|
| 145 |
.ghostkit-component-icon-picker-sizer { |
| 146 |
min-width: 280px; |
| 147 |
height: 50vh; |
| 148 |
max-height: 400px; |
| 149 |
} |
| 150 |
|
| 151 |
.ghostkit-component-icon-picker { |
| 152 |
position: absolute; |
| 153 |
top: 0; |
| 154 |
left: 0; |
| 155 |
width: 100%; |
| 156 |
height: 100%; |
| 157 |
overflow: hidden; |
| 158 |
} |
| 159 |
} |
| 160 |
|