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