Skip to content

Commit

Permalink
feat: made showcase more readable
Browse files Browse the repository at this point in the history
remove console.log
update nav to be better clickable
  • Loading branch information
Marvin Heilemann committed Feb 14, 2020
1 parent 14ee6a2 commit 3ff2297
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
2 changes: 0 additions & 2 deletions scripts/bump-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ const { transformVersion } = require('../utils/version')

class BumpVersion extends Plugin {
bump(version) {
console.log(version)

return this.createDirectoryTree(version)
}

Expand Down
5 changes: 1 addition & 4 deletions src/styles/layouts/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,10 @@
}

.nav-link {
padding: var(--spacing-sm);
transition: color 240ms ease-in-out, opacity 240ms ease-in-out;
color: var(--text-color-medium);

@include breakpoint-up(md) {
margin-left: var(--spacing-lg);
}

&:hover,
&.active {
color: var(--text-color-highlight);
Expand Down
20 changes: 15 additions & 5 deletions src/styles/modules/_showcase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@
opacity: 1;
}
}

.content {
@include breakpoint-up(lg) {
transform: translateY(-70px);
opacity: 0;
}
}
}
}

Expand All @@ -33,6 +40,10 @@
overflow: hidden;
cursor: pointer;

@include breakpoint-down(sm) {
min-height: 250px;
}

@include noReducedMotion() {
transition: all ease-in-out 220ms;
}
Expand Down Expand Up @@ -77,13 +88,12 @@
.content {
text-align: center;

@include noReducedMotion() {
transition: all 200ms ease-in-out;
@include breakpoint-up(lg) {
transform: translateY(-100px);
}

@include breakpoint-up(lg) {
transform: translateY(-70px);
opacity: 0;
@include noReducedMotion() {
transition: all 200ms ease-in-out;
}

h2 {
Expand Down

0 comments on commit 3ff2297

Please sign in to comment.