mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-04-17 02:59:22 -04:00
494 lines
7.5 KiB
CSS
494 lines
7.5 KiB
CSS
/**
|
|
* 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
|
|
**********************************************************************/
|
|
|
|
#g-sidebar form {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
|
|
fieldset {
|
|
border: 1px solid #ccc;
|
|
padding: .8em 1em !important;
|
|
}
|
|
|
|
#g-banner fieldset,
|
|
#g-sidebar fieldset {
|
|
border: none;
|
|
}
|
|
|
|
legend {
|
|
font-weight: bold;
|
|
margin-left: .8em;
|
|
}
|
|
|
|
#g-banner legend,
|
|
#g-sidebar legend,
|
|
#g-content #g-search-form legend,
|
|
input[type="hidden"] {
|
|
display: none;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"] {
|
|
width: 50%;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"],
|
|
textarea {
|
|
border: 1px solid #e8e8e8;
|
|
border-top-color: #ccc;
|
|
border-left-color: #ccc;
|
|
color: #333;
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
height: 12em;
|
|
}
|
|
|
|
input:focus,
|
|
input.textbox:focus,
|
|
input[type=text]:focus,
|
|
textarea:focus,
|
|
option:focus {
|
|
background-color: #ffc;
|
|
color: #000;
|
|
}
|
|
|
|
/* Form layout ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
|
|
|
|
form li {
|
|
margin: 0 !important;
|
|
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;
|
|
}
|
|
|
|
/* Short forms ~~~~~~~~~~~~~~~~~~~~~~~ */
|
|
|
|
.g-short-form label {
|
|
display: none;
|
|
}
|
|
|
|
.g-short-form fieldset {
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.g-short-form li {
|
|
float: left;
|
|
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-narrow {
|
|
width: 25%;
|
|
}
|
|
|
|
.g-wide {
|
|
width: 100%;
|
|
}
|
|
|
|
/** *******************************************************************
|
|
* 4) 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-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;
|
|
}
|
|
|
|
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 red;
|
|
}
|
|
|
|
.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 messages ~~~~~~~~~~~~~~~~~~~~~~~ */
|
|
|
|
.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 .g-narrow {
|
|
margin: 0 auto;
|
|
width: 270px;
|
|
}
|
|
|
|
#g-dialog fieldset {
|
|
border: none;
|
|
padding: 0 !important;
|
|
width: 99%;
|
|
}
|
|
|
|
#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;
|
|
}
|
|
|
|
/* Inline layout ~~~~~~~~~~ */
|
|
|
|
.g-inline * {
|
|
float: left;
|
|
margin-right: .4em;
|
|
}
|
|
|
|
/* Right to left styles ~~~~~~~~~~~~~~~~~~~~ */
|
|
|
|
.rtl .g-short-form li {
|
|
float: right;
|
|
}
|