fix: place page scrollbar on the left
This commit is contained in:
13
src/app.css
13
src/app.css
@@ -109,17 +109,28 @@
|
|||||||
}
|
}
|
||||||
html {
|
html {
|
||||||
background: var(--canvas);
|
background: var(--canvas);
|
||||||
|
direction: rtl;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
min-width: 320px;
|
min-width: 320px;
|
||||||
min-height: 100vh;
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
direction: rtl;
|
||||||
background: var(--canvas);
|
background: var(--canvas);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
font-family: 'IRANYekanX', Tahoma, sans-serif;
|
font-family: 'IRANYekanX', Tahoma, sans-serif;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
}
|
}
|
||||||
|
#app-scroll-root {
|
||||||
|
height: 100%;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
button,
|
button,
|
||||||
input,
|
input,
|
||||||
select {
|
select {
|
||||||
|
|||||||
@@ -18,6 +18,6 @@
|
|||||||
%sveltekit.head%
|
%sveltekit.head%
|
||||||
</head>
|
</head>
|
||||||
<body data-sveltekit-preload-data="hover">
|
<body data-sveltekit-preload-data="hover">
|
||||||
<div style="display: contents">%sveltekit.body%</div>
|
<div id="app-scroll-root">%sveltekit.body%</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user