tableform.css 2.2 KB

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