mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
refactor: update download group styles
This commit is contained in:
parent
57a8368b3b
commit
d758f326c3
@ -1,140 +1,136 @@
|
|||||||
@use "../../scss/globals.scss";
|
@use "../../scss/globals.scss";
|
||||||
|
|
||||||
.download-group {
|
.download-group {
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: calc(globals.$spacing-unit * 2);
|
|
||||||
|
|
||||||
&__header {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
gap: calc(globals.$spacing-unit * 2);
|
|
||||||
|
|
||||||
&-divider {
|
|
||||||
flex: 1;
|
|
||||||
background-color: globals.$color-border;
|
|
||||||
height: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&-count {
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__title-wrapper {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: globals.$spacing-unit;
|
|
||||||
gap: globals.$spacing-unit;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__title {
|
|
||||||
font-weight: bold;
|
|
||||||
cursor: pointer;
|
|
||||||
color: globals.$color-body;
|
|
||||||
text-align: left;
|
|
||||||
font-size: 16px;
|
|
||||||
display: block;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__downloads {
|
|
||||||
width: 100%;
|
|
||||||
gap: calc(globals.$spacing-unit * 2);
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin: 0;
|
gap: calc(globals.$spacing-unit * 2);
|
||||||
padding: 0;
|
|
||||||
margin-top: globals.$spacing-unit;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__item {
|
&__header {
|
||||||
width: 100%;
|
display: flex;
|
||||||
background-color: globals.$color-background;
|
align-items: center;
|
||||||
display: flex;
|
justify-content: space-between;
|
||||||
border-radius: 8px;
|
gap: calc(globals.$spacing-unit * 2);
|
||||||
border: solid 1px globals.$color-border;
|
|
||||||
overflow: hidden;
|
|
||||||
box-shadow: 0px 0px 5px 0px #000000;
|
|
||||||
transition: all ease 0.2s;
|
|
||||||
height: 140px;
|
|
||||||
min-height: 140px;
|
|
||||||
max-height: 140px;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__cover {
|
&-divider {
|
||||||
width: 280px;
|
flex: 1;
|
||||||
min-width: 280px;
|
background-color: globals.$color-border;
|
||||||
height: auto;
|
height: 1px;
|
||||||
border-right: solid 1px globals.$color-border;
|
}
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
|
|
||||||
&-content {
|
&-count {
|
||||||
width: 100%;
|
font-weight: 400;
|
||||||
height: 100%;
|
}
|
||||||
padding: globals.$spacing-unit;
|
|
||||||
display: flex;
|
|
||||||
align-items: flex-end;
|
|
||||||
justify-content: flex-end;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&-backdrop {
|
&__title-wrapper {
|
||||||
width: 100%;
|
display: flex;
|
||||||
height: 100%;
|
align-items: center;
|
||||||
background: linear-gradient(
|
margin-bottom: globals.$spacing-unit;
|
||||||
0deg,
|
gap: globals.$spacing-unit;
|
||||||
rgba(0, 0, 0, 0.8) 5%,
|
|
||||||
transparent 100%
|
|
||||||
);
|
|
||||||
display: flex;
|
|
||||||
overflow: hidden;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&-image {
|
&__title {
|
||||||
width: 100%;
|
font-weight: bold;
|
||||||
height: 100%;
|
cursor: pointer;
|
||||||
position: absolute;
|
color: var(--color-body);
|
||||||
z-index: -1;
|
text-align: left;
|
||||||
|
font-size: 16px;
|
||||||
|
display: block;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&__right-content {
|
&__downloads {
|
||||||
display: flex;
|
width: 100%;
|
||||||
padding: calc(globals.$spacing-unit * 2);
|
gap: calc(globals.$spacing-unit * 2);
|
||||||
flex: 1;
|
display: flex;
|
||||||
gap: globals.$spacing-unit;
|
flex-direction: column;
|
||||||
background: linear-gradient(90deg, transparent 20%, rgb(0 0 0 / 20%) 100%);
|
margin: 0;
|
||||||
}
|
padding: 0;
|
||||||
|
margin-top: globals.$spacing-unit;
|
||||||
|
}
|
||||||
|
|
||||||
&__details {
|
&__item {
|
||||||
display: flex;
|
width: 100%;
|
||||||
flex-direction: column;
|
background-color: globals.$color-background;
|
||||||
flex: 1;
|
display: flex;
|
||||||
justify-content: center;
|
border-radius: 8px;
|
||||||
gap: calc(globals.$spacing-unit / 2);
|
border: solid 1px globals.$color-border;
|
||||||
font-size: 14px;
|
overflow: hidden;
|
||||||
}
|
box-shadow: 0px 0px 5px 0px #000000;
|
||||||
|
transition: all ease 0.2s;
|
||||||
|
height: 140px;
|
||||||
|
min-height: 140px;
|
||||||
|
max-height: 140px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
&__actions {
|
&__cover {
|
||||||
display: flex;
|
width: 280px;
|
||||||
align-items: center;
|
min-width: 280px;
|
||||||
gap: globals.$spacing-unit;
|
height: auto;
|
||||||
}
|
border-right: solid 1px globals.$color-border;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
&__menu-button {
|
&-content {
|
||||||
position: absolute;
|
width: 100%;
|
||||||
top: 12px;
|
height: 100%;
|
||||||
right: 12px;
|
padding: globals.$spacing-unit;
|
||||||
border-radius: 50%;
|
display: flex;
|
||||||
border: none;
|
align-items: flex-end;
|
||||||
padding: 8px;
|
justify-content: flex-end;
|
||||||
min-height: unset;
|
}
|
||||||
}
|
|
||||||
|
&-backdrop {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 5%, transparent 100%);
|
||||||
|
display: flex;
|
||||||
|
overflow: hidden;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__right-content {
|
||||||
|
display: flex;
|
||||||
|
padding: calc(globals.$spacing-unit * 2);
|
||||||
|
flex: 1;
|
||||||
|
gap: globals.$spacing-unit;
|
||||||
|
background: linear-gradient(90deg, transparent 20%, rgb(0 0 0 / 20%) 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__details {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex: 1;
|
||||||
|
justify-content: center;
|
||||||
|
gap: calc(globals.$spacing-unit / 2);
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__actions {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: globals.$spacing-unit;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__menu-button {
|
||||||
|
position: absolute;
|
||||||
|
top: 12px;
|
||||||
|
right: 12px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: none;
|
||||||
|
padding: 8px;
|
||||||
|
min-height: unset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user