Mobile layout (fix #2)
This commit is contained in:
@@ -32,9 +32,11 @@ function handleStateChange(newState : string, newLane: number) {
|
||||
</div>
|
||||
|
||||
<h2 :class="'sidebar-link ' + (state == 'runes' && laneState == i ? 'sidebar-link-selected' : '')"
|
||||
@click="handleStateChange('runes', i)" style="margin-top: 10px; font-size: 1.9rem; padding-left: 35px;">Runes</h2>
|
||||
@click="handleStateChange('runes', i)"
|
||||
style="margin-top: 10px; font-size: 1.9rem; padding-left: 35px;">Runes</h2>
|
||||
<h2 :class="'sidebar-link ' + (state == 'items' && laneState == i ? 'sidebar-link-selected' : '')"
|
||||
@click="handleStateChange('items', i)" style="margin-top: 10px; font-size: 1.9rem; padding-left: 35px;">Items</h2>
|
||||
@click="handleStateChange('items', i)"
|
||||
style="margin-top: 10px; font-size: 1.9rem; padding-left: 35px;">Items</h2>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -67,4 +69,10 @@ function handleStateChange(newState : string, newLane: number) {
|
||||
.sidebar-link-selected {
|
||||
background-color: var(--color-surface);
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1200px) {
|
||||
.sidebar-container {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user