| 1 |
.merchant-pcr-app * { |
| 2 |
outline: none; |
| 3 |
border: none; |
| 4 |
box-sizing: border-box; |
| 5 |
} |
| 6 |
|
| 7 |
.merchant-pcr-app input:focus, |
| 8 |
.merchant-pcr-app input.pcr-active, |
| 9 |
.merchant-pcr-app button:focus, |
| 10 |
.merchant-pcr-app button.pcr-active{ |
| 11 |
box-shadow: none; |
| 12 |
} |
| 13 |
|
| 14 |
.merchant-pcr-app .pcr-palette:focus, |
| 15 |
.merchant-pcr-app .pcr-slider:focus { |
| 16 |
box-shadow: none; |
| 17 |
} |
| 18 |
|
| 19 |
.merchant-pcr-app { |
| 20 |
position: fixed; |
| 21 |
z-index: 999999; |
| 22 |
top: 0; |
| 23 |
left: 0; |
| 24 |
display: flex; |
| 25 |
flex-direction: column; |
| 26 |
border-radius: 0.1em; |
| 27 |
opacity: 0; |
| 28 |
visibility: hidden; |
| 29 |
transition: opacity 0.2s, visibility 0s 0.2s; |
| 30 |
box-shadow: 0 0.15em 1.5em 0 rgba(0, 0, 0, 0.1), 0 0 1em 0 rgba(0, 0, 0, 0.03); |
| 31 |
background: #fff; |
| 32 |
} |
| 33 |
|
| 34 |
.merchant-pcr-app.visible { |
| 35 |
visibility: visible; |
| 36 |
opacity: 1; |
| 37 |
transition: opacity 0.2s; |
| 38 |
} |
| 39 |
|
| 40 |
.merchant-pcr-app .pcr-swatches { |
| 41 |
display: flex; |
| 42 |
justify-content: space-between; |
| 43 |
} |
| 44 |
|
| 45 |
.merchant-pcr-app .pcr-swatches>button { |
| 46 |
cursor: pointer; |
| 47 |
font-size: 1em; |
| 48 |
position: relative; |
| 49 |
z-index: 1; |
| 50 |
width: 20px; |
| 51 |
height: 20px; |
| 52 |
margin: 0; |
| 53 |
padding: 0; |
| 54 |
background: none; |
| 55 |
} |
| 56 |
|
| 57 |
.merchant-pcr-app .pcr-swatches>button::before { |
| 58 |
position: absolute; |
| 59 |
content: ''; |
| 60 |
top: 0; |
| 61 |
left: 0; |
| 62 |
bottom: 0; |
| 63 |
right: 0; |
| 64 |
background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>'); |
| 65 |
background-size: 6px; |
| 66 |
border-radius: 20px; |
| 67 |
border: 1px solid transparent; |
| 68 |
z-index: -1; |
| 69 |
} |
| 70 |
|
| 71 |
.merchant-pcr-app .pcr-swatches>button::after { |
| 72 |
content: ''; |
| 73 |
position: absolute; |
| 74 |
z-index: 1; |
| 75 |
top: 0; |
| 76 |
left: 0; |
| 77 |
right: 0; |
| 78 |
bottom: 0; |
| 79 |
border-radius: 20px; |
| 80 |
border: 1px solid rgba(0, 0, 0, 0.3); |
| 81 |
background: var(--pcr-color); |
| 82 |
} |
| 83 |
|
| 84 |
.merchant-pcr-app .pcr-interaction { |
| 85 |
display: flex; |
| 86 |
grid-gap: 5px; |
| 87 |
} |
| 88 |
|
| 89 |
.merchant-pcr-app .pcr-interaction input { |
| 90 |
font-size: 11px; |
| 91 |
border-radius: 3px; |
| 92 |
|
| 93 |
&:focus{ |
| 94 |
border-color: #3858E9; |
| 95 |
} |
| 96 |
} |
| 97 |
|
| 98 |
.merchant-pcr-app .pcr-interaction .pcr-result { |
| 99 |
flex: 1; |
| 100 |
margin: 0; |
| 101 |
width: 100%; |
| 102 |
max-width: 100%; |
| 103 |
} |
| 104 |
|
| 105 |
.merchant-pcr-app .pcr-interaction .pcr-clear { |
| 106 |
cursor: pointer; |
| 107 |
margin: 0; |
| 108 |
padding: 0 10px; |
| 109 |
border-radius: 3px; |
| 110 |
color: #fff; |
| 111 |
background-color: #3858E9; |
| 112 |
text-transform: uppercase; |
| 113 |
} |
| 114 |
|
| 115 |
.merchant-pcr-app .pcr-selection .pcr-picker { |
| 116 |
user-select: none; |
| 117 |
position: absolute; |
| 118 |
height: 16px; |
| 119 |
width: 16px; |
| 120 |
border-radius: 16px; |
| 121 |
background-color: #fff !important; |
| 122 |
box-shadow: 1px 2px 6px rgba(0,0,0,0.2); |
| 123 |
} |
| 124 |
|
| 125 |
.merchant-pcr-app .pcr-selection .pcr-color-palette, |
| 126 |
.merchant-pcr-app .pcr-selection .pcr-color-chooser, |
| 127 |
.merchant-pcr-app .pcr-selection .pcr-color-opacity { |
| 128 |
user-select: none; |
| 129 |
position: relative; |
| 130 |
display: flex; |
| 131 |
flex-direction: column; |
| 132 |
cursor: grab; |
| 133 |
} |
| 134 |
|
| 135 |
.merchant-pcr-app .pcr-selection .pcr-color-palette:active, |
| 136 |
.merchant-pcr-app .pcr-selection .pcr-color-chooser:active, |
| 137 |
.merchant-pcr-app .pcr-selection .pcr-color-opacity:active { |
| 138 |
cursor: grabbing; |
| 139 |
} |
| 140 |
|
| 141 |
.merchant-pcr-app[data-theme='merchant']='merchant'] { |
| 142 |
width: 250px; |
| 143 |
max-width: 95vw; |
| 144 |
padding: 10px; |
| 145 |
box-sizing: border-box; |
| 146 |
display: flex; |
| 147 |
grid-gap: 10px; |
| 148 |
flex-direction: column; |
| 149 |
} |
| 150 |
|
| 151 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection { |
| 152 |
display: grid; |
| 153 |
grid-gap: 10px; |
| 154 |
grid-template-columns: 1fr 4fr; |
| 155 |
grid-template-rows: 5fr auto auto; |
| 156 |
align-items: center; |
| 157 |
height: 150px; |
| 158 |
width: 100%; |
| 159 |
align-self: flex-start; |
| 160 |
} |
| 161 |
|
| 162 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-preview { |
| 163 |
grid-area: 2 / 1 / 4 / 1; |
| 164 |
height: 100%; |
| 165 |
width: 100%; |
| 166 |
display: flex; |
| 167 |
align-items: center; |
| 168 |
justify-content: center; |
| 169 |
} |
| 170 |
|
| 171 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-preview .pcr-last-color { |
| 172 |
display: none; |
| 173 |
} |
| 174 |
|
| 175 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-preview .pcr-current-color { |
| 176 |
position: relative; |
| 177 |
width: 32px; |
| 178 |
height: 32px; |
| 179 |
border-radius: 32px; |
| 180 |
overflow: hidden; |
| 181 |
border: 1px solid rgba(0, 0, 0, 0.3); |
| 182 |
background-color: var(--pcr-color); |
| 183 |
} |
| 184 |
|
| 185 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-preview .pcr-current-color::before { |
| 186 |
position: absolute; |
| 187 |
content: ''; |
| 188 |
top: 0; |
| 189 |
left: 0; |
| 190 |
width: 100%; |
| 191 |
height: 100%; |
| 192 |
background: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>'); |
| 193 |
background-size: 6px; |
| 194 |
border-radius: 100%; |
| 195 |
z-index: -1; |
| 196 |
} |
| 197 |
|
| 198 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-palette { |
| 199 |
grid-area: 1 / 1 / 2 / 3; |
| 200 |
width: 100%; |
| 201 |
height: 100%; |
| 202 |
z-index: 1; |
| 203 |
} |
| 204 |
|
| 205 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-palette .pcr-picker{ |
| 206 |
width: 18px; |
| 207 |
height: 18px; |
| 208 |
border: 2px solid #fff; |
| 209 |
box-shadow: 0 0 1px 2px #000, inset 0 0 1px 1px #000; |
| 210 |
background-color: transparent !important; |
| 211 |
} |
| 212 |
|
| 213 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-palette .pcr-palette { |
| 214 |
width: 100%; |
| 215 |
height: 100%; |
| 216 |
} |
| 217 |
|
| 218 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-palette .pcr-palette::before { |
| 219 |
position: absolute; |
| 220 |
content: ''; |
| 221 |
top: 0; |
| 222 |
left: 0; |
| 223 |
width: 100%; |
| 224 |
height: 100%; |
| 225 |
background: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>'); |
| 226 |
background-size: 8px; |
| 227 |
z-index: -1; |
| 228 |
} |
| 229 |
|
| 230 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-chooser { |
| 231 |
grid-area: 2 / 2 / 2 / 2; |
| 232 |
} |
| 233 |
|
| 234 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-opacity { |
| 235 |
grid-area: 3 / 2 / 3 / 2; |
| 236 |
} |
| 237 |
|
| 238 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-chooser, |
| 239 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-opacity { |
| 240 |
height: 12px; |
| 241 |
margin-right: 10px; |
| 242 |
} |
| 243 |
|
| 244 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-chooser .pcr-picker, |
| 245 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-opacity .pcr-picker { |
| 246 |
top: 50%; |
| 247 |
transform: translateY(-50%); |
| 248 |
} |
| 249 |
|
| 250 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-chooser .pcr-slider, |
| 251 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-opacity .pcr-slider { |
| 252 |
flex-grow: 1; |
| 253 |
} |
| 254 |
|
| 255 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-chooser .pcr-slider { |
| 256 |
background: linear-gradient(to right, red, #ff0, lime, cyan, blue, #f0f, red); |
| 257 |
} |
| 258 |
|
| 259 |
.merchant-pcr-app[data-theme='merchant']='merchant'] .pcr-selection .pcr-color-opacity .pcr-slider { |
| 260 |
background: linear-gradient(to right, transparent, black), url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>'); |
| 261 |
background-size: 100%, 6px; |
| 262 |
} |
| 263 |
|