Mercurial > hg > MPIWGWeb
view css/mpiwg.css @ 15:aca0fce3824b
style for tool-box checkboxes.
author | casties |
---|---|
date | Fri, 08 Mar 2013 16:17:58 +0100 |
parents | 325e7c338815 |
children | faa7c9e936a8 |
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; } /* new link-classes (with icons) */ a.internal { background: url(../images/arr_more.gif) no-repeat; padding-left: 12px; padding-top: 1px; } a.download { background: url(../images/download.gif) no-repeat; padding-left: 17px; /* padding-top:1px; */ } a.external { background: url(../images/external.gif) no-repeat; padding-left: 15px; /* padding-top:1px; */ } a.pdf { background: url(../images/pdf.gif) no-repeat; padding-left: 15px; /* padding-top:1px; */ } a.audio { background: url(../images/audio.gif) no-repeat; padding-left: 15px; /* padding-top:1px; */ } 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.block { display: table-cell; vertical-align: top; } div.row div.block:first-child { /* first block has no left margin */ padding-left: 0 !important; } div.block h2 { margin-top: 35px; padding-bottom: 5px; border-bottom: 3px solid #dccbae; margin-bottom: 0; } div.item { padding-top: 5px; padding-bottom: 5px; border-bottom: 1px solid #dccbae; line-height: 1.5; } /* * 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.subnavbox { /* navigation below e.g. research projects */ font-size: 11px; margin-top: 30px; } div.subnav .sn_off .dept { font-style: italic; color: #b69f7b; } div.subnav .sn_on .dept { font-style: italic; color: #f9f4e1; } 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.center { /* display: table; */ } div.main div.row div.block { padding-left: 20px; } /* * frontpage */ div.main.home { background-color: transparent; border-top: 0; padding: 0; } div.main.home div.row div.block { width: 286px; padding-left: 21px; } div.main.home div.row div.block b { /* bold is blue */ color: #3b4186; } div.main.home div.row div.block h2 { /* more-links in title are right */ position: relative; } div.main.home div.row div.block 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 */ div.row.feature { background-color: #f4e0c7; } 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 { position: relative; 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 h2 { font-size: 14px; color: #887163; margin-bottom: 0; margin-top: 15px; border-bottom: 0 !important; } /* feature date */ div.teaser_text h3 { margin-top: 20px; margin-bottom: 20px; font-size: 12px; } /* * toolboxes */ div.tool.block { background-color: #efeeec; color: black; padding: 20px; box-shadow: 0 0 1px 1px #e0e0e0; } div.tool.block a { color: #3b4186; } div.tool.block div.searchbox { /* only to make it shrink-wrap */ display: table-cell; } div.tool.block div.searchbox input.text { height: 20px; width: 380px; background-color: #9fa0a7; color: white; font-size: 14px; font-style: italic; border: 0; padding: 3px; } div.tool.block 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.block div.searchbox div.extended { text-align: right; padding: 5px 30px 5px 3px; } div.tool.block h3 { font-family: Georgia, Times, serif; font-style: italic; font-size: 16px; color: #887163; margin: 0.5em 0; } div.tool.block h3:first-child { /* does this work correctly? */ margin-top: 0; } div.tool.block div.atoz { color: #887163; font-size: 14px; } div.tool.block div.checkbox { margin-top: 20px; } div.tool.block div.checkbox input.checkbox { /* checkbox uses border-box. don't ask */ width: 24px; height: 24px; margin: 0; /* TODO: this should be an image */ background-color: white; } div.tool.block div.checkbox h3 { display: inline; } /* * sources and websites */ div.block div.source, div.block div.website { padding: 10px 0; } div.block div.source div.thumb, div.block div.website div.thumb { background-color: #f8f8f8; text-align: center; } div.block div.source div.caption, div.block div.website div.caption { font-size: 11px; color: #9f917a; } div.block div.source div.author, div.block div.website div.title { color: #3b4186; } div.block div.website div.description { /* initially hidden */ display: none; } div.block div.website.item { min-height: 180px; position: relative; margin: 10px 0 0 0; } div.block div.website.item div.fold { position: absolute; bottom: 0; right: 0; /* TODO: this should be an image */ background-color: #ee7f2d; color: white; font-size: 14px; } /* * 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; } /* * 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; }