Skip to content
This repository has been archived by the owner on Nov 22, 2019. It is now read-only.

Commit

Permalink
Changed behaviour of summary cards as the window is resized
Browse files Browse the repository at this point in the history
- cards now say a constant size
- cards wrap as necessary
  • Loading branch information
elvisisking committed Mar 8, 2018
1 parent 74a5199 commit c50afcc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
@@ -1,5 +1,5 @@
<div class="row-cards-pf">
<div class="col-xs-12 col-sm-3 col-md-3" *ngFor="let connection of connections">
<div class="object-card-container">
<div *ngFor="let connection of connections">
<app-connection-card [connection]="connection"
[selectedConnections]="selectedConnections"
(cardEvent)="onCardEvent($event)"
Expand Down
@@ -1,8 +0,0 @@
.container-cards-pf {
padding: 0;
margin-top: 0;
}

.row-cards-pf {
padding: 0;
}
@@ -1,5 +1,5 @@
<div class="row-cards-pf">
<div class="col-xs-12 col-sm-3 col-md-3" *ngFor="let dataservice of dataservices">
<div class="object-card-container">
<div *ngFor="let dataservice of dataservices">
<app-dataservice-card-component [dataservice]="dataservice"
[selectedDataservices]="selectedDataservices"
(cardEvent)="onCardEvent($event)"
Expand Down
11 changes: 10 additions & 1 deletion ngapp/src/styles.css
Expand Up @@ -116,14 +116,23 @@
//-ms-transition: background-color 300ms;
-o-transition: background-color 300ms;
transition: background-color 300ms;
height: 160px;
}

.object-card .card-pf,
.object-card-selected .card-pf {
margin: 8px 0;
}

.object-card-container {
display: grid;
grid-template-columns: repeat( auto-fill, minmax( 300px, 300px ) );
}

.object-card-container>* {
flex: 1 1 80px;
margin: 5px;
}

.object-card-selected .card-pf {
border: var(--card-border-width) var(--card-border-style) var(--card-border-color);
}
Expand Down

0 comments on commit c50afcc

Please sign in to comment.