| 1 |
@import "../../variables"; |
| 2 |
|
| 3 |
.ghostkit-component-image-picker { |
| 4 |
.components-base-control__field { |
| 5 |
display: flex; |
| 6 |
flex-wrap: wrap; |
| 7 |
justify-content: space-between; |
| 8 |
|
| 9 |
> .components-base-control__label { |
| 10 |
min-width: 100%; |
| 11 |
} |
| 12 |
} |
| 13 |
|
| 14 |
.ghostkit-component-image-picker-item { |
| 15 |
display: flex; |
| 16 |
flex-direction: column; |
| 17 |
flex-shrink: 0; |
| 18 |
align-items: center; |
| 19 |
justify-content: flex-end; |
| 20 |
width: calc(50% - 4px); |
| 21 |
padding: 4px; |
| 22 |
margin: 4px 0; |
| 23 |
overflow: hidden; |
| 24 |
color: inherit; |
| 25 |
cursor: pointer; |
| 26 |
background: none; |
| 27 |
border: none; |
| 28 |
border-radius: 4px; |
| 29 |
|
| 30 |
&:hover { |
| 31 |
color: $dark-gray-900; |
| 32 |
background: $light-gray-100; |
| 33 |
} |
| 34 |
|
| 35 |
&.ghostkit-component-image-picker-item-active { |
| 36 |
color: $dark-gray-900; |
| 37 |
outline: 2px solid transparent; |
| 38 |
outline-offset: -2px; |
| 39 |
box-shadow: 0 0 0 2px $dark-gray-500; |
| 40 |
} |
| 41 |
|
| 42 |
&:focus { |
| 43 |
color: $dark-gray-900; |
| 44 |
outline: 2px solid transparent; |
| 45 |
outline-offset: -2px; |
| 46 |
box-shadow: 0 0 0 2px $blue-medium-focus; |
| 47 |
} |
| 48 |
|
| 49 |
img { |
| 50 |
display: block; |
| 51 |
border: 1px solid rgba($dark-gray-500, 0.2); |
| 52 |
border-radius: 4px; |
| 53 |
outline: 1px solid transparent; |
| 54 |
} |
| 55 |
|
| 56 |
span { |
| 57 |
display: block; |
| 58 |
padding: 4px 2px; |
| 59 |
text-align: center; |
| 60 |
} |
| 61 |
} |
| 62 |
} |
| 63 |
|