Skip to content

Commit

Permalink
feat: PSJekyll.Template.IncludeMargin ( Fixes #69 )
Browse files Browse the repository at this point in the history
Adjusting margins, adding id
  • Loading branch information
James Brundage authored and James Brundage committed Oct 6, 2024
1 parent 0b33e3e commit a479dbd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/_includes/Margin.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{% if site.margin %}
<style type='text/css'>body > * { margin: {{site.margin}} } </style>
<style id='globalMargin' type='text/css'>{{site.margin}}</style>
{% else %}
<style type='text/css'>body > * { margin: 2.5% } </style>
{% endif %}
<style type='text/css' id='globalMargin'>
body > * { margin: 1em; }
@media (max-width: 960px) {
body > * { margin: .5em; }
}
</style>
{% endif %}

0 comments on commit a479dbd

Please sign in to comment.