Initial commit
This commit is contained in:
110
src/css/darkmode.css
Normal file
110
src/css/darkmode.css
Normal file
@@ -0,0 +1,110 @@
|
||||
/* Author: Ward Truyen
|
||||
* Version: 1.4.0
|
||||
*/
|
||||
|
||||
.dark-mode {
|
||||
background-color: black;
|
||||
color: honeydew;
|
||||
}
|
||||
|
||||
.dark-mode body {
|
||||
background-color: black;
|
||||
color: honeydew;
|
||||
}
|
||||
|
||||
.dark-mode main {
|
||||
background-color: #1F1F1F;
|
||||
border: 2px solid #205060;
|
||||
box-shadow: 3px 3px 3px #4F4F4F;
|
||||
}
|
||||
|
||||
.dark-mode button {
|
||||
background-color: #1F1F1F;
|
||||
color: white;
|
||||
border: 1px solid honeydew;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.dark-mode input[type=submit] {
|
||||
background-color: #1F1F1F;
|
||||
color: white;
|
||||
border: 1px solid honeydew;
|
||||
}
|
||||
|
||||
.dark-mode input {
|
||||
background-color: #1F1F1F;
|
||||
color: white;
|
||||
border: 1px solid honeydew;
|
||||
}
|
||||
|
||||
.dark-mode input[type=button],
|
||||
.dark-mode input[type=submit],
|
||||
.dark-mode input[type=reset] {
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.dark-mode input[type=button]:hover,
|
||||
.dark-mode input[type=submit]:hover,
|
||||
.dark-mode input[type=reset]:hover,
|
||||
.dark-mode button:hover {
|
||||
background-color: #4F4F4F;
|
||||
}
|
||||
|
||||
.dark-mode footer {
|
||||
background-image: linear-gradient(#FFFFFF4f, #FFFFFF2f);
|
||||
border-top: 1px solid grey;
|
||||
}
|
||||
|
||||
.dark-mode .button-red {
|
||||
background-color: darkred;
|
||||
}
|
||||
|
||||
.dark-mode canvas {
|
||||
border: 1px solid #FFFFFF60;
|
||||
}
|
||||
|
||||
.dark-mode a:visited {
|
||||
color: #dd80dd;
|
||||
}
|
||||
|
||||
.dark-mode a:hover {
|
||||
color: #ff80aa;
|
||||
}
|
||||
|
||||
/*
|
||||
* --- darkmode for terminal ---
|
||||
*/
|
||||
|
||||
.dark-mode .wterminal-background .wterminal-container {
|
||||
background: unset;
|
||||
background-color: #000000;
|
||||
color: #F0F0F0;
|
||||
}
|
||||
|
||||
.dark-mode .wterminal-output {
|
||||
background-color: #0F0F0F;
|
||||
/* color: #F0F0F0; /* todo: try orange! */
|
||||
}
|
||||
|
||||
.dark-mode .wterminal-input {
|
||||
background-color: #0F0F0F;
|
||||
color: #F0F0F0;
|
||||
}
|
||||
|
||||
.dark-mode .wterminal-container>form>input[type=submit] {
|
||||
background-color: #1F1F1F;
|
||||
color: white;
|
||||
border: 1px solid honeydew;
|
||||
}
|
||||
|
||||
.dark-mode .wterminal-input:hover {
|
||||
background-color: #444;
|
||||
}
|
||||
|
||||
.dark-mode .wterminal-container input[type="submit"]:hover {
|
||||
background-color: #444;
|
||||
}
|
||||
|
||||
.dark-mode .wterminal-container button:hover {
|
||||
background-color: #444;
|
||||
}
|
||||
17
src/css/game.css
Normal file
17
src/css/game.css
Normal file
@@ -0,0 +1,17 @@
|
||||
/* Author: Ward Truyen
|
||||
* Version: 1.0.0
|
||||
*/
|
||||
.game-area {
|
||||
margin: 8px auto;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.game-area p {
|
||||
margin: 0 2px;
|
||||
}
|
||||
|
||||
canvas {
|
||||
border: solid 2px #3b3b3b;
|
||||
border-radius: 4px;
|
||||
outline: none;
|
||||
}
|
||||
81
src/css/main.css
Normal file
81
src/css/main.css
Normal file
@@ -0,0 +1,81 @@
|
||||
/* Author: Ward Truyen
|
||||
* Version: 1.3.0
|
||||
*/
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
background-image: linear-gradient(30deg, #73B2736F 70%, #73B2732F);
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
main {
|
||||
margin: auto;
|
||||
width: 80%;
|
||||
border: 2px solid darkgreen;
|
||||
padding: 10px;
|
||||
background-color: white;
|
||||
box-shadow: 3px 3px 3px black;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-top: 4px;
|
||||
margin-bottom: 8px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
header {
|
||||
padding: 2px 16px 4px 16px;
|
||||
/* width: 100%; */
|
||||
border-bottom: 1px solid black;
|
||||
/* background-image: linear-gradient(#0000008f, #0000004f); */
|
||||
background-color: #80808080;
|
||||
/* linear-gradient(#0000008f, #0000004f);*/
|
||||
/* margin-top: 16px; */
|
||||
text-shadow: 1px 1px 1px #0000004f;
|
||||
}
|
||||
|
||||
header a {
|
||||
/* border: solid 1px black; */
|
||||
padding: 2px;
|
||||
margin: 1px;
|
||||
}
|
||||
|
||||
footer {
|
||||
padding: 8px 16px 4px 16px;
|
||||
/* width: 100%; */
|
||||
border-top: 1px solid black;
|
||||
/* background-color: #0000004f; */
|
||||
background-image: linear-gradient(#0000008f, #0000004f);
|
||||
/* margin-top: 16px; */
|
||||
margin-top: auto;
|
||||
text-shadow: 1px 1px 1px #0000004f;
|
||||
}
|
||||
|
||||
footer h1,
|
||||
footer h2,
|
||||
footer h3,
|
||||
footer p {
|
||||
display: inline;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.float-right {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.text-red {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.button-red {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
.button-black {
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
||||
150
src/css/wterminal.css
Normal file
150
src/css/wterminal.css
Normal file
@@ -0,0 +1,150 @@
|
||||
/* Author: Ward Truyen
|
||||
* Version: 1.1.0
|
||||
*/
|
||||
|
||||
.wterminal-background {
|
||||
z-index: 9995;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
color: black;
|
||||
line-height: normal;
|
||||
visibility: hidden;
|
||||
background: unset;
|
||||
transition: all 0.2s ease-out 0s;
|
||||
}
|
||||
|
||||
.wterminal-background .wterminal-container{
|
||||
position: relative;
|
||||
margin: 0px auto;
|
||||
width: 70%;
|
||||
border: 1px solid #888;
|
||||
border-top: 0px solid grey;
|
||||
border-bottom-left-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
padding: 4px;
|
||||
background: linear-gradient(24deg, rgba(209,211,196,1) 20%, rgba(221,221,221,1) 50%, rgba(221,221,221,1) 70%, rgba(190,199,207,1) 90%);
|
||||
box-shadow: 3px 3px 3px black;
|
||||
text-align: left;
|
||||
margin-top: -50%;
|
||||
}
|
||||
|
||||
.wterminal-container pre {
|
||||
color: unset;
|
||||
border: 2px solid #c0c0c0;
|
||||
min-height: 20em;
|
||||
max-height: 20em;
|
||||
margin: 0px 0px 2px;
|
||||
padding: 2px 4px 6px 4px;
|
||||
background-color: #F0F0F0;
|
||||
overflow-y: scroll;
|
||||
font-family: Monospace, Incosolata, Courier;
|
||||
font-size: 12px;
|
||||
line-height: 1.05;
|
||||
width: unset;
|
||||
}
|
||||
|
||||
.wterminal-output u{
|
||||
/* adds a nice fat blue underline to titles */
|
||||
text-decoration-color: #8cb4ff;
|
||||
text-decoration-thickness: .15rem;
|
||||
text-underline-offset: .1em;
|
||||
}
|
||||
|
||||
.wterminal-input {
|
||||
padding: 1px 2px;
|
||||
margin: 0px;
|
||||
background-color: #F0F0F0;
|
||||
color: black;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.wterminal-input:hover{
|
||||
background-color: #DDD;
|
||||
}
|
||||
|
||||
.wterminal-container input[type="submit"]:hover, button:hover{
|
||||
background-color: #DDD;
|
||||
cursor: pointer;
|
||||
}
|
||||
.wterminal-container input, .wterminal-container label{
|
||||
line-height: unset;
|
||||
display: unset;
|
||||
/* width: unset; */
|
||||
height: unset;
|
||||
margin: 0;
|
||||
margin-left: 2px;
|
||||
}
|
||||
.wterminal-container input[type="submit"], button{
|
||||
width: unset;
|
||||
height: unset;
|
||||
margin: 0;
|
||||
margin-left: 2px;
|
||||
padding: 1px 4px;
|
||||
color: black;
|
||||
background-color: #eee;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 3px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.wterminal-background.wterminal-visible{
|
||||
background-color: #0000008F;
|
||||
backdrop-filter: blur(4px);
|
||||
visibility: visible;
|
||||
transition: background-color .1s ease-out 0s, backdrop-filter .1s ease-out 0s;
|
||||
}
|
||||
|
||||
.wterminal-visible .wterminal-container{
|
||||
margin-top: 0px;
|
||||
transition: margin-top .2s ease-out 0s;
|
||||
}
|
||||
|
||||
.wterminal-container form{
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
/* Width */
|
||||
@media screen and (max-width: 480px) {
|
||||
.wterminal-input{
|
||||
width: 40%;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 480px) and (max-width: 720px) {
|
||||
.wterminal-input{
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 720px) and (max-width: 1080px) {
|
||||
.wterminal-input{
|
||||
width: 60%;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1080px) {
|
||||
.wterminal-input{
|
||||
width: 70%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Height */
|
||||
@media screen and (min-height: 512px) and (max-height: 1024px) {
|
||||
.wterminal-background .wterminal-container .wterminal-output{
|
||||
min-height: 32em;
|
||||
max-height: 32em;
|
||||
}
|
||||
}
|
||||
@media screen and (min-height: 1024px) and (max-height: 1536px) {
|
||||
.wterminal-background .wterminal-container .wterminal-output{
|
||||
min-height: 48em;
|
||||
max-height: 48em;
|
||||
}
|
||||
}
|
||||
@media screen and (min-height: 1536px) {
|
||||
.wterminal-background .wterminal-container .wterminal-output{
|
||||
min-height: 64em;
|
||||
max-height: 64em;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user