mirror of
https://github.com/knutwurst/patchdl.git
synced 2026-10-06 07:00:26 +02:00
Handle target-aware patch installs
This commit is contained in:
1 parent
01464ae88a
commit
510f199b89
14 files changed
+1010
-234
No files matched your search
@@ -593,6 +593,74 @@ h2 {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.toggle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.toggle input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.toggle .track {
|
||||
flex: none;
|
||||
width: 38px;
|
||||
height: 22px;
|
||||
border-radius: 999px;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
position: relative;
|
||||
transition: background 0.15s, border-color 0.15s;
|
||||
}
|
||||
|
||||
.toggle .track::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
background: var(--muted);
|
||||
transition: transform 0.15s, background 0.15s;
|
||||
}
|
||||
|
||||
.toggle input:checked + .track {
|
||||
background: color-mix(in srgb, var(--green) 30%, transparent);
|
||||
border-color: var(--green);
|
||||
}
|
||||
|
||||
.toggle input:checked + .track::after {
|
||||
transform: translateX(16px);
|
||||
background: var(--green);
|
||||
}
|
||||
|
||||
.toggle .label {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
min-width: 22px;
|
||||
}
|
||||
|
||||
/* Leading column of a game card: icon with its enable toggle stacked below. */
|
||||
.lead {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.lead .toggle {
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.allowlist {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
|
||||
Reference in new issue
Block a user