Skip to content

Develop fixes/tweaks #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
718f00f
Update drawer help text to indicate that including a menu block with …
darkodevubc Jun 21, 2018
04557f8
Moved sticky option down into the clf_navigation_option section
darkodevubc Jun 21, 2018
8d3b545
Removed duplicate clf_navoption and clf_secondarynavoption defined la…
darkodevubc Jun 21, 2018
adc3faa
Targetting btn-navbar:first-child with right margin so it does not mo…
darkodevubc Jun 21, 2018
20eeb4d
Making the secondary sticky on mobile
darkodevubc Jun 21, 2018
ed4695e
Adjusting position of secondary drop-down nav on mobile
darkodevubc Jun 21, 2018
56ed870
Moved secondary so it is also sticky
darkodevubc Jun 21, 2018
e011f9a
Remove whitespace in theme-settings.php
darkodevubc Jun 21, 2018
a5a1046
Increase z-index of sticky nav
darkodevubc Jun 21, 2018
22b00dc
Adjusted margin of secondary on mobile when it was already done - rev…
darkodevubc Jun 21, 2018
af67041
Adding navigation.sticky.less and adjusting z-index of sticky nav
darkodevubc Jun 21, 2018
04f2ea5
Adjusted z-index of sticky nav after adding navigation.sticky.less
darkodevubc Jun 21, 2018
07675fe
Fixed issue with primary nav not hiding when used in drawer and issue…
darkodevubc Jun 22, 2018
9729f48
Adding .DS_Store to gitignore
darkodevubc Jul 4, 2018
63d5d0d
Fixes for drawer and made the mobile drop-down nav scrollable like th…
darkodevubc Jul 4, 2018
c373437
Remove DS_Store local ignore
darkodevubc Jul 6, 2018
67cc4f6
Changed wording of navoption help text
darkodevubc Jul 6, 2018
bd97ee6
Error loading /includes/template-ubc-clf-elements.inc until theme pat…
darkodevubc Jul 6, 2018
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
657 changes: 656 additions & 1 deletion css/clf_drupal.css

Large diffs are not rendered by default.

32 changes: 23 additions & 9 deletions css/navigation.sticky.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

189 changes: 104 additions & 85 deletions css/off.canvas.drawer.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,43 @@
body.drawer-contains-primary-nav #ubc7-unit-navigation.collapse {
display: none;
}
#drawer-button {
float:right;
margin-right:17px;
color:#000;
border:none;
background-color:rgba(0, 0, 0, 0);
font-family: Arial,Sans-Serif;
padding:10px;
font-size:14px;
float: right;
margin-right: 17px;
color: #000;
border: none;
background-color: rgba(0, 0, 0, 0);
font-family: Arial, Sans-Serif;
padding: 10px;
font-size: 14px;
outline: 0;
}

#drawer-button:hover {
background-color: #002145;
color: #fff;
}
#drawer-button:hover .icon-bar {
background-color: #f5f5f5;
}

#drawer-button .icon-bar {
display: block;
width: 18px;
height: 2px;
margin-top: 2px;
background-color: #000;
-webkit-border-radius: 1px;
-moz-border-radius: 1px;
border-radius: 1px;
-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
-moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.icon-bar#drawer-button + .icon-bar {
margin-top: 3px;
}
#drawer-button .hamburger__elem {
display: inline-block;
}
.drawer-toggle--hamburger {
background-color: #fff;
box-shadow: 1px 1px 1px #191938;
Expand All @@ -27,46 +47,25 @@
padding: 11px 0 0 13px;
width: 32px;
}

.drawer-toggle--hamburger:hover {
box-shadow: 1px 1px 1px #191938;
-webkit-box-shadow: inset 1px 1px 1px #191938;
-moz-box-shadow: 1px 1px 1px #191938;
}

.drawer-toggle--hamburger span {
margin-top: 3px;
display: block;
width: 18px;
height: 2px;
background-color: #002145;
box-shadow: 0 1px 0 rgba(0,0,0,.25);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.drawer-toggle--hamburger span:first-child {
margin-top: 0;
}

@media screen and (min-width:998px) {
.drawer-toggle--hamburger {
display: block;
margin-top: 2px;
margin-right: 13px;
margin-bottom: 3px;
}
}

@media screen and (min-width:1200px) {
.drawer-toggle--hamburger {
margin-top: 5px;
margin-right: 17px;
margin-bottom: 5px;
}
#drawer-button {
line-height: 1.75em;
}
.drawer-toggle--hamburger .off-canvas-drawer {
color: #fff;
}

#pushed-content {
position: relative;
z-index: 1;
Expand All @@ -75,11 +74,11 @@
}
#pushed-content.drawer--push-left.off-canvas-drawer--is-active {
transform: translate3D(-20rem, 0, 0);
box-shadow: 2px 0 2px rgba(0, 0, 0, .15);
box-shadow: 2px 0 2px rgba(0, 0, 0, 0.15);
}
#pushed-content.drawer--push-right.off-canvas-drawer--is-active {
transform: translate3D(20rem, 0, 0);
box-shadow: 2px 0 2px rgba(0, 0, 0, .15);
box-shadow: 2px 0 2px rgba(0, 0, 0, 0.15);
}
#off-canvas-drawer--primary {
transition: transform 0.125s ease, visibility 0.125s ease;
Expand All @@ -92,11 +91,19 @@
display: block;
overflow: auto;
}
#off-canvas-drawer--primary.drawer--cover-left, #off-canvas-drawer--primary.drawer--push-left {
#off-canvas-drawer--primary.drawer--cover-left {
right: 0;
transform: translate3D(20rem, 0, 0);
}
#off-canvas-drawer--primary.drawer--cover-right, #off-canvas-drawer--primary.drawer--push-right {
#off-canvas-drawer--primary.drawer--push-left {
right: 0;
transform: translate3D(20rem, 0, 0);
}
#off-canvas-drawer--primary.drawer--cover-right {
left: 0;
transform: translate3D(-20rem, 0, 0);
}
#off-canvas-drawer--primary.drawer--push-right {
left: 0;
transform: translate3D(-20rem, 0, 0);
}
Expand Down Expand Up @@ -127,13 +134,22 @@
width: 100%;
opacity: 0.5;
}
@media screen and (max-width: 979px) {
.has-off-canvas-drawer #ubc7-unit-menu {
display: none;
}
.off-canvas-drawer a {
color: #fff;
border-top-style: solid;
border-top-width: 1px;
border-color: #414141;
box-shadow: none;
box-sizing: border-box;
padding: 18px;
padding-right: 0;
text-decoration: none;
}
.off-canvas-drawer a:hover {
color: #fff;
border-color: #414141;
}
.drawer-toggle--hamburger .off-canvas-drawer, .off-canvas-drawer a, .off-canvas-drawer .dropdown-menu a {
/* Alter CLF Navigation markup to work vertically */
.off-canvas-drawer .dropdown-menu a {
color: #fff;
}
.off-canvas-drawer .drawer__close {
Expand All @@ -156,26 +172,28 @@
.off-canvas-drawer .drawer__close:focus {
background-color: #424242;
}
.off-canvas-drawer a {
border-top-style: solid;
border-top-width: 1px;
border-color: #414141;
box-shadow: none;
box-sizing: border-box;
padding: 18px;
padding-right: 0;
text-decoration: none;
}
.off-canvas-drawer a:hover {
color: #fff;
border-color: #414141;
.off-canvas-drawer .nav > li > a:focus {
background-color: #4f4f4f;
}
.off-canvas-drawer .nav > li > a:focus, .off-canvas-drawer .nav > li > a:hover, .off-canvas-drawer .btn-group:hover > .btn, .off-canvas-drawer .btn-group > a:focus {
.off-canvas-drawer .nav > li > a:hover {
background-color: #4f4f4f;
}
.off-canvas-drawer .btn-group {
width: 100%;
}
.off-canvas-drawer .btn-group:hover > .btn {
background-color: #4f4f4f;
}
.off-canvas-drawer .btn-group:hover > .dropdown-toggle {
background-color: #424242;
}
.off-canvas-drawer .btn-group > a {
width: 100%;
z-index: 1;
}
.off-canvas-drawer .btn-group > a:focus {
background-color: #4f4f4f;
}
.off-canvas-drawer .btn-group .dropdown-toggle {
z-index: 2;
float: none;
Expand All @@ -185,15 +203,18 @@
height: 55px;
box-shadow: none;
}
.off-canvas-drawer .btn-group .dropdown-toggle:hover:after, .off-canvas-drawer .btn-group .dropdown-toggle:focus:after {
.off-canvas-drawer .btn-group .dropdown-toggle:hover:after {
color: #fff;
}
.off-canvas-drawer .btn-group .dropdown-toggle span {
transition: all 0.3s ease;
}
.off-canvas-drawer .btn-group .dropdown-toggle:hover span {
transform: rotate(90deg);
}
.off-canvas-drawer .btn-group .dropdown-toggle:focus:after {
color: #fff;
}
.off-canvas-drawer .btn-group .dropdown-toggle span {
transition: all 0.3s ease;
}
.off-canvas-drawer .btn-group .dropdown-menu {
border: none;
width: 100%;
Expand All @@ -207,10 +228,6 @@
padding-top: 18px;
padding-bottom: 18px;
}
.off-canvas-drawer .btn-group > a {
width: 100%;
z-index: 1;
}
.off-canvas-drawer .btn-group > .btn {
background-color: #686868;
border-left: none;
Expand All @@ -222,9 +239,6 @@
background-image: none;
text-align: left;
}
.off-canvas-drawer .btn-group:hover > .dropdown-toggle {
background-color: #424242;
}
.off-canvas-drawer .btn-group.open span {
transform: rotate(90deg);
transition: all 0.3s ease;
Expand All @@ -243,21 +257,26 @@
.off-canvas-drawer .ubc7-arrow {
background-position: -1113px -227px !important;
}
#drawer-button .icon-bar {
display:block;
width:18px;
height:2px;
background-color:#000;
-webkit-border-radius:1px;
-moz-border-radius:1px;
border-radius:1px;
-webkit-box-shadow:0 1px 0 rgba(0,0,0,0.25);
-moz-box-shadow:0 1px 0 rgba(0,0,0,0.25);
box-shadow:0 1px 0 rgba(0,0,0,0.25)
}
#drawer-button .icon-bar+.icon-bar {
margin-top:3px
@media screen and (min-width: 998px) {
.drawer-toggle--hamburger {
display: block;
margin-top: 2px;
margin-right: 13px;
margin-bottom: 3px;
}
}
#drawer-button .hamburger__elem {
display: inline-block;
@media screen and (min-width: 1200px) {
.drawer-toggle--hamburger {
margin-top: 5px;
margin-right: 17px;
margin-bottom: 5px;
}
#drawer-button {
line-height: 1.75em;
}
}
@media screen and (max-width: 979px) {
.has-off-canvas-drawer #ubc7-unit-menu {
display: none;
}
}
Loading