Files
gallery3/lib/gallery.common.css

332 lines
5.2 KiB
CSS

/**
* Gallery 3 commonly reused screen styles
*
* Sheet organization:
* 1) Text
* 2) Dimension and scale
* 3) States and interactions
* 4) Positioning and order
* 5) Containers/widgets
* 6) Browser hacks
*/
/** *******************************************************************
* 1) Text
**********************************************************************/
.g-txt-small {
font-size: .8em;
}
.g-txt-big {
font-size: 1.2em;
}
.g-txt-right {
text-align: right;
}
/** *******************************************************************
* 2) Dimension and scale
**********************************************************************/
.g-narrow {
}
/** *******************************************************************
* 3) States and interactions
**********************************************************************/
.g-active,
.g-enabled,
.g-available,
.g-editable,
.g-selected,
.g-highlight {
font-weight: bold;
}
.g-inactive,
.g-disabled,
.g-unavailable,
.g-uneditable,
.g-locked,
.g-unselected,
.g-understate {
color: #ccc;
font-weight: normal;
}
.g-error,
.g-info,
.g-success,
.g-warning {
padding: .4em .5em .4em 30px;
}
.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 {
}
.g-default {
}
.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;
}
/** *******************************************************************
* 4) 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;
}
/** *******************************************************************
* 5) 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 messages ~~~~~~~~~~~~~~~~~~~~~~~ */
.g-message-block {
border: 1px solid #ccc;
}
#g-action-status {
width: 100% !important;
}
#g-site-status li {
border-bottom: 1px solid #ccc;
}
.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%;
}
.g-list-horizontal {
}
/* Dialogs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-dialog {
text-align: left;
}
#g-dialog .g-narrow {
margin: 0 auto;
width: 270px;
}
#g-dialog fieldset {
border: none;
}
#g-dialog legend {
display: none;
}
#g-dialog form input[type="text"],
#g-dialog form input[type="password"] {
width: 100%;
}
#g-dialog p {
margin: 0;
}
#g-dialog li {
padding-left: 0;
}
#g-dialog .g-cancel {
margin: .4em 1em;
}
/** *******************************************************************
* 6) Browser hacks
* @todo Insert .g-clearfix in context of specific selectors
* listed then delete them
*********************************************************************/
.g-clearfix:after,
#g-site-admin-menu:after,
#g-module-create-form ul li ul:after,
#g-developer-tools:after {
clear: both;
content: ".";
display: block;
height: 0;
visibility: hidden;
}