ObjToSchematic/styles.css

591 lines
10 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;
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%;
2021-08-14 23:34:35 +08:00
}
.container {
display: flex;
flex-direction: column;
margin: 10px;
2021-09-20 03:23:43 +08:00
}
.item {
padding: 0px 0px;
display: flex;
flex-direction: row;
align-items: center;
color: var(--text-standard);
2021-10-05 07:32:03 +08:00
}
.group-heading {
padding: 0px 0px 0px 0px;
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-left {
align-self: center;
2022-01-17 03:52:35 +08:00
padding: 0px 10px;
width: 125px;
2021-09-20 03:23:43 +08:00
}
.prop-left-disabled {
color: var(--text-disabled) !important;
2021-09-20 03:23:43 +08:00
}
.prop-right {
flex-grow: 1;
2022-01-17 03:52:35 +08:00
padding: 0px 10px;
2021-09-20 03:23:43 +08:00
}
.item-body {
font-size: 85%;
margin: 0px 0px;
min-height: 30px;
2022-01-17 03:52:35 +08:00
padding: 5px 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;
border-radius: 5px;
color: #8C8C8C80;
font-weight: 300;
font-size: 90%;
padding: 12px 18px;
line-height: 180%;
min-height: 22px;
border: 1.5px solid var(--prop-sunken);
transition-duration: 1s;
overflow-wrap: anywhere;
2021-09-20 03:23:43 +08:00
}
.round-top {
border-radius: 8.5px 8.5px 0px 0px;
2021-10-05 07:32:03 +08:00
}
.round-bottom {
border-radius: 0px 0px 10px 10px;
border-width: 0.5px 0px 0px 0px;
2021-10-05 07:32:03 +08:00
}
code {
border-radius: 3px;
padding: 0px 5px;
margin: 0px 5px;
background: rgb(15, 15, 15);
font-size: 110%;
2021-10-05 07:32:03 +08:00
}
select {
width: 100%;
height: 30px;
padding-left: 10px;
border-radius: 5px;
border: none;
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%;
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-09-20 03:23:43 +08:00
}
select:disabled {
background: #282828 !important;
color: var(--text-disabled);
}
2021-09-20 03:23:43 +08:00
.file-input {
border-radius: 5px;
border: 1px solid rgb(255, 255, 255, 0);
font-family: 'Lexend', sans-serif;
font-weight: 300;
background: var(--prop-standard);
padding: 0px 16px;
2021-10-05 07:32:03 +08:00
cursor: pointer;
height: 40px;
2021-09-20 03:23:43 +08:00
}
.file-input:hover {
border: 1px solid rgb(255, 255, 255, 0.1);
2021-09-20 03:23:43 +08:00
}
.slider-value {
align-self: center;
font-weight: 300;
font-size: 85%;
margin-right: 8px;
color: var(--text-standard);
width: 20px;
text-align: center;
}
.slider-value-disabled {
color: var(--text-disabled);
}
.new-slider {
border-radius: 5px;
font-family: 'Lexend', sans-serif;
font-weight: 300;
background: var(--prop-standard);
cursor: ew-resize;
height: 30px;
font-size: 90%;
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: default !important;
}
.new-slider-bar {
border-radius: 5px;
height: 28px;
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: default !important;
border: 1px solid rgb(255, 255, 255, 0.0) !important;
2021-09-20 03:23:43 +08:00
}
.button {
background: var(--prop-accent-standard);
border-radius: 5px;
height: 25px;
2021-10-05 07:32:03 +08:00
color: white;
text-align: center;
padding: 5px 0px 0px 0px;
border: 1px solid rgb(255, 255, 255, 0);
cursor: pointer;
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;
}
.button-disabled {
cursor: default !important;
background: var(--prop-accent-disabled) !important;
border: 1px solid rgb(255, 255, 255, 0) !important;
color: #808080 !important;
2021-10-05 07:32:03 +08:00
}
.input-text {
background: var(--prop-standard);
border-radius: 5px;
height: 24px;
font-weight: 300;
padding: 6px 0px 0px 10px;
border: 1px solid rgb(255, 255, 255, 0);
}
2022-09-09 20:23:43 +08:00
.input-text-hover {
border: 1px solid rgb(255, 255, 255, 0.2);
background: var(--prop-hovered);
cursor: pointer;
}
.input-text-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
}
.divider {
width: 2px;
border-radius: 1px;
background: var(--prop-alt);
align-self: stretch;
2021-10-05 07:32:03 +08:00
}
.disabled {
opacity: 0.5;
cursor: default !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 {
border-radius: 5px 0px 0px 5px;
height: calc(32px - 8.5px);
color: #ffffffb9;
padding: 8.5px 8px 0px 8px;
font-size: 85%;
font-weight: 400;
border-width: 1px 0px 1px 1px;
border-style: solid;
border: rgba(255, 255, 255, 0.0);
}
.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);
border-radius: 0px 5px 5px 0px;
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;
}
.invis-divider {
width: 6px;
}
.toolbar {
display: flex;
position: inherit;
flex-direction: row;
2022-03-22 05:32:45 +08:00
width: 100%;
justify-content: space-between;
}
.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;
border-radius: 5px;
2022-03-22 05:32:45 +08:00
margin-left: 10px;
margin-right: 10px;
}
.toolbar-item {
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);
}
.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;
}
.toolbar-item-disabled {
background-color: var(--prop-disabled) !important;
border: 1px solid var(--prop-disabled) !important;
}
.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;
padding-top: 7.5px;
stroke: var(--text-standard);
}
.icon-active {
stroke: white !important;
}
.icon-disabled {
stroke: var(--text-disabled) !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;
2021-07-01 23:16:32 +08:00
}