layout-default.css 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. /*
  2. * Default Layout Theme
  3. *
  4. * Created for jquery.layout
  5. *
  6. * Copyright (c) 2010
  7. * Fabrizio Balliano (http://www.fabrizioballiano.net)
  8. * Kevin Dalman (http://allpro.net)
  9. *
  10. * Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html)
  11. * and MIT (http://www.opensource.org/licenses/mit-license.php) licenses.
  12. *
  13. * Last Updated: 2010-02-10
  14. * NOTE: For best code readability, view this with a fixed-space font and tabs equal to 4-chars
  15. */
  16. /*
  17. * DEFAULT FONT
  18. * Just to make demo-pages look better - not actually relevant to Layout!
  19. */
  20. body {
  21. font-family: Geneva, Arial, Helvetica, sans-serif;
  22. font-size: 100%;
  23. *font-size: 80%;
  24. }
  25. /*
  26. * PANES & CONTENT-DIVs
  27. */
  28. .ui-layout-pane { /* all 'panes' */
  29. background: #FFF;
  30. border: 1px solid #BBB;
  31. padding: 10px;
  32. overflow: auto;
  33. /* DO NOT add scrolling (or padding) to 'panes' that have a content-div,
  34. otherwise you may get double-scrollbars - on the pane AND on the content-div
  35. - use ui-layout-wrapper class if pane has a content-div
  36. - use ui-layout-container if pane has an inner-layout
  37. */
  38. }
  39. /* (scrolling) content-div inside pane allows for fixed header(s) and/or footer(s) */
  40. .ui-layout-content {
  41. padding: 10px;
  42. position: relative; /* contain floated or positioned elements */
  43. overflow: auto; /* add scrolling to content-div */
  44. }
  45. /*
  46. * UTILITY CLASSES
  47. * Must come AFTER pane-class above so will override
  48. * These classes are NOT auto-generated and are NOT used by Layout
  49. */
  50. .layout-child-container,
  51. .layout-content-container {
  52. padding: 0;
  53. overflow: hidden;
  54. }
  55. .layout-child-container {
  56. border: 0; /* remove border because inner-layout-panes probably have borders */
  57. }
  58. .layout-scroll {
  59. overflow: auto;
  60. }
  61. .layout-hide {
  62. display: none;
  63. }
  64. /*
  65. * RESIZER-BARS
  66. */
  67. .ui-layout-resizer { /* all 'resizer-bars' */
  68. background: #DDD;
  69. border: 1px solid #BBB;
  70. border-width: 0;
  71. }
  72. .ui-layout-resizer-drag { /* REAL resizer while resize in progress */
  73. }
  74. .ui-layout-resizer-hover { /* affects both open and closed states */
  75. }
  76. /* NOTE: It looks best when 'hover' and 'dragging' are set to the same color,
  77. otherwise color shifts while dragging when bar can't keep up with mouse */
  78. .ui-layout-resizer-open-hover , /* hover-color to 'resize' */
  79. .ui-layout-resizer-dragging { /* resizer beging 'dragging' */
  80. background: #C4E1A4;
  81. }
  82. .ui-layout-resizer-dragging { /* CLONED resizer being dragged */
  83. border: 1px solid #BBB;
  84. }
  85. .ui-layout-resizer-north-dragging,
  86. .ui-layout-resizer-south-dragging {
  87. border-width: 1px 0;
  88. }
  89. .ui-layout-resizer-west-dragging,
  90. .ui-layout-resizer-east-dragging {
  91. border-width: 0 1px;
  92. }
  93. /* NOTE: Add a 'dragging-limit' color to provide visual feedback when resizer hits min/max size limits */
  94. .ui-layout-resizer-dragging-limit { /* CLONED resizer at min or max size-limit */
  95. background: #E1A4A4; /* red */
  96. }
  97. .ui-layout-resizer-closed-hover { /* hover-color to 'slide open' */
  98. background: #EBD5AA;
  99. }
  100. .ui-layout-resizer-sliding { /* resizer when pane is 'slid open' */
  101. opacity: .10; /* show only a slight shadow */
  102. filter: alpha(opacity=10);
  103. }
  104. .ui-layout-resizer-sliding-hover { /* sliding resizer - hover */
  105. opacity: 1.00; /* on-hover, show the resizer-bar normally */
  106. filter: alpha(opacity=100);
  107. }
  108. /* sliding resizer - add 'outside-border' to resizer on-hover
  109. * this sample illustrates how to target specific panes and states */
  110. .ui-layout-resizer-north-sliding-hover { border-bottom-width: 1px; }
  111. .ui-layout-resizer-south-sliding-hover { border-top-width: 1px; }
  112. .ui-layout-resizer-west-sliding-hover { border-right-width: 1px; }
  113. .ui-layout-resizer-east-sliding-hover { border-left-width: 1px; }
  114. /*
  115. * TOGGLER-BUTTONS
  116. */
  117. .ui-layout-toggler {
  118. border: 1px solid #BBB; /* match pane-border */
  119. background-color: #BBB;
  120. }
  121. .ui-layout-resizer-hover .ui-layout-toggler {
  122. opacity: .60;
  123. filter: alpha(opacity=60);
  124. }
  125. .ui-layout-toggler-hover , /* need when NOT resizable */
  126. .ui-layout-resizer-hover .ui-layout-toggler-hover { /* need specificity when IS resizable */
  127. background-color: #FC6;
  128. opacity: 1.00;
  129. filter: alpha(opacity=100);
  130. }
  131. .ui-layout-toggler-north ,
  132. .ui-layout-toggler-south {
  133. border-width: 0 1px; /* left/right borders */
  134. }
  135. .ui-layout-toggler-west ,
  136. .ui-layout-toggler-east {
  137. border-width: 1px 0; /* top/bottom borders */
  138. }
  139. /* hide the toggler-button when the pane is 'slid open' */
  140. .ui-layout-resizer-sliding .ui-layout-toggler {
  141. display: none;
  142. }
  143. /*
  144. * style the text we put INSIDE the togglers
  145. */
  146. .ui-layout-toggler .content {
  147. color: #666;
  148. font-size: 12px;
  149. font-weight: bold;
  150. width: 100%;
  151. padding-bottom: 0.35ex; /* to 'vertically center' text inside text-span */
  152. }
  153. /*
  154. * PANE-MASKS
  155. * these styles are hard-coded on mask elems, but are also
  156. * included here as !important to ensure will overrides any generic styles
  157. */
  158. .ui-layout-mask {
  159. border: none !important;
  160. padding: 0 !important;
  161. margin: 0 !important;
  162. overflow: hidden !important;
  163. position: absolute !important;
  164. opacity: 0 !important;
  165. filter: Alpha(Opacity="0") !important;
  166. }
  167. .ui-layout-mask-inside-pane { /* masks always inside pane EXCEPT when pane is an iframe */
  168. top: 0 !important;
  169. left: 0 !important;
  170. width: 100% !important;
  171. height: 100% !important;
  172. }
  173. div.ui-layout-mask {} /* standard mask for iframes */
  174. iframe.ui-layout-mask {} /* extra mask for objects/applets */
  175. /*
  176. * Default printing styles
  177. */
  178. @media print {
  179. /*
  180. * Unless you want to print the layout as it appears onscreen,
  181. * these html/body styles are needed to allow the content to 'flow'
  182. */
  183. html {
  184. height: auto !important;
  185. overflow: visible !important;
  186. }
  187. body.ui-layout-container {
  188. position: static !important;
  189. top: auto !important;
  190. bottom: auto !important;
  191. left: auto !important;
  192. right: auto !important;
  193. /* only IE6 has container width & height set by Layout */
  194. _width: auto !important;
  195. _height: auto !important;
  196. }
  197. .ui-layout-resizer, .ui-layout-toggler {
  198. display: none !important;
  199. }
  200. /*
  201. * Default pane print styles disables positioning, borders and backgrounds.
  202. * You can modify these styles however it suit your needs.
  203. */
  204. .ui-layout-pane {
  205. border: none !important;
  206. background: transparent !important;
  207. position: relative !important;
  208. top: auto !important;
  209. bottom: auto !important;
  210. left: auto !important;
  211. right: auto !important;
  212. width: auto !important;
  213. height: auto !important;
  214. overflow: visible !important;
  215. }
  216. }