4 * Created for jquery.layout
7 * Fabrizio Balliano (http://www.fabrizioballiano.net)
8 * Kevin Dalman (http://allpro.net)
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.
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
19 * Just to make demo-pages look better - not actually relevant to Layout!
22 font-family: Geneva, Arial, Helvetica, sans-serif;
28 * PANES & CONTENT-DIVs
30 .ui-layout-pane { /* all 'panes' */
32 border: 1px solid #BBB;
35 /* DO NOT add scrolling (or padding) to 'panes' that have a content-div,
36 otherwise you may get double-scrollbars - on the pane AND on the content-div
37 - use ui-layout-wrapper class if pane has a content-div
38 - use ui-layout-container if pane has an inner-layout
41 /* (scrolling) content-div inside pane allows for fixed header(s) and/or footer(s) */
44 position: relative; /* contain floated or positioned elements */
45 overflow: auto; /* add scrolling to content-div */
50 * Must come AFTER pane-class above so will override
51 * These classes are NOT auto-generated and are NOT used by Layout
53 .layout-child-container,
54 .layout-content-container {
58 .layout-child-container {
59 border: 0; /* remove border because inner-layout-panes probably have borders */
71 .ui-layout-resizer { /* all 'resizer-bars' */
73 border: 1px solid #BBB;
76 .ui-layout-resizer-drag { /* REAL resizer while resize in progress */
78 .ui-layout-resizer-hover { /* affects both open and closed states */
80 /* NOTE: It looks best when 'hover' and 'dragging' are set to the same color,
81 otherwise color shifts while dragging when bar can't keep up with mouse */
82 .ui-layout-resizer-open-hover , /* hover-color to 'resize' */
83 .ui-layout-resizer-dragging { /* resizer beging 'dragging' */
86 .ui-layout-resizer-dragging { /* CLONED resizer being dragged */
87 border: 1px solid #BBB;
89 .ui-layout-resizer-north-dragging,
90 .ui-layout-resizer-south-dragging {
93 .ui-layout-resizer-west-dragging,
94 .ui-layout-resizer-east-dragging {
97 /* NOTE: Add a 'dragging-limit' color to provide visual feedback when resizer hits min/max size limits */
98 .ui-layout-resizer-dragging-limit { /* CLONED resizer at min or max size-limit */
99 background: #E1A4A4; /* red */
102 .ui-layout-resizer-closed-hover { /* hover-color to 'slide open' */
105 .ui-layout-resizer-sliding { /* resizer when pane is 'slid open' */
106 opacity: .10; /* show only a slight shadow */
107 filter: alpha(opacity=10);
109 .ui-layout-resizer-sliding-hover { /* sliding resizer - hover */
110 opacity: 1.00; /* on-hover, show the resizer-bar normally */
111 filter: alpha(opacity=100);
113 /* sliding resizer - add 'outside-border' to resizer on-hover
114 * this sample illustrates how to target specific panes and states */
115 .ui-layout-resizer-north-sliding-hover { border-bottom-width: 1px; }
116 .ui-layout-resizer-south-sliding-hover { border-top-width: 1px; }
117 .ui-layout-resizer-west-sliding-hover { border-right-width: 1px; }
118 .ui-layout-resizer-east-sliding-hover { border-left-width: 1px; }
124 border: 1px solid #BBB; /* match pane-border */
125 background-color: #BBB;
127 .ui-layout-resizer-hover .ui-layout-toggler {
129 filter: alpha(opacity=60);
131 .ui-layout-toggler-hover , /* need when NOT resizable */
132 .ui-layout-resizer-hover .ui-layout-toggler-hover { /* need specificity when IS resizable */
133 background-color: #FC6;
135 filter: alpha(opacity=100);
137 .ui-layout-toggler-north ,
138 .ui-layout-toggler-south {
139 border-width: 0 1px; /* left/right borders */
141 .ui-layout-toggler-west ,
142 .ui-layout-toggler-east {
143 border-width: 1px 0; /* top/bottom borders */
145 /* hide the toggler-button when the pane is 'slid open' */
146 .ui-layout-resizer-sliding .ui-layout-toggler {
150 * style the text we put INSIDE the togglers
152 .ui-layout-toggler .content {
157 padding-bottom: 0.35ex; /* to 'vertically center' text inside text-span */
162 * these styles are hard-coded on mask elems, but are also
163 * included here as !important to ensure will overrides any generic styles
166 border: none !important;
167 padding: 0 !important;
168 margin: 0 !important;
169 overflow: hidden !important;
170 position: absolute !important;
171 opacity: 0 !important;
172 filter: Alpha(Opacity="0") !important;
174 .ui-layout-mask-inside-pane { /* masks always inside pane EXCEPT when pane is an iframe */
177 width: 100% !important;
178 height: 100% !important;
180 div.ui-layout-mask {} /* standard mask for iframes */
181 iframe.ui-layout-mask {} /* extra mask for objects/applets */
184 * Default printing styles
188 * Unless you want to print the layout as it appears onscreen,
189 * these html/body styles are needed to allow the content to 'flow'
192 height: auto !important;
193 overflow: visible !important;
195 body.ui-layout-container {
196 position: static !important;
197 top: auto !important;
198 bottom: auto !important;
199 left: auto !important;
200 right: auto !important;
201 /* only IE6 has container width & height set by Layout */
202 _width: auto !important;
203 _height: auto !important;
205 .ui-layout-resizer, .ui-layout-toggler {
206 display: none !important;
209 * Default pane print styles disables positioning, borders and backgrounds.
210 * You can modify these styles however it suit your needs.
213 border: none !important;
214 background: transparent !important;
215 position: relative !important;
216 top: auto !important;
217 bottom: auto !important;
218 left: auto !important;
219 right: auto !important;
220 width: auto !important;
221 height: auto !important;
222 overflow: visible !important;