view css/mpiwg.css @ 76:2d3a7171f3f0

styles for research pages.
author casties
date Tue, 07 May 2013 11:14:24 +0200
parents df56982ecb03
children 7f26c8e6c8e9
line wrap: on
line source

/* MPIWG website style sheet 
 * 
 * (c) 2013 MPIWG Berlin
 * Author: Robert Casties
 */
body {
    margin: 0;
    font-family: Verdana, Arial, sans-serif;
    background-color: #fdf8ef;
    font-size: 12px;
}

/* 
 * global styles
 */
img {
    border: none;
}

a {
    color: #d45a00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/*  link-classes (with icons)  */
a.internal {
    background: url(../images/internal.png) center left no-repeat;
    padding-left: 10px;
}

a.download {
    background: url(../images/download.png) center left no-repeat;
    padding-left: 15px;
}

a.external {
    background: url(../images/external.png) center left no-repeat;
    padding-left: 15px;
}

a.pdf {
    background: url(../images/pdf.gif) no-repeat;
    padding-left: 15px;
    /* padding-top:1px; */
}

a.audio {
    background: url(../images/audio.png) center left no-repeat;
    padding-left: 15px;
}

a.down {
    background: url(../images/down.png) center left no-repeat;
    padding-left: 15px;
}

a.book {
    background: url(../images/book.gif) no-repeat;
    padding-left: 20px;
    margin-left: -5px;
    margin-top: -1px;
}

a.maillink {
    color: #3b4186 !important;
}

h1 {
    color: #3b4186;
    font-size: 20px;
    font-weight: normal;
    margin: 0.5em 0;
}

h1:first-child {
    /* does this work correctly? */
    margin-top: 0;
}

h2 {
    color: #3b4186;
    font-size: 16px;
    font-weight: normal;
    margin: 0.5em 0;
}

h3 {
    color: #3b4186;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
}

h1 a {
    /* a header with a link looks like a header */
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

p {
    margin: 0.5em 0;
    line-height: 1.5;
}

ul.inline {
    padding: 0;
    margin: 0;
}

ul.inline li {
    display: inline;
}

div.rows {
    display: table;
}

div.row {
    display: table-row;
}

div.row>div.col {
    display: table-cell;
    vertical-align: top;
}

div.row>div.col:first-child {
    /* first block has no left margin */
    padding-left: 0 !important;
}

/* 
 * page wrapper and header
 */
#wrapper {
    width: 900px;
    margin: 0 auto;
    padding: 10px 40px 10px 20px;
    background-color: #fcf2df;
    box-shadow: 0 0 5px 3px #d0d0d0;
}

#header {
    display: block;
    position: relative;
    height: 95px;
    margin: 0 0 10px 0;
}

#header div.title {
    position: absolute;
    left: 0;
    top: 25px;
}

#header div.title img {
    width: 661px;
    height: 40px;
}

#header div.logo {
    position: absolute;
    right: 0;
}

#header div.logo img {
    width: 87px;
    height: 88px;
}

/* 
 * Main Navigation
 */
#mainnav {
    display: block;
    position: relative;
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    border-top: 8px solid #fab775;
    padding-top: 5px;
    margin-bottom: 15px;
    /* make iPhone-Safari not botch text size */
    -webkit-text-size-adjust: 100%;
}

#mainnav ul {
    padding: 0;
    margin: 0;
}

#mainnav li.sec {
    display: inline;
    border-top: 8px solid #fab775;
    margin: 0 35px 0 0;
    padding-top: 5px;
}

#mainnav li.sec:hover {
    border-top: 8px solid #d45a00;
}

#mainnav a {
    color: #696968;
    outline: none;
}

#mainnav a:hover {
    color: #000000;
    text-decoration: none;
}

#mainnav li.sec.on {
    border-top: 8px solid #d45a00;
}

#mainnav li.sec.on a {
    color: #d45a00;
    outline: none;
    font-weight: bold;
}

#mainnav li.sec.lang {
    position: absolute;
    right: 0;
    top: -8px;
    margin-right: 0;
}

/* 
 * breadcrumbs 
 */
#breadcrumbs {
    font-size: 11px;
    color: #6a4d3c;
    margin-bottom: 5px;
}

#breadcrumbs a {
    color: #6a4d3c;
}

#breadcrumbs .selected {
    font-weight: bold;
}

/* 
 * main section wrapper
 */
#mainrow {
    display: table-row;
}

/*
 * subnavigation
 */
div.leftbox {
    display: table-cell;
    vertical-align: top;
    width: 170px;
    border-top: 3px solid #dccbae;
}

div.subnav {
    font-size: 11px;
}

div.subnav ul {
    margin: 0;
    padding: 0;
}

div.subnav li {
    list-style-type: none;
    border-bottom: 1px solid #dccbae;
    padding: 3px 6px 6px 3px;
}

div.subnav .sn_on {
    padding-left: 6px;
    background: #d45a00;
}

div.subnav .sn_on a {
    color: #fcf2df;
    font-weight: bold;
}

div.subnav h2.subnavhead {
    background-color: white;
    color: #d45a00;
    border-bottom: 1px solid #dccbae;
    font-size: 11px;
    font-weight: bold;
    margin: 0;
    padding: 5px 3px;
}

div.subnav li.dept {
    padding-left: 18px;
    list-style-position: inside;
    list-style-image: url(../images/internal.png);
    text-indent: -14px;
}

div.subnav li.dept .type {
    font-style: italic;
    color: #6a4d3c;
}

div.subnav li.dept.sn_on .type {
    color: #f9f4e1;
}

div.subnavbox {
    /* navigation below e.g. research projects */
    font-size: 11px;
    margin-top: 30px;
}

div.subnavbox h2 {
    font-size: 11px;
    color: #b69f7b;
    padding-bottom: 3px;
    border-bottom: 1px solid #dccbae;
    margin-top: 20px;
}

/*
 *  main section 
 */
div.main {
    display: table-cell;
    vertical-align: top;
    background-color: white;
    border-top: 3px solid #dccbae;
    padding: 20px;
}

div.main div.row>div.col {
    /* col default padding */
    padding-left: 20px;
}

/* 
 * frontpage
 */
div.main.home {
    background-color: transparent;
    border-top: 0;
    padding: 0;
}

div.main.home b {
    /* bold is blue */
    color: #3b4186;
}

div.main.home div.row.triple>div.col {
    /* frontpage col width */
    width: 286px;
    padding-left: 21px;
}

div.box h2 {
    /* more-links in title are right */
    position: relative;
}

div.box h2 a:link {
    /* more-links in title are right */
    position: absolute;
    right: 0;
    top: 3px;
    /* more-links in title are small */
    font-size: 12px;
}

/*
 * front page feature teaser
 */
div.main.home div.teaser {
    background-color: #f4e0c7;
}

div.main.home div.teaser div.box {
    /* teaser box needs no margins */
    margin: 0;
}

div.teaser_image {
    position: relative;
    width: 593px;
    height: 351px;
}

div.teaser_image div.caption {
    /* caption inside image */
    position: absolute;
    bottom: 0;
    padding: 3px;
    text-align: right;
    color: white;
    font-size: 10px;
    opacity: 0.8;
    background-color: gray;
    /* background-color: rgba(80,80,80,0.6); */
}

div.teaser_text {
    padding-right: 21px;
}
/* feature number */
div.teaser_text div.feature_number {
    position: absolute;
    right: 14px;
    top: 5px;
    font-family: Georgia, Times, serif;
    font-size: 26px;
    color: #887163;
}
/* feature title */
div.teaser_text h1 {
    font-size: 16px;
    font-weight: normal;
    margin-top: 0;
}
/* current research topic */
div.teaser_text h3 {
    color: #887163;
    margin-bottom: 3px;
    margin-top: 15px;
}
/* feature date */
div.teaser_text div.date {
    color: #3b4186;
    padding-top: 20px;
    margin-bottom: 20px;
}

/* teaser slider */
div.teaser div.box div.slider {
    top: 150px;
    width: 18px;
    height: 24px;
    padding-top: 11px;
}

div.teaser div.box div.slider.prev {
    background-image: url(../images/slider_prev_bg.png);
}

div.teaser div.box div.slider.next {
    background-image: url(../images/slider_next_bg.png);
}

/* 
 * toolboxes 
 */
div.tool.box {
    font-family: Georgia, Times, serif;
    font-style: italic;
    font-size: 16px;
    color: #887163;
    background-color: #efeeec;
    padding: 20px;
    box-shadow: 0 0 1px 1px #e0e0e0;
}

div.tool.box a {
    color: #3b4186;
}

div.tool.box div.searchbox {
    /* only to make it shrink-wrap */
    display: table-cell;
}

div.tool.box div.searchbox input.text {
    height: 20px;
    width: 370px;
    background-color: #9fa0a7;
    color: white;
    font-size: 14px;
    font-style: italic;
    border: 0;
    padding: 3px;
}

div.tool.box div.searchbox input.submit {
    /* submit uses border-box. don't ask */
    height: 26px;
    width: 26px;
    border: 0;
    padding: 2px 3px 4px 3px;
    /* TODO: this should be an image */
    background-color: #ee7f2d;
    color: white;
    font-size: 14px;
}

div.tool.box div.searchbox div.extended {
    text-align: right;
    padding: 5px 30px 5px 3px;
}

div.tool.box h3 {
    font-family: Georgia, Times, serif;
    font-style: italic;
    font-size: 16px;
    color: #887163;
    margin: 0.5em 0;
}

div.tool.box h3:first-child {
    /* top header has no margin */
    margin-top: 0;
}

div.tool.box ul {
    margin: 0;
    padding: 0;
}

div.tool.box div.options {
    margin-top: 10px;
}

div.tool.box div.options li {
    list-style-type: none;
    margin: 0.5em 0;
}

div.tool.box div.atoz {
    color: #887163;
    font-size: 14px;
    margin-top: 10px;
}

div.tool.box input.checkbox,
div.tool.box input.radio {
    /* checkbox uses border-box. don't ask */
    width: 20px;
    height: 20px;
    margin: 0;
    /* TODO: this should be an image */
    background-color: white;
}

/* project page toolbox with thumbs */
div.tool.box div.box.thumbs {
    width: 420px;
}

div.box.thumbs div.thumb {
    display: inline;
}
div.box.thumbs div.thumb img {
    width: 55px;
    height: 34px;
}


/* 
 * service box on frontpage 
 */
div.box h2.service {
    /* title has no line */
    border: 0;
}

div.tool.box.service {
    margin-top: 0;
    padding: 0;
}

div.tool.box.service div.row > div.col {
    padding: 0;
}
div.tool.box.service div.search {
    width: 200px;
    height: 20px;
    padding: 26px 0 26px 16px;
    border-bottom: 1px solid #9fa0a7;
}
div.tool.box.service div.search.both {
    height: 44px;
    padding: 14px 0 14px 16px;
}
div.tool.box.service div.searchicon {
    width: 38px;
    height: 40px;
    text-align: center;
    padding: 16px;
    border-bottom: 1px solid #9fa0a7;
}
div.tool.box.service div.icon {
    width: 71px;
    height: 70px;
    text-align: center;
    line-height: 2.5;
    padding: 1px 0;
    border-left: 1px solid #9fa0a7;
}
div.tool.box.service div.icon a {
    color: black;
    font-size: 12px;
    font-family: Verdana, Arial, sans-serif;
    font-style: normal;
}
div.tool.box.service div.icon.first {
    border-left: 0;
    width: 70px;
}
div.tool.box.service div.searchbox {
    display: block;
}
div.tool.box.service div.searchbox input.text {
    width: 170px;
    height: 17px;
    font-size: 12px;
    padding: 1px 3px;
}
div.tool.box.service div.searchbox input.submit {
    height: 19px;
    width: 19px;
    padding: 0;
    margin: 0;
    vertical-align: bottom;
}
div.tool.box.service select.quickfinder {
    width: 200px;
    height: 19px;
    font-size: 12px;
    background-color: white;
    margin-bottom: 5px;
    border: 0;
}

/*
 * other boxes
 */
div.box {
    margin: 20px 0;
    position: relative;
}

div.box h2 {
    /* h2 is title with line */
    padding-bottom: 5px;
    border-bottom: 3px solid #dccbae;
    margin-bottom: 5px;
}

div.box.line {
    border-bottom: 1px solid #dccbae;
}

div.box h3 {
    /* h3 is subtitle/type */
    font-size: 12px;
    color: #6a4d3c;
}

div.box h3 + h2 {
    /* directly over h2 */
    margin-top: 0;
}

/*
 * small box with thumbnail
 */
div.mini {
    padding: 10px 0;
    /* line-height: 1; */
}

div.row.quintuple div.mini {
    max-width: 122px;
    font-size: 11px;
}

div.mini div.thumb {
    background-color: #f8f8f8;
    text-align: center;
}

div.row.quintuple div.mini div.thumb img {
    width: 120px;
    height: 75px;
}

div.row.triple div.mini {
    width: 140px;
}

div.row.triple div.mini div.thumb img {
    width: 140px;
    height: 87px;
}

div.row.triple div.mini.source div.thumb img {
    /* thumb size for sources given by digilib */
    width: auto;
    height: auto;
}

div.mini div.type {
    color: #9f917a;
    margin-top: 0.5em;
}

div.mini div.title {
    margin-top: 0.5em;
}

div.mini div.author {
    color: #3b4186;
    margin-top: 0.5em;
}

div.mini div.link {
    margin-top: 0.5em;
}

div.mini.website div.description {
    /* initially hidden */
    display: none;
}

div.box.foldable div.fold {
    /* initially hidden */
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    /* TODO: this should be an image */
    background-color: #ee7f2d;
    color: white;
    font-size: 14px;
}

/* 
 * slider buttons 
 */
div.box div.slider {
    position: absolute;
    top: 110px;
    width: 16px;
    height: 18px;
}

div.box div.slider.prev {
    left: 0;
}

div.box div.slider.next {
    right: 0;
    text-align: right;
}

/* 
 * paragraph with line
 */
div.item {
    padding-top: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #dccbae;
    line-height: 1.5;
}

/*
 * table with articles
 */
table.articles {
    /* no space between cells */
    border-collapse: collapse;
}

table.articles td {
    vertical-align: top;
    text-align: left;
    line-height: 1.5;
    padding: 1em 1em 0.5em 0;
}
table.articles td:last-child {
    padding-right: 0;
}

table.articles th {
    font-family: Georgia, Times, serif;
    font-size: 16px;
    font-weight: normal;
    font-style: italic;
    color: #887163;
    text-align: left;
    border-bottom: 3px solid #dccbae;
}

table.articles tr.abstract td {
    /* abstract has no padding-top */
    padding: 0 0 0.5em 0;
}

table.articles td.line {
    border-bottom: 1px solid #dccbae;
}

table.articles h3.fold_head {
    font-size: 12px;
    background-color: #f6f2eb;
    padding: 3px;
}

table.articles h3.fold_head img {
    margin: 0 5px 0 3px;
}

table.articles div.fold_body {
    padding: 0.5em 0 0 20px;
}

.foldable img.fold_closed {
    /* fold is initially open */
    display: none;
}


/*
 * hierarchical list (of projects)
 */
div.hierlist h2 {
    text-indent: -20px;
    padding-left: 20px;
    padding-bottom: 5px;
    border-bottom: 3px solid #dccbae;
    margin-bottom: 0;
}

div.hierlist h2 img {
    padding: 0 3px 3px 3px; 
}

div.hierlist h2 a {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

div.hierlist ul {
    list-style-type: none;
    padding: 0 0 10px 0;
    margin: 0;
    border-bottom: 1px solid #dccbae;
}

div.hierlist li {
    padding: 5px 0 5px 16px;
    text-indent: -13px;
}

div.hierlist li a {
    /* icon is more distant from text */
    padding-left: 13px;
}

div.hierlist li.indent {
    padding-bottom: 10px;
    border-bottom: 1px solid #dccbae;
    margin-bottom: 5px;
}

div.hierlist li.level_1 {
    font-size: 14px;
}

div.hierlist li.level_2 {
    font-weight: bold;
    margin-left: 20px;
}

div.hierlist li.level_3 {
    margin-left: 40px;
}

div.hierlist li.level_4 {
    margin-left: 60px;
}

div.hierlist li.level_5 {
    margin-left: 80px;
}

/* 
 * sidebar 
 */
div.sidebar {
    display: table-cell;
    width: 220px;
    border-top: 3px solid #dccbae;
    background-color: white;
    padding: 20px 8px 20px 0;
}

div.sideblock h2 {
    font-size: 12px;
    margin-top: 20px;
    padding-bottom: 5px;
    border-bottom: 3px solid #dccbae;
    margin-bottom: 0;
}

div.sideblock:first-child h2 {
    margin-top: 0;
}

div.sideblock h3 {
    font-size: 12px;
    margin-top: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #dccbae;
}

/* like sidebar without line */
div.sidebox {
    width: 220px;
    padding: 0 0 20px 0;
}

/*
 * footer
 */
#footer {
    position: relative;
    height: 50px;
    border-top: 1px solid #dccbae;
    padding-top: 8px;
    margin-top: 29px;
}

#footer div.text {
    display: inline-block;
    color: #d45a00;
    font-size: 11px;
}

#footer div.logo {
    display: inline-block;
    position: absolute;
    right: 0;
}

#footer div.logo img {
    width: 204px;
    height: 41px;
}