berliner-winter/static/css/style.css
2015-02-09 13:20:42 +01:00

252 lines
4.5 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

html, body {
margin: 0;
padding: 0;
height: 100%;
font-family: 'Libre Baskerville', serif;
}
*, *:before, *:after {
box-sizing: border-box;
}
body {
background: #fff;
color: #222;
}
a {
color: inherit;
}
/* map of incidents */
#map {
height: 100%;
}
.leaflet-popup {
pointer-events: none;
}
.leaflet-popup-content {
font-family: 'Libre Baskerville', serif;
margin: 1.3em;
line-height: inherit;
pointer-events: auto;
}
.leaflet-popup-content-wrapper {
border-radius: 0;
text-align: justify;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
background: #222;
color: #fff;
box-shadow: none;
}
.leaflet-popup-scrolled {
border: none;
}
.leaflet-popup-content .date {
font-weight: 400;
font-style: italic;
font-size: 1.2em;
color: #aaa;
position: fixed;
line-height: 2;
top: 0;
left: 0;
display: inline-block;
padding: 0 1.1em;
background: -webkit-linear-gradient(top, #222, #222 80%, transparent);
background: linear-gradient(to bottom, #222, #222 80%, transparent);
width: 330px;
padding-bottom: .6em;
}
.leaflet-popup-content p {
margin: 48px 0 18px;
}
.leaflet-container a.leaflet-popup-close-button {
pointer-events: auto;
width: auto;
height: auto;
font-family: 'Libre Baskerville', serif;
font-size: 1.2em;
padding: 1.3em;
z-index: 10;
}
.circle-marker {
border-radius: 50%;
border: 2px solid rgba(0,0,0,.5);
background: rgba(0,0,0,.2);
}
/* filters */
#filter-picker {
position: absolute;
z-index: 10;
top: 6px;
right: 6px;
pointer-events: none;
}
#filter-picker ul {
margin: 0;
padding: 0;
list-style: none;
}
#filter-picker a {
pointer-events: auto;
}
.year-filter li {
display: inline-block;
}
.year-filter a {
display: block;
width: 72px;
padding: 12px;
margin: 3px;
background: #222;
text-decoration: none;
color: #ddd;
text-align: center;
-webkit-transition: background .3s ease;
transition: background .3s ease;
}
.year-filter a:hover {
background: #333;
}
.year-filter .active a {
background: #444;
}
.category-filter {
text-align: right;
}
.category-filter li {
margin: 12px 0;
opacity: .5;
-webkit-transition: opacity .3s ease;
transition: opacity .3s ease;
}
.category-filter li.active {
opacity: 1;
}
.category-filter a {
text-decoration: none;
color: #333;
padding: 6px;
text-shadow: 0 0 0.1em white, 0 0 0.1em white, 0 0 0.1em white, 0 0 0.2em white, 0 0 0.2em white, 0 0 0.2em white, 0 0 0.3em white, 0 0 0.6em white;
position: relative;
}
.category-filter a:after {
content: '';
display: inline-block;
width: 9px;
height: 9px;
border-radius: 50%;
border: 2px solid #f00;
background: #fff;
position: absolute;
top: 50%;
left: -.5em;
margin-top: -4.5px;
box-shadow: 0 0 0.1em white, 0 0 0.1em white, 0 0 0.1em white, 0 0 0.2em white, 0 0 0.2em white, 0 0 0.2em white, 0 0 0.3em white, 0 0 0.6em white;
}
.category-filter .racism a:after {
border-color: #355C7D;
}
.category-filter .antisemitism a:after {
border-color: #F67280;
}
.category-filter .sexism a:after {
border-color: #C06C84;
}
.category-filter .homophobia a:after {
border-color: #6C5B7B;
}
.category-filter .uncategorized a:after {
border-color: #888888;
}
/* overlay text */
#overlay {
position: absolute;
z-index: 1001;
height: 100%;
width: 100%;
top: 0;
left: 0;
background: -webkit-linear-gradient(top right, rgba(255,255,255,.2), white 50%);
background: linear-gradient(to bottom left, rgba(255,255,255,.2), white 50%);
}
#overlay .text {
position: absolute;
top: 50%;
left: 50%;
width: 90%;
max-width: 1024px;
-webkit-transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
}
#overlay h1 {
margin-top: -1.2em;
font-size: 48px;
margin-bottom: 0;
display: inline-block;
font-weight: 500;
font-style: italic;
}
#overlay p {
margin: 1em 0 1.2em;
padding: .6em 0;
line-height: 2;
font-size: 24px;
}
#overlay a {
text-decoration: none;
border-bottom: 1px dotted #333;
padding-bottom: .2em;
}
#overlay a:hover {
border-bottom-color: transparent;
}
#overlay .begin {
font-size: 24px;
border-bottom: none;
font-weight: bold;
}
#overlay .begin:after {
content: '';
padding-left: .1em;
}