💄 Change scrollbar behaviour
This commit is contained in:
@ -25,9 +25,9 @@ function swipeHandler(direction) {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<TitleBar />
|
<TitleBar />
|
||||||
|
<DateSelector v-show="isDataView" />
|
||||||
<div class="center" v-touch:swipe="swipeHandler">
|
<div class="center" v-touch:swipe="swipeHandler">
|
||||||
<main>
|
<main>
|
||||||
<DateSelector v-show="isDataView" />
|
|
||||||
<LoadingElement :active="loading" v-show="isDataView" />
|
<LoadingElement :active="loading" v-show="isDataView" />
|
||||||
<RouterView />
|
<RouterView />
|
||||||
</main>
|
</main>
|
||||||
@ -55,7 +55,9 @@ body {
|
|||||||
.center {
|
.center {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-height: 100vh;
|
height: calc(100vh - 99px);
|
||||||
|
overflow-y: auto;
|
||||||
|
overflow: overlay;
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
@ -43,3 +43,18 @@
|
|||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
src: url(/fonts/SourceSansPro-ExtraLight.ttf) format("truetype");
|
src: url(/fonts/SourceSansPro-ExtraLight.ttf) format("truetype");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 4px;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: #00000000;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: #616060;
|
||||||
|
}
|
||||||
|
@ -28,7 +28,7 @@ const dayNames = [
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.selector {
|
.selector {
|
||||||
padding: 65px 10px 0px 10px;
|
padding: 65px 10px 10px 10px;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 35px 1fr 35px;
|
grid-template-columns: 35px 1fr 35px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -76,7 +76,7 @@ function getColor(type) {
|
|||||||
display: grid;
|
display: grid;
|
||||||
min-height: 35px;
|
min-height: 35px;
|
||||||
border-radius: 11px;
|
border-radius: 11px;
|
||||||
margin: 10px 0px;
|
margin-bottom: 10px;
|
||||||
padding: 10px 10px;
|
padding: 10px 10px;
|
||||||
grid-template-columns: min-content auto;
|
grid-template-columns: min-content auto;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
|
@ -41,7 +41,7 @@ const substitutions = computed(() => {
|
|||||||
background-color: var(--substitution-background-unchanged);
|
background-color: var(--substitution-background-unchanged);
|
||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
border-radius: 11px;
|
border-radius: 11px;
|
||||||
margin: 10px 0px;
|
margin-bottom: 10px;
|
||||||
padding: 10px 15px;
|
padding: 10px 15px;
|
||||||
grid-template-columns: max-content auto;
|
grid-template-columns: max-content auto;
|
||||||
gap: 15px;
|
gap: 15px;
|
||||||
|
@ -118,7 +118,7 @@ function isCancelled(substitution) {
|
|||||||
background-color: var(--timetable-trust-warning-background);
|
background-color: var(--timetable-trust-warning-background);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 3px 10px;
|
padding: 3px 10px;
|
||||||
margin-top: 10px;
|
margin-bottom: 10px;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user