_button.scss
4 years ago
_checkbox.scss
4 years ago
_collapse.scss
4 years ago
_colorpicker.scss
4 years ago
_dimensions.scss
4 years ago
_f-select.scss
4 years ago
_iconpicker.scss
4 years ago
_input.scss
4 years ago
_list-table.scss
4 years ago
_notice.scss
4 years ago
_pagination.scss
4 years ago
_radio.scss
4 years ago
_repeater.scss
4 years ago
_select.scss
4 years ago
_switcher.scss
4 years ago
_tabs.scss
4 years ago
_textarea.scss
4 years ago
_time.scss
4 years ago
_wp-media.scss
4 years ago
_wp-media.scss
133 lines
| 1 | .cx-vui-media { |
| 2 | display: flex; |
| 3 | justify-content: flex-start; |
| 4 | align-items: flex-start; |
| 5 | flex-wrap: wrap; |
| 6 | |
| 7 | &__attachment { |
| 8 | display: inline-block; |
| 9 | border-radius: 5px; |
| 10 | overflow: hidden; |
| 11 | position: relative; |
| 12 | margin: 0 5px 5px 0; |
| 13 | background-color: #f4f4f5; |
| 14 | .rtl & { |
| 15 | margin: 0 0 5px 5px; |
| 16 | } |
| 17 | |
| 18 | img { |
| 19 | width: 100%; |
| 20 | height: 100%; |
| 21 | object-fit: contain; |
| 22 | } |
| 23 | |
| 24 | &:hover { |
| 25 | .cx-vui-media__attachment-controls { |
| 26 | visibility: visible; |
| 27 | pointer-events: all; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | &.attachment-type-image { |
| 32 | img { |
| 33 | width: 100%; |
| 34 | height: 100%; |
| 35 | object-fit: cover; |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | &__control { |
| 41 | position: absolute; |
| 42 | filter: drop-shadow( 1px 1px 1px rgba(35, 40, 45, 0.5) ); |
| 43 | z-index: 1; |
| 44 | |
| 45 | &-remove { |
| 46 | top: 3px; |
| 47 | right: 3px; |
| 48 | cursor: pointer; |
| 49 | .rtl & { |
| 50 | left: 3px; |
| 51 | right: auto; |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | &__attachment-controls { |
| 57 | display: flex; |
| 58 | justify-content: center; |
| 59 | align-items: center; |
| 60 | width: 100%; |
| 61 | height: 100%; |
| 62 | position: absolute; |
| 63 | top: 0; |
| 64 | right: 0; |
| 65 | background: rgba(0,0,0,.3); |
| 66 | z-index: 1; |
| 67 | visibility: hidden; |
| 68 | pointer-events: none; |
| 69 | |
| 70 | svg { |
| 71 | cursor: pointer; |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | &__add-button { |
| 76 | display: flex; |
| 77 | justify-content: center; |
| 78 | align-items: center; |
| 79 | width: 58px; |
| 80 | height: 58px; |
| 81 | background: #fff; |
| 82 | border: 1px dashed $color__border-off-panel; |
| 83 | border-radius: 5px; |
| 84 | cursor: pointer; |
| 85 | position: relative; |
| 86 | overflow: hidden; |
| 87 | transition: border-color .2s ease; |
| 88 | |
| 89 | &:hover { |
| 90 | border: 1px dashed $color__accent; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | &.size-small { |
| 95 | |
| 96 | .cx-vui-media__attachment { |
| 97 | width: 50px; |
| 98 | height: 50px; |
| 99 | } |
| 100 | |
| 101 | .cx-vui-media__add-button { |
| 102 | width: 48px; |
| 103 | height: 48px; |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | &.size-default { |
| 108 | |
| 109 | .cx-vui-media__attachment { |
| 110 | width: 80px; |
| 111 | height: 80px; |
| 112 | } |
| 113 | |
| 114 | .cx-vui-media__add-button { |
| 115 | width: 78px; |
| 116 | height: 78px; |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | &.size-large { |
| 121 | |
| 122 | .cx-vui-media__attachment { |
| 123 | width: 120px; |
| 124 | height: 120px; |
| 125 | } |
| 126 | |
| 127 | .cx-vui-media__add-button { |
| 128 | width: 118px; |
| 129 | height: 118px; |
| 130 | } |
| 131 | } |
| 132 | } |
| 133 |