8
0

_reset.css 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /**
  6. * Resets an element, ignoring its children.
  7. */
  8. .ck-reset,
  9. .ck-reset_all,
  10. .ck-reset_all * {
  11. /* Do not include inheritable rules here. */
  12. margin: 0;
  13. padding: 0;
  14. border: 0;
  15. background: transparent;
  16. text-decoration: none;
  17. vertical-align: middle;
  18. transition: none;
  19. /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */
  20. word-wrap: break-word;
  21. }
  22. /**
  23. * Resets an element AND its children.
  24. */
  25. .ck-reset_all,
  26. .ck-reset_all * {
  27. /* These are rule inherited by all children elements. */
  28. border-collapse: collapse;
  29. font: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);
  30. color: var(--ck-color-text);
  31. text-align: left;
  32. white-space: nowrap;
  33. cursor: auto;
  34. float: none;
  35. }
  36. .ck-reset_all {
  37. & .ck-rtl * {
  38. text-align: right;
  39. }
  40. & iframe {
  41. /* For IE */
  42. vertical-align: inherit;
  43. }
  44. & textarea {
  45. white-space: pre-wrap;
  46. }
  47. & textarea,
  48. & input[type="text"],
  49. & input[type="password"] {
  50. cursor: text;
  51. }
  52. & textarea[disabled],
  53. & input[type="text"][disabled],
  54. & input[type="password"][disabled] {
  55. cursor: default;
  56. }
  57. & fieldset {
  58. padding: 10px;
  59. border: 2px groove hsl(255, 7%, 88%);
  60. }
  61. & button::-moz-focus-inner {
  62. /* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */
  63. padding: 0;
  64. border: 0
  65. }
  66. }