Adjust outer borders and background.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 4 Sep 2014 10:30:35 +0000 (12:30 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 4 Sep 2014 10:30:35 +0000 (12:30 +0200)
css/main.css
index.html

index 70a6fe9..a8549ce 100644 (file)
 }
 
 * {
-    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; }
 }
 
index 053e87f..e802497 100644 (file)
@@ -6,17 +6,13 @@
     <link rel="stylesheet" href="css/main.css" type="text/css">
     <title>Yukkuri Games</title>
     <style>
-      body {
-          border-top: solid rgb(206, 132, 242) 0.75em;
-          border-bottom: solid rgb(244, 126, 126) 0.75em;
-          border-radius: 2em;
-      }
-
       /* Reset usual header CSS */
       header {
           border: none;
           height: 13em;
           text-align: center;
+          background-color: transparent;
+          margin-top: 0;
       }
 
       header img {
@@ -58,7 +54,7 @@
             <p>
               Random scenarios and
               <a href="/heroik/variants.html">variant rules</a> for
-              Emmanuel Beltrando's dungeon-crawling card game
+              the dungeon-crawling card game
               <em>Hero: Immortal King</em>.
             </p>
             <ul>