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

View File

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