From 3b52b96d41c19cfbd10511e7031cf5b659667245 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Thu, 4 Sep 2014 12:30:35 +0200 Subject: [PATCH] Adjust outer borders and background. --- css/main.css | 56 +++++++++++++++++++++++++++++++++++++++++----------- index.html | 10 +++------- 2 files changed, 48 insertions(+), 18 deletions(-) diff --git a/css/main.css b/css/main.css index 70a6fe9..a8549ce 100644 --- a/css/main.css +++ b/css/main.css @@ -55,13 +55,15 @@ } * { - list-style-type: none; padding: 0; margin: 0; font-weight: normal; text-decoration: none; } +strong { font-weight: bold; } +em { font-style: italic; } + a:link, [onclick] { text-decoration: underline; cursor: pointer; @@ -71,11 +73,18 @@ html { font-family: "Fira Sans", sans-serif; font-size: 16px; background-color: rgb(226, 192, 242); + background-image: linear-gradient(rgb(226, 192, 242), rgb(244, 199, 199) 100%); + background-attachment: fixed; padding: 0 1em; + height: 100%; + background-repeat: no-repeat; } body { - margin: 0 auto; + border-top: solid rgb(206, 132, 242) 0.75em; + border-bottom: solid rgb(244, 126, 126) 0.75em; + border-radius: 2em; + margin: 0.25em auto; color: black; background-color: white; max-width: 56em; @@ -85,12 +94,14 @@ body { header { border-top: solid rgb(206, 132, 242) 0.5em; border-bottom: solid rgb(244, 126, 126) 0.5em; - border-radius: 2.5em; + border-radius: 2em; height: 6em; transition: border-color 0.5s; white-space: nowrap; text-align: right; - margin: 0 auto; + margin: 0 -1em; + margin-top: -0.75em; + background-color: white; } header img { @@ -128,14 +139,14 @@ img.logo:hover { } h2 { - border-top: solid rgb(206, 132, 242) 0.0625em; - border-left: solid rgb(206, 132, 242) 0.0625em; + border-top: solid rgb(206, 132, 242) 1px; + border-left: solid rgb(206, 132, 242) 1px; border-radius: 1em 0 0 1em; font-size: 1.25em; font-weight: 300; margin-left: -0.67em; margin-right: -0.67em; - margin-top: 2em; + margin-top: 1.5em; margin-bottom: 0.5em; padding-left: 0.5em; padding-top: 0.125em; @@ -175,8 +186,22 @@ main { margin: auto; } +main *:first-child { + margin-top: 0; +} + main > p { - margin: 1em 0.5em; + max-width: 45em; + margin: 1em auto; +} + +main > ul { + max-width: 40em; + margin: 1em auto; +} + +main > ul > li { + margin: 0.5em auto; } hr { @@ -206,6 +231,7 @@ hr { width: 100%; max-width: 37em; margin: auto; + list-style-type: none; } .game-preview > li { @@ -275,6 +301,7 @@ hr { text-align: center; box-sizing: border-box; padding-top: 0.25em; + font-size: 1.125em; } .game-preview li:nth-child(odd) .info h4, @@ -311,6 +338,11 @@ h4 a:link { right: 0.125em; left: 0.125em; text-align: center; + list-style-type: none; +} + +.game-preview .info li { + white-space: nowrap; } .game-preview .info li:before { @@ -394,10 +426,11 @@ pre { border-left: solid rgba(206, 132, 242, 0.5) 8px; border-radius: 8px; font-family: "Fira Mono", monospace; - margin-left: 1em; overflow: auto; padding-left: 2em; padding: 0.5em; + max-width: 40em; + margin: auto; transition: background-color 0.3s, border-color 0.3s, border-radius 0.3s; } @@ -420,7 +453,7 @@ pre code:hover { background-color: transparent; } -@media (max-width: 599px) { +@media (max-width: 767px) { html { font-size: 13px; } .optional { @@ -437,6 +470,7 @@ pre code:hover { } @media (max-width: 479px) { - html { font-size: 10px; } + html { font-size: 10px; padding: 0 0.5em; } + h4 { font-size: 1em; } } diff --git a/index.html b/index.html index 053e87f..e802497 100644 --- a/index.html +++ b/index.html @@ -6,17 +6,13 @@ Yukkuri Games