-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ui): display dashboard cards in a grid (#15211)
* refactor(ui): display dashboard cards in a grid * chore(ui): update changelog
- Loading branch information
1 parent
778db16
commit 2ef1daa
Showing
4 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
Dashboards Card Grid Styles | ||
------------------------------------------------------------------------------ | ||
*/ | ||
|
||
.dashboards-card-grid { | ||
display: grid; | ||
grid-template-columns: 1fr; | ||
grid-template-rows: 150px 150px 150px; | ||
grid-column-gap: $ix-marg-a; | ||
grid-row-gap: $ix-marg-a; | ||
|
||
.cf-resource-card { | ||
margin-bottom: 0; | ||
} | ||
|
||
.resource-description { | ||
height: 60px; | ||
overflow: hidden; | ||
} | ||
} | ||
|
||
@media screen and (min-width: $grid--breakpoint-sm) { | ||
.dashboards-card-grid { | ||
grid-template-columns: 1fr 1fr; | ||
} | ||
} | ||
|
||
@media screen and (min-width: $grid--breakpoint-md) { | ||
.dashboards-card-grid { | ||
grid-template-columns: 1fr 1fr 1fr; | ||
} | ||
} | ||
|
||
@media screen and (min-width: $grid--breakpoint-lg) { | ||
.dashboards-card-grid { | ||
grid-template-columns: 1fr 1fr 1fr 1fr; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters