-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #536 from adamkankovsky/language-improvements
Improve the language screen from new design
- Loading branch information
Showing
6 changed files
with
173 additions
and
151 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,37 @@ | ||
#language-alert { | ||
margin-bottom: 1.25rem; | ||
.installation-language-menu.pf-v5-c-menu.pf-m-scrollable { | ||
max-width: 400px; | ||
// heading: 84, footer: 44, content (about from header): 158, necessary padding underneath: 8px, | ||
// 50px magic number | ||
--pf-v5-c-menu__content--MaxHeight: calc(100vh - 84px - 44px - 158px - 8px - 50px); | ||
} | ||
|
||
.installation-language-search { | ||
margin-bottom: var(--pf-v5-global--spacer--sm); | ||
max-width: 400px; | ||
} | ||
|
||
.installation-language-menu { | ||
border: var(--pf-v5-global--BorderWidth--sm) solid var(--pf-v5-global--BorderColor--100); | ||
} | ||
|
||
/* | ||
While this is something that needs to be fixed globally in an overrides, | ||
we're only using the component here, so we have a local, namespaced fix, | ||
to prevent surprises elsewhere. However, if we use the widget elsewhere, | ||
it would also need this fix, so this is definitely a fix for PF | ||
overrides, not a local fix. | ||
*/ | ||
#installation-language-language-menu { | ||
margin-top: 1rem; | ||
margin-bottom: 2rem; | ||
// Oddly, the spacing here isn't consistent with the reference on the website; | ||
// it should be balanced on the top and bottom, not all just on the top | ||
.pf-v5-c-menu__group-title { | ||
padding-block: var(--pf-v5-global--spacer--sm); | ||
|
||
// As the top is smaller, it needs a little more space between it and | ||
// the rest of the elements. The first one doesn't need this, however, | ||
// so we only apply it to all headings that aren't the first one | ||
.pf-v5-c-menu__group:not(:first-of-type) & { | ||
margin-block-start: var(--pf-v5-global--spacer--sm); | ||
} | ||
} | ||
} |
Oops, something went wrong.