Subversion Repositories oidplus

Rev

Go to most recent revision | View as "text/css" | Blame | Last modification | View Log | RSS feed

  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. /*
  18.  *      DEFAULT FONT
  19.  *      Just to make demo-pages look better - not actually relevant to Layout!
  20.  */
  21. body {
  22.         font-family: Geneva, Arial, Helvetica, sans-serif;
  23.         font-size:   100%;
  24.         *font-size:  80%;
  25. }
  26.  
  27. /*
  28.  *      PANES & CONTENT-DIVs
  29.  */
  30. .ui-layout-pane { /* all 'panes' */
  31.         background:     #FFF;
  32.         border:         1px solid #BBB;
  33.         padding:        10px;
  34.         overflow:       auto;
  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
  39.         */
  40.         }
  41.         /* (scrolling) content-div inside pane allows for fixed header(s) and/or footer(s) */
  42.         .ui-layout-content {
  43.                 padding:        10px;
  44.                 position:       relative; /* contain floated or positioned elements */
  45.                 overflow:       auto; /* add scrolling to content-div */
  46.         }
  47.  
  48. /*
  49.  *      UTILITY CLASSES
  50.  *      Must come AFTER pane-class above so will override
  51.  *      These classes are NOT auto-generated and are NOT used by Layout
  52.  */
  53. .layout-child-container,
  54. .layout-content-container {
  55.         padding:        0;
  56.         overflow:       hidden;
  57. }
  58. .layout-child-container {
  59.         border:         0; /* remove border because inner-layout-panes probably have borders */
  60. }
  61. .layout-scroll {
  62.         overflow:       auto;
  63. }
  64. .layout-hide {
  65.         display:        none;
  66. }
  67.  
  68. /*
  69.  *      RESIZER-BARS
  70.  */
  71. .ui-layout-resizer      { /* all 'resizer-bars' */
  72.         background:             #DDD;
  73.         border:                 1px solid #BBB;
  74.         border-width:   0;
  75.         }
  76.         .ui-layout-resizer-drag {               /* REAL resizer while resize in progress */
  77.         }
  78.         .ui-layout-resizer-hover        {       /* affects both open and closed states */
  79.         }
  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' */
  84.                 background: #C4E1A4;
  85.         }
  86.         .ui-layout-resizer-dragging {   /* CLONED resizer being dragged */
  87.                 border:          1px solid #BBB;
  88.         }
  89.         .ui-layout-resizer-north-dragging,
  90.         .ui-layout-resizer-south-dragging {
  91.                 border-width:   1px 0;
  92.         }
  93.         .ui-layout-resizer-west-dragging,
  94.         .ui-layout-resizer-east-dragging {
  95.                 border-width:   0 1px;
  96.         }
  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 */
  100.         }
  101.  
  102.         .ui-layout-resizer-closed-hover { /* hover-color to 'slide open' */
  103.                 background: #EBD5AA;
  104.         }
  105.         .ui-layout-resizer-sliding {    /* resizer when pane is 'slid open' */
  106.                 opacity: .10; /* show only a slight shadow */
  107.                 filter:  alpha(opacity=10);
  108.                 }
  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);
  112.                 }
  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; }
  119.  
  120. /*
  121.  *      TOGGLER-BUTTONS
  122.  */
  123. .ui-layout-toggler {
  124.         border: 1px solid #BBB; /* match pane-border */
  125.         background-color: #BBB;
  126.         }
  127.         .ui-layout-resizer-hover .ui-layout-toggler {
  128.                 opacity: .60;
  129.                 filter:  alpha(opacity=60);
  130.         }
  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;
  134.                 opacity: 1.00;
  135.                 filter:  alpha(opacity=100);
  136.         }
  137.         .ui-layout-toggler-north ,
  138.         .ui-layout-toggler-south {
  139.                 border-width: 0 1px; /* left/right borders */
  140.         }
  141.         .ui-layout-toggler-west ,
  142.         .ui-layout-toggler-east {
  143.                 border-width: 1px 0; /* top/bottom borders */
  144.         }
  145.         /* hide the toggler-button when the pane is 'slid open' */
  146.         .ui-layout-resizer-sliding  .ui-layout-toggler {
  147.                 display: none;
  148.         }
  149.         /*
  150.          *      style the text we put INSIDE the togglers
  151.          */
  152.         .ui-layout-toggler .content {
  153.                 color:                  #666;
  154.                 font-size:              12px;
  155.                 font-weight:    bold;
  156.                 width:                  100%;
  157.                 padding-bottom: 0.35ex; /* to 'vertically center' text inside text-span */
  158.         }
  159.  
  160. /*
  161.  *      PANE-MASKS
  162.  *      these styles are hard-coded on mask elems, but are also
  163.  *      included here as !important to ensure will overrides any generic styles
  164.  */
  165. .ui-layout-mask {
  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;
  173. }
  174. .ui-layout-mask-inside-pane { /* masks always inside pane EXCEPT when pane is an iframe */
  175.         top:            0 !important;
  176.         left:           0 !important;
  177.         width:          100% !important;
  178.         height:         100% !important;
  179. }
  180. div.ui-layout-mask {}           /* standard mask for iframes */
  181. iframe.ui-layout-mask {}        /* extra mask for objects/applets */
  182.  
  183. /*
  184.  *      Default printing styles
  185.  */
  186. @media print {
  187.         /*
  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'
  190.          */
  191.         html {
  192.                 height:         auto !important;
  193.                 overflow:       visible !important;
  194.         }
  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;
  204.         }
  205.         .ui-layout-resizer, .ui-layout-toggler {
  206.                 display:        none !important;
  207.         }
  208.         /*
  209.          *      Default pane print styles disables positioning, borders and backgrounds.
  210.          *      You can modify these styles however it suit your needs.
  211.          */
  212.         .ui-layout-pane {
  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;
  223.         }
  224. }