mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-29 22:01:03 +00:00
149 lines
3.0 KiB
SCSS
149 lines
3.0 KiB
SCSS
@use "../../../scss/globals.scss";
|
|
|
|
.repacks-modal {
|
|
&__filter-container {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
&__filter-top {
|
|
margin-bottom: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
&__filter-toggle {
|
|
align-self: flex-start;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: globals.$small-font-size;
|
|
font-weight: 600;
|
|
color: var(--color-text-secondary);
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 6px;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
&__repacks {
|
|
display: flex;
|
|
gap: globals.$spacing-unit;
|
|
flex-direction: column;
|
|
}
|
|
|
|
&__repack-button {
|
|
display: flex;
|
|
text-align: left;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: globals.$spacing-unit;
|
|
color: globals.$body-color;
|
|
padding: calc(globals.$spacing-unit * 2);
|
|
}
|
|
|
|
&__repack-title {
|
|
color: globals.$muted-color;
|
|
word-break: break-word;
|
|
}
|
|
|
|
&__repack-info {
|
|
font-size: globals.$small-font-size;
|
|
}
|
|
|
|
&__no-results {
|
|
width: 100%;
|
|
padding: calc(globals.$spacing-unit * 4) 0;
|
|
text-align: center;
|
|
color: globals.$muted-color;
|
|
font-size: globals.$small-font-size;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
&__no-results-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: calc(globals.$spacing-unit * 1.5);
|
|
max-width: 480px;
|
|
width: 100%;
|
|
}
|
|
|
|
&__no-results-text {
|
|
color: globals.$muted-color;
|
|
font-size: globals.$small-font-size;
|
|
text-align: center;
|
|
}
|
|
|
|
&__no-results-button {
|
|
display: flex;
|
|
justify-content: center;
|
|
width: 100%;
|
|
}
|
|
|
|
&__download-sources {
|
|
padding: 0;
|
|
background-color: var(--color-background-light);
|
|
border-radius: 8px;
|
|
margin-bottom: 1rem;
|
|
margin-top: calc(globals.$spacing-unit * 0.5);
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition:
|
|
max-height 0.3s ease,
|
|
padding 0.3s ease;
|
|
|
|
&--open {
|
|
padding: 0.75rem;
|
|
max-height: 250px;
|
|
}
|
|
}
|
|
|
|
&__filter-label {
|
|
display: none;
|
|
font-size: globals.$small-font-size;
|
|
font-weight: 600;
|
|
margin-bottom: 0.75rem;
|
|
color: var(--color-text-secondary);
|
|
width: 100%;
|
|
}
|
|
|
|
&__source-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
gap: 0.5rem;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
align-items: start;
|
|
padding-right: 0.25rem;
|
|
}
|
|
|
|
&__source-item {
|
|
padding: 0.35rem 0.5rem;
|
|
background: var(--color-surface, rgba(0, 0, 0, 0.03));
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 38px;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
}
|
|
|
|
&__source-item :global(.checkbox-field) {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
&__source-item :global(.checkbox-field__label) {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: block;
|
|
font-size: 0.85rem;
|
|
width: 100%;
|
|
}
|
|
}
|