simponic.xyz/turing-machine/css/styles.css

144 lines
2.0 KiB
CSS
Raw Permalink Normal View History

2023-10-24 21:23:33 -04:00
* {
2023-10-25 00:28:40 -04:00
margin: 0;
2023-10-24 21:23:33 -04:00
}
button {
background: #bbbbbb;
border: 1px solid white;
border-radius: 0.2rem;
padding: 0.3rem;
display: inline-block;
cursor: pointer;
2023-10-24 21:23:33 -04:00
}
button:hover {
background: #cccccc;
}
body {
font-family: "Trebuchet MS", sans-serif;
2024-03-14 01:26:52 -04:00
background-color: #bf84a9;
2023-10-24 21:23:33 -04:00
}
.container {
display: flex;
width: 90%;
margin-left: auto;
margin-right: auto;
flex-direction: column;
2023-10-25 00:28:40 -04:00
gap: 1rem;
2023-10-24 21:23:33 -04:00
padding: 2rem;
}
.tape {
2023-10-25 00:28:40 -04:00
border-radius: 0.25rem;
box-shadow: 5px 5px 5px #666666;
2023-10-24 21:23:33 -04:00
display: flex;
padding: 1rem;
align-items: center;
gap: 1rem;
height: 5rem;
max-width: 100%;
2023-10-25 00:28:40 -04:00
border: 2px solid white;
2023-10-24 21:23:33 -04:00
overflow-x: scroll;
overflow-y: hidden;
}
.cell {
2023-10-25 00:28:40 -04:00
border-radius: 0.25rem;
box-shadow: 2px 2px 5px #666666;
background-color: #dddddd;
border: 2px solid white;
2023-10-25 00:28:40 -04:00
2023-10-24 21:23:33 -04:00
position: relative;
height: 80%;
transition: border 0.25s ease-in-out;
transition: background 0.25s ease-in-out;
2023-10-24 21:23:33 -04:00
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.25s ease-in-out;
2023-10-24 21:23:33 -04:00
}
.cell.reading .circle {
opacity: 1;
}
.reading {
border-color: wheat;
2023-10-24 21:23:33 -04:00
background-color: wheat;
}
.cell-input {
2023-10-25 00:28:40 -04:00
border-radius: 0.25rem;
border: 2px dotted #333;
2023-10-24 21:23:33 -04:00
width: 50px;
2023-10-25 00:28:40 -04:00
margin-left: 0.25rem;
margin-right: 0.25rem;
2023-10-24 21:23:33 -04:00
text-align: center;
2023-10-25 00:28:40 -04:00
font-size: 1rem;
}
.textarea-container {
display: flex;
flex-direction: column;
gap: 1rem;
box-shadow: 5px 5px 5px #666666;
border: 2px solid white;
border-radius: 0.25rem;
padding: 1rem;
}
2023-10-25 00:28:40 -04:00
textarea {
border-radius: 0.25rem;
height: 50vh;
}
.error {
color: red;
}
.success {
color: green;
}
.controls {
display: none;
2023-10-25 00:28:40 -04:00
gap: 1rem;
flex-direction: row;
justify-content: center;
align-items: stretch;
2023-10-25 00:28:40 -04:00
}
hr {
border-top: 2px solid black;
border-bottom: none;
2023-10-24 21:23:33 -04:00
}