X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/ff7b81c5d4d93b8558427a41676911f4483c073a..fa5fd668ce14aa7d5c5a6fa377fa3dddc7570af1:/personal/_sass/_layout.scss?ds=sidebyside diff --git a/personal/_sass/_layout.scss b/personal/_sass/_layout.scss index 4ac6bb2..8859ce1 100644 --- a/personal/_sass/_layout.scss +++ b/personal/_sass/_layout.scss @@ -11,18 +11,26 @@ body { /* This centers us in the page, and handles the "too wide" case */ } #-frame { /* Add a frame, full height */ margin: 0 $navi-width; - padding-top: $outer-margin; + padding-top: $outer-margin; /* distance of top to window border */ + padding-bottom: $outer-margin; /* distance of page-bottom to window border */ border-left: solid $text-color 1px; - min-height: calc(100vh - #{$outer-margin}); + min-height: calc(100vh - #{2*$outer-margin}); } /* The content of the frame */ #-content { margin-left: $intrusion-width; - padding: $outer-margin; + padding-left: $outer-margin; /* Distance to the end of the intrusion */ + padding-right: $outer-margin; /* Distance to the end of the window */ padding-top: 1px; /* If we use 0 here, some paddings add up things get ugly. What?!? */ } +/* The footer */ +#-footer { + padding-top: 3em; + text-align: center; +} + /* Navigation menu */ #-navi { padding: 0; @@ -92,12 +100,13 @@ body { /* This centers us in the page, and handles the "too wide" case */ clear: both; float: none; position: static; + border: none; } #-content { - padding: $outer-margin; + padding: #{ $outer-margin * 0.75 }; } #-navi { - padding: $outer-margin; + padding: #{ $outer-margin * 0.75 }; border-bottom: solid $text-color 1px; ul { @@ -136,6 +145,9 @@ body { /* This centers us in the page, and handles the "too wide" case */ /* Printing */ @media print { + body { + background-color: white; + } body, #-frame, #-content { margin: 0; padding: 0; @@ -150,3 +162,33 @@ body { /* This centers us in the page, and handles the "too wide" case */ display: none; } } + +/* Title and Title-asides spacing */ +.side { + float: right; +} +.subtitle { + margin-top: 2em; + + h1, h2 { + display: inline-block; + margin: 0; + } + .side { + margin-left: 0.5em; + margin-top: 0.45em; + } +} +.title { + margin-top: 0.2em; + margin-bottom: 1.2em; + + h1, h2 { + display: inline-block; + margin: 0; + } + .side { + margin-left: 0.5em; + margin-top: 0.8em; + } +}