update style
This commit is contained in:
@@ -30,10 +30,14 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="city-card__percent" aria-hidden="true">{{ progress(area) }}%</div>
|
||||
<div class="pack__percent anim-percent" [style.--to-p]="progress(area)" aria-hidden="true">
|
||||
<span>{{ progress(area) }}%</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<mat-progress-bar mode="determinate" [value]="progress(area)" />
|
||||
<div class="pack__bar" aria-hidden="true">
|
||||
<span class="anim-grow" [style.--from]="'0%'" [style.--to]="progress(area) + '%'"></span>
|
||||
</div>
|
||||
|
||||
<div class="city-card__cells">
|
||||
@for (attraction of area.attractions; track attraction.id) {
|
||||
|
||||
@@ -105,27 +105,13 @@
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.city-card strong,
|
||||
.city-card__percent {
|
||||
.city-card strong {
|
||||
color: var(--color-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.city-card__percent {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border: 5px solid var(--color-surface-2);
|
||||
border-radius: 50%;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.city-card mat-progress-bar {
|
||||
--mdc-linear-progress-active-indicator-color: var(--color-accent);
|
||||
--mdc-linear-progress-track-color: var(--color-surface-2);
|
||||
border-radius: 3px;
|
||||
.city-card .pack__bar {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.city-card__cells {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
||||
import { MatProgressBar } from '@angular/material/progress-bar';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { Store } from '@ngrx/store';
|
||||
|
||||
@@ -20,7 +19,7 @@ import {
|
||||
|
||||
@Component({
|
||||
selector: 'app-cities-page',
|
||||
imports: [RouterLink, MatProgressBar],
|
||||
imports: [RouterLink],
|
||||
templateUrl: './cities-page.html',
|
||||
styleUrl: './cities-page.scss',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
|
||||
@@ -175,9 +175,9 @@
|
||||
}
|
||||
|
||||
.filters button.filters__item--active {
|
||||
border-color: var(--color-accent);
|
||||
background: var(--color-accent);
|
||||
color: var(--color-on-accent);
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary);
|
||||
color: var(--color-label);
|
||||
}
|
||||
|
||||
.grid {
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
|
||||
@if (!collected()) {
|
||||
<footer class="object__bar">
|
||||
<button class="object__claim" matButton="filled" type="button" (click)="claimItem()">
|
||||
<button class="btn" type="button" (click)="claimItem()">
|
||||
<app-icon name="camera" [size]="22" />
|
||||
Забрать
|
||||
</button>
|
||||
|
||||
@@ -274,17 +274,6 @@
|
||||
background: linear-gradient(to bottom, transparent, rgb(18 17 15 / 96%) 30%);
|
||||
}
|
||||
|
||||
.object__claim {
|
||||
width: 100%;
|
||||
min-height: 56px;
|
||||
overflow: visible;
|
||||
--mat-button-filled-container-color: #d4143f;
|
||||
--mat-button-filled-label-text-color: #fff;
|
||||
--mat-button-filled-container-shape: 16px;
|
||||
background-color: #d4143f;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.object__bar p {
|
||||
margin: 8px 0 0;
|
||||
font-size: 13px;
|
||||
|
||||
Reference in New Issue
Block a user