Skip to content

Commit

Permalink
Merge pull request #69 from royalfig/bugfix/menu
Browse files Browse the repository at this point in the history
bugfixes
  • Loading branch information
royalfig authored Jul 17, 2021
2 parents 7c0d5ed + 886bf3c commit 6693033
Show file tree
Hide file tree
Showing 11 changed files with 6,922 additions and 18 deletions.
4 changes: 2 additions & 2 deletions assets/built/app.css

Large diffs are not rendered by default.

5,912 changes: 5,910 additions & 2 deletions assets/built/app.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/built/post.css

Large diffs are not rendered by default.

982 changes: 979 additions & 3 deletions assets/built/post.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smart",
"version": "1.2.1",
"version": "1.2.2",
"description": "An elegant Ghost theme",
"main": "index.js",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion partials/footer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
{{#get "tags" include="count.posts" filter="name:-publications+name:-presentations+name:-teaching+name:-outreach+name:-dissertation" limit="10" order="count.posts desc"}}
{{#if tags}}
<div class="sm-footer__section">
<p class="footer__header--serif">Tags</p>
<p class="sm-footer__header--serif">Tags</p>
{{#foreach tags}}
<a class="sm-tag" href="{{url}}">{{name}}</a>
{{/foreach}}
Expand Down
2 changes: 1 addition & 1 deletion partials/menu.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{! Mobile Nav Menu }}
<nav class="sm-modal" id="sm-menu" aria-expanded="false">
<nav class="sm-modal sm-menu" id="sm-menu" aria-expanded="false">
<div class="sm-modal__container">
<header class="sm-modal__header">
<button class="sm-modal__close-btn" data-target="menu" aria-label="Close menu" tabindex="-1">
Expand Down
4 changes: 2 additions & 2 deletions src/scss/base/_default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ em {
}

::selection {
color: #111;
background-color: #e0c081;
color: var(--textInverse);
background-color: var(--secondary);
}

:target {
Expand Down
12 changes: 10 additions & 2 deletions src/scss/layout/_container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@
min-height: 250px;
padding-bottom: 1rem;

.post-template &, .page-template &, .tag-template &, .author-template &, {
.post-template &,
.page-template &,
.tag-template &,
.author-template & {
padding-bottom: 3.5rem;
}

@media (min-width: variables.$laptop) {
padding-bottom: 1rem;
.post-template &,
.page-template &,
.tag-template &,
.author-template & {
padding-bottom: 1rem;
}
}

font-size: 0.9rem;
Expand Down
2 changes: 0 additions & 2 deletions src/scss/layout/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
&__section {
display: flex;
flex-direction: column;
// padding: 0.5rem;

&--latest {
@extend .sm-footer__section;
Expand Down Expand Up @@ -60,7 +59,6 @@
&__header--serif {
margin-bottom: 0.5rem;
font-size: 115%;
// @extend .serif;
}

&__social {
Expand Down
14 changes: 14 additions & 0 deletions src/scss/layout/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@
// Mobile Nav Menu
//-------------------------------------------
@use '../abstracts/mixins';
@use '../abstracts/variables';

.sm-menu {
.sm-modal__container {
padding: 1rem;

@media (min-width: variables.$tablet) {
padding: 1rem 3rem;
}

@media (min-width: variables.$laptop) {
padding: 1rem 4rem;
}
}

&__link {
@include mixins.transition(color);
&:focus {
Expand Down

0 comments on commit 6693033

Please sign in to comment.