view media/css/base.css @ 265:1ba2c6bf6eb7

Closing #98. Animated GIFs were losing their transparency and animated properties when saved as avatars. Reworked the avatar save process to only run the avatar through PIL if it is too big. This preserves the original uploaded file if it is within the desired size settings. This may still mangle big animated gifs. If this becomes a problem, then maybe look into calling the PIL Image.resize() method directly. Moved the PIL image specific functions from bio.forms to a new module: core.image for better reusability in the future.
author Brian Neal <bgneal@gmail.com>
date Fri, 24 Sep 2010 02:12:09 +0000
parents 8c1832b9d815
children eea6219024ef
line wrap: on
line source
body {
 background-color: #eee;
 background: url('../themes/kds/bg.png') no-repeat fixed center;
}
tr.even td {
 background-color: #E0F2F6;
}
a {
 text-decoration: none;
 color: teal;
}
a:hover {
 text-decoration: underline;
 color: black;
}
#page {
}
#header {
 background-position: left;
 background-repeat: no-repeat;
 text-align: center;
 display: block;
 height: 150px;
 overflow: visible;
 background-image: url('../themes/kds/headerbg.png');
}
#header p {
 float: none;
 padding: 40px 24px 0px 24px;
 font-size: 1.5em;
 line-height: 1em;
 display: block;
 clear: both;
}
#header-nav {
 background-color: #E0F2F6;
 text-align: right;
}
#header-nav ul {
 padding-top: 3px;
 padding-right: 5px;
 margin-bottom: 3px;
 /* text-align: right; */
 list-style: none;
}
#header-nav li {
 display: inline;
 margin: 0 36px;
}
#header-nav li a {
 font-size: 1.0em;
 line-height: 1em;
 text-decoration: none;
 color: teal;
}
#header-nav li a:hover {
 color: black;
} 
#content-primary {
}
#content-secondary {
 background-color: #E0F2F6;
 min-height: 1750px;
}
#content-secondary ul.nav-left {
 margin-top: 1.5em;
 list-style:none;
}
#content-secondary ul.nav-left li {
 background-color: #eee;
 background-color: #E0F2F6;
 color: black;
}
#content-secondary ul.nav-left li a {
 text-decoration: none;
 color: teal;
}
#content-secondary ul.nav-left li a:hover {
 color: black;
}
#footer {
 height: 105px;
 font-size: 10px;
 line-height: 1em;
 text-shadow: 1px 1px 1px #333;
 background-repeat: no-repeat;
 background-color: #E0F2F6;
 color: black;
}
#footer p {
	margin: 1em;
	text-align: center;
} 
#footer a {
   color: teal;
}
ul.app-menu {
   text-align: center;
   list-style: none;
}
ul.app-menu li {
   display: inline;
   border: 1px solid black;
   padding: 3px 1em;
   background-color: teal;
}
ul.app-menu li a {
   text-decoration: none;
   background-color: teal;
   color: #111;
}
ul.app-menu li a:hover {
   color: #fff;
}
div.side-block {
   margin-bottom:1.2em;
   margin-left:14px;
   margin-right:auto;
   width:160px;
}
div.side-block-title {
   margin: 0;
   background-color: teal;
   color: white;
   font-weight: bold;
   text-align: center;
}
div.side-block-content {
   margin: 0;
   border: 1px solid teal;
   padding: 2px 2px;
}
iframe {
   margin-bottom: 1em;
}
img {
   border-style: none;
}
.breadcrumbs {
   font-size: x-small;
   padding-bottom: 0.5em;
}
table {
   width: auto;
   border-style: none;
}
.errorlist {
   background: #FBE3E4; 
   color: #8a1f11;
   border-color: #FBC2C4;
   border: 2px solid #ddd;
}
.app-logo {
   text-align: center;
   padding: 0.5em;
}
.bulletin {
   text-align: center;
   margin: 1em 1em;
   padding: 1em 1em 0;
   border: 1px solid black;
}
.bulletin h3 {
   background-image: url(../icons/asterisk_orange.png);
   background-position: center left;
   background-repeat: no-repeat;
}
.bulletin .bulletin-meta {
   font-size: x-small;
   color: gray;
   text-align: right;
}
ul.icon-list li {
   list-style-type: none;
}
#slideshow {
   position:relative;
   left:15px;
   height:240px;
}
#slideshow img {
   position:absolute;
   top:0;
   left:0;
   z-index:8;
   opacity:0.0;
}
#slideshow img.active {
   z-index:10;
   opacity:1.0;
}
#slideshow img.last-active {
   z-index:9;
}
table.forum-index-table {
   width:100%;
}
table.forum-index-table thead th {
   background:teal;
}
table.forum-index-table .forum-title {
   width:57%;
}
table.forum-index-table .forum-topics {
   width:9%;
   text-align:center;
}
table.forum-index-table .forum-posts {
   width:9%;
   text-align:center;
}
table.forum-index-table .forum-last_post {
   width:25%;
   text-align:center;
}

table.forum-index-table .forum-index_title {
   width:50%;
}
table.forum-index-table .forum-index_replies {
   width:8%;
   text-align:center;
}
table.forum-index-table .forum-index_author {
   width:8%;
   text-align:center;
}
table.forum-index-table .forum-index_views {
   width:8%;
   text-align:center;
}
table.forum-index-table .forum-index_last_post {
   width:26%;
   text-align:center;
}
table.forum-index-table .forum-index_select {
   width:10%;
   text-align:center;
}
table.forum-index-table h4 {
   margin-bottom: 4px;
}
table.forum-topic {
   border-top:1px solid black;
   border-left:1px solid black;
   border-right:1px solid black;
   width:100%;
   margin-top: 5px;
}
td.forum-post-author {
   width:5%;
   border-right: 1px solid #ccc;
   border-bottom: 1px solid black;
   vertical-align: top;
   font-size: x-small;
}
td.forum-post-body {
   vertical-align: top;
   width:95%;
   border-bottom: 1px solid black;
}
td.forum-post-body-split {
   vertical-align: top;
   width:90%;
   border-bottom: 1px solid black;
}
td.forum-post-split-check {
   width:5%;
   border-left: 1px solid #ccc;
   border-bottom: 1px solid black;
   vertical-align: middle;
}
div.forum-post-info {
   padding: 2px;
   font-size:.8em;
   border-bottom: 1px solid #ccc;
   margin-bottom: 5px;
   padding-bottom: 5px;
}
div.forum-post-info img {
   float: left;
   margin-right: 5px;
}
div.forum-post-info-tools {
   border-top: 1px solid #ccc;
   padding-top: 5px;
   text-align: right;
}
div.forum-post-info-tools img {
   padding-left: 1em;
}
.forums-post-navigation {
   text-align: right;
}
#forums-quick-reply {
   margin-top: 1.5em;
}
img.forums-topic-icon {
   float: left;
   margin-right: 3px;
}
div.forum-mod-controls form {
   display:inline;
}
table.grid {
   border-collapse:collapse;
}
table.grid th, table.grid td {
   border: 1px solid #eee;
}
ul.inline-list li {
 display: inline;
 margin: 0 3px;
}
table.forum-topic-table {
   width:100%;
}
table.forum-topic-table thead th {
   background:teal;
}
table.forum-topic-table .col-0 {
   width:23%; 
   text-align:center;
}
table.forum-topic-table .col-1 {
   width:37%; 
   text-align:center;
}
table.forum-topic-table .col-2 {
   width:5%;
   text-align:center;
}
table.forum-topic-table .col-3 {
   width:5%;
   text-align:center;
}
table.forum-topic-table .col-4 {
   width:5%;
   text-align:center;
}
table.forum-topic-table .col-5 {
   width:25%;
   text-align:center;
}
table.forum-topic-table .info {
   text-align:center;
}
#forum-query-form {
   text-align:right;
}
#forums-post-list dt {
   margin-top: 0.5em;
   padding: 3px 0 3px 0;
}
#forums-post-list dd {
   border: 1px solid #555;
   padding: 0.5em 0.5em;
}
#forums-post-list dd.even {
   background-color:#e5ecf9;
}
#badge_summary {
   border-collapse:collapse;
}
#badge_summary th, #badge_summary td {
   border: 1px solid teal;
}
.error a {
   text-decoration: underline;
}
.stranger {
   background:#FFF6BF;
}