_reset.css 1.9 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. :root {
  6. /* This is super-important. This is **manually** adjusted so a button without an icon
  7. is never smaller than a button with icon, additionally making sure that text-less buttons
  8. are perfect squares. The value is also shared by other components which should stay "in-line"
  9. with buttons. */
  10. --ck-ui-component-min-height: 2.3em;
  11. }
  12. /**
  13. * Resets an element, ignoring its children.
  14. */
  15. .ck.ck-reset,
  16. .ck.ck-reset_all,
  17. .ck.ck-reset_all * {
  18. /* Do not include inheritable rules here. */
  19. margin: 0;
  20. padding: 0;
  21. border: 0;
  22. background: transparent;
  23. text-decoration: none;
  24. vertical-align: middle;
  25. transition: none;
  26. /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */
  27. word-wrap: break-word;
  28. }
  29. /**
  30. * Resets an element AND its children.
  31. */
  32. .ck.ck-reset_all,
  33. .ck.ck-reset_all * {
  34. /* These are rule inherited by all children elements. */
  35. border-collapse: collapse;
  36. font: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);
  37. color: var(--ck-color-text);
  38. text-align: left;
  39. white-space: nowrap;
  40. cursor: auto;
  41. float: none;
  42. }
  43. .ck.ck-reset_all {
  44. & .ck-rtl * {
  45. text-align: right;
  46. }
  47. & iframe {
  48. /* For IE */
  49. vertical-align: inherit;
  50. }
  51. & textarea {
  52. white-space: pre-wrap;
  53. }
  54. & textarea,
  55. & input[type="text"],
  56. & input[type="password"] {
  57. cursor: text;
  58. }
  59. & textarea[disabled],
  60. & input[type="text"][disabled],
  61. & input[type="password"][disabled] {
  62. cursor: default;
  63. }
  64. & fieldset {
  65. padding: 10px;
  66. border: 2px groove hsl(255, 7%, 88%);
  67. }
  68. & button::-moz-focus-inner {
  69. /* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */
  70. padding: 0;
  71. border: 0
  72. }
  73. }
  74. /**
  75. * Default UI rules for RTL languages.
  76. */
  77. .ck[dir="rtl"],
  78. .ck[dir="rtl"] .ck {
  79. text-align: right;
  80. }