light mode
This commit is contained in:
parent
510652043d
commit
7b49d6bbfb
166
src/styles.css
166
src/styles.css
|
|
@ -108,30 +108,11 @@ button {
|
||||||
margin-right: 5px;
|
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 {
|
.header {
|
||||||
height: 60px;
|
height: 60px;
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
background-color: #3f3f3f;
|
background-color: #ccc;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
@ -149,7 +130,7 @@ button {
|
||||||
.horizontal-grid, .vertical-grid {
|
.horizontal-grid, .vertical-grid {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
background-color: #0f0f0f;
|
background-color: #555;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
contain: strict;
|
contain: strict;
|
||||||
|
|
@ -270,14 +251,17 @@ button {
|
||||||
.toolbtn {
|
.toolbtn {
|
||||||
width: calc( 3 * var(--lineheight) );
|
width: calc( 3 * var(--lineheight) );
|
||||||
height: calc( 3 * var(--lineheight) );
|
height: calc( 3 * var(--lineheight) );
|
||||||
background-color: #2f2f2f;
|
background-color: #ccc;
|
||||||
|
}
|
||||||
|
.toolbtn img {
|
||||||
|
filter: invert(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.horiz_break {
|
.horiz_break {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
|
|
||||||
background-color: #2f2f2f;
|
background-color: #999;
|
||||||
}
|
}
|
||||||
.clr-field {
|
.clr-field {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
@ -294,7 +278,7 @@ button {
|
||||||
.infopanel {
|
.infopanel {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #3f3f3f;
|
background-color: #aaa;
|
||||||
display: flex;
|
display: flex;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
gap: calc( var(--lineheight) / 2 );
|
gap: calc( var(--lineheight) / 2 );
|
||||||
|
|
@ -320,14 +304,14 @@ button {
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
.layers {
|
.layers {
|
||||||
background-color: #222222;
|
background-color: #aaa;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
}
|
}
|
||||||
.frames-container {
|
.frames-container {
|
||||||
background-color: #222222;
|
background-color: #aaa;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
|
|
@ -338,38 +322,38 @@ button {
|
||||||
.layer-header {
|
.layer-header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc( 2 * var(--lineheight));
|
height: calc( 2 * var(--lineheight));
|
||||||
background-color: #3f3f3f;
|
background-color: #ccc;
|
||||||
border-top: 1px solid #4f4f4f;
|
border-top: 1px solid #ddd;
|
||||||
border-bottom: 1px solid #222222;
|
border-bottom: 1px solid #bbb;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.layer-track {
|
.layer-track {
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
height: calc( 2 * var(--lineheight));
|
height: calc( 2 * var(--lineheight));
|
||||||
background: repeating-linear-gradient(to right, transparent, transparent 24px, #3f3f3f 24px, #3f3f3f 25px),
|
background: repeating-linear-gradient(to right, transparent, transparent 24px, #aaa 24px, #aaa 25px),
|
||||||
repeating-linear-gradient(to right, #222222, #222222 100px, #151515 100px, #151515 125px);
|
repeating-linear-gradient(to right, #bbb, #bbb 100px, #aaa 100px, #aaa 125px);
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
border-top: 1px solid #222222;
|
border-top: 1px solid #bbb;
|
||||||
border-bottom: 1px solid #3f3f3f;
|
border-bottom: 1px solid #ccc;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.frame {
|
.frame {
|
||||||
width: 25px;
|
width: 25px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
background-color: #4f4f4f;
|
background-color: #ccc;
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
border-right: 1px solid #3f3f3f;
|
border-right: 1px solid #bbb;
|
||||||
border-left: 1px solid #555555;
|
border-left: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
.frame:hover {
|
.frame:hover {
|
||||||
background-color: #555555;
|
background-color: #555555;
|
||||||
}
|
}
|
||||||
.frame.active {
|
.frame.active {
|
||||||
background-color: #666666;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
.frame.keyframe {
|
.frame.keyframe {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
@ -413,7 +397,7 @@ button {
|
||||||
} */
|
} */
|
||||||
|
|
||||||
.frame-highlight {
|
.frame-highlight {
|
||||||
background-color: red;
|
background-color: #888;
|
||||||
width: 25px;
|
width: 25px;
|
||||||
height: calc( 2 * var(--lineheight) - 2px);
|
height: calc( 2 * var(--lineheight) - 2px);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
@ -441,8 +425,8 @@ button {
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
background-color: #444;
|
background-color: #ddd;
|
||||||
border: 1px solid #333;
|
border: 1px solid #aaa;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
|
@ -456,15 +440,16 @@ button {
|
||||||
}
|
}
|
||||||
|
|
||||||
#newFileDialog .dialog-input {
|
#newFileDialog .dialog-input {
|
||||||
width: 100%;
|
width: calc(100% - 20px);
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
border: 1px solid #333;
|
border: 1px solid #aaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
#newFileDialog .dialog-button {
|
#newFileDialog .dialog-button {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
margin-top: 10px;
|
||||||
background-color: #007bff;
|
background-color: #007bff;
|
||||||
color: white;
|
color: white;
|
||||||
border: none;
|
border: none;
|
||||||
|
|
@ -476,7 +461,7 @@ button {
|
||||||
}
|
}
|
||||||
|
|
||||||
#popupMenu {
|
#popupMenu {
|
||||||
background-color: #222;
|
background-color: #eee;
|
||||||
box-shadow: 0 4px 8px rgba(0,0,0,0.5);
|
box-shadow: 0 4px 8px rgba(0,0,0,0.5);
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|
@ -487,21 +472,108 @@ button {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
#popupMenu li {
|
#popupMenu li {
|
||||||
color: #ccc;
|
color: #222;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center; /* Vertically center the image and text */
|
align-items: center; /* Vertically center the image and text */
|
||||||
padding: 5px 0; /* Add padding for better spacing */
|
padding: 5px 0; /* Add padding for better spacing */
|
||||||
}
|
}
|
||||||
#popupMenu li:hover {
|
#popupMenu li:hover {
|
||||||
background-color: #444;
|
background-color: #fff;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
}
|
}
|
||||||
#popupMenu li:not(:last-child) {
|
#popupMenu li:not(:last-child) {
|
||||||
border-bottom: 1px solid #444; /* Horizontal line for all li elements except the last */
|
border-bottom: 1px solid #ccc; /* Horizontal line for all li elements except the last */
|
||||||
}
|
}
|
||||||
#popupMenu li img {
|
#popupMenu li img {
|
||||||
margin-right: 10px; /* Space between the icon and text */
|
margin-right: 10px; /* Space between the icon and text */
|
||||||
width: 20px; /* Adjust the width of the icon */
|
width: 20px; /* Adjust the width of the icon */
|
||||||
height: 20px; /* Adjust the height of the icon */
|
height: 20px; /* Adjust the height of the icon */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dank) {
|
||||||
|
:root {
|
||||||
|
color: #f6f6f6;
|
||||||
|
background-color: #2f2f2f;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: #24c8db;
|
||||||
|
}
|
||||||
|
|
||||||
|
input,
|
||||||
|
button {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #0f0f0f98;
|
||||||
|
}
|
||||||
|
button:active {
|
||||||
|
background-color: #0f0f0f69;
|
||||||
|
}
|
||||||
|
|
||||||
|
#newFileDialog {
|
||||||
|
background-color: #444;
|
||||||
|
border: 1px solid #333;
|
||||||
|
}
|
||||||
|
#newFileDialog .dialog-input {
|
||||||
|
border: 1px solid #333;
|
||||||
|
}
|
||||||
|
#popupMenu {
|
||||||
|
background-color: #222;
|
||||||
|
}
|
||||||
|
#popupMenu li {
|
||||||
|
color: #ccc;
|
||||||
|
}
|
||||||
|
#popupMenu li:hover {
|
||||||
|
background-color: #444;
|
||||||
|
}
|
||||||
|
#popupMenu li:not(:last-child) {
|
||||||
|
border-bottom: 1px solid #444;
|
||||||
|
}
|
||||||
|
.layers {
|
||||||
|
background-color: #222222;
|
||||||
|
}
|
||||||
|
.frames-container {
|
||||||
|
background-color: #222222;
|
||||||
|
}
|
||||||
|
.layer-header {
|
||||||
|
background-color: #3f3f3f;
|
||||||
|
border-top: 1px solid #4f4f4f;
|
||||||
|
border-bottom: 1px solid #222222;
|
||||||
|
}
|
||||||
|
.layer-track {
|
||||||
|
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);
|
||||||
|
border-top: 1px solid #222222;
|
||||||
|
border-bottom: 1px solid #3f3f3f;
|
||||||
|
}
|
||||||
|
.frame {
|
||||||
|
background-color: #4f4f4f;
|
||||||
|
border-right: 1px solid #3f3f3f;
|
||||||
|
border-left: 1px solid #555555;
|
||||||
|
}
|
||||||
|
.frame:hover {
|
||||||
|
background-color: #555555;
|
||||||
|
}
|
||||||
|
.frame.active {
|
||||||
|
background-color: #666666;
|
||||||
|
}
|
||||||
|
.infopanel {
|
||||||
|
background-color: #3f3f3f;
|
||||||
|
}
|
||||||
|
.header {
|
||||||
|
background-color: #3f3f3f;
|
||||||
|
}
|
||||||
|
.horizontal-grid, .vertical-grid {
|
||||||
|
background-color: #0f0f0f;
|
||||||
|
}
|
||||||
|
.toolbtn {
|
||||||
|
background-color: #2f2f2f;
|
||||||
|
}
|
||||||
|
.toolbtn img {
|
||||||
|
filter:none;
|
||||||
|
}
|
||||||
|
.horiz_break {
|
||||||
|
background-color: #2f2f2f;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue