diff --git a/assets/style.scss b/assets/style.scss index 7de34d3..508c1ea 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -160,6 +160,7 @@ nav { article { display: flex; + flex-direction: column; &.preview { margin-bottom: 3rem; @@ -181,21 +182,15 @@ article { } } - &.page { + &.page, &.post { & > .image { - display: none; text-align: right; & > img { + display: block; height: auto; width: 100%; } - - @media screen and (min-width: $small) { - display: block; - padding-left: 1.5em; - width: 60%; - } } & > .text { @@ -206,6 +201,35 @@ article { } } } + + &.page > .image { + display: none; + + @media screen and (min-width: $small) { + display: block; + padding-left: 1.5em; + width: 60%; + } + } + + &.post { + & > .image { + margin-bottom: 1em; + + @media screen and (min-width: $small) { + padding-left: 1.5em; + width: 60%; + } + } + + @media screen and (min-width: $small) { + flex-direction: row-reverse; + } + } + + @media screen and (min-width: $small) { + flex-direction: row; + } } a { diff --git a/layouts/_default/single.html b/layouts/_default/single.html index bea8c3e..aa3a526 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,9 +1,9 @@ {{ define "main" }}