reset.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /*
  2. Copyright (c) 2003-2015, 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. {
  22. /* Do not include inheritable rules here. */
  23. margin: 0;
  24. padding: 0;
  25. border: 0;
  26. background: transparent;
  27. text-decoration: none;
  28. width: auto;
  29. height: auto;
  30. vertical-align: baseline;
  31. box-sizing: content-box;
  32. position: static;
  33. transition: none;
  34. }
  35. /* Reset for elements and their children. */
  36. .cke_reset_all, .cke_reset_all *,
  37. .cke_reset_all a, .cke_reset_all textarea
  38. {
  39. /* The following must be identical to .cke_reset. */
  40. margin: 0;
  41. padding: 0;
  42. border: 0;
  43. background: transparent;
  44. text-decoration: none;
  45. width: auto;
  46. height: auto;
  47. vertical-align: baseline;
  48. box-sizing: content-box;
  49. position: static;
  50. transition: none;
  51. /* These are rule inherited by all children elements. */
  52. border-collapse: collapse;
  53. font: normal normal normal 12px Arial,Helvetica,Tahoma,Verdana,Sans-Serif;
  54. color: #000;
  55. text-align: left;
  56. white-space: nowrap;
  57. cursor: auto;
  58. float: none;
  59. }
  60. .cke_reset_all .cke_rtl *
  61. {
  62. text-align: right;
  63. }
  64. /* Defaults for some elements. */
  65. .cke_reset_all iframe
  66. {
  67. vertical-align: inherit; /** For IE */
  68. }
  69. .cke_reset_all textarea
  70. {
  71. white-space: pre-wrap;
  72. }
  73. .cke_reset_all textarea,
  74. .cke_reset_all input[type="text"],
  75. .cke_reset_all input[type="password"]
  76. {
  77. cursor: text;
  78. }
  79. .cke_reset_all textarea[disabled],
  80. .cke_reset_all input[type="text"][disabled],
  81. .cke_reset_all input[type="password"][disabled]
  82. {
  83. cursor: default;
  84. }
  85. .cke_reset_all fieldset
  86. {
  87. padding: 10px;
  88. border: 2px groove #E0DFE3;
  89. }
  90. .cke_reset_all select
  91. {
  92. box-sizing: border-box;
  93. }
  94. .cke_reset_all table
  95. {
  96. table-layout: auto;
  97. }