|
- @import url('https://fonts.googleapis.com/css?family=Coda&display=swap');
-
- html {
- height: 100%;
- width: 100%;
- box-sizing: border-box;
- overflow-x: hidden;
- overflow-y: hidden;
- color: #eee;
- }
-
- body {
- position: relative;
- background: #333;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: flex-start;
- height: 100%;
- width: 100%;
- font-family: 'Coda', sans-serif;
- }
-
- .entity-box {
- position: absolute;
- --height: 100px;
- --flipped: 1;
- --rotation: 0deg;
- --brightness: 1;
- max-height: var(--height);
- height: var(--height);
- text-align: center;
- -webkit-user-drag: none;
- -khtml-user-drag: none;
- -moz-user-drag: none;
- -o-user-drag: none;
- pointer-events: none;
- user-select: none;
- -webkit-user-select: none;
- }
-
- body.smoothing .entity-box {
- transition: left 0.2s cubic-bezier(.1,.41,.18,.99), top 0.2s cubic-bezier(.1,.41,.18,.99), height 0.2s cubic-bezier(.1,.41,.18,.99), max-height 0.2s cubic-bezier(.1,.41,.18,.99);
- }
-
- .entity-image {
- display: block;
- height: 100%;
- pointer-events: auto;
- -webkit-user-drag: none;
- -khtml-user-drag: none;
- -moz-user-drag: none;
- -o-user-drag: none;
- --offset: -100%;
- transform: translate(-50%, var(--offset)) rotate(var(--rotation)) scale(var(--flipped), 1);
- filter: brightness(var(--brightness));
- user-select: none;
- -webkit-user-select: none;
- }
-
- .entity-name {
- display: none;
- position: absolute;
- top: calc(-100% + var(--extra) / 2);
- left: 0%;
- transform: translate(-50%, -36px);
- font-size: 24px;
- pointer-events: none;
- max-width: 250px;
- width: 250px;
- transition: all 0s;
- }
-
- body.toggle-entity-name .entity-name,
- .entity-box.selected .entity-name {
- display: inline;
- }
-
- body.highlight-color .entity-box.selected > img {
- filter: sepia(100%) brightness(calc(1.5 * var(--brightness)));
- }
-
- body.highlight-color .entity-box.prevSelected > img {
- filter: sepia(50%) brightness(calc(1.25 * var(--brightness)));
- }
-
- body.highlight-outline .entity-box.selected > img {
- filter: brightness(var(--brightness)) drop-shadow(0px 0px 5px gold);
- }
-
- body.highlight-outline .entity-box.prevSelected > img {
- filter: brightness(var(--brightness)) drop-shadow(0px 0px 5px darkorange);
- }
-
- body.toggle-entity-glow .entity-box:not(.selected) > img{
- filter: brightness(var(--brightness)) drop-shadow(0px 0px 2px white);
- }
-
- #main-area {
- min-height: 0px;
- display: flex;
- flex: 1 1 90vh;
- width: 100%;
- flex-direction: row;
- }
-
- #options {
- position: relative;
- flex: 1 1 15vw;
- min-width: 100pt;
- display: flex;
- justify-content: start;
- flex-direction: column;
- background: #444;
- overflow-x: hidden;
- overflow-y: scroll;
- width: 100%;
- height: 100%;
- scrollbar-color: #e1e1e1 #888;
- }
-
- #options.hidden {
- min-width: 0pt;
- flex: 0 1 0vw;
- }
-
- #options-attribution {
- display: none;
- }
- #options::-webkit-scrollbar {
- height: 2px;
- }
- #options::-webkit-scrollbar-button {
- width: 0px;
- height: 0px;
- }
- #options::-webkit-scrollbar-thumb {
- background: #e1e1e1;
- border: 0px none #ffffff;
- border-radius: 50px;
- }
- #options::-webkit-scrollbar-thumb:hover {
- background: #ffffff;
- }
- #options::-webkit-scrollbar-thumb:active {
- background: #000000;
- }
- #options::-webkit-scrollbar-track {
- background: #222222;
- border: 0px none #ffffff;
- }
- #options::-webkit-scrollbar-track:hover {
- background: #666666;
- }
- #options::-webkit-scrollbar-track:active {
- background: #333333;
- }
- #options::-webkit-scrollbar-corner {
- background: transparent;
- }
-
- .options-two-buttons {
- display: flex;
- justify-content: space-between;
- margin-left: 4pt;
- margin-right: 4pt;
- }
-
- .options-two-buttons > button {
- font-size: 32pt;
- width: 42pt;
- height: 42pt;
- }
-
- .options-category {
- position: relative;
- }
-
- .options-row {
- position: relative;
- flex-direction: column;
- flex-wrap: wrap;
- display: flex;
- text-align: center;
- align-items: center;
- margin-left: auto;
- margin-right: auto;
- margin-top: 8px;
- margin-bottom: 8px;
- }
-
- .options-row.full {
- min-width: 90%;
- }
-
- .options-block {
- display: flex;
- text-align: center;
- min-width: 90%;
- width: 90%;
- margin: auto;
- flex-direction: column;
- }
-
- .options-label {
- text-align: center;
- user-select: none;
- -webkit-user-select: none;
- margin-top: 12px;
- margin-bottom: 4px;
- }
-
- .options-block.options-block-optional {
- display: none;
- }
-
- body.show-extra-options .options-block.options-block-optional {
- display: flex;
- }
-
- .options-header {
- text-align: center;
- font-size: 24pt;
- margin-top: 10px;
- margin-bottom: 10px;
- background: #333;
- user-select: none;
- }
-
- .options-banner-buttons {
- width: 100%;
- text-align: center;
- margin-top: 10px;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- }
-
- .options-banner-button {
- display: inline-block;
- text-align: center;
- font-size: 16pt;
- color: #ddd;
- background: #262;
- text-decoration: none;
- user-select: none;
- -webkit-user-select: none;
- border-radius: 6pt;
- margin: 10px;
- border-color: #666;
- border-width: 3pt;
- border-style: outset;
- max-width: 100%;
- }
-
- .options-banner-button:hover {
- color: #eee;
- background: #282;
- }
-
- .options-banner-button:active {
- color: #fff;
- background: #2a2;
- border-style: inset;
- }
-
- .options-selector {
- font-size: 150%;
- width: 100%;
- }
-
- .button-img {
- height: 24pt;
- }
-
- #entities {
- position: absolute;
- user-select: none;
- -webkit-user-select: none;
- width: 100%;
- height: 100%;
- }
-
- #world {
- position: relative;
- flex: 1 1 85vw;
- height: 100%;
- overflow: hidden;
- }
-
- #menubar {
- display: flex;
- flex: 0 0 1vh;
- flex-direction: row;
- justify-content: space-evenly;
- align-items: center;
- flex-wrap: wrap;
- min-width: 100vw;
- background: #222;
- }
-
- #menubar.hover-delete {
- background: #922;
- }
-
- .menubar-group {
- display: grid;
- grid-template-rows: 1fr;
- grid-auto-flow: column;
- gap: 5px;
- padding: 5px 0px;
- }
-
- .menubar-group button {
- width: 64pt;
- height: 64pt;
- }
-
- .menubar-group button div ~ i {
- font-size: 18pt;
- position: absolute;
- top: 4px;
- margin: auto;
- left: 0;
- right: 0;
- }
-
- .menubar-group button div {
- font-size: 12pt;
- position: absolute;
- bottom: 4px;
- margin: auto;
- left: 0;
- right: 0;
- }
-
- .menubar-group input {
- font-size: 18pt;
- }
-
- .popout-group {
- margin: 20px;
- display: flex;
- flex-direction: column;
- }
-
- .menu-item {
- font-size: 24px;
- color: #ccc;
- margin: 20px;
- }
-
- select.menu-item {
- color: #000;
- }
-
- #rulers {
- position: absolute;
- display: block;
- width: 100%;
- height: 100%;
- background: #00000000;
- z-index: 1001;
- pointer-events: none;
- }
-
- #display {
- display: block;
- width: 100%;
- height: 100%;
- background: #333;
- }
-
- #options .options-label,
- #options .options-banner {
- flex: 0 1;
- font-size: 150%;
- }
-
- #options .options-label {
- width: 100%;
- }
-
- #options .options-banner {
- width: calc(100% - 20px);
- }
-
- input {
- padding: 2px;
- }
-
- select {
- padding: 2px;
- }
-
- .options-row .options-field-numeric {
- flex: 0 1 50%;
- font-size: 150%;
- width: 90%;
- padding-left: 4px;
- padding-right: 4px;
- }
-
- .options-row .options-field-text {
- flex: 1 0 90%;
- font-size: 150%;
- width: 90%;
- }
-
- .options-row .options-field-unit {
- flex: 0 1 50%;
- font-size: 150%;
- width: 90%;
- padding-left: 4px;
- padding-right: 4px;
- }
-
- .options-row .options-field-picker {
- flex: 1;
- width: 100%;
- min-width: 90%;
- max-width: 90%;
- font-size: 150%;
- overflow: hidden;
- white-space: pre-wrap;
- word-break: normal;
- text-overflow: ellipsis;
- }
-
- .options-row .symbol-button {
- width: 75px;
- font-size: 70px;
- }
- .options-row .options-button {
- flex: 1;
- width: 100%;
- font-size: 150%;
- }
-
- .options-block .options-button {
- flex: 1;
- width: 100%;
- font-size: 150%;
- }
-
- .options-row label {
- flex: 1;
- width: 100%;
- font-size: 150%;
- }
-
- body #test-canvas {
- position: fixed;
- top: 100px;
- left: 400px;
- z-index: 99999999;
- pointer-events: none;
- display: none;
- }
-
- .switch {
- height: 24pt;
- }
-
- .switch input {
- transform: scale(2);
- }
-
- .top-name {
- display: none;
- text-align: center;
- position: fixed;
- max-width: 150px;
- height: 50px;
- transform: translate(-50%, 20pt);
- z-index: 1001;
- }
-
- body.toggle-top-name .top-name.top-name-needed {
- display: block;
- }
-
- .top-name::after {
- display: block;
- background-image: url("./media/ui/arrow.svg");
- width: 70px;
- height: 70px;
- background-size: 70px 70px;
- background-repeat: no-repeat;
- content: "";
- transform: translate(0, -120%);
- }
-
- .bottom-name {
- display: none;
- text-align: center;
- position: fixed;
- width: 150px;
- height: 50px;
- z-index: 10001;
- transform: translate(-50%, 0pt);
- }
-
- body.toggle-bottom-name .bottom-name {
- display: inline;
- }
-
- #menubar input,
- #menubar select {
- font-size: 16pt;
- max-width: 120pt;
- min-width: 60pt;
- height: 40pt;
- max-height: 180pt;
- overflow: hidden;
- white-space: pre-wrap;
- word-break: normal;
- text-overflow: ellipsis;
- }
-
- @media (min-width: 600px) {
- #menubar input,
- #menubar select {
- max-width: 200pt;
- }
- }
-
- #menubar button {
- position: relative;
- font-size: 32pt;
- height: 40pt;
- z-index: 1;
- padding: 5px;
- }
-
- #open-help {
- padding-top: 1pt;
- }
-
- #open-help.highlighted::after {
- position: absolute;
- top: 0;
- left: 0;
- content: " ";
- display: block;
- height: 100%;
- width: 100%;
- background: inherit;
- filter: drop-shadow(0px 0px 10px white) drop-shadow(0px 0px 10px white);
- z-index: -1;
- animation: pulsing 5s linear 0s infinite;
- }
-
- @keyframes pulsing {
- 0% {
- opacity: 100%;
- }
- 50% {
- opacity: 25%;
- }
- 100% {
- opacity: 100%;
- }
- }
-
- a {
- color: #999;
- }
-
- #options-attribution-authors {
- text-align: center;
- }
-
- #options-attribution-owners {
- text-align: center;
- }
-
- #options-attribution-source {
- text-align: center;
- }
-
- #options-attribution-citations {
- text-align: center;
- }
-
- .no-transition {
- transition: 0s !important;
- }
-
- input[type=checkbox] {
- transform: scale(2);
- margin-left: 10px;
- margin-right: 10px;
- }
-
- input ~ label {
- user-select: none;
- -webkit-user-select: none;
- }
-
- body.toggle-height-bars .height-bar,
- .entity-box.selected .height-bar {
- display: block;
- }
-
- .height-bar {
- display: none;
- min-width: calc(var(--xpos));
- min-height: 3px;
- height: 3px;
- position: absolute;
- opacity: 50%;
- background: repeating-linear-gradient(90deg, #ffffff, #ffffff 20px, #ffffff00 20px, #ffffff00 40px);
- top: calc(-100% + var(--extra));
- left: calc(-1 * var(--xpos));
- transition: 0s all;
- z-index: -1;
- }
-
- .height-bar::before {
- display: block;
- background: gray;
- position: absolute;
- content: var(--entity-height);
- transition: 0s all;
- }
-
- .height-bar::after {
- display: block;
- min-width: 24px;
- min-height: 3px;
- background: #ffffff;
- position: absolute;
- left: calc(var(--xpos) - 24px);
- transition: 0s all;
- content: "";
- }
-
- .sr-only {
- position: absolute;
- width: 1px;
- height: 1px;
- padding: 0;
- margin: -1px;
- overflow: hidden;
- clip: rect(0,0,0,0);
- border: 0;
- }
-
- .bottom-cover {
- position: absolute;
- width: 100%;
- height: 100vh;
- left: 0%;
- top: calc(100% - 51px);
- }
- .transitions {
- transition: 0.2s all;
- }
-
- .rotate-forward {
- transform: rotate(-90deg);
- }
-
- .rotate-backward {
- transform: rotate(90deg);
- }
-
- .flipped {
- transform: rotate(180deg);
- }
-
- i.fas
- i.far {
- pointer-events: none;
- }
-
- #help-icons {
- display: flex;
- flex-direction: column;
- flex-wrap: wrap;
- width: 50vw;
- }
-
- #help-icons > div {
- flex-basis: 25%;
- font-size: 150%;
- }
-
- #entity-form,
- #entity-view {
- max-width: 90%;
- text-align: center;
- font-weight: bold;
- font-size: 200%;
- margin: auto;
- }
-
- #entity-view option {
- font-weight: normal;
- }
-
- #spawners > select,
- #spawners > button,
- #filters > select,
- #filters > button {
- display: none;
- }
-
- #spawners > select#category-picker,
- #filters > select#filter-picker {
- display: block;
- }
-
- #spawners > select.category-visible,
- #spawners > select.category-visible + button,
- #filters > select.category-visible,
- #filters > select.category-visible + button {
- display: block;
- }
-
- option.filtered {
- display: none;
- }
-
- @media (min-width: 600px)
- {
- #spawners > select,
- #filters > select {
- font-size: 24pt;
- }
- }
-
-
- #spawners > button {
- font-size: 30pt;
- }
-
- #spawners-categories {
- font-size: 24pt;
- }
-
- button {
- padding: 5px;
- }
-
- .scroll-button {
- transition: 0.2s;
- position: absolute;
- height: 20%;
- width: 50px;
- font-size: 28px;
- background: #ffffff33;
- border: 0px;
- z-index: 1002;
- }
-
- .scroll-button:active {
- background: #ffffff66;
- }
-
- .scroll-button:hover {
- transition: 0.2s;
- font-size: 32px;
- background: #ffffff44;
- }
-
- .scroll-button:disabled {
- transition: 0s;
- background: #ffffff11;
- font-size: 28px;
- }
-
- .extra-info {
- position: absolute;
- top: 5%;
- right: 5%;
- z-index: 1002;
- pointer-events: none;
- }
-
- #zoom-out {
- left: 0%;
- top: 0%;
- }
-
- #zoom-in {
- right: 0%;
- top: 0%;
- }
- #scroll-left {
- left: 0%;
- top: 20%;
- }
-
- #scroll-right {
- right: 0%;
- top: 20%;
- }
-
- #scroll-up {
- left: 0%;
- top: 40%;
- }
-
- #scroll-down {
- right: 0%;
- top: 40%;
- }
-
- #shrink {
- left: 0%;
- top: 60%;
- }
-
- #grow {
- right: 0%;
- top: 60%;
- }
-
- #ruler {
- left: 0%;
- top: 80%;
- }
-
- #fit {
- right: 0%;
- top: 80%;
- }
-
- #toggle-menu {
- padding-top: 2pt;
- position: relative;
- }
-
- .popout-menu {
- display: none;
- grid-template-columns: 1fr;
- gap: 5px;
- overflow-x: none;
- overflow-y: scroll;
- max-height: 80vh;
- justify-content: start;
- position: fixed;
- top: 10%;
- left: 10%;
- z-index: 10000;
- background: #222;
- border-color: #333;
- border-width: 5px;
- border-style: solid;
- }
-
- .popout-menu::-webkit-scrollbar {
- height: 2px;
- }
- .popout-menu::-webkit-scrollbar-button {
- width: 0px;
- height: 0px;
- }
- .popout-menu::-webkit-scrollbar-thumb {
- background: #e1e1e1;
- border: 0px none #ffffff;
- border-radius: 50px;
- }
- .popout-menu::-webkit-scrollbar-thumb:hover {
- background: #ffffff;
- }
- .popout-menu::-webkit-scrollbar-thumb:active {
- background: #000000;
- }
- .popout-menu::-webkit-scrollbar-track {
- background: #00000000;
- border: 0px none #ffffff;
- border-radius: 50px;
- }
- .popout-menu::-webkit-scrollbar-track:hover {
- background: #666666;
- }
- .popout-menu::-webkit-scrollbar-track:active {
- background: #333333;
- }
- .popout-menu::-webkit-scrollbar-corner {
- background: transparent;
- }
-
-
- .popout-menu.visible {
- display: grid;
- }
-
- .menu-button {
- height: 36pt;
- width: 36pt;
- font-size: 24pt;
- padding: 5px;
- }
-
- .menu-button-holder {
- display: flex;
- align-items: center;
- }
-
- .menu-text {
- font-size: 16pt;
- margin-left: 3pt;
- }
-
- #options-entity-defaults > button {
- word-break: break-word;
- }
-
- button {
- border: 3px;
- }
-
-
- button:hover {
- background: #555;
- }
- button:enabled:active {
- background: #aaa;
- }
-
- .toast {
- position: absolute;
- bottom: 10%;
- left: 50%;
- animation-name: toast-animation;
- animation-duration: 5s;
- animation-timing-function: linear;
- z-index: 99999;
- }
-
- @keyframes toast-animation {
- 0% {
- transform: translate(-50%, 0);
- opacity: 1;
- }
- 50% {
- transform: translate(-50%, -10vh);
- opacity: 1;
- }
- 100% {
- transform: translate(-50%, -20vh);
- opacity: 0;
- }
- }
-
- body.flag-nsfw .nsfw {
- color: red;
- font-style: bold;
- }
-
- select {
- background: #111;
- color: #eee;
- border-color: #444;
- }
-
-
- select > option {
- color: #eee;
- }
-
- button:focus,
- select:focus,
- input:focus {
- outline-color: #eee;
- }
-
- input {
- background: #111;
- color: #eee;
- border-color: #444;
- }
-
- button {
- background: #111;
- color: #ddd;
- border-color: #666;
- }
-
- .settings-holder {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 10px 20px 10px 10px;
- max-width: 400pt;
- }
-
- .settings-holder.enabled {
- background: green;
- border-color: darkgreen;
- }
-
- .settings-desc {
- margin-left: 8pt;
- user-select: none;
- -webkit-user-select: none;
- flex: 1;
- color: #ddd;
- }
-
- .settings-holder.disabled {
- background: gray;
- border-color: darkslategray;
- }
-
- .settings-name {
- font-size: 150%;
- margin-left: 8pt;
- user-select: none;
- -webkit-user-select: none;
- max-width: 200pt;
- width: 200pt;
- }
-
- .settings-vertical {
- display: flex;
- flex-direction: column;
- width: 250pt;
- max-width: 250pt;
- min-width: 250pt;
- }
-
- .settings-holder > select {
- height: 100%;
- background: #555;
- font-size: 16pt;
- width: 100%;
- }
-
- .settings-holder.enabled > select {
- background: darkgreen;
- }
-
- .filter-button > i {
- color: gray;
- }
-
- .button-counter {
- position: absolute;
- color: white;
- opacity: 0.75;
- width: 25%;
- height: 25%;
- font-size: 16pt;
- top: 0%;
- left: 0%;
- z-index: 1;
- user-select: none;
- -webkit-user-select: none;
- }
-
- body.screenshot-mode #menubar,
- body.screenshot-mode #options,
- body.screenshot-mode .scroll-button {
- display: none;
- }
-
- #ground {
- --ground-color: #000;
- background-color: var(--ground-color);
- }
-
- .filter-holder {
- user-select: none;
- -webkit-user-select: none;
- }
-
- .filter-holder > select {
- font-size: 150%;
- width: 100%;
- }
-
- .filter-holder > div {
- font-size: 150%;
- flex-basis: 150pt;
- }
-
- .filter-holder {
- display: flex;
- align-items: center;
- justify-content: left space-between;
- padding: 10px 20px 10px 10px;
- background: gray;
- }
-
- .filter-holder.enabled {
- background: green;
- border-color: darkgreen;
- }
-
- .info-holder > div,
- .info-holder > i {
- font-size: 150%;
- margin: 10px;
- }
-
- .info-holder {
- display: flex;
- align-items: center;
- justify-content: left;
- padding: 10px 20px 10px 10px;
- background: gray;
- text-decoration: none;
- user-select: none;
- -webkit-user-select: none;
- color: white;
- }
-
- .info-holder:hover {
- background-color: lightgray;
- }
-
- .submit-button {
- display: flex;
- font-size: 16pt;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 4px;
- background: gray;
- border-color: darkslategray;
- border-width: 5px;
- border-style: solid;
- text-decoration: none;
- user-select: none;
- -webkit-user-select: none;
- color: white;
- }
-
- .submit-button:hover {
- background-color: lightgray;
- }
-
- .submit-button > div,
- .submit-button > i {
- margin: 2px;
- text-align: center;
- }
-
- .attribute-label {
- display: flex;
- justify-content: space-between;
- text-align: center;
- user-select: none;
- -webkit-user-select: none;
- margin-top: 12px;
- margin-bottom: 4px;
- font-size: 18pt;
- }
-
- .attribute-edit-button {
- margin: auto;
- }
-
- #options-view,
- #options-entity {
- display: flex;
- flex-direction: column;
- }
-
- .settings-category-label {
- font-size: 200%;
- margin: auto;
- padding: 5px;
- }
|