-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: WP-197 use @layer's / help migrate Frontera Frontera migration — TACC/Core-CMS-Custom#293 — uses @layers, but then Frontera styles yield to Core-CMS styles. They yield to Core-CMS because Core-CMS — with `TACC_CORE_STYLES_VERSION=0` — has all its styles in an anonymous layer. (CSS in an anonymous layer beats CSS in a named layer.) * fix: #s-header .nav-link hover underline * fix: #s-header .nav-link hover underline for real * chore: rename override-v4… * fix: site.css overrides boostrap navbar pad…left * fix: layer project overwrites `project.migration` So, change `project` to `project.core`. * fix: bootstrap 3 styles overriding header * fix: header fix missing on new core-styles v1 site Recent CSS fix for header was only applied to v1-origin sites. The fix should be applied to v4.18+ sites.
- Loading branch information
1 parent
eb11d1d
commit 7843331
Showing
6 changed files
with
56 additions
and
9 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
6 changes: 6 additions & 0 deletions
6
taccsite_cms/static/site_cms/css/src/_migrations/v4-17_v4-18/README.md
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,6 @@ | ||
# TACC CMS - Stylesheets - Migrations - v4.17 to v4.18 | ||
|
||
This is a migration: | ||
|
||
- from **not** using CSS layers | ||
- to using CSS layers |
13 changes: 13 additions & 0 deletions
13
taccsite_cms/static/site_cms/css/src/_migrations/v4-17_v4-18/site.layer-fixes.css
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,13 @@ | ||
/* To fix layout of elements in CSS header */ | ||
/* FAQ: The `site.css` in `layer(project.core)` overwrites Bootstrap `_navbar.scss` in `layer(foundation)`. This causes `site.css` <ul> `padding-left: 0` to overwrite Bootstrap */ | ||
.navbar-nav { | ||
padding-left: 0; | ||
} | ||
|
||
/* To not rely on Bootstrap `.nav-link:hover` */ | ||
/* FAQ: Because Bootstrap can be reverted or not loaded */ | ||
/* FAQ: Overrides site.css `a:hover` */ | ||
#s-header .nav-link, | ||
#s-header .nav-link > a { | ||
text-decoration: none !important; /* to override even if within lower layer */ | ||
} |
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