-
-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling of responsive layouts (#4491)
* Card cleanup * Add overflow-x on non-root responsive layouts * Make card header sticky * Update tests
- Loading branch information
1 parent
f4395e5
commit 62fe471
Showing
9 changed files
with
74 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,56 @@ | ||
:host(.card) { | ||
border: 1px solid rgba(0,0,0,.125); | ||
border-radius: 0.25rem; | ||
border: 1px solid rgba(0,0,0,.125); | ||
border-radius: 0.25rem; | ||
} | ||
|
||
:host(.accordion) { | ||
border: 1px solid rgba(0,0,0,.125); | ||
border: 1px solid rgba(0,0,0,.125); | ||
} | ||
|
||
.card-header { | ||
align-items: center; | ||
background-color: rgba(0, 0, 0, 0.03); | ||
border-radius: 0.25rem; | ||
display: inline-flex; | ||
justify-content: start; | ||
width: 100%; | ||
align-items: center; | ||
background-color: rgba(0, 0, 0, 0.03); | ||
border: 1px solid; | ||
border-radius: 0.25rem; | ||
display: inline-flex; | ||
justify-content: start; | ||
position: sticky; | ||
left: 0; | ||
width: 100%; | ||
} | ||
|
||
.accordion-header { | ||
align-items: center; | ||
background-color: rgba(0, 0, 0, 0.03); | ||
border-radius: 0; | ||
display: flex; | ||
justify-content: start; | ||
width: 100%; | ||
align-items: center; | ||
background-color: rgba(0, 0, 0, 0.03); | ||
border: 1px solid; | ||
border-radius: 0; | ||
display: flex; | ||
justify-content: start; | ||
position: sticky; | ||
left: 0; | ||
width: 100%; | ||
} | ||
|
||
.card-button { | ||
background-color: transparent; | ||
margin-left: 0.5em; | ||
margin-right: 0.5em; | ||
background-color: transparent; | ||
margin-left: 0.5em; | ||
margin-right: 0.5em; | ||
} | ||
|
||
.card-header-row { | ||
position: relative !important; | ||
margin-bottom: auto; | ||
margin-top: auto; | ||
position: relative !important; | ||
} | ||
|
||
.card-title { | ||
align-items: center; | ||
font-size: 1.4em; | ||
font-weight: bold; | ||
overflow-wrap: break-word; | ||
align-items: center; | ||
font-size: 1.4em; | ||
font-weight: bold; | ||
overflow-wrap: break-word; | ||
} | ||
|
||
.card-header-row > .bk { | ||
overflow-wrap: break-word; | ||
text-align: center; | ||
overflow-wrap: break-word; | ||
text-align: center; | ||
} |
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
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