mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-24 12:08:55 +01:00
web/settings: slightly update navigation style on mobile
This commit is contained in:
parent
70264f3691
commit
24f2329e9d
2 changed files with 25 additions and 21 deletions
|
@ -24,6 +24,8 @@
|
||||||
|
|
||||||
#settings-section {
|
#settings-section {
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#settings-section-title {
|
#settings-section-title {
|
||||||
|
|
|
@ -22,7 +22,9 @@
|
||||||
<div class="tab-icon" style="background: var(--{iconColor})">
|
<div class="tab-icon" style="background: var(--{iconColor})">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
<span>{$t(`settings.page.${tabName}`)}</span>
|
<div class="settings-tab-text">
|
||||||
|
<span>{$t(`settings.page.${tabName}`)}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="settings-tab-chevron">
|
<div class="settings-tab-chevron">
|
||||||
<IconChevronRight />
|
<IconChevronRight />
|
||||||
|
@ -57,19 +59,27 @@
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-tab :global(svg) {
|
.tab-icon {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
padding: var(--small-padding);
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.settings-tab .tab-icon :global(svg) {
|
||||||
stroke-width: 1.5px;
|
stroke-width: 1.5px;
|
||||||
|
stroke: var(--white);
|
||||||
height: 20px;
|
height: 20px;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-tab .tab-icon :global(svg) {
|
|
||||||
stroke: var(--white);
|
|
||||||
}
|
|
||||||
|
|
||||||
.settings-tab-chevron :global(svg) {
|
.settings-tab-chevron :global(svg) {
|
||||||
display: none;
|
display: none;
|
||||||
stroke: var(--secondary);
|
stroke-width: 2px;
|
||||||
|
stroke: var(--gray);
|
||||||
|
height: 18px;
|
||||||
|
width: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (hover: hover) {
|
@media (hover: hover) {
|
||||||
|
@ -91,29 +101,17 @@
|
||||||
font-size: 14.5px;
|
font-size: 14.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-icon {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
padding: var(--small-padding);
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 750px) {
|
@media screen and (max-width: 750px) {
|
||||||
.settings-tab {
|
.settings-tab {
|
||||||
--big-padding: 7px;
|
--big-padding: 7px;
|
||||||
background: none;
|
background: none;
|
||||||
padding: var(--big-padding) calc(var(--big-padding) * 1.5);
|
padding: var(--big-padding) 11px;
|
||||||
}
|
|
||||||
|
|
||||||
.settings-tab-left {
|
|
||||||
gap: calc(var(--big-padding) * 1.5);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-tab:not(:last-child) {
|
.settings-tab:not(:last-child) {
|
||||||
border-bottom-left-radius: 0;
|
border-bottom-left-radius: 0;
|
||||||
border-bottom-right-radius: 0;
|
border-bottom-right-radius: 0;
|
||||||
box-shadow: 0 3px 0px -1.7px var(--button-stroke);
|
box-shadow: 48px 3px 0px -1.8px var(--button-stroke);
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-tab:not(:first-child) {
|
.settings-tab:not(:first-child) {
|
||||||
|
@ -121,6 +119,10 @@
|
||||||
border-top-right-radius: 0;
|
border-top-right-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.settings-tab-left {
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.settings-tab-chevron :global(svg) {
|
.settings-tab-chevron :global(svg) {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue