ObjToSchematic/styles.css

822 lines
15 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: hsl(0, 0%, 10%);
--prop-alt: hsl(0, 0%, 15%);
--prop-accent-border-hovered: #33AAC2;
--prop-accent-hovered: #0095b3;
--prop-accent-standard: #00738a;
--prop-accent-disabled: #00404d;
--prop-border-hovered: hsl(0, 0%, 38%);
--prop-hovered: hsl(0, 0%, 22%);
--prop-standard: hsl(0, 0%, 18%);
--prop-disabled: hsl(0, 0%, 14%);
--prop-sunken: hsl(0, 0%, 8%);
--text-standard: hsl(0, 0%, 66%);
--text-disabled: hsl(0, 0%, 33%);
2023-01-24 04:48:21 +08:00
--vertical-divider: hsl(0, 0%, 14%);
2022-10-25 03:45:02 +08:00
--border-radius: 5px;
--property-height: 34px;
--subproperty-height: 20px;
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
}
2023-01-24 04:48:21 +08:00
.big-padding {
padding-bottom: 25px;
}
.big-padding:last-child {
padding-bottom: 5px;
}
.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;
2023-02-12 05:29:36 +08:00
width: 150px;
overflow: auto;
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;
2022-11-04 04:21:14 +08:00
width: 0px;
}
.subproperty-container {
display: flex;
flex-direction: column;
width: 100%;
}
.subproperty {
display: flex;
flex-direction: row;
align-items: center;
color: var(--text-standard);
font-size: 85%;
width: 100%;
padding-top: 2px;
padding-bottom: 2px;
border-bottom: 1px solid var(--vertical-divider);
}
.subproperty:last-child {
border-bottom: 0px;
}
.subprop-key-container {
align-self: center;
width: 30%;
2023-01-24 04:48:21 +08:00
overflow: auto;
}
.subprop-value-container {
flex-grow: 1;
display: flex;
align-items: center;
min-height: var(--subproperty-height);
width: 100%;
overflow: auto;
font-weight: 300;
/*border-left: 1px solid var(--vertical-divider);*/
padding-left: 5px;
}
.height-small {
height: var(--subproperty-height);
font-size: 100%;
2021-09-20 03:23:43 +08:00
}
.height-normal {
height: var(--property-height);
}
.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: hidden;
2021-09-20 03:23:43 +08:00
}
2023-01-23 01:49:48 +08:00
.slider-height-normal {
height: calc(var(--property-height) - 4px);
}
2023-01-23 01:49:48 +08:00
.slider-height-small {
height: calc(var(--subproperty-height) - 4px);
font-size: 100%;
}
input {
2023-02-12 05:29:36 +08:00
font-size: 100%;
2022-10-25 03:45:02 +08:00
user-select: none;
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 {
2023-02-12 05:29:36 +08:00
font-size: 100%;
width: 100%;
height: var(--property-height);
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);
}
2023-01-23 01:49:48 +08:00
.slider-bar-height-normal {
height: calc(var(--property-height) - 2px);
}
.slider-bar-height-small {
height: calc(var(--subproperty-height) - 2px);
}
.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;
border: 1px solid var(--prop-bg);
2023-01-23 01:49:48 +08:00
overflow: hidden;
}
.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(var(--property-height) - 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(var(--property-height) - 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;
height: 5px;
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);
}
.message-builder-item {
overflow: auto;
white-space: nowrap;
}
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 {
display: flex;
align-items: center;
justify-content: center;
height: calc(var(--property-height) - 2px);
background: var(--prop-standard);
2022-12-10 09:40:27 +08:00
border-radius: 5px;
flex-grow: 1;
font-weight: 300;
border: 1px solid rgba(255, 255, 255, 0.0);
color: var(--text-standard);
}
.spinbox-value-hover {
border: 1px solid 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;
gap: 2px;
}
.toolbar-item-small {
height: 24px !important;
padding: 0px 4px 0px 4px !important;
}
.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;
cursor: pointer;
color: white;
}
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;
color: white;
}
.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
}
.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;
width: 100%;
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;
width: calc(100% - 2px);
2022-11-13 07:23:00 +08:00
}
.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: calc(var(--property-height) * 0.75);
2022-11-17 07:15:11 +08:00
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);
}
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;
}
.row-container {
display: flex;
flex-direction: column;
gap: 2px;
}
.row-item {
display: flex;
flex-direction: row;
align-items: center;
}
.col-container {
display: flex;
flex-direction: row;
gap: 2px;
}
.col-item {
display: flex;
flex-direction: column;
align-items: center;
}
.banner {
color: white;
font-weight: 300;
font-size: 75%;
padding: 6px;
text-align: center;
background-color: var(--prop-accent-disabled);
border: 1px solid rgba(255, 255, 255, 0.1);
}
a {
color: var(--prop-accent-hovered)
2021-07-01 23:16:32 +08:00
}