fix styles
This commit is contained in:
parent
d39c210c87
commit
2a0958e143
4 changed files with 20 additions and 6 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid {
|
body {
|
||||||
background-size: var(--unit--horizontal) var(--unit--vertical);
|
background-size: var(--unit--horizontal) var(--unit--vertical);
|
||||||
background-image: linear-gradient(
|
background-image: linear-gradient(
|
||||||
to right,
|
to right,
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,23 @@
|
||||||
|
html {
|
||||||
|
position: fixed;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100%;
|
||||||
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background-color: var(--color-background);
|
background-color: var(--color-background);
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
|
||||||
overflow-x: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 0 var(--unit--horizontal);
|
padding: 0 var(--unit--horizontal);
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
.panel {
|
.panel {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100svh;
|
height: 100dvh;
|
||||||
top: 0;
|
top: 0;
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
outline: 1px solid #fff;
|
outline: 1px solid #fff;
|
||||||
|
|
@ -61,6 +61,10 @@
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.panel ul {
|
||||||
|
margin-bottom: calc(var(--unit--vertical) * 4);
|
||||||
|
}
|
||||||
|
|
||||||
.panel--left {
|
.panel--left {
|
||||||
left: calc(-100% - var(--unit--horizontal) * 2 - 1px);
|
left: calc(-100% - var(--unit--horizontal) * 2 - 1px);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@
|
||||||
<li
|
<li
|
||||||
class="panel__item"
|
class="panel__item"
|
||||||
x-data='{ category: false }'
|
x-data='{ category: false }'
|
||||||
|
x-show="<?= count($category['texts']) ?> > 0"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
class="panel__toggle-btn"
|
class="panel__toggle-btn"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue