Align styles for mobile devices
- Updated styles so the page renders properly on mobile devices - Fixed visible overflowing SideMenu - Updated global font size to 12px
This commit is contained in:
parent
7dcd8ff29d
commit
142056b8f1
@ -1,13 +1,5 @@
|
|||||||
body {
|
|
||||||
background-color: var(--background-color);
|
|
||||||
color: var(--text-color);
|
|
||||||
font-family: monospace;
|
|
||||||
}
|
|
||||||
|
|
||||||
.App {
|
.App {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100vw;
|
|
||||||
height: 100vh;
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
@ -35,8 +27,8 @@ select {
|
|||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
padding-inline: 8px;
|
padding-inline: 8px;
|
||||||
padding-block: 4px;
|
padding-block: 4px;
|
||||||
outline: none;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="file"].non-transparent::file-selector-button,
|
input[type="file"].non-transparent::file-selector-button,
|
||||||
|
|||||||
@ -19,8 +19,8 @@
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
position: relative;
|
position: relative;
|
||||||
min-width: 20em;
|
min-width: 15em;
|
||||||
max-width: 40em;
|
max-width: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog.wide {
|
.dialog.wide {
|
||||||
|
|||||||
@ -1,8 +1,13 @@
|
|||||||
|
.scenery-info-view table {
|
||||||
|
border-spacing: 0 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.scenery-info-view td.label {
|
.scenery-info-view td.label {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: var(--text-color-disabled);
|
color: var(--text-color-disabled);
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
padding-right: 1em;
|
padding-right: 1em;
|
||||||
|
width: 6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scenery-info-view td.value a {
|
.scenery-info-view td.value a {
|
||||||
|
|||||||
@ -1,23 +1,35 @@
|
|||||||
.side-menu-wrapper {
|
.side-menu-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.side-menu {
|
.side-menu {
|
||||||
border-left: 2px solid var(--border-color);
|
border-left: 2px solid var(--border-color);
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
z-index: 50;
|
z-index: 50;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
transition: transform 0.2s ease-in-out;
|
visibility: visible;
|
||||||
|
transition:
|
||||||
|
transform 0.3s ease,
|
||||||
|
visibility 0s linear 0s;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.side-menu.closed {
|
||||||
|
transform: translateX(100%);
|
||||||
|
visibility: hidden;
|
||||||
|
transition:
|
||||||
|
transform 0.3s ease,
|
||||||
|
visibility 0s linear 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
.layer-options-menu {
|
.layer-options-menu {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -29,19 +41,10 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.side-menu .hidden {
|
|
||||||
visibility: hidden;
|
|
||||||
height: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.side-menu h3 {
|
.side-menu h3 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.side-menu.closed {
|
|
||||||
transform: translateX(100%);
|
|
||||||
}
|
|
||||||
|
|
||||||
.layers-menu ul {
|
.layers-menu ul {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding-inline-start: 0;
|
padding-inline-start: 0;
|
||||||
|
|||||||
@ -3,13 +3,22 @@
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 32px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border-bottom: 2px solid var(--border-color);
|
border-bottom: 2px solid var(--border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-spacer {
|
.toolbar-group {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-right {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-cont {
|
.toolbar-cont {
|
||||||
|
|||||||
@ -15,15 +15,18 @@ export default function Toolbar() {
|
|||||||
return (
|
return (
|
||||||
<div className='toolbar-cont'>
|
<div className='toolbar-cont'>
|
||||||
{!isEmbedded && <div className='toolbar'>
|
{!isEmbedded && <div className='toolbar'>
|
||||||
|
<div className='toolbar-group toolbar-left'>
|
||||||
{ Constants.showBackMaseuko && <BackMaseuko /> }
|
{ Constants.showBackMaseuko && <BackMaseuko /> }
|
||||||
<SceneryList />
|
<SceneryList />
|
||||||
or
|
or
|
||||||
<CustomFileSelect />
|
<CustomFileSelect />
|
||||||
<ElectrificationStepMode />
|
<ElectrificationStepMode />
|
||||||
<div className='toolbar-spacer'></div>
|
</div>
|
||||||
|
<div className='toolbar-group toolbar-right'>
|
||||||
<ThemeToggle />
|
<ThemeToggle />
|
||||||
<SideMenuToggle />
|
<SideMenuToggle />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
<div className='loading-indicator-cont'>
|
<div className='loading-indicator-cont'>
|
||||||
<LoadingIndicator />
|
<LoadingIndicator />
|
||||||
|
|||||||
@ -1,8 +1,17 @@
|
|||||||
body {
|
body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
background-color: var(--background-color);
|
||||||
overflow: hidden;
|
color: var(--text-color);
|
||||||
background-color: #111;
|
font-size: 12px;
|
||||||
color: #eee;
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
html,
|
||||||
|
body,
|
||||||
|
.App,
|
||||||
|
#root {
|
||||||
|
overflow: hidden;
|
||||||
|
width: 100svw;
|
||||||
|
height: 100svh;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user