Lightningbeam/src/styles.css

507 lines
9.2 KiB
CSS

body {
width: 100%;
height: 100%;
overflow: hidden;
}
* {
user-select: none;
}
.logo.vanilla:hover {
filter: drop-shadow(0 0 2em #ffe21c);
}
:root {
--lineheight: 24px;
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: var(--lineheight);
font-weight: 400;
color: #0f0f0f;
background-color: #f6f6f6;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
height: 100%;
}
.container {
margin: 0;
padding-top: 10vh;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: 0.75s;
}
.logo.tauri:hover {
filter: drop-shadow(0 0 2em #24c8db);
}
.row {
display: flex;
justify-content: center;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
h1 {
text-align: center;
}
input,
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
color: #0f0f0f;
background-color: #ffffff;
transition: border-color 0.25s;
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}
div {
/* this should be on everything by default, really */
box-sizing: border-box;
}
button {
cursor: pointer;
}
button:hover {
border-color: #396cd8;
}
button:active {
border-color: #396cd8;
background-color: #e8e8e8;
}
input,
button {
outline: none;
}
#greet-input {
margin-right: 5px;
}
@media (prefers-color-scheme: dark) {
:root {
color: #f6f6f6;
background-color: #2f2f2f;
}
a:hover {
color: #24c8db;
}
input,
button {
color: #ffffff;
background-color: #0f0f0f98;
}
button:active {
background-color: #0f0f0f69;
}
}
.header {
height: 60px;
min-width: 100%;
background-color: #3f3f3f;
text-align: left;
z-index: 1;
}
.icon {
width: var(--lineheight);
height: var(--lineheight);
}
.panecontainer {
width: 100%;
height: 100%;
}
.horizontal-grid, .vertical-grid {
display: flex;
gap: 5px;
background-color: #0f0f0f;
width: 100%;
height: 100%;
contain: strict;
}
.horizontal-grid {
flex-direction: row;
}
.vertical-grid {
flex-direction: column;
}
/* I don't fully understand this selector but it works for now */
.horizontal-grid:hover:not(:has(*:hover)) {
background: #666;
cursor: ew-resize;
}
.vertical-grid:hover:not(:has(*:hover)) {
background: #666;
cursor: ns-resize
}
.scroll {
overflow: scroll;
width: 100%;
height: 100%;
background-color: #555;
}
.stage {
width: 1500px;
height: 1000px;
/* overflow: scroll; */
}
.stageWrapper {
position: relative;
width: 1500px;
height: 1500px;
}
.selectionRect {
position: absolute;
width: 500px;
height: 300px;
left: 100px;
top: 100px;
border: 1px solid #00ffff;
display: none;
user-select: none;
pointer-events: none;
}
.cornerRect {
position: absolute;
width: 10px;
height: 10px;
background-color: black;
transition: width 0.2s ease, height 0.2s linear;
user-select: none;
pointer-events: auto;
}
.cornerRect:hover {
width: 15px;
height: 15px;
}
.nw {
top: 0px;
left: 0px;
transform: translate(-50%, -50%);
cursor:nw-resize;
}
.n {
top: 0px;
left: 50%;
transform: translate(-50%, -50%);
cursor:n-resize;
}
.ne {
top: 0px;
right: 0px;
transform: translate(50%, -50%);
cursor:ne-resize;
}
.e {
top: 50%;
right: 0px;
transform: translate(50%, -50%);
cursor:e-resize;
}
.se {
bottom: 0px;
right: 0px;
transform: translate(50%, 50%);
cursor:se-resize;
}
.s {
bottom: 0px;
left: 50%;
transform: translate(-50%, 50%);
cursor:s-resize;
}
.sw {
bottom: 0px;
left: 0px;
transform: translate(-50%, 50%);
cursor:sw-resize;
}
.w {
top: 50%;
left: 0px;
transform: translate(-50%, -50%);
cursor:w-resize;
}
.toolbar {
display: flex;
flex-direction: row;
gap: 10px;
padding: 5px;
flex-wrap: wrap;
align-content: flex-start;
justify-content: space-around;
}
.toolbtn {
width: calc( 3 * var(--lineheight) );
height: calc( 3 * var(--lineheight) );
background-color: #2f2f2f;
}
.horiz_break {
width: 100%;
height: 5px;
background-color: #2f2f2f;
}
.clr-field {
width: 100%;
}
.clr-field button {
width: 50% !important;
/* height: 100% !important; */
/* margin: 100px; */
border-radius: 5px;
}
.clr-field input {
width: 50%;
}
.infopanel {
width: 100%;
height: 100%;
background-color: #3f3f3f;
display: flex;
box-sizing: border-box;
gap: calc( var(--lineheight) / 2 );
padding: calc( var(--lineheight) / 2 );
flex-direction: column;
flex-wrap: wrap;
align-content: flex-start;
}
.infopanel-field {
width: 300px;
height: var(--lineheight);
display: flex;
flex-direction: row;
}
.infopanel-label {
flex: 1 1 50%;
}
.infopanel-input {
flex: 1 1 50%;
width: 50%;
}
.layers-container {
overflow-y: scroll;
}
.layers {
background-color: #222222;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
min-height: 100%;
}
.frames-container {
background-color: #222222;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
/* overflow-x: scroll; */
/* overflow-y:inherit; */
min-height: 100%;
}
.layer-header {
width: 100%;
height: calc( 2 * var(--lineheight));
background-color: #3f3f3f;
border-top: 1px solid #4f4f4f;
border-bottom: 1px solid #222222;
flex-shrink: 0;
}
.layer-track {
min-width: 100%;
height: calc( 2 * var(--lineheight));
background: repeating-linear-gradient(to right, transparent, transparent 24px, #3f3f3f 24px, #3f3f3f 25px),
repeating-linear-gradient(to right, #222222, #222222 100px, #151515 100px, #151515 125px);
display: flex;
flex-direction: row;
border-top: 1px solid #222222;
border-bottom: 1px solid #3f3f3f;
flex-shrink: 0;
}
.frame {
width: 25px;
height: 100%;
background-color: #4f4f4f;
flex-grow: 0;
flex-shrink: 0;
border-right: 1px solid #3f3f3f;
border-left: 1px solid #555555;
}
.frame:hover {
background-color: #555555;
}
.frame.active {
background-color: #666666;
}
.frame.keyframe {
position: relative;
}
.frame.keyframe::before {
content: ''; /* Creates a pseudo-element */
position: absolute;
bottom: 0; /* Position the circle at the bottom of the div */
left: 50%; /* Center the circle horizontally */
transform: translateX(-50%); /* Adjust for perfect centering */
width: 50%; /* Set the width of the circle to half of the div's width */
height: 0; /* Initially set to 0 */
padding-bottom: 50%; /* Set padding-bottom to 50% of the div's width to create a circle */
border-radius: 50%; /* Make the shape a circle */
background-color: #222; /* Set the color of the circle (black in this case) */
margin-bottom: 5px;
}
.frame.motion {
background-color: #7a00b3;
border: none;
}
.frame.motion:hover, .frame.motion.active {
background-color: #530379;
border-left: 1px solid #450264;
border-right: 1px solid #450264;
}
.frame.shape {
background-color: #9bff9b;
border: none;
}
.frame.shape:hover, .frame.shape.active {
background-color: #38f538;
border-left: 1px solid #26ac26;
border-right: 1px solid #26ac26;
}
/* :nth-child(1 of .frame.motion) {
background-color: blue;
}
:nth-last-child(1 of .frame.motion) {
background-color: red;
} */
.frame-highlight {
background-color: red;
width: 25px;
height: calc( 2 * var(--lineheight) - 2px);
position: relative;
}
.hidden {
display: none;
}
#overlay {
display: none; /* Hidden by default */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 999; /* Under the dialog */
}
/* Scoped styles for the dialog */
#newFileDialog {
display: none; /* Hidden by default */
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #444;
border: 1px solid #333;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
padding: 20px;
width: 300px;
z-index: 1000; /* Make sure it's in front of other elements */
}
#newFileDialog .dialog-label {
display: block;
margin: 10px 0 5px;
}
#newFileDialog .dialog-input {
width: 100%;
padding: 8px;
margin: 5px 0;
border: 1px solid #333;
}
#newFileDialog .dialog-button {
width: 100%;
padding: 10px;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
}
#newFileDialog .dialog-button:hover {
background-color: #0056b3;
}
#popupMenu {
background-color: #222;
box-shadow: 0 4px 8px rgba(0,0,0,0.5);
padding: 20px;
border-radius: 5px;
position: absolute;
}
#popupMenu ul {
padding: 0px;
margin: 0px;
}
#popupMenu li {
color: #ccc;
list-style-type: none;
display: flex;
align-items: center; /* Vertically center the image and text */
padding: 5px 0; /* Add padding for better spacing */
}
#popupMenu li:hover {
background-color: #444;
cursor:pointer;
}
#popupMenu li:not(:last-child) {
border-bottom: 1px solid #444; /* Horizontal line for all li elements except the last */
}
#popupMenu li img {
margin-right: 10px; /* Space between the icon and text */
width: 20px; /* Adjust the width of the icon */
height: 20px; /* Adjust the height of the icon */
}