diff --git a/_includes/layouts/page.njk b/_includes/layouts/page.njk index 7697ffa2..d45b69ef 100644 --- a/_includes/layouts/page.njk +++ b/_includes/layouts/page.njk @@ -19,6 +19,8 @@ {% include "partials/langpicker.njk" %} + {% include "partials/master-main.njk" %} +

{{title}}

diff --git a/_includes/partials/master-main.njk b/_includes/partials/master-main.njk new file mode 100644 index 00000000..de562b83 --- /dev/null +++ b/_includes/partials/master-main.njk @@ -0,0 +1,36 @@ +
+ + +
+ diff --git a/_includes/site.css b/_includes/site.css index d5bab002..6f699537 100644 --- a/_includes/site.css +++ b/_includes/site.css @@ -43,16 +43,18 @@ footer { footer a { color: white; } -.langpicker { +.langpicker, +.master-main-switch { float: right; margin-top: 0.5em; - margin-bottom: 2em; + margin-bottom: 0.5em; overflow: hidden; } .langpicker * { box-sizing: border-box; } -.langpicker-button { +.langpicker-button, +.master-main-switch { border: 2px solid #222; background: none; font-size: 1em; @@ -113,6 +115,30 @@ footer a { display: inline-block; color: #fff; } +.master-main-switch { + clear: right; + margin-top: 0; + margin-bottom: 2em; + height: auto; + padding: 0; + align-items: center; +} +.master-main-switch code { + display: block; + font: inherit; + font-weight: bold; + padding: 0.25em 0.5em; + cursor: pointer; + color: black; + background: white; +} +.master-main-switch input { + display: none; +} +.master-main-switch input:checked + code { + background: black; + color: white; +} .max-width { margin: 1em; clear: both;