refactor: extract and unify wrapper to baseof
| | |
| | | background-color: $accent; |
| | | margin: 30px; |
| | | |
| | | &-wrapper { |
| | | width: 100%; |
| | | |
| | | @include desktop_and_print { |
| | | width: $content-width; |
| | | } |
| | | } |
| | | |
| | | &__more { |
| | | font-size: 1.4rem; |
| | | } |
| | |
| | | width: calc(var(--sidebar-width) - 20%); |
| | | } |
| | | |
| | | &-wrapper { |
| | | width: 100%; |
| | | |
| | | @include desktop_and_print { |
| | | width: $sidebar-width; |
| | | } |
| | | } |
| | | |
| | | &__content { |
| | | @include desktop_and_print { |
| | | display: flex; |
| | |
| | | @include desktop { |
| | | flex-direction: row; |
| | | } |
| | | |
| | | &__main { |
| | | width: 100%; |
| | | |
| | | @include desktop_and_print { |
| | | width: $content-width; |
| | | } |
| | | } |
| | | |
| | | &__sidebar { |
| | | width: 100%; |
| | | |
| | | @include desktop_and_print { |
| | | width: $sidebar-width; |
| | | } |
| | | } |
| | | } |
| | |
| | | <body class="body"> |
| | | <header class="header">{{ partial "navbar.html" . }}</header> |
| | | <div class="wrapper"> |
| | | <aside class="wrapper__sidebar"> |
| | | {{- partial "sidebar.html" . -}} |
| | | </aside> |
| | | <main class="wrapper__main"> |
| | | {{- block "main" . }}{{- end }} |
| | | </main> |
| | | </div> |
| | | |
| | | {{- partial "footer.html" (dict "context" . "footerClassModifier" "base") -}} |
| | |
| | | {{ define "main" }} |
| | | <div class="post-wrapper"> |
| | | <div |
| | | class="post {{ with .Site.Params.doNotLoadAnimations }} |
| | | . |
| | |
| | | |
| | | {{ end }} |
| | | </div> |
| | | </div> |
| | | |
| | | {{ end }} |
| | |
| | | {{ define "main" }} |
| | | <main class="post-wrapper"> |
| | | <div |
| | | class="post {{ with .Site.Params.doNotLoadAnimations }} |
| | | . |
| | |
| | | {{ if .Params.thumbnail }} |
| | | <div class="post__thumbnail-wrapper"> |
| | | <a href="{{ .RelPermalink }}"> |
| | | <img |
| | | class="post__thumbnail" |
| | | src="{{ .Params.thumbnail | relURL }}" |
| | | alt="Thumbnail image" |
| | | loading="lazy" |
| | | /> |
| | | <img class="post__thumbnail" src="{{ .Params.thumbnail | relURL }}" alt="Thumbnail image" loading="lazy" /> |
| | | </a> |
| | | </div> |
| | | |
| | |
| | | <div class="pagination"> |
| | | {{ template "partials/pagination.html" . }} |
| | | </div> |
| | | </main> |
| | | |
| | | {{ end }} |
| | |
| | | <aside class="sidebar-wrapper"> |
| | | <div |
| | | class="sidebar{{ with .Site.Params.doNotLoadAnimations }} |
| | | . |
| | |
| | | </div> |
| | | {{- partial "footer.html" (dict "context" . "footerClassModifier" "sidebar") -}} |
| | | </div> |
| | | </aside> |
| | |
| | | {{ define "main" }} |
| | | <div class="post-wrapper"> |
| | | {{ range $index, $elemen:= .Site.Data.portfolio.portfolioitems }} |
| | | <div |
| | | class="post {{ with .Site.Params.doNotLoadAnimations }} |
| | |
| | | <p>{{ .description | markdownify }}</p> |
| | | {{ if .link }} |
| | | <div class="portfolio__button-wrapper"> |
| | | <a class="portfolio__button" href="{{ .link | safeURL }}" target="_blank" rel="noopener" |
| | | >Visit Site</a |
| | | > |
| | | <a class="portfolio__button" href="{{ .link | safeURL }}" target="_blank" rel="noopener">Visit Site</a> |
| | | </div> |
| | | |
| | | {{ end }} |
| | |
| | | </div> |
| | | |
| | | {{ end }} |
| | | </div> |
| | | |
| | | |
| | | {{ end }} |