mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-12-29 21:58:14 +03:00
111 lines
2.6 KiB
CSS
111 lines
2.6 KiB
CSS
#shortcuts-settings-container .shortcuts-list {
|
|
line-height: 1.5;
|
|
padding: 0;
|
|
margin: 8px 0 0;
|
|
counter-reset: index;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
#shortcuts-settings-container .shortcuts-list li {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px;
|
|
gap: 4px;
|
|
background-color: var(--bg-faded-color);
|
|
}
|
|
#shortcuts-settings-container .shortcuts-list li::before {
|
|
content: counter(index);
|
|
counter-increment: index;
|
|
display: inline-block;
|
|
width: 1.2em;
|
|
text-align: right;
|
|
margin-right: 8px;
|
|
color: var(--text-insignificant-color);
|
|
font-size: 90%;
|
|
}
|
|
#shortcuts-settings-container .shortcuts-list li .shortcut-text {
|
|
flex-grow: 1;
|
|
}
|
|
#shortcuts-settings-container .shortcuts-list li .shortcut-actions {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
#shortcuts-settings-container .shortcuts-view-mode {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
margin: 8px 0 0;
|
|
}
|
|
#shortcuts-settings-container .shortcuts-view-mode label {
|
|
border-radius: 4px;
|
|
background-color: var(--bg-faded-color);
|
|
padding: 16px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
display: block;
|
|
flex-grow: 1;
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
#shortcuts-settings-container .shortcuts-view-mode label:first-child {
|
|
border-top-left-radius: 16px;
|
|
border-bottom-left-radius: 16px;
|
|
}
|
|
#shortcuts-settings-container .shortcuts-view-mode label:last-child {
|
|
border-top-right-radius: 16px;
|
|
border-bottom-right-radius: 16px;
|
|
}
|
|
#shortcuts-settings-container .shortcuts-view-mode label img {
|
|
max-height: 64px;
|
|
}
|
|
#shortcuts-settings-container .shortcuts-view-mode label span {
|
|
text-align: center;
|
|
font-size: 80%;
|
|
}
|
|
#shortcuts-settings-container .shortcuts-view-mode label input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
#shortcuts-settings-container .shortcuts-view-mode label input ~ * {
|
|
opacity: 0.5;
|
|
transition: opacity 0.2s;
|
|
}
|
|
#shortcuts-settings-container .shortcuts-view-mode label:has(input:checked) {
|
|
box-shadow: inset 0 0 0 3px var(--link-color);
|
|
}
|
|
#shortcuts-settings-container
|
|
.shortcuts-view-mode
|
|
label
|
|
input:is(:hover, :active, :checked)
|
|
~ * {
|
|
opacity: 1;
|
|
}
|
|
|
|
#shortcuts-settings-container summary {
|
|
cursor: pointer;
|
|
}
|
|
|
|
#shortcut-settings-form form > * {
|
|
}
|
|
|
|
#shortcut-settings-form label {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
#shortcut-settings-form label > span:first-child {
|
|
flex-basis: 5em;
|
|
text-align: right;
|
|
}
|
|
#shortcut-settings-form :is(input[type='text'], select) {
|
|
flex-grow: 1;
|
|
flex-basis: 70%;
|
|
flex-shrink: 1;
|
|
/* width: calc(100% - 32px); */
|
|
min-width: 0;
|
|
max-width: 320px;
|
|
}
|