-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start implementing mobile behavior for border-box table (#17216)
* Start implementing mobile behavior for border-box table * Auto column * Allow labels * Hide rows on mobile * Change order of project and start time * Add implementation for oidc * Reimplement wide columns * Documentation * Remove custom mobile labels * Extract heading class * Fix spacing between rows in mobile BorderBoxTable * Remove doubled code block --------- Co-authored-by: Henriette Darge <[email protected]>
- Loading branch information
1 parent
032e5d3
commit 3490947
Showing
15 changed files
with
230 additions
and
87 deletions.
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
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
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 |
---|---|---|
@@ -1,7 +1,41 @@ | ||
@import "helpers" | ||
|
||
.op-border-box-grid | ||
display: grid | ||
justify-content: flex-start | ||
align-items: center | ||
// Distribute columns evenly by default | ||
grid-auto-columns: minmax(0, 1fr) | ||
grid-auto-flow: column | ||
|
||
&--row-action | ||
align-items: center | ||
justify-content: flex-end | ||
|
||
@media screen and (min-width: $breakpoint-md) | ||
.op-border-box-grid | ||
// Distribute columns evenly on desktop | ||
grid-auto-columns: minmax(0, 1fr) | ||
grid-auto-flow: column | ||
justify-content: flex-start | ||
align-items: center | ||
|
||
&--mobile-heading, | ||
&--row-label | ||
display: none | ||
|
||
&--wide-column | ||
grid-column: span 3 | ||
|
||
@media screen and (max-width: $breakpoint-md) | ||
.op-border-box-grid | ||
grid-template-columns: 1fr auto | ||
grid-auto-flow: row | ||
|
||
&--heading, | ||
&--no-mobile | ||
display: none | ||
|
||
&--row-item | ||
grid-column: 1 | ||
// Match the height of the action button on the right. Otherwise the spacing between the lines will be diverging | ||
line-height: var(--control-medium-size) | ||
|
||
&--row-action | ||
grid-column: 2 | ||
grid-row: 1 |
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
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
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
Oops, something went wrong.