summaryrefslogtreecommitdiff
path: root/turing-machine/css
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-10-24 19:23:33 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-10-24 19:23:33 -0600
commit1d15cdcb2aa463ce0aa1ab176605036cc15db2be (patch)
tree544224007471f43a52994dc41aa7adb831557a0d /turing-machine/css
parent22258746502640c8b48b94f9f6dc10edfd5a7073 (diff)
downloadsimponic.xyz-1d15cdcb2aa463ce0aa1ab176605036cc15db2be.tar.gz
simponic.xyz-1d15cdcb2aa463ce0aa1ab176605036cc15db2be.zip
initial turing machine
Diffstat (limited to 'turing-machine/css')
-rw-r--r--turing-machine/css/styles.css90
1 files changed, 90 insertions, 0 deletions
diff --git a/turing-machine/css/styles.css b/turing-machine/css/styles.css
new file mode 100644
index 0000000..02279e5
--- /dev/null
+++ b/turing-machine/css/styles.css
@@ -0,0 +1,90 @@
+* {
+ font-family: "Trebuchet MS", sans-serif;
+}
+
+button {
+ background: #bbbbbb;
+ border: 1px solid white;
+ border-radius: 0.2rem;
+ padding: 0.2rem;
+}
+
+button:hover {
+ background: #cccccc;
+}
+
+body {
+ margin: 0;
+ background-color: #aaaaaa;
+}
+
+.container {
+ display: flex;
+ width: 90%;
+ margin-left: auto;
+ margin-right: auto;
+ flex-direction: column;
+
+ padding: 2rem;
+}
+
+.tape {
+ display: flex;
+
+ padding: 1rem;
+
+ align-items: center;
+ gap: 1rem;
+
+ height: 5rem;
+ max-width: 100%;
+
+ border: 1px solid black;
+
+ overflow-x: scroll;
+ overflow-y: hidden;
+}
+
+.cell {
+ position: relative;
+ height: 80%;
+ border: 3px solid black;
+ transition: border 0.1s ease-in-out;
+ transition: background 0.1s ease-in-out;
+
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ flex: 1;
+ gap: 0.2rem;
+
+ padding: 0.2rem;
+}
+
+.circle {
+ position: absolute;
+ bottom: -15px;
+ left: 50%;
+ transform: translateX(-50%);
+ width: 10px;
+ height: 10px;
+ background-color: wheat;
+ border-radius: 50%;
+ opacity: 0.001;
+ transition: opacity 0.1s ease-in-out;
+}
+
+.cell.reading .circle {
+ opacity: 1;
+}
+
+.reading {
+ border-color: green;
+ background-color: wheat;
+}
+
+.cell-input {
+ width: 50px;
+ text-align: center;
+}