8
0

tableform.css 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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-form__row {
  12. &.ck-table-form__border-row {
  13. & .ck-labeled-field-view {
  14. & > .ck-label {
  15. font-size: var(--ck-font-size-tiny);
  16. text-align: center;
  17. }
  18. }
  19. & .ck-table-form__border-style,
  20. & .ck-table-form__border-width {
  21. width: 80px;
  22. min-width: 80px;
  23. max-width: 80px;
  24. }
  25. }
  26. &.ck-table-form__dimensions-row {
  27. padding: 0;
  28. & .ck-table-form__dimensions-row__width,
  29. & .ck-table-form__dimensions-row__height {
  30. margin: 0
  31. }
  32. & .ck-table-form__dimension-operator {
  33. align-self: flex-end;
  34. display: inline-block;
  35. height: var(--ck-ui-component-min-height);
  36. line-height: var(--ck-ui-component-min-height);
  37. margin: 0 var(--ck-spacing-small);
  38. }
  39. }
  40. }
  41. & .ck.ck-labeled-field-view {
  42. padding-top: var(--ck-spacing-standard);
  43. & .ck.ck-labeled-field-view__status {
  44. @mixin ck-rounded-corners;
  45. background: var(--ck-color-base-error);
  46. color: var(--ck-color-base-background);
  47. padding: var(--ck-spacing-small) var(--ck-spacing-medium);
  48. min-width: var(--ck-table-properties-min-error-width);
  49. text-align: center;
  50. /* The arrow pointing towards the field. */
  51. &::after {
  52. border-color: transparent transparent var(--ck-color-base-error) transparent;
  53. border-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);
  54. border-style: solid;
  55. }
  56. animation: ck-table-form-labeled-view-status-appear .15s ease both;
  57. }
  58. /* Hide the error balloon when the field is blurred. Makes the experience much more clear. */
  59. & .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {
  60. display: none;
  61. }
  62. }
  63. }
  64. @keyframes ck-table-form-labeled-view-status-appear {
  65. 0% {
  66. opacity: 0;
  67. }
  68. 100% {
  69. opacity: 1;
  70. }
  71. }