mirror of
https://github.com/whscullin/apple1js.git
synced 2024-11-22 19:33:54 +00:00
484 lines
7.3 KiB
CSS
484 lines
7.3 KiB
CSS
/* Copyright 2010-2013 Will Scullin */
|
|
|
|
img {
|
|
border: none;
|
|
}
|
|
|
|
img#badge {
|
|
padding: 0px 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0px;
|
|
padding: 3px 0px 0px 10px;
|
|
color: #fff;
|
|
font-family: Helvetica, Ariel;
|
|
font-size: 17px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
h2 {
|
|
margin: 0px;
|
|
padding: 3px 0px 0px 10px;
|
|
color: #fff;
|
|
font-family: Helvetica, Ariel;
|
|
font-size: 13px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
input[type="button"] {
|
|
width: 75px;
|
|
}
|
|
|
|
input[type="text"] {
|
|
width: 40px;
|
|
}
|
|
|
|
body {
|
|
margin: 16px 0px;
|
|
font-family: sans-serif;
|
|
font-size: 14px;
|
|
background-color: #114024;
|
|
color: #fff;
|
|
}
|
|
|
|
#display {
|
|
margin: 5px 0px;
|
|
}
|
|
|
|
.overscan {
|
|
margin: auto;
|
|
position: relative;
|
|
background-color: black;
|
|
padding: 16px;
|
|
width: 560px;
|
|
height: 384px;
|
|
border: 6px solid #75d475;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
#power {
|
|
padding: 2px;
|
|
border: 1px inset #ddc364;
|
|
}
|
|
|
|
span.code {
|
|
font-family: Courier;
|
|
font-size: 14px;
|
|
white-space: pre;
|
|
}
|
|
|
|
th {
|
|
background-color: #ccc;
|
|
}
|
|
|
|
.inset {
|
|
background: #114024;
|
|
width: 590px;
|
|
border-radius: 6px;
|
|
border: 3px solid #75d475;
|
|
padding: 6px;
|
|
margin: 10px 0px;
|
|
position: relative;
|
|
}
|
|
|
|
#speed {
|
|
margin: 9px 0px;
|
|
width: 200px;
|
|
}
|
|
|
|
#khz {
|
|
margin-right: 4px;
|
|
padding: 4px;
|
|
float: left;
|
|
font-family: Courier;
|
|
font-size: 12px;
|
|
width: 60px;
|
|
height: 15px;
|
|
text-align: right;
|
|
background: #000;
|
|
color: #fff;
|
|
border: 2px solid #75d475;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
canvas {
|
|
position: absolute;
|
|
top: 16px;
|
|
left: 16px;
|
|
cursor: crosshair;
|
|
width: 560px;
|
|
height: 384px;
|
|
image-rendering: -moz-crisp-edges;
|
|
image-rendering: -webkit-optimize-contrast;
|
|
image-rendering: optimize-contrast;
|
|
}
|
|
|
|
:-webkit-full-screen #display {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
@media screen and (min-device-width:1120px) {
|
|
:-webkit-full-screen {
|
|
background: #000;
|
|
}
|
|
|
|
:-webkit-full-screen .overscan {
|
|
border: 0px none !important;
|
|
width: 1120px;
|
|
height: 768px;
|
|
}
|
|
|
|
:-webkit-full-screen canvas {
|
|
width: 1120px;
|
|
height: 768px;
|
|
}
|
|
|
|
:-webkit-full-screen #scanlines {
|
|
width: 1120px;
|
|
height: 768px;
|
|
}
|
|
}
|
|
|
|
#scanlines {
|
|
position: absolute;
|
|
top: 16px;
|
|
left: 16px;
|
|
cursor: crosshair;
|
|
z-index: 1;
|
|
width: 560px;
|
|
height: 384px;
|
|
}
|
|
|
|
#about iframe {
|
|
border: 1px inset #666;
|
|
width: 99%;
|
|
height: 99%;
|
|
}
|
|
|
|
#about {
|
|
padding: 16px;
|
|
margin: 0px;
|
|
font-family: "Adobe Garamond Pro",Garamond,Times;
|
|
font-size: 14px;
|
|
background-color: #fff;
|
|
color: #000;
|
|
}
|
|
|
|
#about a {
|
|
background-color: #fff;
|
|
color: #000;
|
|
}
|
|
|
|
#load select {
|
|
width: 250px;
|
|
height: 300px;
|
|
}
|
|
|
|
#keyboard {
|
|
border-radius: 6px;
|
|
padding: 0px 0px 3px 0px;
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
#keyboard .row {
|
|
display: block;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
height: 43px;
|
|
font-family: Helvetica;
|
|
width: 605px;
|
|
}
|
|
|
|
#keyboard .row0 {
|
|
margin-left: 20px;
|
|
}
|
|
|
|
#keyboard .row2 {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
#keyboard .row3 {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
#keyboard .row4 {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
#keyboard .key {
|
|
display: block;
|
|
float: left;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
width: 34px;
|
|
height: 34px;
|
|
background-color: #44372C;
|
|
color: white;
|
|
text-align: center;
|
|
position: relative;
|
|
border: 5px outset #66594E;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#keyboard .pressed {
|
|
background-color: #22150A;
|
|
border: 5px outset #44372C;
|
|
}
|
|
|
|
#keyboard .key div {
|
|
border-radius: 3px;
|
|
position: absolute;
|
|
bottom: 0px;
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
#keyboard .vcenter div {
|
|
bottom: 10px;
|
|
}
|
|
|
|
#keyboard .vcenter2 div {
|
|
bottom: 5px;
|
|
}
|
|
|
|
#keyboard .key span {
|
|
font-size: 14px;
|
|
}
|
|
|
|
#keyboard .key span.small {
|
|
font-size: 7px;
|
|
}
|
|
|
|
#keyboard .key-SHIFT {
|
|
width: 53px;
|
|
}
|
|
|
|
#keyboard .active {
|
|
color: #4f4;
|
|
}
|
|
|
|
#keyboard .key-RETURN {
|
|
width: 52px;
|
|
}
|
|
|
|
#keyboard .key-DELETE {
|
|
width: 47px;
|
|
}
|
|
|
|
#keyboard .key-TAB {
|
|
width: 47px;
|
|
}
|
|
|
|
#keyboard .key-nbsp {
|
|
margin-left: 104px;
|
|
width: 330px;
|
|
}
|
|
|
|
#keyboard .key-POW {
|
|
width: 38px;
|
|
height: 38px;
|
|
border: 2px groove black;
|
|
background-color: #ffd;
|
|
color: black;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
#keyboard .key-POW div {
|
|
bottom: 15px;
|
|
}
|
|
|
|
#keyboard .key-POW span {
|
|
background: #4f4;
|
|
color: #4f4;
|
|
}
|
|
|
|
#keyboard .key-OPEN_APPLE div {
|
|
background-image: url(../img/open-apple24.png);
|
|
width: 24px;
|
|
height: 24px;
|
|
bottom: 1px;
|
|
left: 4px;
|
|
}
|
|
|
|
#keyboard .key-OPEN_APPLE span {
|
|
display: none;
|
|
}
|
|
|
|
#keyboard .key-OPEN_APPLE.active div {
|
|
background-image: url(../img/open-apple24-green.png);
|
|
}
|
|
|
|
#keyboard .key-CLOSED_APPLE div {
|
|
background-image: url(../img/closed-apple24.png);
|
|
width: 24px;
|
|
height: 24px;
|
|
bottom: 1px;
|
|
left: 4px;
|
|
}
|
|
|
|
#keyboard .key-CLOSED_APPLE.active div {
|
|
background-image: url(../img/closed-apple24-green.png);
|
|
}
|
|
|
|
#keyboard .key-CLOSED_APPLE span {
|
|
display: none;
|
|
}
|
|
|
|
#text_input {
|
|
font-family: Courier, fixed;
|
|
}
|
|
|
|
#input-modal .controls {
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
#player {
|
|
position: absolute;
|
|
left: 290px;
|
|
top: 12px;
|
|
border: 2px solid #75d475;
|
|
border-radius: 4px;
|
|
width: 100px;
|
|
height: 10px;
|
|
background: black;
|
|
text-align: center;
|
|
}
|
|
|
|
#supply {
|
|
width: 75px;
|
|
height: 10px;
|
|
position: absolute;
|
|
background: brown;
|
|
}
|
|
|
|
#takeup {
|
|
width: 0px;
|
|
height: 10px;
|
|
position: absolute;
|
|
right: 0px;
|
|
background: brown;
|
|
}
|
|
|
|
#tape {
|
|
width: 0px;
|
|
height: 10px;
|
|
position: absolute;
|
|
background: brown;
|
|
}
|
|
|
|
.modal {
|
|
display: none;
|
|
}
|
|
|
|
.modal.is-open {
|
|
display: block;
|
|
}
|
|
|
|
.modal__overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0,0,0,0.6);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal__container {
|
|
background-color: #c4c1a0;
|
|
padding: 10px;
|
|
max-height: 100vh;
|
|
border-radius: 4px;
|
|
overflow-y: auto;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.modal__header {
|
|
display: flex;
|
|
font-size: 14px;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: #44372C;
|
|
color: #fff;
|
|
padding: 5px 11px;
|
|
border: 1px outset #66594E;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.modal__title {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
font-weight: 600;
|
|
font-size: 1.25rem;
|
|
line-height: 1.25;
|
|
color: #fff;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.modal__close, .modal__close:active, .modal__close:hover {
|
|
background: transparent;
|
|
padding: 3px;
|
|
}
|
|
|
|
.modal__header .modal__close:before {
|
|
content: "\2715";
|
|
}
|
|
|
|
.modal__content {
|
|
margin-top: 10px;
|
|
margin-bottom: 10px;
|
|
line-height: 1.5;
|
|
color: #000;
|
|
}
|
|
|
|
.modal__footer {
|
|
text-align: right;
|
|
}
|
|
|
|
button {
|
|
background: #44372C;
|
|
color: #fff;
|
|
padding: 2px 8px;
|
|
border: 1px outset #66594E;
|
|
border-radius: 3px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #55473D;
|
|
border: 1px outset #66594E;
|
|
}
|
|
|
|
button:active {
|
|
background-color: #22150A;
|
|
border: 1px outset #44372C;
|
|
}
|
|
|
|
button:focus {
|
|
outline: none;
|
|
}
|
|
|
|
#options-modal {
|
|
width: 300px;
|
|
line-height: 1.75em;
|
|
}
|
|
|
|
#options-modal h3 {
|
|
font-size: 13px;
|
|
}
|
|
|
|
#options-modal li {
|
|
list-style-type: none;
|
|
}
|