_medium_editor.scss
442 lines
| 1 | /*! |
| 2 | * Copyright (c) 2024 LatePoint LLC. All rights reserved. |
| 3 | */ |
| 4 | |
| 5 | @-webkit-keyframes medium-editor-image-loading { |
| 6 | 0% { |
| 7 | -webkit-transform: scale(0); |
| 8 | transform: scale(0); |
| 9 | } |
| 10 | 100% { |
| 11 | -webkit-transform: scale(1); |
| 12 | transform: scale(1); |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | @keyframes medium-editor-image-loading { |
| 17 | 0% { |
| 18 | -webkit-transform: scale(0); |
| 19 | transform: scale(0); |
| 20 | } |
| 21 | 100% { |
| 22 | -webkit-transform: scale(1); |
| 23 | transform: scale(1); |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | @-webkit-keyframes medium-editor-pop-upwards { |
| 28 | 0% { |
| 29 | opacity: 0; |
| 30 | -webkit-transform: matrix(0.97, 0, 0, 1, 0, 12); |
| 31 | transform: matrix(0.97, 0, 0, 1, 0, 12); |
| 32 | } |
| 33 | 20% { |
| 34 | opacity: .7; |
| 35 | -webkit-transform: matrix(0.99, 0, 0, 1, 0, 2); |
| 36 | transform: matrix(0.99, 0, 0, 1, 0, 2); |
| 37 | } |
| 38 | 40% { |
| 39 | opacity: 1; |
| 40 | -webkit-transform: matrix(1, 0, 0, 1, 0, -1); |
| 41 | transform: matrix(1, 0, 0, 1, 0, -1); |
| 42 | } |
| 43 | 100% { |
| 44 | -webkit-transform: matrix(1, 0, 0, 1, 0, 0); |
| 45 | transform: matrix(1, 0, 0, 1, 0, 0); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | @keyframes medium-editor-pop-upwards { |
| 50 | 0% { |
| 51 | opacity: 0; |
| 52 | -webkit-transform: matrix(0.97, 0, 0, 1, 0, 12); |
| 53 | transform: matrix(0.97, 0, 0, 1, 0, 12); |
| 54 | } |
| 55 | 20% { |
| 56 | opacity: .7; |
| 57 | -webkit-transform: matrix(0.99, 0, 0, 1, 0, 2); |
| 58 | transform: matrix(0.99, 0, 0, 1, 0, 2); |
| 59 | } |
| 60 | 40% { |
| 61 | opacity: 1; |
| 62 | -webkit-transform: matrix(1, 0, 0, 1, 0, -1); |
| 63 | transform: matrix(1, 0, 0, 1, 0, -1); |
| 64 | } |
| 65 | 100% { |
| 66 | -webkit-transform: matrix(1, 0, 0, 1, 0, 0); |
| 67 | transform: matrix(1, 0, 0, 1, 0, 0); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | .medium-editor-anchor-preview { |
| 72 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; |
| 73 | font-size: 16px; |
| 74 | left: 0; |
| 75 | line-height: 1.4; |
| 76 | max-width: 280px; |
| 77 | position: absolute; |
| 78 | text-align: center; |
| 79 | top: 0; |
| 80 | word-break: break-all; |
| 81 | word-wrap: break-word; |
| 82 | visibility: hidden; |
| 83 | z-index: 2000; |
| 84 | } |
| 85 | |
| 86 | .medium-editor-anchor-preview a { |
| 87 | color: #fff; |
| 88 | display: inline-block; |
| 89 | margin: 0; |
| 90 | font-size: 14px; |
| 91 | } |
| 92 | |
| 93 | .medium-editor-anchor-preview-active { |
| 94 | visibility: visible; |
| 95 | } |
| 96 | |
| 97 | .medium-editor-dragover { |
| 98 | background: #ddd; |
| 99 | } |
| 100 | |
| 101 | .medium-editor-image-loading { |
| 102 | -webkit-animation: medium-editor-image-loading 1s infinite ease-in-out; |
| 103 | animation: medium-editor-image-loading 1s infinite ease-in-out; |
| 104 | background-color: #333; |
| 105 | border-radius: 100%; |
| 106 | display: inline-block; |
| 107 | height: 40px; |
| 108 | width: 40px; |
| 109 | } |
| 110 | |
| 111 | .medium-editor-placeholder { |
| 112 | position: relative; |
| 113 | } |
| 114 | |
| 115 | .medium-editor-placeholder:after { |
| 116 | content: attr(data-placeholder) !important; |
| 117 | position: absolute; |
| 118 | left: 0; |
| 119 | top: 0; |
| 120 | white-space: pre; |
| 121 | padding: inherit; |
| 122 | margin: inherit; |
| 123 | } |
| 124 | |
| 125 | .medium-editor-placeholder-relative { |
| 126 | position: relative; |
| 127 | } |
| 128 | |
| 129 | .medium-editor-placeholder-relative:after { |
| 130 | content: attr(data-placeholder) !important; |
| 131 | font-style: italic; |
| 132 | position: relative; |
| 133 | white-space: pre; |
| 134 | padding: inherit; |
| 135 | margin: inherit; |
| 136 | } |
| 137 | |
| 138 | .medium-toolbar-arrow-under:after, .medium-toolbar-arrow-over:before { |
| 139 | border-style: solid; |
| 140 | content: ''; |
| 141 | display: block; |
| 142 | height: 0; |
| 143 | left: 50%; |
| 144 | margin-left: -8px; |
| 145 | position: absolute; |
| 146 | width: 0; |
| 147 | } |
| 148 | |
| 149 | .medium-toolbar-arrow-under:after { |
| 150 | border-width: 8px 8px 0 8px; |
| 151 | } |
| 152 | |
| 153 | .medium-toolbar-arrow-over:before { |
| 154 | border-width: 0 8px 8px 8px; |
| 155 | top: -8px; |
| 156 | } |
| 157 | |
| 158 | .medium-editor-toolbar { |
| 159 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; |
| 160 | font-size: 16px; |
| 161 | left: 0; |
| 162 | position: absolute; |
| 163 | top: 0; |
| 164 | visibility: hidden; |
| 165 | z-index: 2000; |
| 166 | } |
| 167 | |
| 168 | .medium-editor-toolbar ul { |
| 169 | margin: 0; |
| 170 | padding: 0; |
| 171 | } |
| 172 | |
| 173 | .medium-editor-toolbar li { |
| 174 | float: left; |
| 175 | list-style: none; |
| 176 | margin: 0; |
| 177 | padding: 0; |
| 178 | } |
| 179 | |
| 180 | .medium-editor-toolbar li button { |
| 181 | box-sizing: border-box; |
| 182 | cursor: pointer; |
| 183 | display: block; |
| 184 | font-size: 14px; |
| 185 | line-height: 1.33; |
| 186 | margin: 0; |
| 187 | padding: 15px; |
| 188 | text-decoration: none; |
| 189 | } |
| 190 | |
| 191 | .medium-editor-toolbar li button:focus { |
| 192 | outline: none; |
| 193 | } |
| 194 | |
| 195 | .medium-editor-toolbar li .medium-editor-action-underline { |
| 196 | text-decoration: none; |
| 197 | } |
| 198 | |
| 199 | .medium-editor-toolbar li .medium-editor-action-pre { |
| 200 | font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; |
| 201 | font-size: 12px; |
| 202 | font-weight: 100; |
| 203 | padding: 15px 0; |
| 204 | } |
| 205 | |
| 206 | .medium-editor-toolbar-active { |
| 207 | visibility: visible; |
| 208 | } |
| 209 | |
| 210 | .medium-editor-sticky-toolbar { |
| 211 | position: fixed; |
| 212 | top: 1px; |
| 213 | } |
| 214 | |
| 215 | .medium-editor-relative-toolbar { |
| 216 | position: relative; |
| 217 | } |
| 218 | |
| 219 | .medium-editor-toolbar-active.medium-editor-stalker-toolbar { |
| 220 | -webkit-animation: medium-editor-pop-upwards 160ms forwards linear; |
| 221 | animation: medium-editor-pop-upwards 160ms forwards linear; |
| 222 | } |
| 223 | |
| 224 | .medium-editor-action-bold { |
| 225 | font-weight: bolder; |
| 226 | } |
| 227 | |
| 228 | .medium-editor-action-italic { |
| 229 | font-style: italic; |
| 230 | } |
| 231 | |
| 232 | .medium-editor-toolbar-form { |
| 233 | display: none; |
| 234 | } |
| 235 | |
| 236 | .medium-editor-toolbar-form input, |
| 237 | .medium-editor-toolbar-form a { |
| 238 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; |
| 239 | } |
| 240 | |
| 241 | .medium-editor-toolbar-form .medium-editor-toolbar-form-row { |
| 242 | line-height: 14px; |
| 243 | margin-left: 5px; |
| 244 | padding-bottom: 5px; |
| 245 | } |
| 246 | |
| 247 | .medium-editor-toolbar-form .medium-editor-toolbar-input, |
| 248 | .medium-editor-toolbar-form label { |
| 249 | border: none; |
| 250 | box-sizing: border-box; |
| 251 | font-size: 14px; |
| 252 | margin: 0; |
| 253 | padding: 6px; |
| 254 | width: 316px; |
| 255 | display: inline-block; |
| 256 | } |
| 257 | |
| 258 | .medium-editor-toolbar-form .medium-editor-toolbar-input:focus, |
| 259 | .medium-editor-toolbar-form label:focus { |
| 260 | -webkit-appearance: none; |
| 261 | -moz-appearance: none; |
| 262 | appearance: none; |
| 263 | border: none; |
| 264 | box-shadow: none; |
| 265 | outline: 0; |
| 266 | } |
| 267 | |
| 268 | .medium-editor-toolbar-form a { |
| 269 | display: inline-block; |
| 270 | font-size: 24px; |
| 271 | font-weight: bolder; |
| 272 | margin: 0 10px; |
| 273 | text-decoration: none; |
| 274 | } |
| 275 | |
| 276 | .medium-editor-toolbar-form-active { |
| 277 | display: block; |
| 278 | } |
| 279 | |
| 280 | .medium-editor-toolbar-actions:after { |
| 281 | clear: both; |
| 282 | content: ""; |
| 283 | display: table; |
| 284 | } |
| 285 | |
| 286 | .medium-editor-element { |
| 287 | word-wrap: break-word; |
| 288 | min-height: 30px; |
| 289 | } |
| 290 | |
| 291 | .medium-editor-element img { |
| 292 | max-width: 100%; |
| 293 | } |
| 294 | |
| 295 | .medium-editor-element sub { |
| 296 | vertical-align: sub; |
| 297 | } |
| 298 | |
| 299 | .medium-editor-element sup { |
| 300 | vertical-align: super; |
| 301 | } |
| 302 | |
| 303 | .medium-editor-hidden { |
| 304 | display: none; |
| 305 | } |
| 306 | |
| 307 | |
| 308 | .medium-toolbar-arrow-under:after { |
| 309 | border-color: #000 transparent transparent transparent; |
| 310 | top: 40px; |
| 311 | } |
| 312 | |
| 313 | .medium-toolbar-arrow-over:before { |
| 314 | border-color: transparent transparent #000 transparent; |
| 315 | } |
| 316 | |
| 317 | .medium-editor-toolbar { |
| 318 | background-color: #000; |
| 319 | border: none; |
| 320 | border-radius: 8px; |
| 321 | } |
| 322 | |
| 323 | .medium-editor-toolbar li button { |
| 324 | background-color: transparent; |
| 325 | border: none; |
| 326 | box-sizing: border-box; |
| 327 | color: #ccc; |
| 328 | height: 40px; |
| 329 | min-width: 40px; |
| 330 | padding: 5px 8px; |
| 331 | -webkit-transition: background-color .2s ease-in, color .2s ease-in; |
| 332 | transition: background-color .2s ease-in, color .2s ease-in; |
| 333 | } |
| 334 | |
| 335 | .medium-editor-toolbar li button:hover { |
| 336 | background-color: #000; |
| 337 | color: #fff; |
| 338 | } |
| 339 | |
| 340 | .medium-editor-toolbar li .medium-editor-button-first { |
| 341 | border-bottom-left-radius: 8px; |
| 342 | border-top-left-radius: 8px; |
| 343 | |
| 344 | } |
| 345 | |
| 346 | .medium-editor-toolbar li .medium-editor-button-last { |
| 347 | border-bottom-right-radius: 8px; |
| 348 | border-right: none; |
| 349 | border-top-right-radius: 8px; |
| 350 | |
| 351 | } |
| 352 | |
| 353 | .medium-editor-toolbar li .medium-editor-button-active { |
| 354 | background-color: #000; |
| 355 | color: #208cf8; |
| 356 | } |
| 357 | |
| 358 | .medium-editor-toolbar-form { |
| 359 | background: #000; |
| 360 | border-radius: 8px; |
| 361 | color: #ccc; |
| 362 | overflow: hidden; |
| 363 | } |
| 364 | |
| 365 | .medium-editor-toolbar-form .medium-editor-toolbar-input { |
| 366 | background: #000; |
| 367 | box-sizing: border-box; |
| 368 | color: #ccc; |
| 369 | height: 40px; |
| 370 | padding-left: 16px; |
| 371 | width: 220px; |
| 372 | } |
| 373 | |
| 374 | .medium-editor-toolbar-form .medium-editor-toolbar-input::-webkit-input-placeholder { |
| 375 | color: #f8f5f3; |
| 376 | color: rgba(248, 245, 243, 0.8); |
| 377 | } |
| 378 | |
| 379 | .medium-editor-toolbar-form .medium-editor-toolbar-input:-moz-placeholder { |
| 380 | /* Firefox 18- */ |
| 381 | color: #f8f5f3; |
| 382 | color: rgba(248, 245, 243, 0.8); |
| 383 | } |
| 384 | |
| 385 | .medium-editor-toolbar-form .medium-editor-toolbar-input::-moz-placeholder { |
| 386 | /* Firefox 19+ */ |
| 387 | color: #f8f5f3; |
| 388 | color: rgba(248, 245, 243, 0.8); |
| 389 | } |
| 390 | |
| 391 | .medium-editor-toolbar-form .medium-editor-toolbar-input:-ms-input-placeholder { |
| 392 | color: #f8f5f3; |
| 393 | color: rgba(248, 245, 243, 0.8); |
| 394 | } |
| 395 | |
| 396 | .medium-editor-toolbar-form a { |
| 397 | color: #ccc; |
| 398 | -webkit-transform: translateY(2px); |
| 399 | transform: translateY(2px); |
| 400 | } |
| 401 | |
| 402 | .medium-editor-toolbar-form .medium-editor-toolbar-close { |
| 403 | margin-right: 16px; |
| 404 | } |
| 405 | |
| 406 | .medium-editor-toolbar-anchor-preview { |
| 407 | background: #000; |
| 408 | border-radius: 8px; |
| 409 | padding: 5px 12px; |
| 410 | } |
| 411 | |
| 412 | .medium-editor-anchor-preview a { |
| 413 | color: #ccc; |
| 414 | text-decoration: none; |
| 415 | } |
| 416 | |
| 417 | .medium-editor-toolbar-actions li, .medium-editor-toolbar-actions button { |
| 418 | border-radius: 8px; |
| 419 | } |
| 420 | |
| 421 | |
| 422 | .medium-editor-toolbar li button { |
| 423 | font-size: 22px; |
| 424 | b { |
| 425 | display: none; |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | .medium-editor-toolbar-save { |
| 430 | font-size: 0!important; |
| 431 | &:before { |
| 432 | @include latepointfont_admin("\e904"); |
| 433 | font-size: 16px!important; |
| 434 | } |
| 435 | } |
| 436 | .medium-editor-toolbar-close { |
| 437 | font-size: 0!important; |
| 438 | &:before { |
| 439 | @include latepointfont_admin("\e9a1"); |
| 440 | font-size: 14px!important; |
| 441 | } |
| 442 | } |