Sidebar rtl

pull/6634/head
tugcekucukoglu 2024-10-21 10:46:05 +03:00
parent fe6e4f65de
commit 1e600dc660
2 changed files with 23 additions and 19 deletions

View File

@ -9,7 +9,7 @@
flex-direction: column; flex-direction: column;
padding: 0 0 0 0; padding: 0 0 0 0;
flex: 0 0 250px; flex: 0 0 250px;
margin-right: 4rem; margin-inline-end: 4rem;
overflow: auto; overflow: auto;
.logo { .logo {
@ -18,7 +18,8 @@
} }
nav { nav {
padding: 0 1rem 0 0; padding: 0;
padding-inline-end: 1rem;
margin: 0; margin: 0;
flex-grow: 1; flex-grow: 1;
} }
@ -56,7 +57,7 @@
width: 2rem; width: 2rem;
height: 2rem; height: 2rem;
border-radius: 6px; border-radius: 6px;
margin-right: .5rem; margin-inline-end: .5rem;
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@ -73,7 +74,7 @@
.menu-toggle-icon { .menu-toggle-icon {
color: var(--text-secondary-color); color: var(--text-secondary-color);
margin-left: auto; margin-inline-start: auto;
} }
&:hover { &:hover {
@ -105,18 +106,20 @@
overflow: hidden; overflow: hidden;
ol { ol {
margin: 0 0 0 1rem; margin: 0;
margin-inline-start: 1rem;
padding: .25rem 0; padding: .25rem 0;
list-style: none; list-style: none;
li { li {
a { a {
border-left: 1px solid var(--border-color); border-inline-start: 1px solid var(--border-color);
transition: all .2s; transition: all .2s;
font-weight: 450; font-weight: 450;
display: flex; display: flex;
align-items: center; align-items: center;
padding: .5rem .5rem .5rem 1rem; padding: .5rem;
padding-inline-start: 1rem;
color: var(--text-secondary-color); color: var(--text-secondary-color);
transition: outline-color 0.2s, border-color .2s; transition: outline-color 0.2s, border-color .2s;
outline-color: transparent; outline-color: transparent;
@ -153,7 +156,7 @@
.p-tag { .p-tag {
position: absolute; position: absolute;
right: 0; inset-inline-end: 0;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
@ -165,7 +168,8 @@
.menu-child-category { .menu-child-category {
display: flex; display: flex;
padding: .5rem .5rem .5rem 0; padding: .5rem;
padding-inline-start: 0;
font-size: .875rem; font-size: .875rem;
font-weight: 600; font-weight: 600;
letter-spacing: 1px; letter-spacing: 1px;

View File

@ -52,7 +52,7 @@
width: 25px; width: 25px;
} }
} }
.menu-button { .menu-button {
display: none; display: none;
} }
@ -84,13 +84,13 @@
outline-color: transparent; outline-color: transparent;
background-color: var(--card-background); background-color: var(--card-background);
cursor: pointer; cursor: pointer;
@include focus-visible(); @include focus-visible();
&:hover { &:hover {
border-color: var(--primary-color); border-color: var(--primary-color);
} }
i, span { i, span {
color: var(--text-color); color: var(--text-color);
} }
@ -98,7 +98,7 @@
.config-item { .config-item {
background-color: var(--primary-color); background-color: var(--primary-color);
i { i {
color: var(--primary-contrast-color); color: var(--primary-contrast-color);
} }
@ -107,7 +107,7 @@
.config-panel { .config-panel {
position: absolute; position: absolute;
top: calc(100% + 2px); top: calc(100% + 2px);
right: 0; inset-inline-end: 0;
width: 18rem; width: 18rem;
padding: .75rem; padding: .75rem;
background-color: var(--overlay-background); background-color: var(--overlay-background);
@ -115,7 +115,7 @@
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
transform-origin: top; transform-origin: top;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
.config-panel-content { .config-panel-content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -135,7 +135,7 @@
display: flex; display: flex;
gap: .5rem; gap: .5rem;
flex-wrap: wrap; flex-wrap: wrap;
button { button {
border: none; border: none;
width: 1.25rem; width: 1.25rem;
@ -147,7 +147,7 @@
outline-width: 2px; outline-width: 2px;
outline-style: solid; outline-style: solid;
outline-offset: 1px; outline-offset: 1px;
&.active-color { &.active-color {
outline-color: var(--primary-color); outline-color: var(--primary-color);
} }
@ -218,4 +218,4 @@
} }
} }
} }
} }