Selaa lähdekoodia

Improve sidebar styling

tags/v0.1.0
Fen Dweller 6 vuotta sitten
vanhempi
commit
32bfc22095
2 muutettua tiedostoa jossa 15 lisäystä ja 22 poistoa
  1. +14
    -22
      macrovision.css
  2. +1
    -0
      macrovision.js

+ 14
- 22
macrovision.css Näytä tiedosto

@@ -141,15 +141,21 @@ body.toggle-entity-glow .entity-box:not(.selected) > img{
justify-content: space-evenly; justify-content: space-evenly;
} }


.options-category {
position: relative;
}

.options-row { .options-row {
position: relative;
flex-direction: column;
display: flex; display: flex;
text-align: center; text-align: center;
align-items: center; align-items: center;
width: 90%;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
margin-top: 8px; margin-top: 8px;
margin-bottom: 8px; margin-bottom: 8px;
max-width: 90%;
} }


.options-block { .options-block {
@@ -176,21 +182,6 @@ body.show-extra-options .options-block.options-block-optional {
display: flex; display: flex;
} }


@media (max-aspect-ratio: 1/1) {

.options-row {
flex-direction: column;
}

.options-row > .options-field-numeric {
width: 100%;
}

.options-row > .options-field-unit {
width: 100%;
}
}

.options-header { .options-header {
text-align: center; text-align: center;
font-size: 24pt; font-size: 24pt;
@@ -211,7 +202,8 @@ body.show-extra-options .options-block.options-block-optional {
} }


.options-banner:hover { .options-banner:hover {
background: #454;
color: #222;
background: #494;
} }


.options-selector { .options-selector {
@@ -286,20 +278,20 @@ body.toggle-scale #display {
} }


.options-row .options-field-numeric { .options-row .options-field-numeric {
flex: 1 1 60%;
min-width: 0px;
flex: 1 1 100%;
max-width: 90%;
font-size: 150%; font-size: 150%;
} }


.options-row .options-field-text { .options-row .options-field-text {
flex: 1 1 100%; flex: 1 1 100%;
min-width: 0px;
max-width: 90%;
font-size: 150%; font-size: 150%;
} }


.options-row .options-field-unit { .options-row .options-field-unit {
flex: 1 1 40%;
min-width: 0px;
flex: 1 1 10%;
max-width: 90%;
font-size: 150%; font-size: 150%;
} }




+ 1
- 0
macrovision.js Näytä tiedosto

@@ -607,6 +607,7 @@ function configViewOptions(entity, view) {
input.value = entity.views[view][key].value; input.value = entity.views[view][key].value;


const select = document.createElement("select"); const select = document.createElement("select");
select.classList.add("options-field-unit");
select.id = "options-view-" + key + "-select" select.id = "options-view-" + key + "-select"


unitChoices[val.type].forEach(name => { unitChoices[val.type].forEach(name => {


Loading…
Peruuta
Tallenna