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