Skip to content

Commit

Permalink
update minimal
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Buschmann committed Apr 21, 2021
1 parent 7028040 commit 760f258
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ date_format: "%B %d, %Y"
show_excerpts: true # show article excerpts on the home page
show_frame: true # adds a gray frame to the site
show_sidebar: false # show a sidebar instead of the usual header
minimal: false # hide the box-shadow from header and footer
minimal: false # use a dark header

# Menu

Expand Down
15 changes: 13 additions & 2 deletions assets/css/index.sass
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,22 @@
body > header, body > article, body > footer
padding: 1.7em calc(38% - 14em)

{% if site.minimal %}

body > header
background: $dark
color: $light
border-bottom: 1px solid reduce(14)

{% else %}

body > header
{% unless site.minimal %}box-shadow: 0 0 .6em rgba($dark, 0.04){% endunless %}
box-shadow: 0 0 .6em rgba($dark, 0.04)
border-bottom: 1px solid reduce(14)

{% endif %}

body > footer
{% unless site.minimal %}box-shadow: 0 0 .6em rgba($dark, 0.04) inset{% endunless %}
box-shadow: 0 0 .6em rgba($dark, 0.04) inset
border-top: 1px solid reduce(14)
opacity: .9

0 comments on commit 760f258

Please sign in to comment.