mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-18 16:21:37 +03:00
Style adjustments for Settings page
This commit is contained in:
parent
10b99d2af4
commit
791ac667f0
2 changed files with 10 additions and 15 deletions
|
@ -14,13 +14,14 @@
|
||||||
|
|
||||||
#settings-container :is(section, .section) {
|
#settings-container :is(section, .section) {
|
||||||
background-color: var(--bg-color);
|
background-color: var(--bg-color);
|
||||||
margin: 0 -16px;
|
margin: 0;
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
border-top: var(--hairline-width) solid var(--outline-color);
|
border-top: var(--hairline-width) solid var(--outline-color);
|
||||||
border-bottom: var(--hairline-width) solid var(--outline-color);
|
border-bottom: var(--hairline-width) solid var(--outline-color);
|
||||||
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
#settings-container :is(section, .section) > li + li {
|
#settings-container :is(section, .section) > li:last-child {
|
||||||
border-top: var(--hairline-width) solid var(--outline-color);
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#settings-container ul {
|
#settings-container ul {
|
||||||
|
@ -29,11 +30,12 @@
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
#settings-container ul li {
|
#settings-container ul li {
|
||||||
padding: 8px 0;
|
padding: 8px 0 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
border-bottom: var(--hairline-width) solid var(--outline-color);
|
||||||
}
|
}
|
||||||
#settings-container ul li .current {
|
#settings-container ul li .current {
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
|
@ -44,14 +46,14 @@
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
#settings-container ul li .current.is-current + .avatar {
|
#settings-container ul li .current.is-current + .avatar {
|
||||||
box-shadow: 0 0 0 1.5px var(--green-color);
|
box-shadow: 0 0 0 1.5px var(--green-color), 0 0 8px var(--green-color);
|
||||||
}
|
}
|
||||||
#settings-container ul li > div {
|
#settings-container ul li > div {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
#settings-container ul li > div.actions {
|
#settings-container ul li > div.actions {
|
||||||
flex-basis: min-content;
|
flex-basis: fit-content;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
#settings-container ul li > div:last-child {
|
#settings-container ul li > div:last-child {
|
||||||
|
@ -98,10 +100,3 @@
|
||||||
#settings-container .radio-group label:has(input:checked) input:checked + span {
|
#settings-container .radio-group label:has(input:checked) input:checked + span {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 40em) {
|
|
||||||
#settings-container :is(section, .section) {
|
|
||||||
margin-inline: 0;
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ function Settings({ onClose }) {
|
||||||
<Icon icon="transfer" /> Switch
|
<Icon icon="transfer" /> Switch
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<div>
|
<span>
|
||||||
{!isDefault && moreThanOneAccount && (
|
{!isDefault && moreThanOneAccount && (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
@ -128,7 +128,7 @@ function Settings({ onClose }) {
|
||||||
</button>
|
</button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue