| 1 |
div.media-modal.wp-core-ui { |
| 2 |
z-index: 99999999999999; |
| 3 |
} |
| 4 |
|
| 5 |
.givewp-media-library-control-wrapper { |
| 6 |
&.is-disabled { |
| 7 |
.givewp-media-library-drop-area { |
| 8 |
opacity: 0.7; |
| 9 |
} |
| 10 |
} |
| 11 |
} |
| 12 |
|
| 13 |
.givewp-media-library-drop-area { |
| 14 |
text-align: center; |
| 15 |
padding: var(--givewp-spacing-8) 0; |
| 16 |
border: 1px dotted; |
| 17 |
border-radius: var(--givewp-rounded-4); |
| 18 |
|
| 19 |
button { |
| 20 |
cursor: pointer; |
| 21 |
width: fit-content; |
| 22 |
margin: var(--givewp-spacing-4) auto var(--givewp-spacing-2); |
| 23 |
background: var(--givewp-neutral-100); |
| 24 |
height: initial; |
| 25 |
border: initial; |
| 26 |
padding: var(--givewp-spacing-1) var(--givewp-spacing-2); |
| 27 |
border-radius: var(--givewp-rounded-4); |
| 28 |
|
| 29 |
&:disabled { |
| 30 |
cursor: not-allowed; |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
p, svg { |
| 35 |
margin: 0; |
| 36 |
} |
| 37 |
} |
| 38 |
|
| 39 |
.givewp-media-library-control { |
| 40 |
& > button:not(svg + button) { |
| 41 |
min-height: 160px; |
| 42 |
|
| 43 |
& > img { |
| 44 |
aspect-ratio: 4 / 1; |
| 45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
&__reset { |
| 49 |
cursor: pointer; |
| 50 |
position: relative; |
| 51 |
display: flex; |
| 52 |
background: transparent; |
| 53 |
width: 100%; |
| 54 |
padding: 0; |
| 55 |
color: var(--givewp-shades-white); |
| 56 |
border: none; |
| 57 |
|
| 58 |
&:hover:not(:disabled) { |
| 59 |
svg { |
| 60 |
visibility: visible; |
| 61 |
pointer-events: none; |
| 62 |
} |
| 63 |
|
| 64 |
img { |
| 65 |
filter: brightness(80%); |
| 66 |
} |
| 67 |
} |
| 68 |
|
| 69 |
&:disabled { |
| 70 |
cursor: not-allowed; |
| 71 |
} |
| 72 |
} |
| 73 |
|
| 74 |
svg { |
| 75 |
position: absolute; |
| 76 |
top: 50%; |
| 77 |
left: 50%; |
| 78 |
transform: translate(-50%, -50%); |
| 79 |
visibility: hidden; |
| 80 |
z-index: 999; |
| 81 |
} |
| 82 |
|
| 83 |
&__image { |
| 84 |
width: 100%; |
| 85 |
object-fit: cover; |
| 86 |
object-position: center; |
| 87 |
transition: filter 0.3s ease; |
| 88 |
border-radius: var(--givewp-rounded-4); |
| 89 |
} |
| 90 |
|
| 91 |
&__button { |
| 92 |
display: flex; |
| 93 |
justify-content: center; |
| 94 |
height: 3rem; |
| 95 |
width: 100%; |
| 96 |
border: 1px dotted; |
| 97 |
|
| 98 |
&--update { |
| 99 |
margin-top: var(--givewp-spacing-2); |
| 100 |
border: 1px solid; |
| 101 |
} |
| 102 |
} |
| 103 |
|
| 104 |
&__options { |
| 105 |
display: flex; |
| 106 |
justify-content: center; |
| 107 |
width: fit-content; |
| 108 |
background: none; |
| 109 |
flex-direction: row; |
| 110 |
align-items: center; |
| 111 |
gap: 0.5rem; |
| 112 |
cursor: pointer; |
| 113 |
border-radius: var(--givewp-rounded-4); |
| 114 |
|
| 115 |
button { |
| 116 |
margin-top: var(--givewp-spacing-2); |
| 117 |
padding: 0.4rem 0.8rem 0.4rem 0.8rem; |
| 118 |
} |
| 119 |
|
| 120 |
&--remove { |
| 121 |
border: 1px solid var(--givewp-red-400); |
| 122 |
color: var(--givewp-red-400); |
| 123 |
|
| 124 |
&:hover { |
| 125 |
background-color: var(--givewp-red-25); |
| 126 |
} |
| 127 |
|
| 128 |
&:disabled { |
| 129 |
background-color: var(--givewp-red-50); |
| 130 |
border-color: currentColor; |
| 131 |
color: var(--givewp-red-200); |
| 132 |
cursor: not-allowed; |
| 133 |
} |
| 134 |
} |
| 135 |
|
| 136 |
&--update { |
| 137 |
border: 1px solid var(--givewp-neutral-300); |
| 138 |
color: var(--givewp-neutral-900); |
| 139 |
|
| 140 |
&:hover { |
| 141 |
background-color: var(--givewp-neutral-50); |
| 142 |
} |
| 143 |
|
| 144 |
&:disabled { |
| 145 |
background-color: var(--givewp-neutral-50); |
| 146 |
border-color: currentColor; |
| 147 |
color: var(--givewp-neutral-300); |
| 148 |
cursor: not-allowed; |
| 149 |
} |
| 150 |
} |
| 151 |
} |
| 152 |
|
| 153 |
.components-button.has-text { |
| 154 |
justify-content: center; |
| 155 |
} |
| 156 |
|
| 157 |
.components-button.is-secondary { |
| 158 |
box-shadow: none; |
| 159 |
|
| 160 |
&:hover { |
| 161 |
box-shadow: none; |
| 162 |
} |
| 163 |
} |
| 164 |
} |
| 165 |
|