update style for lock
This commit is contained in:
@@ -128,6 +128,7 @@
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 10px;
|
||||
background: #171512;
|
||||
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
@@ -188,33 +189,39 @@
|
||||
|
||||
.icon-wrapper {
|
||||
position: relative;
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
width: 100%;
|
||||
aspect-ratio: 1;
|
||||
|
||||
.main-icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
|
||||
width: 70.833%;
|
||||
height: 70.833%;
|
||||
|
||||
transform: translate(-50%, -50%);
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.lock-icon {
|
||||
position: absolute;
|
||||
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-52.4%, -52.4%);
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 49%;
|
||||
left: 50.4%;
|
||||
width: 95%;
|
||||
height: 96%;
|
||||
transform: translate(-50%, -50%);
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
|
||||
.disable-icon {
|
||||
opacity: 0.2;
|
||||
background-color: #1c1a17;
|
||||
.main-icon {
|
||||
filter: brightness(0);
|
||||
height: 90%;
|
||||
&.disable-icon {
|
||||
.main-icon {
|
||||
filter: brightness(0);
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
.lock-icon {
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,21 +97,22 @@
|
||||
<span class="card__spark card__spark--c"></span>
|
||||
<span class="card__spark card__spark--d"></span>
|
||||
}
|
||||
@if (isOpen(landmark) && landmark?.iconUrl) {
|
||||
<img [src]="landmark?.iconUrl" alt="" />
|
||||
} @else {
|
||||
<div
|
||||
class="icon-wrapper"
|
||||
[class.disable-icon]="!isOpen(landmark) && landmark?.iconUrl"
|
||||
>
|
||||
<img
|
||||
class="main-icon"
|
||||
[src]="landmark?.iconUrl || '/assets/icons/cell-lock.svg'"
|
||||
alt=""
|
||||
/>
|
||||
|
||||
<div
|
||||
class="icon-wrapper"
|
||||
[class.disable-icon]="!isOpen(landmark) && landmark?.iconUrl"
|
||||
>
|
||||
<img
|
||||
class="main-icon"
|
||||
[src]="landmark?.iconUrl || '/assets/icons/cell-lock.svg'"
|
||||
alt=""
|
||||
/>
|
||||
|
||||
@if (!isOpen(landmark) && landmark?.iconUrl) {
|
||||
<img class="lock-icon" src="/assets/icons/cell-lock-line.svg" alt="" />
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="card__body">
|
||||
<h2>{{ landmark.name }}</h2>
|
||||
|
||||
@@ -205,8 +205,6 @@
|
||||
justify-content: center;
|
||||
height: 112px;
|
||||
overflow: hidden;
|
||||
background:
|
||||
radial-gradient(circle at 50% 42%, rgb(255 255 255 / 5%), rgb(255 255 255 / 0%) 70%), #1a1815;
|
||||
}
|
||||
|
||||
.card__preview img {
|
||||
@@ -318,34 +316,47 @@
|
||||
|
||||
.icon-wrapper {
|
||||
position: relative;
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
width: 112px;
|
||||
height: 112px;
|
||||
flex-shrink: 0;
|
||||
|
||||
.main-icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
|
||||
transform: translate(-50%, -50%);
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.lock-icon {
|
||||
position: absolute;
|
||||
top: 47%;
|
||||
left: 48%;
|
||||
|
||||
width: 103px;
|
||||
height: 108px;
|
||||
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
|
||||
.disable-icon {
|
||||
opacity: 0.2;
|
||||
background-color: #1c1a17;
|
||||
&.disable-icon {
|
||||
.main-icon {
|
||||
filter: brightness(0);
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
.main-icon {
|
||||
filter: brightness(0);
|
||||
height: 90%;
|
||||
.lock-icon {
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.disable-icon) .main-icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user