-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement left-top-top navigation design for the responsive_ux layout
- Loading branch information
Dany Marcoux
committed
Aug 13, 2020
1 parent
0330eac
commit 5cee73e
Showing
43 changed files
with
511 additions
and
377 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
133 changes: 0 additions & 133 deletions
133
src/api/app/assets/stylesheets/webui/responsive_ux/_layout.scss
This file was deleted.
Oops, something went wrong.
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
58 changes: 58 additions & 0 deletions
58
src/api/app/assets/stylesheets/webui/responsive_ux/grid.scss
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,58 @@ | ||
#grid { | ||
min-height: 100vh; | ||
display: grid; | ||
grid-template-columns: 100%; | ||
grid-template-rows: $top-navigation-height auto $bottom-navigation-height; | ||
grid-template-areas: | ||
'top-navigation' | ||
'content' | ||
'bottom-navigation'; | ||
|
||
#top-navigation-area { | ||
grid-area: top-navigation; | ||
} | ||
|
||
#content-area { | ||
grid-area: content; | ||
} | ||
|
||
#bottom-navigation-area { | ||
grid-area: bottom-navigation; | ||
} | ||
|
||
#left-navigation-area { | ||
display: none; | ||
} | ||
} | ||
|
||
@include media-breakpoint-up(xl) { | ||
#grid { | ||
grid-template-columns: $left-navigation-width auto; | ||
grid-template-rows: $top-navigation-height auto; | ||
grid-template-areas: | ||
'top-navigation top-navigation' | ||
'left-navigation content'; | ||
|
||
#left-navigation-area { | ||
grid-area: left-navigation; | ||
display: block; | ||
|
||
#left-navigation { | ||
position: fixed; | ||
top: $top-navigation-height; | ||
left: 0; | ||
|
||
& a { | ||
color: $gray-300; | ||
width: $left-navigation-width; | ||
white-space: normal !important; | ||
&:hover { color: white; } | ||
} | ||
} | ||
} | ||
|
||
#bottom-navigation-area { | ||
display: none; | ||
} | ||
} | ||
} |
96 changes: 96 additions & 0 deletions
96
src/api/app/assets/stylesheets/webui/responsive_ux/layout.scss
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,96 @@ | ||
.flash-and-announcement.sticky-top { top: $top-navigation-height + .25rem; } | ||
|
||
// Place CodeMirror editor header under the top navigation | ||
#top_0.sticky-top { top: $top-navigation-height; } | ||
|
||
// NAVIGATION | ||
|
||
#top-navigation-area { | ||
.fixed-top { height: $top-navigation-height; } | ||
.toggler { | ||
@extend .ml-2; | ||
@extend .d-none; | ||
@extend .d-xl-flex; | ||
@extend .align-items-center; | ||
cursor: pointer; | ||
&.text-center { min-width: 3.875rem; } | ||
&:first-of-type { @extend .ml-3; } | ||
} | ||
|
||
.nav .nav-link { | ||
color: $gray-300; | ||
&:hover { color: white; } | ||
} | ||
|
||
.menu-options { font-size: 1.1rem } | ||
|
||
.navbar-brand img { height: 1.875rem; } | ||
} | ||
|
||
#top-navigation-area, #bottom-navigation-area { | ||
a.nav-link { | ||
span.d-block { line-height: 1rem; } | ||
|
||
&.active { | ||
background-color: darken($dark, 10%); | ||
@extend .rounded; | ||
} | ||
} | ||
} | ||
|
||
// BREADCRUMBS | ||
|
||
.breadcrumb { | ||
padding-bottom: 0; | ||
@extend .mt-2; | ||
.breadcrumb-item { | ||
display: block; | ||
line-height: 1.5rem; | ||
} | ||
.breadcrumb-item::after { | ||
display: inline-block; | ||
padding: 0 0.5rem 0 0.25rem; | ||
color: #6c757d; | ||
content: "/"; | ||
} | ||
.breadcrumb-item:last-child::after { content: ''; } | ||
.breadcrumb-item + .breadcrumb-item { padding-left: 0; } | ||
|
||
// FIXME: This could be done overriding the variable $breadcrumb-divider: none; | ||
.breadcrumb-item + .breadcrumb-item::before { display: none; } | ||
} | ||
|
||
// LOG IN AND SIGN UP | ||
|
||
.access-modal { | ||
background-color: #00000080; | ||
.close { cursor: pointer; } | ||
.login-separator { | ||
position: relative; | ||
span { | ||
position: absolute; | ||
top: -.7rem; | ||
left: 50%; | ||
padding: 0 .5rem; | ||
margin-left: -1.5rem; | ||
} | ||
} | ||
} | ||
|
||
// FOOTER | ||
|
||
#footer { | ||
strong { color: $gray-700; } | ||
|
||
& a { | ||
color: $gray-700; | ||
&:hover { color: $gray-900; } | ||
} | ||
|
||
li { @extend .my-2; } | ||
|
||
#footer-legal { | ||
font-size: .9rem; | ||
p { color: $gray-700; } | ||
} | ||
} |
Oops, something went wrong.