-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some styles included for pagination don't work for the context in which this component is used. Updates include removing padding, hiding the options menu at smaller viewports, and removing the box shadow. Also includes some refactoring that was needed as part of #1034
- Loading branch information
Showing
3 changed files
with
31 additions
and
47 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,10 +1,33 @@ | ||
#cmpsr-blueprint-input-filter { | ||
min-width: 45%; | ||
min-width: 60%; | ||
} | ||
|
||
.pf-c-pagination.pf-m-bottom .pf-c-options-menu { | ||
display: none; | ||
} | ||
|
||
.pf-c-pagination.pf-m-bottom { | ||
--pf-c-pagination--m-bottom--BoxShadow: none; | ||
} | ||
|
||
/* The base size for smaller viewports in patternfly-cockpit.scss is too small | ||
/* for this context. Using the size defined for larger viewports instead. */ | ||
.toolbar-pf-results ul { | ||
line-height: 40px; | ||
} | ||
|
||
@media screen and (min-width: 768px) { | ||
/* this is when the pagination changes to just previous/next buttons, and at this size, 45% is too small for the input */ | ||
/* this is when the pagination changes from just previous/next buttons to the full control | ||
/* at this size and above, 45% is large enough for the input */ | ||
#cmpsr-blueprint-input-filter { | ||
min-width: 60%; | ||
min-width: 45%; | ||
} | ||
|
||
.pf-c-pagination.pf-m-bottom { | ||
padding: 0; | ||
} | ||
|
||
.pf-c-pagination.pf-m-bottom .pf-c-options-menu { | ||
display: block; | ||
} | ||
} |
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