_button.scss
5 years ago
_checkbox.scss
5 years ago
_collapse.scss
5 years ago
_colorpicker.scss
5 years ago
_dimensions.scss
5 years ago
_f-select.scss
5 years ago
_iconpicker.scss
5 years ago
_input.scss
5 years ago
_list-table.scss
5 years ago
_notice.scss
5 years ago
_pagination.scss
5 years ago
_radio.scss
5 years ago
_repeater.scss
5 years ago
_select.scss
5 years ago
_switcher.scss
5 years ago
_tabs.scss
5 years ago
_textarea.scss
5 years ago
_time.scss
5 years ago
_wp-media.scss
5 years ago
_iconpicker.scss
111 lines
| 1 | .cx-vui-iconpicker { |
| 2 | position: relative; |
| 3 | &__fieldgroup { |
| 4 | display: flex; |
| 5 | } |
| 6 | &__input { |
| 7 | flex: 1 0 auto; |
| 8 | } |
| 9 | &__preview { |
| 10 | width: 32px; |
| 11 | height: 32px; |
| 12 | flex: 0 0 32px; |
| 13 | display: flex; |
| 14 | align-items: center; |
| 15 | justify-content: center; |
| 16 | background: $color__bg-input; |
| 17 | border-radius: 4px; |
| 18 | margin: 0 5px 0 0; |
| 19 | .rtl & { |
| 20 | margin: 0 0 0 5px; |
| 21 | } |
| 22 | } |
| 23 | &__canvas { |
| 24 | position: absolute; |
| 25 | top: 100%; |
| 26 | left: 0; |
| 27 | right: 0; |
| 28 | margin: 20px 0 0 0; |
| 29 | box-shadow: 0px 4px 20px rgba(35, 40, 45, 0.24); |
| 30 | border-radius: 4px; |
| 31 | border: 1px solid $color__accent-border; |
| 32 | background: $color__bg-panel; |
| 33 | z-index: 999; |
| 34 | max-width: 100%; |
| 35 | width: 311px; |
| 36 | &-content { |
| 37 | padding: 10px; |
| 38 | border-radius: 4px; |
| 39 | max-height: 312px; |
| 40 | overflow-y: scroll; |
| 41 | } |
| 42 | &:before { |
| 43 | position: absolute; |
| 44 | left: 9px; |
| 45 | top: -7px; |
| 46 | width: 0; |
| 47 | height: 0; |
| 48 | border-style: solid; |
| 49 | border-width: 0 7px 7px 7px; |
| 50 | border-color: transparent transparent $color__accent-border transparent; |
| 51 | content: ""; |
| 52 | z-index: 1; |
| 53 | .rtl & { |
| 54 | left: auto; |
| 55 | right: 9px; |
| 56 | } |
| 57 | } |
| 58 | &:after { |
| 59 | position: absolute; |
| 60 | left: 10px; |
| 61 | top: -6px; |
| 62 | width: 0; |
| 63 | height: 0; |
| 64 | border-style: solid; |
| 65 | border-width: 0 6px 6px 6px; |
| 66 | z-index: 2; |
| 67 | border-color: transparent transparent $color__bg-panel transparent; |
| 68 | content: ""; |
| 69 | .rtl & { |
| 70 | left: auto; |
| 71 | right: 10px; |
| 72 | } |
| 73 | } |
| 74 | &-list { |
| 75 | display: flex; |
| 76 | flex-wrap: wrap; |
| 77 | margin: 6px -3px; |
| 78 | } |
| 79 | &-icon { |
| 80 | width: 48px; |
| 81 | height: 48px; |
| 82 | margin: 4px; |
| 83 | display: flex; |
| 84 | align-items: center; |
| 85 | justify-content: center; |
| 86 | cursor: pointer; |
| 87 | box-sizing: border-box; |
| 88 | border-radius: 4px; |
| 89 | border: 1px solid $color__border-in-panel; |
| 90 | transition: all 150ms linear; |
| 91 | i { |
| 92 | color: $color__text; |
| 93 | } |
| 94 | &--selected { |
| 95 | border-color: $color__accent-border; |
| 96 | background: $color__accent-lighter; |
| 97 | i { |
| 98 | color: $color__accent; |
| 99 | } |
| 100 | } |
| 101 | &:hover, |
| 102 | &:focus { |
| 103 | background: $color__accent; |
| 104 | border-color: $color__accent; |
| 105 | i { |
| 106 | color: #fff; |
| 107 | } |
| 108 | } |
| 109 | } |
| 110 | } |
| 111 | } |