reset.scss 1.4 KB

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