/** * Dyne:BXL screen stylesheet **/ $header-height: 3rem; $serif: 'Cormorant Garamond', serif; $sans-serif: 'Open Sans', sans-serif; $bg-main: rgba(240, 240, 242, 1); $bg-gfx: rgba(191, 138, 112, 0.7); $bg-gfx-on: rgba(205, 168, 150, 1); $bg-txt: rgba(166, 191, 112, 0.9); $bg-txt-on: rgba(187, 205, 150, 1); $bg-vdo: rgba(109, 144, 162, 0.7); $bg-vdo-on: rgba(109, 144, 162, 1); @import 'normalize'; @import 'skeleton'; h1,h2,h3,h4,h5,h6 { font-family: $serif; font-weight: 600; } body { font-family: $sans-serif; font-size: 1em; /* No rem here, bug workaround */ background-color: rgba(240,240,242,1); color: rgba(9,8,7,1); >header { position: fixed; z-index: 999; background-color: rgba(120,120,125,0.85); width: 100%; height: $header-height; overflow: hidden; box-shadow: 0.1rem 0.2rem 0.3rem rgba(0,0,0,1); /* Rotate a bit */ transform: rotate(-1.75deg); top: -2.5rem; left: -1rem; h1 { transform: rotate(1.75deg); font-weight: bold; font-size: 2rem; padding: 2.8rem 3rem 2rem 2rem; } p.lead, nav { display:none; position: relative; margin: 0 auto; padding: 2rem; max-width: 43rem; text-align: justify; font-size: 2rem; color: rgba(255,255,255,1); } nav ul { list-style: none; margin-bottom: 1rem; padding: 0; li { font-variant: small-caps; margin: 0 auto; padding: 0; text-align: center; width: 100%; background: rgba(0, 0, 0, 0.1); border: 1px solid transparent; &:hover, &:focus { background-color: rgba(255,255,255,0.1); border-color: black; border-top-right-radius: 1rem; } } a { display: block; height: 100%; padding: 1rem; text-decoration: none; &:hover { color: white; } } } &:focus, &:hover { background-color: rgba(90,90,90,0.95); overflow: none; height: auto; transform: rotate(0); top: 0; left: 0; padding: 1rem; h1 { display: none; } p.lead { display: block; } nav { display: block; } } } :target { padding-top: $header-height; } >main { margin: 0 auto; width: 85%; max-width: 96rem; padding-top: $header-height + 1rem; background-color: inherit; >article { z-index: 20; svg { margin: 0 auto; padding: 0; overflow: hidden; position: fixed; display: block; left: 0; height: 32rem; top: calc(50% - 15rem); } } } > aside { position: fixed; top: calc(50% - 150px); height: 300px; background: black url(../img/aside-off.png) center right no-repeat; left: -20rem; width: 20rem; padding: 1rem; &:hover, &:focus { left: 0; background: $bg-main url(../img/aside-on.png) center left no-repeat; box-shadow: 1px 2px 2px 1px rgba(0, 0, 0, 0.4); width: auto; border-right: 2rem solid black; padding: 0; nav { display: block; background: $bg-main url(../img/aside-on.png) center left no-repeat; height: 100%; } ul li:hover { span { display: block; } &:first-child { transform: scale(1.4) rotate(4deg) translateX(-0.75vw); a { transform: rotate(-4deg); } } &:nth-child(2) { transform: scale(1.4) rotate(-6deg) translateX(-0.5vw); a { transform: rotate(6deg); } } &:last-child { transform: scale(1.4) rotate(5deg) translateX(-0.5vw); a { transform: rotate(-5deg); } } } } nav { position: relative; margin-left: 3rem; display: none; line-height: 30rem; h3 { display: inline-block; background: url(../img/logo-ps.svg) 3rem center / 10rem fixed no-repeat; width: 10rem; height: 100%; vertical-align: top; color: transparent; a { display: block; height: 100%; width: 100%; line-height: 30rem; color: transparent; &:hover { color: transparent; } } } ul { list-style: none; display: inline-block; height: 100%; li { display: block; padding: 0 2rem; font-size: 3rem; float: left; padding-left: 1rem; z-index: 400; overflow: hidden; width: 10rem; height: 100%; a { color: black; text-decoration: none; display: block; height: 100%; width: 100%; z-index: 404; &:hover { font-size: 200%; color: inherit; z-index: 404; } } span { display: none; z-index: 400; position: relative; font-size: 1.25rem; line-height: 1.6rem; text-align: center; margin: -3rem -2rem 0 -1rem; } &:first-child { background: $bg-gfx; } &:nth-child(2) { background: $bg-txt; } &:last-child { background: $bg-vdo; } } } } } /* >aside { position: fixed; display: block; left: 0; width: 92rem; height: 20rem; top: 50%; margin-top: -10rem; margin-left: -90rem; background: url(../img/aside-off.png) right center no-repeat,rgba(30, 174, 219, 0.9) ; animation: aside-off 250ms ease-in; &:hover, &:focus { background: url(../img/aside-on.png) left center no-repeat, white; margin-left: 0; width: auto; padding: 1rem 2rem; animation: aside-on 250ms ease-in; border-right: 2rem solid rgba(120, 120, 125, 0.85); box-shadow: 0.1rem 0.2rem 0.3rem black; } ul { font-size: 2rem; list-style: none; font-family: 'Cormorant Garamond', serif; font-weight: 700; margin: 0; padding: 1rem; } } */ >footer { position: relative; bottom: 0; border-top: 1rem; margin-top: 5rem; } } article { font-size: 1.6rem; margin: 0 auto; p { margin: 0 3% 2.5rem 3%; max-width: 42rem; font-size: 105%; text-align: justify; } video { background: white; height: 40rem; margin-top: 5rem; } } div.map { position: fixed; top: 0; right: 0; bottom: 0; height: 100%; width: auto; min-width: 50rem; max-width: 50%; z-index: 5; &:hover { max-width: 90%; } } @-webkit-keyframes navbar, @keyframes navbar { from { margin-left: -100rem; } to { margin-lefT: 0; } } @media screen and (max-width: 1024px) { body > header { width: 110%; height: $header-height * 1.5; &:focus, &:hover { width: 100%; padding-right: 4rem; } } iframe[src*="openstreetmap."] { width: auto; min-width: 2rem; max-width: 50%; } } .DB { font-family: 'Open Sans', sans-serif; font-weight: bold; a { white-space: nowrap; } } body.article main > article h2 + h3 { font-size: 3.2rem; font-style: italic; font-weight: normal; margin-top: -3rem; } blockquote { font-family: $serif; font-size: 2.4rem; font-style: italic; } body>header>nav { ul { display: inline-flex; font-size: 1.8rem; list-style: none; margin: 0 auto; width: 100%; } li { text-align: center; width: 11%; a { color: white; } .current { font-size: 125%; } } } body.people { figure { display: inline-block; img { max-width: 20rem; } p { margin: 0; padding: 0; } } } .player path { opacity: 0.5; } /** * Copyleft magic **/ body > footer { bottom: 0; left: 0; right: 0; display: block; width: 80vw; margin: 1rem auto; padding-bottom: 3rem; h4 { margin: 0; font-size: 1.6rem; a { text-decoration:none; } } &:hover > p { > span:first-child { display: inline-block; color: transparent; line-height: 0; } > span:first-child:before { content: 'Copyleft'; display: block; color: black; padding-right: 0.4rem; } > span + span { display: inline-block; transform: rotate(180deg); padding-bottom: -0.05rem; } } } @keyframes aside-off { from { width: 0; margin-left: 0; } to { width: 92rem; margin-left: -90rem; } } @keyframes aside-on { from { width: 92rem; margin-left: -90rem; } to { width: 20rem; margin-left: 0; } }