diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 34d6584c..f625be91 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -12,7 +12,13 @@ "options_improve_configurator": { "message": "Send anonymous usage data to the developer team" }, - + "options_unit_type": { + "message": "Set how the units render on the configurator only" + }, + "options_render": { + "message": "Configurator rendering options" + }, + "connect": { "message": "Connect" }, diff --git a/main.css b/main.css index 80672514..8351cacf 100644 --- a/main.css +++ b/main.css @@ -516,6 +516,11 @@ input[type="number"]::-webkit-inner-spin-button { z-index: 10000; } +/* options modified GUI BOX */ +#options-window .gui_box { + float: none; +} + .options_container__checkbox input { float: left; margin-top: 3px; @@ -2198,4 +2203,37 @@ ol li { .red-background td, .red-background th { background-color: tomato !important; -} \ No newline at end of file +} + +/* Wrapper for inputs with unit displays */ +.unit_wrapper { + display: inline-block; + position: relative; +} + +/* Position the unit to the right of the wrapper */ +.unit_wrapper::after { + position: absolute; + top: 2px; + right: .7em; + transition: all .05s ease-in-out; +} + +/* Move unit more to the left on hover or focus within + for arrow buttons will appear to the right of number inputs */ +.unit_wrapper:hover::after, +.unit_wrapper:focus-within::after { + right: 1.3em; +} + +/* Handle Firefox (arrows always shown) */ +@supports (-moz-appearance:none) { + .unit_wrapper::after { + right: 1.3em; + } +} + +/* Set the unit abbreviation for each unit class */ +.unit::after { + content: attr(data-unit) ; +} diff --git a/tabs/advanced_tuning.html b/tabs/advanced_tuning.html index f24e55ed..8edd2b87 100644 --- a/tabs/advanced_tuning.html +++ b/tabs/advanced_tuning.html @@ -21,7 +21,7 @@