Skip to content

Commit

Permalink
Updated to Foundation 6 Off Canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Englert committed Nov 19, 2015
1 parent 1cf01a1 commit 9dce1f7
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 43 deletions.
55 changes: 28 additions & 27 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ body.is-reveal-open {
overflow: hidden; }

.foundation-mq {
font-family: "small=0em&medium=40em&large=64em&xlarge=75em&xxlarge=90em"; }
font-family: "small=0em&medium=32em&large=64em&xlarge=75em&xxlarge=90em"; }

.slide-in-down.mui-enter, .slide-in-left.mui-enter, .slide-in-up.mui-enter, .slide-in-right.mui-enter, .slide-out-down.mui-leave, .slide-out-right.mui-leave, .slide-out-up.mui-leave, .slide-out-left.mui-leave, .fade-in.mui-enter, .fade-out.mui-leave, .hinge-in-from-top.mui-enter, .hinge-in-from-right.mui-enter, .hinge-in-from-bottom.mui-enter, .hinge-in-from-left.mui-enter, .hinge-in-from-middle-x.mui-enter, .hinge-in-from-middle-y.mui-enter, .hinge-out-from-top.mui-leave, .hinge-out-from-right.mui-leave, .hinge-out-from-bottom.mui-leave, .hinge-out-from-left.mui-leave, .hinge-out-from-middle-x.mui-leave, .hinge-out-from-middle-y.mui-leave, .scale-in-up.mui-enter, .scale-in-down.mui-enter, .scale-out-up.mui-leave, .scale-out-down.mui-leave, .spin-in.mui-enter, .spin-out.mui-leave, .spin-in-ccw.mui-enter, .spin-out-ccw.mui-leave {
transition-duration: 500ms;
Expand Down Expand Up @@ -1260,7 +1260,7 @@ button {
.row.small-uncollapse > .column, .row.small-uncollapse > .columns {
padding-left: 30px;
padding-right: 30px; }
@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.row.medium-collapse > .column, .row.medium-collapse > .columns {
padding-left: 0;
padding-right: 0; }
Expand Down Expand Up @@ -1510,7 +1510,7 @@ button {
margin-left: 0;
margin-right: 0; }

@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.medium-1 {
width: 8.33333%; }
.medium-push-1 {
Expand Down Expand Up @@ -1929,7 +1929,7 @@ h5 {
h6 {
font-size: 1rem; }

@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
h1 {
font-size: 3rem; }
h2 {
Expand Down Expand Up @@ -2048,7 +2048,7 @@ kbd {
.text-left {
text-align: left; }

@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.medium-text-left {
text-align: left; } }

Expand All @@ -2059,7 +2059,7 @@ kbd {
.text-right {
text-align: right; }

@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.medium-text-right {
text-align: right; } }

Expand All @@ -2070,7 +2070,7 @@ kbd {
.text-center {
text-align: center; }

@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.medium-text-center {
text-align: center; } }

Expand All @@ -2081,7 +2081,7 @@ kbd {
.text-justify {
text-align: justify; }

@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.medium-text-justify {
text-align: justify; } }

Expand Down Expand Up @@ -2451,27 +2451,27 @@ select {
.invisible {
visibility: hidden; }

@media screen and (min-width: 0em) and (max-width: 39.9375em) {
@media screen and (min-width: 0em) and (max-width: 31.9375em) {
.hide-for-small-only {
display: none !important; } }

@media screen and (max-width: -0.0625em), screen and (min-width: 40em) {
@media screen and (max-width: -0.0625em), screen and (min-width: 32em) {
.show-for-small-only {
display: none !important; } }

@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.hide-for-medium {
display: none !important; } }

@media screen and (max-width: 39.9375em) {
@media screen and (max-width: 31.9375em) {
.show-for-medium {
display: none !important; } }

@media screen and (min-width: 40em) and (max-width: 63.9375em) {
@media screen and (min-width: 32em) and (max-width: 63.9375em) {
.hide-for-medium-only {
display: none !important; } }

@media screen and (max-width: 39.9375em), screen and (min-width: 64em) {
@media screen and (max-width: 31.9375em), screen and (min-width: 64em) {
.show-for-medium-only {
display: none !important; } }

Expand Down Expand Up @@ -2720,7 +2720,7 @@ select {
.button-group.stacked .button, .button-group.stacked-for-small .button {
width: 100%;
border-right: 0; }
@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.button-group.stacked-for-small .button {
width: auto; }
.button-group.stacked-for-small .button:not(:last-child) {
Expand Down Expand Up @@ -2992,7 +2992,7 @@ select {
display: block; }
.media-object img {
max-width: none; }
@media screen and (min-width: 0em) and (max-width: 39.9375em) {
@media screen and (min-width: 0em) and (max-width: 31.9375em) {
.media-object.stack-for-small .media-object-section {
display: block;
padding: 0;
Expand Down Expand Up @@ -3041,7 +3041,7 @@ select {
display: table-cell; }
.menu.vertical > li {
display: block; }
@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.menu.medium-horizontal > li {
display: table-cell; }
.menu.medium-vertical > li {
Expand Down Expand Up @@ -3143,7 +3143,8 @@ body {
position: absolute;
background: #e6e6e6;
z-index: -1;
min-height: 100%;
max-height: 100%;
overflow-y: auto;
-webkit-transform: translateX(0px);
transform: translateX(0px); }
[data-whatinput="mouse"] .off-canvas {
Expand All @@ -3163,7 +3164,7 @@ body {
-webkit-transform: translateX(-250px);
transform: translateX(-250px); }

@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.position-left.reveal-for-medium {
left: 0; }
.position-left.reveal-for-medium ~ .off-canvas-content {
Expand Down Expand Up @@ -3266,7 +3267,7 @@ body {
border-radius: 0; }
.pagination li:last-child, .pagination li:first-child {
display: inline-block; }
@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.pagination li {
display: inline-block; } }
.pagination a,
Expand Down Expand Up @@ -3458,34 +3459,34 @@ body {
overflow-y: auto; }
[data-whatinput="mouse"] .reveal {
outline: 0; }
@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.reveal {
min-height: 0; } }
.reveal .column, .reveal .columns,
.reveal .columns {
min-width: 0; }
.reveal > :last-child {
margin-bottom: 0; }
@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.reveal {
width: 600px;
max-width: 75rem; } }
.reveal.collapse {
padding: 0; }
@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.reveal .reveal {
left: auto;
right: auto;
margin: 0 auto; } }
@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.reveal.tiny {
width: 30%;
max-width: 75rem; } }
@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.reveal.small {
width: 50%;
max-width: 75rem; } }
@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.reveal.large {
width: 90%;
max-width: 75rem; } }
Expand Down Expand Up @@ -3866,7 +3867,7 @@ table.hover tr:nth-of-type(even):hover {
width: 200px;
margin-right: 1rem; }

@media screen and (min-width: 40em) {
@media screen and (min-width: 32em) {
.top-bar-left {
float: left; }
.top-bar-right {
Expand Down
2 changes: 1 addition & 1 deletion assets/css/style.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/scss/_settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
// 33. Tooltip
// 34. Top Bar

@import 'util/util';
@import '../../vendor/foundation/scss/util/util';

// 1. Global
// ---------
Expand Down
6 changes: 3 additions & 3 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
</div>
</div> <!-- end #inner-footer -->
</footer> <!-- end .footer -->
</div> <!-- end .off-canvas-wrapper-inner -->
</div> <!-- end .off-canvas-wrapper -->
</div> <!-- end .main-content -->
</div> <!-- end .off-canvas-wrapper-inner -->
</div> <!-- end .off-canvas-wrapper -->
<?php wp_footer(); ?>
</body>
</html> <!-- end page -->
23 changes: 13 additions & 10 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,21 @@
</head>

<!-- Uncomment this line if using the Off-Canvas Menu -->
<?php /get_template_part( 'parts/content', 'offcanvas' ); ?>


<body <?php body_class(); ?>>

<div class="off-canvas-wrapper">

<div class="off-canvas-wrapper-inner" data-off-canvas-wrapper>

<header class="header" role="banner">

<!-- This navs will be applied to the topbar, above all content
To see additional nav styles, visit the /parts directory -->
<?php get_template_part( 'parts/nav', 'offcanvas-topbar' ); ?>

</header> <!-- end .header -->

<?php get_template_part( 'parts/content', 'offcanvas' ); ?>

<div class="off-canvas-content" data-off-canvas-content>

<header class="header" role="banner">

<!-- This navs will be applied to the topbar, above all content
To see additional nav styles, visit the /parts directory -->
<?php get_template_part( 'parts/nav', 'offcanvas-topbar' ); ?>

</header> <!-- end .header -->
3 changes: 2 additions & 1 deletion vendor/foundation/scss/components/_off-canvas.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ $maincontent-shadow: 0 0 10px rgba($black, 0.5);
position: absolute;
background: $offcanvas-background;
z-index: $offcanvas-zindex;
min-height: 100%;
max-height: 100%;
overflow-y: auto;
transform: translateX(0px);
}

Expand Down

0 comments on commit 9dce1f7

Please sign in to comment.