replace less variables
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
@animation-duration: 20s;
|
:host {
|
||||||
|
--animation-duration: 20s;
|
||||||
|
}
|
||||||
|
|
||||||
.frame {
|
.frame {
|
||||||
width: 512px;
|
width: 512px;
|
||||||
@@ -11,10 +13,10 @@
|
|||||||
.brand {
|
.brand {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
animation: @animation-duration brand ease-in-out forwards;
|
animation: var(--animation-duration) brand ease-in-out forwards;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@media screen and (max-width: 860px) {
|
@media screen and (max-width: 860px) {
|
||||||
animation: @animation-duration brand-mobile ease-in-out forwards;
|
animation: var(--animation-duration) brand-mobile ease-in-out forwards;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34,7 +36,7 @@
|
|||||||
@media screen and (max-width: 860px) {
|
@media screen and (max-width: 860px) {
|
||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
}
|
}
|
||||||
animation: @animation-duration welcome ease-in-out forwards;
|
animation: var(--animation-duration) welcome ease-in-out forwards;
|
||||||
}
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
@@ -43,14 +45,14 @@
|
|||||||
@media screen and (max-width: 860px) {
|
@media screen and (max-width: 860px) {
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
}
|
}
|
||||||
animation: @animation-duration name ease-in-out forwards;
|
animation: var(--animation-duration) name ease-in-out forwards;
|
||||||
}
|
}
|
||||||
|
|
||||||
.roles {
|
.roles {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
animation: @animation-duration roles ease-in-out forwards;
|
animation: var(--animation-duration) roles ease-in-out forwards;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
@import "../../../../../styles/styles";
|
|
||||||
|
|
||||||
.list-item {
|
.list-item {
|
||||||
padding: 5px 20px;
|
padding: 5px 20px;
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -14,7 +12,7 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: @primary-color;
|
background: var(--primary-color);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,21 +40,14 @@ export class ShowSongService {
|
|||||||
public list = (showId: string): Promise<ShowSong[]> => firstValueFrom(this.list$(showId));
|
public list = (showId: string): Promise<ShowSong[]> => firstValueFrom(this.list$(showId));
|
||||||
|
|
||||||
public async delete$(showId: string, showSongId: string, index: number): Promise<void> {
|
public async delete$(showId: string, showSongId: string, index: number): Promise<void> {
|
||||||
const [showSong, show] = await Promise.all([
|
const [showSong, show] = await Promise.all([this.read(showId, showSongId), firstValueFrom(this.showService.read$(showId))]);
|
||||||
this.read(showId, showSongId),
|
|
||||||
firstValueFrom(this.showService.read$(showId)),
|
|
||||||
]);
|
|
||||||
if (!show) return;
|
if (!show) return;
|
||||||
if (!showSong) return;
|
if (!showSong) return;
|
||||||
|
|
||||||
const order = [...show.order];
|
const order = [...show.order];
|
||||||
order.splice(index, 1);
|
order.splice(index, 1);
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([this.showSongDataService.delete(showId, showSongId), this.showService.update$(showId, {order}), this.userService.decSongCount(showSong.songId)]);
|
||||||
this.showSongDataService.delete(showId, showSongId),
|
|
||||||
this.showService.update$(showId, {order}),
|
|
||||||
this.userService.decSongCount(showSong.songId),
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public update$ = async (showId: string, songId: string, data: Partial<ShowSong>): Promise<void> => await this.showSongDataService.update$(showId, songId, data);
|
public update$ = async (showId: string, songId: string, data: Partial<ShowSong>): Promise<void> => await this.showSongDataService.update$(showId, songId, data);
|
||||||
|
|||||||
@@ -30,11 +30,7 @@ export class ShowService {
|
|||||||
() => this.showDataService.list$,
|
() => this.showDataService.list$,
|
||||||
(user: User | null, shows: Show[]) => ({user, shows})
|
(user: User | null, shows: Show[]) => ({user, shows})
|
||||||
),
|
),
|
||||||
map(s =>
|
map(s => s.shows.filter(show => !show.archived).filter(show => show.published || (show.owner === s.user?.id && !publishedOnly)))
|
||||||
s.shows
|
|
||||||
.filter(show => !show.archived)
|
|
||||||
.filter(show => show.published || (show.owner === s.user?.id && !publishedOnly))
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
@import "../../../../styles/styles";
|
|
||||||
|
|
||||||
.list-item {
|
.list-item {
|
||||||
padding: 5px 20px;
|
padding: 5px 20px;
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -13,7 +11,7 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: @primary-color;
|
background: var(--primary-color);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
||||||
.warning {
|
.warning {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
@import "../../../../../../styles/styles";
|
|
||||||
|
|
||||||
.users {
|
.users {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr 40px;
|
grid-template-columns: 1fr 1fr 40px;
|
||||||
@@ -10,6 +8,6 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: @primary-color;
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
@import "../../../../../../styles/styles";
|
|
||||||
|
|
||||||
input {
|
input {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
@@ -10,7 +8,7 @@ input {
|
|||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
border-bottom: 1px solid @primary-color;
|
border-bottom: 1px solid var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
@media screen and (max-width: 500px) {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
@import "../../../../../../styles/styles";
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
display: block;
|
display: block;
|
||||||
@@ -10,13 +8,13 @@ a {
|
|||||||
padding: 15px;
|
padding: 15px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
transition: @transition;
|
transition: var(--transition);
|
||||||
border-color: #222;
|
border-color: #222;
|
||||||
|
|
||||||
fa-icon {
|
fa-icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
transition: @transition;
|
transition: var(--transition);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 860px) {
|
@media screen and (max-width: 860px) {
|
||||||
@@ -35,7 +33,7 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
border-bottom: 5px solid @primary-color;
|
border-bottom: 5px solid var(--primary-color);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|
||||||
fa-icon {
|
fa-icon {
|
||||||
|
|||||||
@@ -1,12 +1,9 @@
|
|||||||
@primary-color: #4286f4;
|
|
||||||
|
|
||||||
@navigation-background: #fffffff1;
|
|
||||||
|
|
||||||
@transition: all 300ms ease-in-out;
|
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--color-primary: #4286f4;
|
--color-primary: #4286f4;
|
||||||
--color-primary-light: #639af3;
|
--color-primary-light: #639af3;
|
||||||
|
--primary-color: #4286f4;
|
||||||
|
--navigation-background: #fffffff1;
|
||||||
|
--transition: all 300ms ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@@ -20,9 +17,7 @@ body {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
|
||||||
background-image: url("/assets/background.jpg");
|
background: linear-gradient(39deg, #292e49, #536976, #bbd2c5);
|
||||||
background-size: cover;
|
|
||||||
background-position: center;
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,8 +40,6 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.content > *:not(router-outlet) {
|
.content > *:not(router-outlet) {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user