panel.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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. panel.css (part of editor.css)
  7. ================================
  8. Panels are floating elements that can hold different types of contents.
  9. The following are common uses of it:
  10. - The element that toolbar combos display when opening them.
  11. - The context menu.
  12. - The list of items displayed by "menu buttons" (e.g. scayt).
  13. - The panel shown when opening "panel buttons" (e.g. color buttons).
  14. Panel contents are wrapped into an iframe, so it is possible to have additional
  15. CSS loaded inside them (e.g. to have more accurate preview on the styles combo).
  16. The following is a visual representation of the outer elements of a panel:
  17. +-- .cke_panel(*) ---------------------+
  18. | +-- IFRAME.cke_panel_frame --------+ |
  19. | | +-- HTML.cke_panel_container --+ | |
  20. | | | +-- .cke_panel_block ------+ | | |
  21. | | | | | | | |
  22. | | | | (contents here) | | | |
  23. | | | | | | | |
  24. | | | +--------------------------+ | | |
  25. | | +------------------------------+ | |
  26. | +----------------------------------+ |
  27. +--------------------------------------+
  28. (*) All kinds of panel share the above structure. Menu panels adds the
  29. .cke_menu_panel class to the outer element, while toolbar combos add the
  30. .cke_combopanel class.
  31. This file also defines styles for panel lists (used by combos). For menu-like
  32. panel contents and color panels check menu.css and colorpanel.css.
  33. */
  34. /* The box that holds an IFRAME. It's inserted into a host document and positioned
  35. absolutely by the application. It floats above the host document/editor. */
  36. .cke_panel
  37. {
  38. /* Restore the loading hide */
  39. visibility: visible;
  40. width: 120px;
  41. height: 100px;
  42. overflow: hidden;
  43. background-color: #fff;
  44. border: 1px solid #b6b6b6;
  45. border-bottom-color: #999;
  46. border-radius: 3px;
  47. box-shadow: 0 0 3px rgba(0,0,0,.15);
  48. }
  49. /* This class represents panels which are used as context menus. */
  50. .cke_menu_panel
  51. {
  52. padding: 0;
  53. margin: 0;
  54. }
  55. /* This class represents panels which are used by rich combos. */
  56. .cke_combopanel
  57. {
  58. width: 150px;
  59. height: 170px;
  60. }
  61. /* The IFRAME the panel is wrapped into. */
  62. .cke_panel_frame
  63. {
  64. width: 100%;
  65. height: 100%;
  66. font-size: 12px;
  67. overflow: auto;
  68. overflow-x: hidden;
  69. }
  70. /* The HTML document which is a direct descendant of the IFRAME */
  71. .cke_panel_container
  72. {
  73. overflow-y: auto;
  74. overflow-x: hidden;
  75. }
  76. /*
  77. Here we start the definition of panel lists (e.g. combo panels). The following
  78. is its visual representation:
  79. +-- .cke_panel_block -----------------+
  80. | +-- .cke_panel_grouptitle --------+ |
  81. | | | |
  82. | +---------------------------------+ |
  83. | +-- .cke_panel_list --------------+ |
  84. | | +-- .cke_panel_listItem ------+ | |
  85. | | | +-- a --------------------+ | | |
  86. | | | | +-- span -------------+ | | | |
  87. | | | | | | | | | |
  88. | | | | +---------------------+ | | | |
  89. | | | +-------------------------+ | | |
  90. | | +-----------------------------+ | |
  91. | | +-- .cke_panel_listItem ------+ | |
  92. | | | +-- a --------------------+ | | |
  93. | | | | +-- span -------------+ | | | |
  94. | | | | | | | | | |
  95. | | | | +---------------------+ | | | |
  96. | | | +-------------------------+ | | |
  97. | | +-----------------------------+ | |
  98. | | ... | |
  99. | +---------------------------------+ |
  100. +-------------------------------------+
  101. */
  102. /* The list of panel items. */
  103. .cke_panel_list
  104. {
  105. list-style-type: none;
  106. margin: 3px;
  107. padding: 0;
  108. white-space: nowrap;
  109. }
  110. /* The item of .cke_panel_list */
  111. .cke_panel_listItem
  112. {
  113. margin: 0;
  114. padding-bottom: 1px;
  115. }
  116. /* The child of .cke_panel_listItem. These elements contain spans which are
  117. to display a real name of the property which is visible for an end-user. */
  118. .cke_panel_listItem a
  119. {
  120. padding: 3px 4px;
  121. display: block;
  122. border: 1px solid #fff;
  123. color: inherit !important;
  124. text-decoration: none;
  125. overflow: hidden;
  126. text-overflow: ellipsis;
  127. border-radius: 2px;
  128. }
  129. /* IE6 */
  130. * html .cke_panel_listItem a
  131. {
  132. width : 100%;
  133. /* IE is not able to inherit the color, so we must force it to black */
  134. color: #000;
  135. }
  136. /* IE7 */
  137. *:first-child+html .cke_panel_listItem a
  138. {
  139. /* IE is not able to inherit the color, so we must force it to black */
  140. color: #000;
  141. }
  142. .cke_panel_listItem.cke_selected a
  143. {
  144. border: 1px solid #dedede;
  145. background-color: #f2f2f2;
  146. box-shadow: 0 0 2px rgba(0,0,0,.1) inset;
  147. }
  148. .cke_panel_listItem a:hover,
  149. .cke_panel_listItem a:focus,
  150. .cke_panel_listItem a:active
  151. {
  152. border-color: #dedede;
  153. background-color: #f2f2f2;
  154. box-shadow: 0 0 2px rgba(0,0,0,.1) inset;
  155. }
  156. .cke_hc .cke_panel_listItem a
  157. {
  158. border-style: none;
  159. }
  160. .cke_hc .cke_panel_listItem a:hover,
  161. .cke_hc .cke_panel_listItem a:focus,
  162. .cke_hc .cke_panel_listItem a:active
  163. {
  164. border: 2px solid;
  165. padding: 1px 2px;
  166. }
  167. /* The title of the entire panel which is visible on top of the list. */
  168. .cke_panel_grouptitle
  169. {
  170. cursor: default;
  171. font-size: 11px;
  172. font-weight: bold;
  173. white-space: nowrap;
  174. margin: 0;
  175. padding: 4px 6px;
  176. color: #474747;
  177. text-shadow: 0 1px 0 rgba(255,255,255,.75);
  178. border-bottom: 1px solid #b6b6b6;
  179. border-radius: 2px 2px 0 0;
  180. box-shadow: 0 1px 0 #fff inset;
  181. background: #cfd1cf;
  182. background-image: linear-gradient(to bottom, #f5f5f5, #cfd1cf);
  183. filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#f5f5f5', endColorstr='#cfd1cf');
  184. }
  185. /* The following styles set defaults of the elements used by the Paragraph
  186. Format panel. */
  187. .cke_panel_listItem p,
  188. .cke_panel_listItem h1,
  189. .cke_panel_listItem h2,
  190. .cke_panel_listItem h3,
  191. .cke_panel_listItem h4,
  192. .cke_panel_listItem h5,
  193. .cke_panel_listItem h6,
  194. .cke_panel_listItem pre
  195. {
  196. margin-top: 0px;
  197. margin-bottom: 0px;
  198. }