Files
gallery3/themes/default/css/screen.css
2008-11-10 07:48:19 +00:00

614 lines
11 KiB
CSS

/**
* Gx Styles
*
* @requires YUI reset, font, grids, and base CSS
*
* Sheet organization:
* 1) HTML elements (headings, links, lists, tables, forms)
* 2) Layout containers (view, header, content, sidebar, footer)
* 3) Generic content containers (item, block)
* 4) Specific content containers and blocks (albums, metadata, comments)
* 5) Navigation and menus (menus, breadcrumbs, pagination, tab cloud)
* 6) Specific text styles (different headings, font sizes, etc.)
* 7) Generic styles ()
* 8) Browser hacks (clear fix)
*/
@import url('forms.css');
/**
** *******************************************************************
* 1) HTML elements (body, headings, links, lists, tables, forms)
** *******************************************************************
*/
/* ~~~~~~~~~ general elements ~~~~~~~~~~ */
body, html {
background-color: #ccc;
}
/* ~~~~~~~~~ text ~~~~~~~~~~ */
h1 {
margin-top: 0;
}
#gHeader h1 {
float: left;
margin: 20px 0 0 20px;
}
a {
color: #6b8cb7;
text-decoration: none;
}
a:hover {
color: #f30;
text-decoration: underline;
}
/* ~~~~~~~~~ list ~~~~~~~~~~ */
li {
list-style-type: none;
}
/* ~~~~~~~~~ table ~~~~~~~~~~ */
caption {
text-align: left;
}
th {
text-align: left;
}
/* ~~~~~~~~~ form ~~~~~~~~~~ */
form {
}
legend {
}
label {
}
input {
}
textarea {
}
/**
** *******************************************************************
* 2) Layout containers (view, header, content, sidebar, footer)
** *******************************************************************
*/
/* ~~~~~ View Container ~~~~~~ */
.gView {
background-color: #fff;
border: 1px solid #ccc;
border-width: 0 1px 1px 1px;
}
/* ~~~ Layout Containers ~~~~~ */
#gHeader {
border-bottom: 1px solid #ccc;
}
#gContent {
border-right: 1px solid #ccc;
padding: 20px;
}
#gSidebar {
background-color: #fff;
padding: 1.5em 0 0 0;
}
#gFooter {
border-top: 1px solid #ccc;
padding: .5em;
}
/**
** ****************************************************************
* 3) Generic content containers (item, block)
** ****************************************************************
*/
.gBlock {
margin: 0 1em 2.5em 0;
padding: 0;
}
.gBlockHeader {
background-color: #e8e8e8;
cursor: move;
height: 1.5em;
margin: 0;
padding: .3em .4em;
position: relative;
}
.gBlockHeader h2 {
background: url('../images/ico_dragable.png') no-repeat;
float: left;
font-size: 1.1em;
margin: 0;
padding-left: 12px;
}
.gBlockHeader .gMinimize {
background-image: url('../images/minimize.png');
height: 16px;
position: absolute;
right: .3em;
top: .45em;
width: 16px;
}
.gBlockHeader .gMinimize:hover {
background-image: url('../images/minimize_active.png');
}
.gBlockContent {
margin: .5em .5em 0 .5em;
}
table.gBlockContent {
table-layout: fixed;
}
table.gBlockContent th {
padding: .3em .3em .3em 0;
}
table.gBlockContent td {
padding: .3em 0 .3em .3em;
}
/**
** ****************************************************************
* 4) Specific content containers and blocks (albums, metadata, comments)
** ****************************************************************
*/
/* ~~~~~~~~ logo ~~~~~~~~ */
#gLogo {
float: left;
margin: 10px;
}
.gThumbnail {
}
/* ~~~~~~~~~ Album ~~~~~~~~~~ */
#gAlbumHeader {
height: 40px;
position: relative;
}
#gAlbumHeader h1 {
display: inline;
}
#gAlbumHeader span {
padding-right: 10px;
}
#gAlbumGrid {
margin: 0;
}
.gItem {
border: 1px solid #ccc;
float: left;
list-style: none;
margin: 0 24px 10px 0;
padding: 5px 0 5px 0;
text-align: center;
}
.gItem h2 {
margin: 5px 0;
}
.gAlbum {
background-color: #d4daff;
}
.gAlbum h2 {
color: #006;
}
/* ~~~~ individual photo ~~~~~~~ */
#gItem {
margin: 0;
}
#gItem a.gButtonLink {
float: right;
}
#gItem img {
background-color: #e7e7e7;
border: 1px solid #c0c0c0;
}
#gItem h1 {
margin: 10px 0;
}
/* ~~~~~~~~~ metadata ~~~~~~~~~~ */
table.gMetadata {
}
table.gMetadata td,
table.gMetadata th {
border: none;
}
table.gMetadata td.toggle {
text-align: right;
}
/* ~~~~~~~~~ comments ~~~~~~~~~~ */
#gComments {
border: 1px solid #ccc;
padding: 10px;
}
#gComments h2 {
margin-top: 0;
}
#gComments ul {
margin: 0;
}
#gComments ul li {
list-style-type: none;
margin-bottom: 15px;
}
#gComments ul li p {
background-color: #e8e8e8;
margin-bottom: 2px;
padding: 4px;
}
#gComments ul li div {
padding: 8px;
}
/* ~~~~~~~~~ Status messages ~~~~~~~~~~ */
#gStatusMessages {
}
.gError {
}
.gWarning {
}
.gSuccess {
}
.gInfo {
}
/* ~~~~~~~~~ search form ~~~~~~~~~~ */
#gSearchForm {
float: right;
margin-right: 10px;
}
#gSearchForm input.text {
padding: 1px;
}
#gSearchForm input.submit {
height: 20px;
}
/* ~~~~~~~~~ comment form ~~~~~~~~~~ */
#gCommentAdd {
width: 500px;
}
/* ----------- upload ----------------- */
#gUploadForm .gBreadcrumbs li input,
#gUploadForm .gBreadcrumbs li select {
width: 140px;
margin-left: 5px;
}
#gUploadForm-queue {
width: 500px;
}
#gUploadForm-queue td,
#gUploadForm-queue th {
border-color: #e7e7e7;
text-align: left;
}
#gUploadForm-queue caption {
display: none;
}
#gUploadForm-queue thead th {
border-bottom: 2px solid #000;
text-align: center;
}
#gUploadForm-queue thead th,
#gUploadForm-queue thead td {
background-color: #e7e7e7;
}
#gUploadForm-queue tfoot td {
border-top: 2px solid #000;
}
#gUploadForm-queue .filesize {
width: 60px;
}
#gUploadForm-queue td.filesize {
text-align: right;
}
#gUploadForm-queue tfoot td.filesize {
color: #ccc;
}
#gUploadForm-queue .action {
width: 40px;
}
#gUploadForm-button {
margin-left: 370px;
width: 130px;
}
/**
** *******************************************************************
* 5) Navigation and menus (menus, breadcrumbs, pagination, tab cloud)
** *******************************************************************
*/
/* ~~~~~~~~ login menu ~~~~~~~~ */
#gLoginMenu {
border: 1px solid #c0c0c0;
border-top: none;
float: right;
margin-right: 10px;
padding: 5px;
}
#gLoginMenu form {
margin-top: 5px;
}
#gLoginMenu label {
font-size: .8em;
}
#gLoginMenu input.text,
#gLoginMenu input.password {
padding: 0 0 .1em 0;
width: 80px;
}
#gLoginMenu input.submit {
font-size: .9em;
font-weight: bold;
}
/* ~~~~~~~~ Site Menu ~~~~~~~~ */
#gSiteMenu {
background: #e6ebf0 url('../images/bg_sitemenu.png') repeat-x;
clear: both;
height: 31px;
list-style-type: none;
margin: 8px 0;
padding: 0;
}
#gSiteMenu li {
float: left;
list-style-type: none;
width: 19%;
}
#gSiteMenu li a {
border: 1px solid #369;
border-width: 0 1px 1px 0;
color: #036;
display: block;
font-weight: bold;
height: 20px;
letter-spacing: .1em;
margin-left: 1px;
padding: 7px 7px 3px 7px;
text-align: center;
text-decoration: none;
}
#gSiteMenu li a:hover {
background: url('../images/bg_sitemenu_hover.png') repeat-x;
color: #f30;
}
#gSiteMenu li a.active {
background: #dce6ef;
border-color: #dce6ef;
color: #f30;
}
#gSlideshowLink {
position: absolute;
right: 0;
top: 0;
}
/* ~~~~~~~~~ breadcrumbs ~~~~~~~~~~ */
#gBreadcrumbs {
height: 28px;
list-style-type: none;
margin: 4px 0;
padding: 0 0 0 12px;
}
#gBreadcrumbs li {
background: transparent url('../images/icon_breadcrumb_separator.gif') no-repeat scroll left center;
float: left;
list-style-type: none;
padding: 0 0 0 12px;
}
#gBreadcrumbs li.root {
background: transparent;
}
#gBreadcrumbs li a,
#gBreadcrumbs li span {
display: block;
}
#gBreadcrumbs li.active span {
font-weight: bold;
}
/* ~~~~~~~~~ tag cloud ~~~~~~~~~~ */
#gTags ul {
padding: 0;
text-align: justify;
}
#gTags ul li {
display: inline;
text-align: justify;
}
#gTags ul li a {
text-decoration: none;
}
#gTags ul li a.size0 {
color: #9cf;
font-size: 100%;
font-weight: 100;
}
#gTags ul li a.size1 {
color: #69f;
font-size: 110%;
font-weight: 300;
}
#gTags ul li a.size2 {
color: #69c;
font-size: 120%;
font-weight: 500;
}
#gTags ul li a.size3 {
color: #369;
font-size: 130%;
font-weight: 700;
}
#gTags ul li a.size4 {
color: #0e2b52;
font-size: 140%;
font-weight: 900;
}
#gTags ul li a:hover {
color: #FF3300;
text-decoration: underline;
}
#gTags form {
margin-top: 10px;
}
/* ~~~~~~~~~ tags ~~~~~~~~~~ */
#gTags ul {
margin-left: .5em;
}
#gTags li {
list-style-image: url('../images/bullet_tag.png');
margin-bottom: .3em;
}
/* ~~~~~~~~~ pagination ~~~~~~~~~~ */
#gPagination {
clear: both;
padding: 10px 0 0 0;
text-align: center;
}
#gPagination a,
#gPagination span {
background-repeat: no-repeat;
border: 1px solid #d3d3d3;
padding: 5px;
}
#gPagination a:hover {
background-color: #f3f3f3;
}
#gPagination .first {
background-image: url('../images/first.png');
background-position: left;
padding-left: 20px;
}
#gPagination .first_inactive {
background-image: url('../images/first_inactive.png');
background-position: left;
padding-left: 20px;
}
#gPagination .previous {
background-image: url('../images/previous.png');
background-position: left;
padding-left: 17px;
}
#gPagination .previous_inactive {
background-image: url('../images/previous_inactive.png');
background-position: left;
padding-left: 17px;
}
#gPagination .next {
background-image: url('../images/next.png');
background-position: right;
padding-right: 17px;
}
#gPagination .next_inactive {
background-image: url('../images/next_inactive.png');
background-position: right;
padding-right: 17px;
}
#gPagination .last {
background-image: url('../images/last.png');
background-position: right;
padding-right: 20px;
}
#gPagination .last_inactive {
background-image: url('../images/last_inactive.png');
background-position: right;
padding-right: 20px;
}
/* ~~~~~~~~~ album tree ~~~~~~~~~~ */
#gAlbumTree {
border: 1px solid #d3d3d3;
margin: 20px 0 20px 0;
padding: 5px;
}
#gAlbumTree #gTreeContainer {
border: 1px solid #d3d3d3;
padding: 0 0 0 5px;
}
/**
** *******************************************************************
* 6) Specific text styles (different headings, font sizes, etc.)
** *******************************************************************
*/
/**
** *******************************************************************
* 7) Generic styles
** *******************************************************************
*/
.gButtonLink {
border: 1px solid #d3d3d3;
padding: 5px;
}
.gButtonLink:hover {
background-color: #f3f3f3;
}
.gUnderState {
color: #c0c0c0;
}
/**
** *******************************************************************
* 8) Browser hacks
** *******************************************************************
*/
/* Keep containers holding only floated elements from collapsing in Safari */
.gClearFix:after {
clear: both;
content: ".";
display: block;
height: 0;
visibility: hidden;
}