_reset.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  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. }