ObjToSchematic/styles.css

753 lines
14 KiB
CSS
Raw Normal View History

2021-09-20 03:23:43 +08:00
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400&display=swap');
:root {
2022-01-17 03:52:35 +08:00
--properties-width: max(400px, 20%);
--pill-radius: 5px;
--prop-bg: #1A1A1A;
--prop-alt: #252525;
--prop-accent-border-hovered: #33AAC2;
--prop-accent-hovered: #0095b3;
--prop-accent-standard: #00738a;
--prop-accent-disabled: #00404d;
--prop-border-hovered: #606060;
--prop-hovered: #383838;
--prop-standard: #2F2F2F;
--prop-disabled: #242424;
--prop-sunken: #141414;
--text-standard: #A8A8A8;
--text-disabled: #535353;
2022-10-25 03:45:02 +08:00
--border-radius: 5px;
--property-height: 34px;
2021-07-04 23:02:20 +08:00
}
2021-10-05 07:32:03 +08:00
body {
margin: 0px;
background: rgb(25, 25, 25);
2021-10-05 07:32:03 +08:00
font-family: 'Lexend', sans-serif;
overflow: hidden;
user-select: none;
2021-07-07 06:18:24 +08:00
}
canvas {
position: absolute;
width: 100%;
height: 100%;
}
.column-properties {
background: var(--prop-bg);
position: absolute;
width: var(--properties-width);
height: 100%;
overflow: auto;
2021-08-14 23:34:35 +08:00
}
.column-canvas {
position: absolute;
margin-left: var(--properties-width);
2022-03-22 05:32:45 +08:00
width: calc(100% - var(--properties-width));
height: 100%;
cursor: crosshair;
2021-08-14 23:34:35 +08:00
}
.container {
display: flex;
flex-direction: column;
margin: 10px;
2021-09-20 03:23:43 +08:00
}
.property {
display: flex;
flex-direction: row;
align-items: center;
color: var(--text-standard);
font-size: 85%;
margin: 0px 0px;
2022-10-25 03:45:02 +08:00
padding: 5px 10px;
2021-10-05 07:32:03 +08:00
}
.group-heading {
2022-12-10 09:40:27 +08:00
padding: 10px 10px;
color: #303030;
font-weight: 400;
font-size: 85%;
letter-spacing: 4px;
2021-10-05 07:32:03 +08:00
}
2021-09-20 03:23:43 +08:00
.prop-key-container {
align-self: center;
2022-10-25 03:45:02 +08:00
padding: 0px 10px 0px 0px;
width: 125px;
2022-10-25 03:45:02 +08:00
/*border: 1px solid red;*/
2021-09-20 03:23:43 +08:00
}
.prop-key-container-disabled {
color: var(--text-disabled) !important;
2021-09-20 03:23:43 +08:00
}
.prop-value-container {
flex-grow: 1;
2022-10-25 03:45:02 +08:00
display: flex;
align-items: center;
/*border: 1px solid yellow;*/
height: var(--property-height);
2022-11-04 04:21:14 +08:00
width: 0px;
2021-09-20 03:23:43 +08:00
}
.item-body-sunken {
background: var(--prop-sunken);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 10px 0px inset;
2022-10-25 03:45:02 +08:00
border-radius: var(--border-radius);
color: #8C8C8C80;
font-weight: 300;
font-size: 90%;
padding: 12px 18px;
line-height: 180%;
min-height: 22px;
2022-10-25 03:45:02 +08:00
width: 100%;
border: 1.5px solid var(--prop-sunken);
transition-duration: 1s;
overflow-wrap: anywhere;
2021-09-20 03:23:43 +08:00
}
input {
2022-10-25 03:45:02 +08:00
user-select: none;
height: calc(100% - 4px);
margin-right: 3px;
2022-10-25 03:45:02 +08:00
border-radius: var(--border-radius);
text-align: center;
background: var(--prop-standard);
font-family: 'Lexend', sans-serif;
font-weight: 300;
color: var(--text-standard);
outline-color: var(--prop-accent-hovered);
border: 1px solid rgb(255, 255, 255, 0.0);
2021-10-05 07:32:03 +08:00
}
input:hover:enabled {
color: #C6C6C6;
border: 1px solid rgb(255, 255, 255, 0.1);
background: var(--prop-hovered);
2021-10-05 07:32:03 +08:00
}
input:disabled {
background: var(--prop-disabled);
color: var(--text-disabled);
2021-10-05 07:32:03 +08:00
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
2021-10-05 07:32:03 +08:00
}
select {
width: 100%;
2022-10-25 03:45:02 +08:00
height: 100%;
2022-11-17 07:15:11 +08:00
padding-left: 5px;
2022-10-25 03:45:02 +08:00
border-radius: var(--border-radius);
font-family: 'Lexend', sans-serif;
font-weight: 300;
color: var(--text-standard);
background: var(--prop-standard);
border: 1px solid rgb(255, 255, 255, 0.0);
max-width: 100%;
outline-color: var(--prop-accent-hovered);
opacity: 1.0;
cursor: inherit;
2021-09-20 03:23:43 +08:00
}
select:hover:enabled {
color: #C6C6C6;
background: var(--prop-hovered);
border: 1px solid rgb(255, 255, 255, 0.1);
2021-10-05 07:32:03 +08:00
cursor: pointer;
}
select:disabled {
background: var(--prop-disabled) !important;
color: var(--text-disabled);
}
.new-slider {
2022-10-25 03:45:02 +08:00
border-radius: var(--border-radius);
font-family: 'Lexend', sans-serif;
font-weight: 300;
background: var(--prop-standard);
cursor: ew-resize;
2022-10-25 03:45:02 +08:00
height: calc(100% - 2px);
border: 1px solid var(--prop-bg);
}
.new-slider-hover {
border: 1px solid rgba(255, 255, 255, 0.1) !important;
background: var(--prop-hovered) !important;
}
.new-slider-disabled {
background: var(--prop-disabled) !important;
cursor: inherit !important;
}
.new-slider-bar {
2022-10-25 03:45:02 +08:00
border-radius: var(--border-radius);
2022-12-10 09:40:27 +08:00
height: calc(100% - 2px);
background: var(--prop-accent-standard);
border: 1px solid rgb(255, 255, 255, 0.0);
}
.new-slider-bar-hover {
border: 1px solid rgb(255, 255, 255, 0.2) !important;
background: var(--prop-accent-hovered) !important;
}
.new-slider-bar-disabled {
background: var(--prop-accent-disabled) !important;
cursor: inherit !important;
border: 1px solid rgb(255, 255, 255, 0.0) !important;
2021-09-20 03:23:43 +08:00
}
.button {
2022-10-25 03:45:02 +08:00
width: calc(100% - 2px);
height: calc(100% - 2px);
background: var(--prop-accent-standard);
2022-10-25 03:45:02 +08:00
border-radius: var(--border-radius);
2021-10-05 07:32:03 +08:00
color: white;
text-align: center;
border: 1px solid rgb(255, 255, 255, 0);
position: relative;
cursor: pointer;
2022-10-25 03:45:02 +08:00
display: flex;
align-items: center;
justify-content: center;
2021-09-20 03:23:43 +08:00
}
.button:hover {
border: 1px solid rgb(255, 255, 255, 0.2);
background: var(--prop-accent-hovered);
cursor: pointer;
}
2022-10-25 03:45:02 +08:00
.button-disabled {
cursor: inherit !important;
background: var(--prop-accent-disabled) !important;
border: 1px solid rgb(255, 255, 255, 0) !important;
color: #808080 !important;
}
2022-10-25 03:45:02 +08:00
.button-progress {
/*border: 1px solid green;*/
z-index: 5;
background: white;
opacity: 0.1;
2022-10-25 03:45:02 +08:00
border-radius: var(--border-radius);
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
width: 0%;
transition: width 0.2s;
}
2022-10-25 03:45:02 +08:00
.input-file {
display: flex;
align-items: center;
width: 100%;
height: calc(100% - 2px);
background: var(--prop-standard);
2022-10-25 03:45:02 +08:00
border-radius: var(--border-radius);
font-weight: 300;
2022-10-25 03:45:02 +08:00
padding: 0px 10px;
border: 1px solid rgb(255, 255, 255, 0);
}
2022-10-25 03:45:02 +08:00
.input-file-hover {
border: 1px solid rgb(255, 255, 255, 0.2);
background: var(--prop-hovered);
cursor: pointer;
}
2022-10-25 03:45:02 +08:00
.input-file-disabled {
2022-09-09 20:23:43 +08:00
background: var(--prop-disabled) !important;
color: var(--text-disabled) !important;
2021-10-05 07:32:03 +08:00
}
.h-div {
2022-01-17 03:52:35 +08:00
height: 2px;
border-radius: 2px;
background: var(--prop-alt);
2021-10-05 07:32:03 +08:00
}
.disabled {
opacity: 0.5;
cursor: inherit !important;
2021-10-05 07:32:03 +08:00
}
::-webkit-scrollbar {
width: 10px;
2021-10-05 07:32:03 +08:00
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.2);
2021-10-05 07:32:03 +08:00
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
2021-10-05 07:32:03 +08:00
}
::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.2);
}
2022-09-10 03:59:14 +08:00
.status-warning {
transition-duration: 0.5s;
color: orange;
}
2022-09-10 03:59:14 +08:00
.status-success {
transition-duration: 0.5s;
color: var(--prop-accent-standard);
2022-02-13 04:54:31 +08:00
}
2022-09-10 03:59:14 +08:00
.status-error {
transition-duration: 0.5s;
color: rgb(156, 27, 27);
}
.spinbox-key {
color: #ffffffb9;
font-size: 85%;
2022-12-10 09:40:27 +08:00
font-weight: 300;
padding-right: 5px;
}
.spinbox-key-hover {
border: rgba(255, 255, 255, 0.2) !important;
filter: brightness(1.5);
cursor: ew-resize;
}
.spinbox-key-disabled {
filter: brightness(0.4);
}
.spinbox-value {
background: var(--prop-standard);
2022-12-10 09:40:27 +08:00
border-radius: 5px;
flex-grow: 1;
height: calc(32px - 8.5px);
padding: 8.5px 0px 0px 0px;
font-weight: 300;
border-width: 1px 1px 1px 0px;
border-style: solid;
border: rgba(255, 255, 255, 0.0);
color: var(--text-disabled);
align-self: center;
text-align: center;
}
.spinbox-value-hover {
border: rgba(255, 255, 255, 0.2) !important;
background: var(--prop-hovered) !important;
cursor: ew-resize;
}
.spinbox-value-disabled {
color: var(--text-disabled);
background: var(--prop-disabled) !important;
}
2022-10-25 03:45:02 +08:00
.spinbox-divider {
2022-12-10 09:40:27 +08:00
width: 3px;
}
.toolbar {
display: flex;
position: inherit;
flex-direction: row;
2022-03-22 05:32:45 +08:00
width: 100%;
justify-content: space-between;
cursor: inherit;
pointer-events: none;
2022-03-22 05:32:45 +08:00
}
.toolbar-column {
display: flex;
flex-direction: row;
margin: 20px 10px;
}
2022-03-22 05:32:45 +08:00
.toolbar-column:last-child {
flex-direction: row-reverse !important;
}
.toolbar-group {
display: flex;
flex-direction: row;
box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 16px;
2022-10-25 03:45:02 +08:00
border-radius: var(--border-radius);
2022-03-22 05:32:45 +08:00
margin-left: 10px;
margin-right: 10px;
}
.toolbar-item {
2022-11-17 07:15:11 +08:00
display: flex;
align-items: center;
justify-content: center;
height: 32px;
padding: 0px 8px 0px 8px;
text-align: center;
color: var(--text-standard);
font-size: 85%;
background-color: var(--prop-standard);
border: 1px solid var(--prop-standard);
pointer-events: all;
}
.toolbar-item-hover {
background-color: var(--prop-hovered) !important;
border: 1px solid var(--prop-border-hovered) !important;
cursor: pointer;
}
.toolbar-item-active-hover {
background-color: var(--prop-accent-hovered) !important;
border: 1px solid var(--prop-accent-border-hovered) !important;
}
2022-11-15 03:16:44 +08:00
.toolbar-item-disabled-active {
background-color: var(--prop-accent-disabled) !important;
border: 1px solid var(--prop-accent-disabled) !important;
}
.toolbar-item-disabled {
background-color: var(--prop-disabled) !important;
border: 1px solid var(--prop-disabled) !important;
cursor: default;
}
.toolbar-item-active {
background-color: var(--prop-accent-standard) !important;
border-color: var(--prop-accent-border-hovered) !important;
}
.toolbar-item:first-child {
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
.toolbar-item:last-child {
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
svg {
width: 16px;
height: 16px;
stroke: var(--text-standard);
}
.icon-active {
stroke: white !important;
}
.icon-disabled {
stroke: var(--text-disabled) !important;
2022-08-29 10:42:00 +08:00
}
2022-11-15 03:16:44 +08:00
.icon-disabled-active {
stroke: #808080 !important;
}
2022-08-29 10:42:00 +08:00
.palette-container {
width: 100%;
height: 200px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: flex-start;
align-content: flex-start;
overflow: auto;
gap: 4px;
}
.palette-item {
display: flex;
background: var(--prop-disabled);
width: 32px;
height: 32px;
border-radius: 8px;
}
.interactable-base {
display: flex;
border-radius: 8px;
padding: 5px;
border-width: 1px;
border-style: solid;
}
.interactable {
border-color: rgb(255, 255, 255, 0.0);
background-color: var(--prop-standard);
}
2022-08-29 10:42:00 +08:00
.interactable-hover {
border-color: rgb(255, 255, 255, 0.2);
background-color: var(--prop-standard);
}
2022-08-29 10:42:00 +08:00
.interactable-disabled {
border-color: rgb(255, 255, 255, 0.0);
background-color: var(--prop-disabled);
}
.interactable-active {
border-color: var(----prop-accent-standard);
background-color: var(--prop-accent-standard);
}
2022-08-29 10:42:00 +08:00
.interactable-active-hover {
border-color: var(--prop-accent-border-hovered);
background-color: var(--prop-accent-hovered);
}
2022-08-29 10:42:00 +08:00
.interactable-active-disabled {
border-color: var(--prop-accent-disabled);
background-color: var(--prop-accent-disabled);
}
.toggleable-icon {
filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.125));
}
.button-loading {
box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
}
70% {
box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}
2022-09-10 03:59:14 +08:00
}
.loader-circle {
width: 6px;
height: 6px;
border-radius: 50%;
background-color: currentColor;
}
.spin {
animation: blinker 0.75s ease-in-out infinite;
}
@keyframes blinker {
0% {
opacity: 100%;
}
50% {
opacity: 50%;
}
100% {
opacity: 100%;
}
2022-09-17 01:51:22 +08:00
}
.progress-bar-container {
width: 100%;
height: 2px;
}
.progress-bar {
background-color: var(--prop-accent-standard);
height: 100%;
transition: width 0.1s;
2022-10-01 22:31:02 +08:00
}
/* Remove default bullets */
ul {
list-style-type: none;
margin: 0;
2022-12-08 03:53:56 +08:00
padding-left: 10px;
2022-10-01 22:31:02 +08:00
}
/* Style the caret/arrow */
.caret {
cursor: pointer;
user-select: none; /* Prevent text selection */
}
.caret:hover {
color: var(--text-standard) !important;
}
/* Create the caret/arrow with a unicode, and style it */
.caret::before {
content: "\25B6";
display: inline-block;
margin-right: 6px;
}
/* Rotate the caret/arrow icon when clicked on (using JavaScript) */
.caret-down::before {
transform: rotate(90deg);
}
/* Hide the nested list */
.nested {
display: none;
}
/* Show the nested list when the user clicks on the caret/arrow (with JavaScript) */
.active {
display: block;
}
a {
border-bottom: 1px solid currentColor;
cursor: pointer;
color: #8C8C8C80;
}
a:hover {
color: var(--text-standard) !important;
}
.colour-swatch {
2022-11-13 07:23:00 +08:00
border: 1px solid #8C8C8C80;
border-radius: 5px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: none;
2022-11-13 07:23:00 +08:00
width: 75%;
2022-11-13 10:13:21 +08:00
height: 24px;
2022-11-13 07:23:00 +08:00
margin: 0px;
padding: 0px;
}
.colour-swatch-hover {
border-color: var(--text-standard) !important;
}
2022-11-13 07:23:00 +08:00
.colour-swatch::-webkit-color-swatch-wrapper {
border: none;
margin: 0px;
padding: 0px;
}
.colour-swatch::-webkit-color-swatch {
border: none;
2022-11-13 07:23:00 +08:00
margin: 0px;
padding: 0px;
border-radius: 5px;
}
.texture-preview {
border: 1px solid #8C8C8C80;
border-radius: 5px;
}
.texture-preview-missing {
border-color: orange !important;
}
.texture-hover {
border-color: var(--text-standard) !important;
2022-11-13 08:45:03 +08:00
}
.material-container {
2022-11-17 07:15:11 +08:00
}
.checkbox {
height: 75%;
aspect-ratio: 1/1;
background-color: var(--prop-standard);
border-radius: 5px;
border: 1px solid var(--prop-standard);
display: flex;
align-items: center;
justify-content: center;
}
.checkbox-hover {
background-color: var(--prop-hovered) !important;
border: 1px solid rgba(255, 255, 255, 0.2) !important;
cursor: pointer;
}
.checkbox-disabled {
background-color: var(--prop-disabled) !important;
border: 1px solid var(--prop-disabled) !important;
}
.checkbox-text {
padding-left: 10px;
font-weight: 300;
color: var(--text-standard)
}
.checkbox-text-disabled {
color: var(--text-disabled);
}
.checkbox-pip {
width: 50%;
height: 50%;
border-radius: 3px;
}
.checkbox-pip-hover {
stroke: white;
}
.checkbox-pip-disabled {
stroke: var(--text-disabled);
}
.metadata-value {
display: inline;
color: rgb(128, 128, 128);
background-color: rgb(12, 12, 12);
padding: 0px 2px;
border-radius: 2px;
2022-12-08 03:53:56 +08:00
word-wrap: break-word;
2022-12-10 09:40:27 +08:00
}
.spinbox-main-container {
display: flex;
flex-direction: row;
width: 100%;
}
.spinbox-element-container {
display: flex;
flex-direction: row;
flex-grow: 1;
height: 50%;
align-items: center;
padding-left: 5px;
}
.spinbox-element-container:first-child {
padding-right: 0px;
2021-07-01 23:16:32 +08:00
}