From 41c1b45b6bf9059431df824122ab8e2e3523b26f Mon Sep 17 00:00:00 2001 From: Azgaar Date: Fri, 10 Sep 2021 00:22:07 +0300 Subject: [PATCH] menu style - grid layout --- index.css | 25 ++++++++++++++----------- index.html | 30 +++++++++++++++--------------- modules/ui/heightmap-editor.js | 2 +- 3 files changed, 30 insertions(+), 27 deletions(-) diff --git a/index.css b/index.css index dd252440..97c4750b 100644 --- a/index.css +++ b/index.css @@ -540,18 +540,10 @@ input[type="color"]::-webkit-color-swatch-wrapper { font-weight: bold; } -#layersContent button.presetButton { - position: absolute; - height: 2em; +.tabcontent button.sideButton { border-radius: 15%; - margin: 1.3em 0 0 0.6em; - font-size: 0.7em; -} - -#styleContent button.styleButton { - font-size: 70%; - border-radius: 15%; - margin: 0; + font-size: 0.8em; + margin-bottom: -1em; } #layersContent button.active, @@ -672,6 +664,17 @@ button.active { background-color: #a8879d !important; } +#toolsContent div { + display: grid; + grid-template-columns: repeat(4, 1fr); + margin: 0.2em 0; +} + +#toolsContent button { + padding: 0.35em 0; + margin: 0.16em 0.12em; +} + #mapLayers { display: inline-block; padding: 0; diff --git a/index.html b/index.html index 982ecca3..acf07e3a 100644 --- a/index.html +++ b/index.html @@ -273,8 +273,8 @@ - - + +

Displayed layers and layers order: