/** * Gallery 3 commonly re-used screen styles * * Sheet organization: * * 1) Text * 2) Forms * 3) Dimension and scale * 4) States and interactions * 5) Positioning and order * 6) Containers/widgets */ /** ******************************************************************* * 1) Text **********************************************************************/ .g-txt-small { font-size: .8em; } .g-txt-big { font-size: 1.2em; } .g-txt-right { text-align: right; } /** ******************************************************************* * 2) Forms **********************************************************************/ form { margin: 0; } fieldset { border: 1px solid #ccc; padding: .4em 1em .8em 1em; } #g-banner fieldset, #g-sidebar fieldset { border: none; padding: 0; } legend { font-weight: bold; margin: 0 0 .4em .8em; } #g-banner legend, #g-sidebar legend, #g-content #g-search-form legend, input[type="hidden"] { display: none; } textarea { height: 12em; } input.textbox, input[type="text"], input[type="password"], textarea { border: 1px solid #e8e8e8; border-top-color: #ccc; border-left-color: #ccc; clear: both; color: #333; width: 50%; } input:focus, input.textbox:focus, input[type=text]:focus, textarea:focus, option:focus { background-color: #ffc; color: #000; } /* Form layout ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ form li { margin: 0; padding: .3em 0; } form ul ul { clear: both; } form ul ul li { float: left; } input, select, textarea { display: block; clear: both; padding: .2em; } input[type="submit"], input[type="reset"] { display: inline; clear: none; float: left; } /* Forms in dialogs ~~~~~~~~~~~~~~~~~~ */ #g-dialog form fieldset { border: none; padding: 0; } #g-dialog input.textbox, #g-dialog input[type=text], #g-dialog input[type=password], #g-dialog textarea { width: 97%; } /* Short forms ~~~~~~~~~~~~~~~~~~~~~~~ */ .g-short-form label { display: none; } .g-short-form fieldset { border: none; padding: 0; } .g-short-form li { float: left; margin: 0 !important; padding: .4em 0; } .g-short-form .textbox, .g-short-form input[type=text] { color: #666; padding: .3em .6em; } .g-short-form .textbox.g-error { border: 1px solid #f00; color: #f00; padding-left: 24px; } .g-short-form .g-cancel { display: block; padding: .2em .8em; } #g-sidebar .g-short-form li { padding-left: 0; padding-right: 0; } /** ******************************************************************* * 3) Dimension and scale **********************************************************************/ .g-one-quarter { width: 25%; } .g-one-third { width: 33%; } .g-one-half { width: 50%; } .g-two-thirds { width: 66%; } .g-three-quarters { width: 75%; } .g-whole { width: 100%; } /** ******************************************************************* * 4) States and interactions **********************************************************************/ .g-active, .g-enabled, .g-available, .g-selected, .g-highlight { font-weight: bold; } .g-inactive, .g-disabled, .g-unavailable, .g-uneditable, .g-locked, .g-deselected, .g-understate { color: #ccc; font-weight: normal; } .g-error, .g-info, .g-success, .g-warning { padding-left: 30px; } form li.g-error, form li.g-info, form li.g-success, form li.g-warning { background-image: none; padding: .3em .8em .3em 1em; } .g-short-form li.g-error { padding: .3em 0 .3em 0; } form.g-error input[type="text"], li.g-error input[type="text"], form.g-error input[type="password"], li.g-error input[type="password"], form.g-error input[type="checkbox"], li.g-error input[type="checkbox"], form.g-error input[type="radio"], li.g-error input[type="radio"], form.g-error textarea, li.g-error textarea, form.g-error select, li.g-error select { border: 2px solid #f00; margin-bottom: .2em; } .g-error, .g-denied, tr.g-error td.g-error { background: #f6cbca url('images/ico-error.png') no-repeat .4em 50%; color: #f00; } .g-info { background: #e8e8e8 url('images/ico-info.png') no-repeat .4em 50%; } .g-success, .g-allowed { background: #d9efc2 url('images/ico-success.png') no-repeat .4em 50%; } .g-warning, tr.g-warning td.g-warning { background: #fcf9ce url('images/ico-warning.png') no-repeat .4em 50%; } form .g-error { background-color: #fff; } .g-open { } .g-closed { } .g-installed { background-color: #eeeeee; } .g-default { background-color: #c5dbec; font-weight: bold; } .g-draggable, .ui-draggable { cursor: move; } .g-draggable:hover { border: 1px dashed #000; } .ui-sortable .g-target, .ui-state-highlight { background-color: #fcf9ce; border: 2px dotted #999; height: 2em; margin: 1em 0; } /* Ajax loading indicator ~~~~~~~~~~~~~~~~ */ .g-loading-large, .g-dialog-loading-large { background: #e8e8e8 url('images/loading-large.gif') no-repeat center center; font-size: 0; } .g-loading-small { background: #e8e8e8 url('images/loading-small.gif') no-repeat center center; font-size: 0; } /** ******************************************************************* * 5) Positioning and order **********************************************************************/ .g-left { clear: none; float: left; margin: 1em 1em 1em 0; } .g-right { clear: none; float: right; margin: 1em 0 1em 1em; } .g-first { } .g-last { } .g-even { background-color: #fff; } .g-odd { background-color: #eee; } /** ******************************************************************* * 6) Containers/widgets **********************************************************************/ /* Generic block container ~~~~~~~~~~~~~~~ */ .g-block { clear: both; margin-bottom: 2.5em; } .g-block-content { } /* Buttons ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ .g-button { display: inline-block; margin: 0 4px 0 0; padding: .2em .4em; } .g-button, .g-button:hover, .g-button:active { cursor: pointer !important; outline: 0; text-decoration: none; -moz-outline-style: none; } .g-progress-bar { height: 1em; width: 100%; margin-top: .5em; display: inline-block; } /* Status and validation messages ~~~~ */ .g-message { font-size: .8em; } .g-message-block { border: 1px solid #ccc; width: 100%; } #g-action-status { margin-bottom: 1em; } #g-action-status li, p#g-action-status, div#g-action-status { padding-top: .4em; padding-bottom: .3em; } #g-site-status li { border-bottom: 1px solid #ccc; padding: .3em .3em .3em 30px; } .g-module-status { clear: both; margin-bottom: 1em; } /* Breadcrumbs ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ .g-breadcrumbs { padding: 0 20px; } .g-breadcrumbs li { background: transparent url('images/ico-separator.gif') no-repeat scroll left center; float: left; padding: 10px 6px 10px 16px !important; } .g-breadcrumbs li.root { background: transparent; } .g-breadcrumbs li a, .g-breadcrumbs li span { display: block; } .g-breadcrumbs li.active, .g-breadcrumbs li.active span { font-weight: bold; } #g-dialog ul.g-breadcrumbs { clear: both; margin-left: 0; padding-left: 0; } #g-dialog .g-breadcrumbs li { font-size: .9em; } /* Pagination ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ .g-pager { padding: 5px 0; width: 100%; } .g-pager li { float: left; width: 30%; } .g-pager .g-info { background: none; padding: .2em 0; text-align: center; width: 40%; } /* Dialogs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ #g-dialog { text-align: left; } #g-dialog legend { display: none; } #g-dialog .g-cancel { margin: .4em 1em; } /* Inline layout ~~~~~~~~~~ */ .g-inline li { float: left; margin-right: .4em; } /* Right to left styles ~~~~~~~~~~~~~~~~~~~~ */ .rtl .g-short-form li { float: right; }