_reset.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*
  2. Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
  3. For licensing, see LICENSE.md or http://ckeditor.com/license
  4. */
  5. /*
  6. reset.css (part of editor.css)
  7. ================================
  8. This file holds the "reset" requirements of CKEditor, as well as define the
  9. default interface styles.
  10. CKEditor includes two main "reset" class names in the DOM structure created for
  11. editors:
  12. * .cke_reset: Intended to reset a specific element, but not its children.
  13. Because of this, only styles that will not be inherited can be defined.
  14. * .cke_reset_all: Intended to reset not only the element holding it, but
  15. also its child elements.
  16. To understand why "reset" is needed, check the CKEditor Skin SDK:
  17. http://docs.cksource.com/CKEditor_4.x/Skin_SDK/Reset
  18. */
  19. /* Reset for single elements, not their children. */
  20. .cke_reset {
  21. /* Do not include inheritable rules here. */
  22. margin: 0;
  23. padding: 0;
  24. border: 0;
  25. background: transparent;
  26. text-decoration: none;
  27. width: auto;
  28. height: auto;
  29. vertical-align: baseline;
  30. box-sizing: content-box;
  31. -moz-box-sizing: content-box;
  32. -webkit-box-sizing: content-box;
  33. position: static;
  34. -webkit-transition: none;
  35. -moz-transition: none;
  36. -ms-transition: none;
  37. transition: none;
  38. }
  39. /* Reset for elements and their children. */
  40. .cke_reset_all, .cke_reset_all * {
  41. /* The following must be identical to .cke_reset. */
  42. margin: 0;
  43. padding: 0;
  44. border: 0;
  45. background: transparent;
  46. text-decoration: none;
  47. width: auto;
  48. height: auto;
  49. vertical-align: baseline;
  50. box-sizing: content-box;
  51. -moz-box-sizing: content-box;
  52. -webkit-box-sizing: content-box;
  53. position: static;
  54. -webkit-transition: none;
  55. -moz-transition: none;
  56. -ms-transition: none;
  57. transition: none;
  58. /* These are rule inherited by all children elements. */
  59. border-collapse: collapse;
  60. font: normal normal normal 12px Arial,Helvetica,Tahoma,Verdana,Sans-Serif;
  61. color: $gray-darker;
  62. text-align: left;
  63. white-space: nowrap;
  64. cursor: auto;
  65. float: none;
  66. }
  67. .cke_reset_all {
  68. .cke_rtl * {
  69. text-align: right;
  70. }
  71. /* Defaults for some elements. */
  72. iframe {
  73. vertical-align: inherit; /** For IE */
  74. }
  75. textarea {
  76. white-space: pre;
  77. }
  78. textarea, input[type="text"], input[type="password"] {
  79. cursor: text;
  80. }
  81. textarea[disabled], input[type="text"][disabled], input[type="password"][disabled] {
  82. cursor: default;
  83. }
  84. fieldset {
  85. padding: 10px;
  86. margin-top: 10px;
  87. border: 1px solid $hr-border;
  88. legend {
  89. padding: 0 5px;
  90. }
  91. }
  92. select {
  93. box-sizing: border-box;
  94. -moz-box-sizing: border-box;
  95. -webkit-box-sizing: border-box;
  96. }
  97. }