Files
vulcan/vweb/src/simulator.css
T

78 lines
2.1 KiB
CSS
Raw Normal View History

2024-04-27 23:55:41 -05:00
/* Basic night-mode and mono styling */
body {
background-color: #333333;
color: #dddddd;
font-family: monospace;
}
a { color: #cccccc; }
/* The simulator container itself, with the grid */
.simulator {
display: grid;
grid-template:
2024-05-03 21:08:14 -05:00
"filebtns tab btns" 1em
"files content screen " 1fr
"files status screen" 1em / 16em 1fr calc(640px + 3em);
2024-04-27 23:55:41 -05:00
row-gap: 0.3em;
}
/* Setting where things go in the grid */
.tabbar { grid-area: tab }
.buttons { grid-area: btns }
2024-05-03 21:08:14 -05:00
.file-buttons { grid-area: filebtns }
2024-04-27 23:55:41 -05:00
.content { grid-area: content }
.status { grid-area: status }
2024-05-03 21:08:14 -05:00
.files { grid-area: files }
2024-04-27 23:55:41 -05:00
/* Make the content fill the remainder of the screen */
.content {
height: calc(100vh - 5em);
width: 100%;
overflow: auto;
}
/* Some styling to the <pre>s in the content */
.content pre {
margin: 0;
}
2024-04-28 01:39:29 -05:00
/* Make the editor fill the entire height */
.content .editor .cm-editor {
height: calc(100vh - 5em)
2024-04-27 23:55:41 -05:00
}
/* Status, btns, tabs all look right */
2024-05-03 21:08:14 -05:00
.status, .buttons, .file-buttons, .tabbar { font-weight: bold; }
.tabbar a, .buttons a, .file-buttons a, .file { cursor: pointer; }
2024-04-27 23:55:41 -05:00
2024-05-03 21:08:14 -05:00
/* Make the display the right size by centering the canvas in a rectangle */
/* The display is in the screen section of the main grid but it's also got to define its own grid */
2024-04-27 23:55:41 -05:00
.display {
2024-05-03 21:08:14 -05:00
grid-area: screen;
2024-04-27 23:55:41 -05:00
height: 100%;
display: grid;
grid-template:
"lt top rt" 1fr
2024-05-03 21:08:14 -05:00
"lt screen rt" calc(480px + 2em)
"lt btm rt" 1fr / 1fr calc(640px + 2em) 1fr;
2024-04-27 23:55:41 -05:00
}
/* The beige monitor border around the screen */
.display { background-color: #0f0f0f }
.display canvas {
grid-area: screen;
2024-05-03 21:08:14 -05:00
border: 1em solid #bb9;
border-radius: 1em;
2024-04-27 23:55:41 -05:00
}
/* Colors of tabs and buttons */
.tabbar a.active { background-color: #686868; }
2024-05-03 21:08:14 -05:00
.buttons .run, .file-buttons .new { color: #66bb66 }
2024-05-03 22:24:34 -05:00
.buttons .stop, .file-buttons .del, .button[data-tab=errors] { color: #bb6666 }
2024-05-03 21:08:14 -05:00
.buttons .build { color: #aaaaff; }
2024-05-03 22:24:34 -05:00
.buttons .reset { color: #bbbb66; }
2024-05-03 21:48:52 -05:00
.files .file.selected-file { background-color: #686868 !important; }
2024-05-03 22:24:34 -05:00
.files .file:hover, .button:hover, .file-buttons a:hover, .buttons a:hover {
background-color: #505050;
user-select: none;
}