roguelike-pumpkin-patch
Version:
A roguelike development library in JavaScript.
175 lines (144 loc) • 5.1 kB
CSS
html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
/* Some general setup for the page */
html {
font-size: 20px;
font-size: 125%;
scroll-behavior: smooth;
}
body {
font-size: 1.1rem;
font-family: 'Zilla Slab', serif;
background-color: rgb(51, 36, 51);
}
button {
font-family: 'Zilla Slab', serif;
}
a {
color: blue;
}
a:hover, a:focus {
color: green;
}
/* Headers */
h1,h2,h3 {
font-family: 'Cousine', monospace;
}
/* The wrapper */
.wrapper {
width: 90%;
max-width: 1000px;
margin: 0 auto;
}
/* Header section */
header {
background: rgb(251, 255, 251);
display: flex;
flex-direction: column;
justify-content: center;
padding: 2rem 0;
margin: 2rem 0;
text-align: center;
min-height: calc(100vh - 4rem);
}
h1 {
margin: 0 auto;
max-width: 800px;
}
nav ul {
display: inline-block;
list-style: none;
padding: 0;
margin: 0;
}
nav a {
display: inline-block;
padding: 0.5rem;
margin: 0.5rem;
border: 2px solid rgb(51, 36, 51);
background: rgb(230, 255, 230);
color: black;
font-weight: bold;
text-decoration: none;
transition: 0.1s;
}
nav a:hover, nav a:focus {
color:rgb(230, 255, 230);
background: rgb(51, 36, 51);
}
/* Main section */
section {
background: rgb(251, 255, 251);
padding: 2rem 0;
margin: 2rem 0;
}
p,h2,h3 {
margin: 2rem;
}
section ul {
margin: 2rem;
}
button {
margin: 0 2rem;
}
p:first-child,h2:first-child {
margin-top: 0;
}
p:last-child {
margin-bottom: 0;
}
code.hljs {
padding: 0 1rem;
background: #232323;
}
pre {
white-space: pre-wrap;
font-size: 0.8rem;
margin: 0;
background-color: #232323;
}
/* Footer */
footer {
background: rgb(251, 255, 251);
padding: 2rem 0;
text-align: center;
}
/* Below is for the tutorial. */
/* You can style the tiles with pumpkin-tile! You can also target pumpkin-display and pumpkin-container */
.pumpkin-tile {
font-family: monospace;
}
/* The display will fit the container you put it in; make sure it has a size! */
.pumpkin-container {
height: 400px;
}
/* Just some styles that you think look cool */
.brickWall {
background: darkred;
color: gray;
}
.player {
color: white;
}
.coolFloor {
color: green;
}
.superAwesome {
background: purple;
color: white;
font-family: sans-serif;
}
.pathMarker {
color: red;
}
.pumpkin-container.colorDisplay {
background: linear-gradient(#FF00FF, #FFFF00);
color: darkslateblue;
font-weight: bold;
}
@media(max-width:900px) {
.wrapper {
width: auto;
margin: 0 1rem;
}
}