tableform.css 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. @import "../mixins/_rounded.css";
  6. :root {
  7. --ck-table-properties-error-arrow-size: 6px;
  8. --ck-table-properties-min-error-width: 150px;
  9. }
  10. .ck.ck-table-form {
  11. & .ck.ck-labeled-view {
  12. & .ck.ck-labeled-view__status {
  13. @mixin ck-rounded-corners;
  14. background: var(--ck-color-base-error);
  15. color: var(--ck-color-base-background);
  16. padding: var(--ck-spacing-small) var(--ck-spacing-medium);
  17. min-width: var(--ck-table-properties-min-error-width);
  18. text-align: center;
  19. /* The arrow pointing towards the field. */
  20. &::after {
  21. border-color: transparent transparent var(--ck-color-base-error) transparent;
  22. border-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);
  23. border-style: solid;
  24. }
  25. animation: ck-table-form-labeled-view-status-appear .15s ease both;
  26. }
  27. /* Hide the error balloon when the field is blurred. Makes the experience much more clear. */
  28. & .ck-input.ck-error:not(:focus) + .ck.ck-labeled-view__status {
  29. display: none;
  30. }
  31. }
  32. }
  33. @keyframes ck-table-form-labeled-view-status-appear {
  34. 0% {
  35. opacity: 0;
  36. }
  37. 100% {
  38. opacity: 1;
  39. }
  40. }