X-Git-Url: https://git.mdrn.pl/copyspeak.git/blobdiff_plain/7cca0ec1d838201a964c3aba93e63fbec6faacbb..c0f0f87735b113fd510ef0a0c026c05f0daf077d:/src/copyspeak/static/css/base.scss diff --git a/src/copyspeak/static/css/base.scss b/src/copyspeak/static/css/base.scss index 523490a..6d40eab 100644 --- a/src/copyspeak/static/css/base.scss +++ b/src/copyspeak/static/css/base.scss @@ -24,6 +24,11 @@ header { margin-right: .5em; vertical-align:middle; } + + &:hover { + color: white; + text-decoration: underline; + } } #buy { @@ -63,21 +68,6 @@ h1.main { background-color: #222; } -.desc-container { - display: flex; - flex-direction: column; - justify-content: space-around; - position: absolute; - left: 4.75em; - top: 6.75em; - bottom: 6.75em; - right: 4.75em; -} - -.right-desc-container { - @extend .desc-container; - top: 10em; -} .card-container { display: block; @@ -202,6 +192,38 @@ h1.main { .inside-card { margin: 0 5em; } + + .desc-container { + display: flex; + flex-direction: column; + justify-content: space-around; + position: absolute; + left: 4.75em; + top: 6.75em; + bottom: 6.75em; + right: 4.75em; + + a { + color: #ccc; + border-bottom-width: 1px; + border-bottom-color: #ccc; + border-bottom-style: dotted; + + &:hover { + color: white; + border-bottom-color: white; + text-decoration: none; + } + } + a[href^="http://"] { + border-bottom-style: dashed; + } + } + + .right-desc-container { + @extend .desc-container; + top: 10em; + } } .chaotic { @@ -212,8 +234,19 @@ h1.main { background-image: url(/static/img/bg/neutral.png); background-size: 100%; - color: #fff; - a { color: #fff; } + color: #555; + a { color: #555; } + + .desc-container { + a { + color: #555; + border-bottom-color: #555; + &:hover { + color: black; + border-bottom-color: black; + } + } + } } .lawful { background-image: url(/static/img/bg/lawful.png); @@ -283,7 +316,7 @@ $g22: lighten($g12, 10%); footer { - margin: 3em 1em; + margin: 3em 1em 0; font-size: .8em; a { @@ -295,3 +328,45 @@ footer { } } } + + +%prevnext { + display: block; + position: absolute; + top: 0; + bottom: 0; + background: rgba(64,64,64,.5); + z-index:100; + opacity: 0; + text-align: center; + + span { + position: absolute; + top: 50%; + margin-top: -.5em; + left: 0; + width: 100%; + color: #000; + } + + &:hover, &.active { + opacity: 1; + } + + font-size: 8vw; + width: 16vw; + @media screen and (min-width: 45em) { + width: 8vw; + font-size: 4vw; + } +} + +#previous-card { + @extend %prevnext; + left: 0; +} +#next-card { + @extend %prevnext; + right: 0; +} +