Skip to content

Commit

Permalink
feat: update media
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Oct 14, 2018
1 parent 1e98e6e commit 1a8556a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion _sass/common/classes/_media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@if $breakpoints == default {
$breakpoints: $responsive;
}
@media screen and (max-width: map-get($breakpoints, $name)) {
@media screen and (max-width: map-get($breakpoints, $name) - 1) {
@content;
}
}
Expand Down
2 changes: 1 addition & 1 deletion _sass/common/components/_hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
.hero__content {
margin: map-get($spacers, 5);
@include media-breakpoint-down(lg) {
margin: map-get($spacers, 5) map-get($spacers, 3);
margin: map-get($spacers, 5) map-get($spacers, 4);
}
@include media-breakpoint-down(md) {
margin: map-get($spacers, 4) map-get($spacers, 3);
Expand Down
14 changes: 6 additions & 8 deletions _sass/common/components/_item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@

.item__image {
margin-right: map-get($spacers, 3);
@include media-breakpoint-down(md) {
margin-right: 0;
}
@include media-breakpoint-up(md) {
& + .item__content {
& + .item__content {
& > :first-child {
margin-top: 0;
& > :first-child {
margin-top: 0;
& > :first-child {
margin-top: 0;
}
}
}
}
@include media-breakpoint-down(md) {
margin-right: 0;
}
}

.item__content {
Expand Down
1 change: 0 additions & 1 deletion docs/_posts/2017-08-01-media.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ title: TeXt - Media
key: 20170802
tags: TeXt
toc: true
category: post
---

With the help of plugins for media, you can easily add **audio**, **video** and **slides** in your posts.
Expand Down
1 change: 0 additions & 1 deletion docs/_posts/2017-08-08-additional-styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ title: TeXt - Additional Styles
key: 20170808
tags: TeXt
toc: true
category: post
---

Success!
Expand Down

0 comments on commit 1a8556a

Please sign in to comment.