X-Git-Url: https://git.yukkurigames.com/?p=yukkurigames.com.git;a=blobdiff_plain;f=css%2Fmain.css;h=a273e0ce79c486a6c9f24432651db7e3bda339e4;hp=a8549ce8ded58bb7319a9a5455bf851feb23e3ac;hb=HEAD;hpb=3b52b96d41c19cfbd10511e7031cf5b659667245 diff --git a/css/main.css b/css/main.css index a8549ce..a273e0c 100644 --- a/css/main.css +++ b/css/main.css @@ -30,7 +30,7 @@ font-family: 'Fira Sans'; font-style: italic; font-weight: 400; - src: local('Fira Sans OT Italic'), local('Fira Sans Italic'), url(FiraSans-RegularItalic.woff) format('woff'); + src: local('Fira Sans OT Italic'), local('Fira Sans Italic'), url(FiraSans-Italic.woff) format('woff'); } @font-face { @@ -61,6 +61,10 @@ text-decoration: none; } +header * { + outline: none; +} + strong { font-weight: bold; } em { font-style: italic; } @@ -160,10 +164,9 @@ h3 { font-size: 1.125em; font-weight: 300; margin-bottom: 0; - margin-left: -0.89em; + margin-left: -0.445em; padding-left: 0.67em; padding-right: 0.67em; - white-space: nowrap; } a:link, [onclick] { @@ -186,15 +189,23 @@ main { margin: auto; } -main *:first-child { +main > *:first-child { margin-top: 0; } +p, li { + line-height: 125%; +} + main > p { max-width: 45em; margin: 1em auto; } +dd p { + margin-bottom: 1em; +} + main > ul { max-width: 40em; margin: 1em auto; @@ -207,6 +218,7 @@ main > ul > li { hr { margin-top: 0; margin-bottom: 1em; + border: 0; border-bottom: solid rgb(206, 132, 242) 1px; height: 2em; } @@ -245,7 +257,7 @@ hr { transition: border-radius 0.3s, border-color 0.3s; padding-left: 4em; box-sizing: border-box; - border-radius: 0 4em 4em 0; + border-radius: 0 3em 3em 0; } .game-preview > li:nth-child(even) { @@ -255,7 +267,7 @@ hr { margin-left: 0; border-left-width: 1px; border-right-width: 0; - border-radius: 4em 0 0 4em; + border-radius: 3em 0 0 3em; } .game-preview > li:hover { @@ -345,6 +357,11 @@ h4 a:link { white-space: nowrap; } +.game-preview .info li a:link { + text-decoration: none; + font-weight: inherit; +} + .game-preview .info li:before { content: ' ~ '; } @@ -396,6 +413,42 @@ ul.download li:last-child { margin-bottom: 0; } +.actionable { + text-align: center; + font-size: 0.8rem; + margin: 0.75em auto; + color: rgba(0, 0, 0, 0.5); + display: block; +} + +.actionable a { + display: inline-block; + font-size: 1.5em; + background-color: rgb(240, 110, 110); + color: white; + text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); + padding: 0.5em; + text-decoration: none; + line-height: 0.8em; + border-radius: 8px; + width: 25%; + margin: 0 1em; +} + +.actionable a:hover { + background-color: rgb(244, 126, 126); +} + +.screenshots { + text-align: center; +} + +.screenshots img { + height: 8rem; + width: auto; + margin: 1rem 0.5rem; +} + .sh:before { content: "$ "; } @@ -418,6 +471,10 @@ input { font-weight: 300; } +p + pre { + margin-bottom: 1em; +} + .copyright:before { content: "Copyright ©"; } @@ -434,6 +491,10 @@ pre { transition: background-color 0.3s, border-color 0.3s, border-radius 0.3s; } +dd dl dd pre { + margin-left: 0; +} + pre:hover { background-color: rgba(206, 132, 242, 0.125); border-color: rgb(206, 132, 242); @@ -445,6 +506,12 @@ code { transition: background-color 0.3s; } +p code, dt code, dd code { + font-size: 90%; + line-height: 1.111em; + vertical-align: middle; +} + code:hover { background-color: rgba(206, 132, 242, 0.125); } @@ -453,6 +520,73 @@ pre code:hover { background-color: transparent; } +footer { + font-weight: 300; + text-align: center; + font-size: 0.75em; +} + +footer a:link { + display: inline-block; + margin: 0 1em; + text-decoration: none; +} + +iframe[src*="itch.io"] { + width: 552px; + height: 167px; + margin: auto; + left: 50%; + -webkit-transform: translateX(-50%); + transform: translateX(-50%); + position: relative; + border: 0; +} + +.important:before { + color: rgb(244, 126, 126); + content: 'Hey!'; +} + +.important { + margin-left: 5em; + margin-right: 5em; + text-align: justify; + font-size: 80%; + text-align-last: center; +} + +main > dl > dt { + background-color: rgba(206, 132, 242, 0.25); + padding: 0.125em 1em; + border-radius: 1em; +} + +main > dl > dd { + margin-left: 2em; + margin-right: 2em; + margin-bottom: 0.75em; +} + +main > dl > dt { + margin-top: 0.75em; + margin-bottom: 0.25em; +} + +dl dl dt { + font-weight: bold; + float: left; + padding-right: 0.25em; +} + +dl dl dd { + margin-left: 5.5em; +} + +dl dl + p { + margin-top: 0.5em; +} + @media (max-width: 767px) { html { font-size: 13px; } @@ -467,10 +601,20 @@ pre code:hover { pre { font-size: 0.875em; } + + iframe[src*="itch.io"] { + -webkit-transform: translateX(-50%) scale(0.8); + transform: translateX(-50%) scale(0.8); + } } @media (max-width: 479px) { html { font-size: 10px; padding: 0 0.5em; } h4 { font-size: 1em; } + + iframe[src*="itch.io"] { + -webkit-transform: translateX(-50%) scale(0.6); + transform: translateX(-50%) scale(0.6); + } }