Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,14 @@ Styleguide Trumps.ForOtherSites.Docs
:--for-docs .c-branding img {
max-width: unset;
}



/* Overwrite TACC (for Icons in Body) */

/* To compensate for Docs using an `.icon` class different from CMS & Portal */
:--for-docs .icon {
width: unset;
height: unset;
vertical-align: unset;
}
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ Styleguide Trumps.Scopes.Header
}
/* To overwrite Bootstrap */
.s-header .navbar-toggler-icon { display: none; }
/* To apply icon styles without using a class in the markup */
/* To swap Bootstrap icon for Cortal icon */
/* HACK: To apply icon styles without using a class in the markup */
/* FAQ: For dynamic markup change, Portal & Docs markup must be updated */
/* SEE: https://getbootstrap.com/docs/4.0/components/collapse/#events */
.s-header :--navbar-button { @extend [class*=" icon-"]; }
Expand Down Expand Up @@ -422,11 +423,3 @@ Styleguide Trumps.Scopes.Header
.s-header .dropdown-item .nav-icon {
margin-right: 0.5em;
}

/* To overwrite Font Awesome & style via Font Awesome */
/* FP-636: Remove all `.fa` (Font Awesome) icons */
.s-portal-nav .nav-link .nav-icon[class*="fa"] {
font-size: 26px;
line-height: unset;
vertical-align: unset;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,35 @@ Markup: s-portal-nav.html
Styleguide Trumps.Scopes.PortalNav
*/

/* To distinguish/highlight Portal nav from CMS nav */
/* To distinguish Portal nav from CMS nav */
/* To overwrite `.s-header` */
.s-portal-nav {
background-color: env(--header-portal-nav-bkgd-color);
}

.s-portal-nav .nav-link {
/* To overwrite `.s-header .nav-link:…` etcetera */
border-bottom-color: transparent !important;
}

/* To overwrite `.s-header .navbar-nav .nav-link, […]` */
.s-portal-nav .nav-item .nav-link,
:--for-portal .s-portal-nav .nav-item .nav-link {
padding-left: 30px;
padding-right: calc(
env(--portal-sidebar-padding) + env(--portal-navlink-padding)
);
}

.s-portal-nav .dropdown-toggle .nav-icon {
font-size: 26px;
}

/* To swap Font Awesome icons for Cortal icons */
/* HACK: To apply icon styles without using a class in the markup */
/* NOTE: So I can deploy new header and not require edit to Portal nor Docs */
/* FP-526: Use Cortal Icons for header (then remove these styles) */
.s-portal-nav [class*="fa"] { @extend [class*=" icon-"]; }
.s-portal-nav [class*="fa"] { @extend .icon; }
.s-portal-nav .dropdown-toggle .fa-user-circle { @extend .icon-user; }
.s-portal-nav .fa-desktop { @extend .icon-dashboard; }
.s-portal-nav .fa-tasks { @extend .icon-approved-boxed; }
.s-portal-nav .fa-user-circle { @extend .icon-gear; }
.s-portal-nav .fa-sign-out-alt { @extend .icon-user; }
Original file line number Diff line number Diff line change
@@ -1,42 +1,36 @@
<!-- FAQ:

This is the markup of the #s-header, as of 2020-08-13,
This is the markup of the #s-header, as of 2021-05-24,
from https://frontera-portal.tacc.utexas.edu/. It has:

- Bootstrap class names
- Bootstrap attributes
- illegally-nested markup (`ul > div > li`)
- extra markup (`a > span`)
-->
<ul class="s-portal-nav navbar-nav">
<div class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle"
href="#"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>
<span>Sections</span>
<span class="sr-only">Toggle Dropdown</span>
</a>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="#">
<i class="nav-icon"></i> Section 1
</a>
<a class="dropdown-item" href="#">
<i class="nav-icon"></i> Section 2
</a>
<a class="dropdown-item" href="#">
<i class="nav-icon"></i> Section 3
</a>
</div>
</li>
</div>

<li class="nav-item">
<a class="nav-link" href="/login/">
<i class="nav-icon"></i> Log in
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle"
href="#"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>
<i class="fas fa-user-circle fa-lg nav-icon"></i>
<span>username</span>
<span class="sr-only">Toggle Dropdown</span>
</a>
<nav class="dropdown-menu dropdown-menu-right show">
<a class="dropdown-item" href="/workbench/dashboard">
<i class="fas fa-desktop nav-icon"></i> My Dashboard
</a>
<a class="dropdown-item" href="/workbench/onboarding/admin">
<i class="fas fa-tasks nav-icon"></i> Onboarding Admin
</a>
<a class="dropdown-item" href="/accounts/profile/">
<i class="fas fa-user-circle nav-icon"></i> My Account
</a>
<a class="dropdown-item" href="/accounts/logout">
<i class="fas fa-sign-out-alt nav-icon"></i> Log Out
</a>
</nav>
</li>
</ul>