mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
style: improve design and add logo
- show data icons in thumbnails in data list items - add app logo - fix various visibility issues
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
<span *ngIf="item.url; else imageNoUrl">
|
||||
<a href="{{item.url}}">
|
||||
<ion-thumbnail>
|
||||
<img src="{{item.image}}" onerror="this.style.display = 'none'" />
|
||||
<img src="{{item.image}}" onerror="this.style.display = 'none'; this.nextSibling.style.display='block'" />
|
||||
<ion-icon name="newspaper-outline"></ion-icon>
|
||||
</ion-thumbnail>
|
||||
</a>
|
||||
</span>
|
||||
<ng-template #imageNoUrl>
|
||||
<ion-thumbnail>
|
||||
<img src="{{item.image}}" onerror="this.style.display = 'none'" />
|
||||
<img src="{{item.image}}" onerror="this.style.display = 'none'; this.nextSibling.style.display='block'" />
|
||||
<ion-icon name="newspaper-outline"></ion-icon>
|
||||
</ion-thumbnail>
|
||||
</ng-template>
|
||||
|
||||
@@ -7,24 +7,18 @@ ion-card-header a {
|
||||
padding-left: 4px;
|
||||
}
|
||||
}
|
||||
ion-card ion-thumbnail img {
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
ion-card ion-thumbnail {
|
||||
position: relative;
|
||||
background: var(--placeholder-gray);
|
||||
width: 100%;
|
||||
min-height: 400px;
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
ion-icon {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
color: white;
|
||||
height: auto;
|
||||
img {
|
||||
display: block;
|
||||
}
|
||||
ion-icon {
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
color: white;
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user