reset.scss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // Copyright (c) 2003-2016, 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. }
  16. /**
  17. * Resets an element AND its children.
  18. */
  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. // See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox
  57. button::-moz-focus-inner {
  58. padding: 0;
  59. border: 0
  60. }
  61. }