You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

183 lines
3.2 KiB

2 years ago
a:link, a:hover, a:active, a:visited{color: #000;}
html, body{margin: 0; padding: 0; height: 100%; width: 100%;}
canvas{margin: 0; padding: 0; border: none; display: block;}
button:hover{cursor: pointer;}
@font-face{
font-family: "Tajawal";
src: url("data/styles/fonts/Tajawal/Tajawal-Regular.ttf");
}
@font-face{
font-family: "Elronet";
src: url("data/styles/fonts/Elronet/Elronmonospace.ttf");
}
*{
font-family: "Tajawal", serif;
color: #000;
font-size: 17px;
}
:root{
--width: 100vw;
--height: 100vh;
--opt-width: 400px;
--opt-padding: 10px;
--opt-border: 5px;
--canvas-width: calc(100vw - (var(--opt-width) + var(--opt-padding) * 2 + var(--opt-border)))
2 years ago
}
body {
overflow: hidden;
2 years ago
}
/**
* Standard styles
*/
#canvas_holder{
position: relative;
width: var(--canvas-width);
2 years ago
height: var(--height);
float: left;
}
#canvas_holder canvas{
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: inherit;
}
#p5_loading{
display: none;
}
#options {
float: left;
width: var(--opt-width);
height: calc(100vh - var(--opt-padding) * 2);
padding: var(--opt-padding);
border-right: var(--opt-border) solid rgb(150, 150, 150);
2 years ago
background-color: rgb(40, 40, 40);
display: flex;
flex-direction: column;
2 years ago
}
#options *:not(input[type=number], input[type=button]){
color: white;
}
fieldset {
border-radius: 5px;
margin: 10px;
display: flex;
flex-direction: column;
}
fieldset > * {
margin: 5px 0;
}
2 years ago
fieldset > legend {
font-size: 25px;
2 years ago
}
#preparation {
overflow-y: auto;
}
#segment_view {
display: grid;
grid-template-columns: 10% 15% 30% 15% 30%;
}
#segment_header_mass {
grid-column: 2 / span 2;
}
#segment_header_length {
grid-column: 4 / span 2;
}
.segment_label {
display: inline-flex;
align-items: center;
justify-content: center;
}
button {
width: 100%;
height: 40px;
border: 3px solid black;
border-radius: 5px;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
flex-shrink: 0;
}
button:hover{
filter: brightness(80%);
}
button:active {
filter: brightness(60%);
}
.horizontal_group {
display: flex;
justify-content: space-between;
}
.horizontal_group > * {
1 year ago
width: auto;
flex: 1;
margin: 5px;
}
.horizontal_group > *:last-child {
margin-right: 0;
}
.horizontal_group > *:first-child {
margin-left: 0;
}
#normalize_btn {
background-image: url("data/images/compress.svg");
background-size: 50% 80%;
background-color: #cbcbcb;
border-color: #9a9a9a;
}
.reset_btn {
background-image: url("data/images/refresh.svg");
background-color: #cbcbcb;
border-color: #9a9a9a;
}
#add_btn{
border-color: #007a00;
background-color: #d3ffd3;
background-image: url("data/images/add.svg");
}
1 year ago
#delete_btn {
border-color: #810000;
background-color: #ffa7a7;
background-image: url("data/images/delete.svg");
}
#play_btn {
border-color: #0000c2;
background-color: #b1b1ff;
}
#play_btn.play {
background-image: url("data/images/play.svg");
}
#play_btn.pause {
background-image: url("data/images/pause.svg");
}