Quellcode durchsuchen

Improve sidebar styling

tags/v0.1.0
Fen Dweller vor 6 Jahren
Ursprung
Commit
32bfc22095
2 geänderte Dateien mit 15 neuen und 22 gelöschten Zeilen
  1. +14
    -22
      macrovision.css
  2. +1
    -0
      macrovision.js

+ 14
- 22
macrovision.css Datei anzeigen

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

.options-category {
position: relative;
}

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

.options-block {
@@ -176,21 +182,6 @@ body.show-extra-options .options-block.options-block-optional {
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 {
text-align: center;
font-size: 24pt;
@@ -211,7 +202,8 @@ body.show-extra-options .options-block.options-block-optional {
}

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

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

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

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

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



+ 1
- 0
macrovision.js Datei anzeigen

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

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

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


Laden…
Abbrechen
Speichern