8
0

reset.scss 1.5 KB

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