X-Git-Url: http://git.osdn.net/view?p=mingw%2Fwebsite.git;a=blobdiff_plain;f=site.css;h=713a0d4cb7de4a84dcc0449a3f33f080c0a87044;hp=9db30cb448d036801847cb608c62ea5e90ac9d85;hb=659fb0b8deabc58ceed320e2503907a59bdb8e82;hpb=899ad64ce7c6e05311acffd60d559ea65f7a27c0 diff --git a/site.css b/site.css index 9db30cb..713a0d4 100644 --- a/site.css +++ b/site.css @@ -2,13 +2,13 @@ * site.css * * Rules for application of consistent styling, for all regular pages, - * across the MinGW.org site. + * across the MinGW.OSDN site. * * * $Id$ * * Written by Keith Marshall - * Copyright (C) 2020, MinGW.org Project + * Copyright (C) 2020, 2021, MinGW.OSDN Project * * * Redistribution and use in source and 'compiled' forms (SGML, HTML, @@ -25,10 +25,10 @@ * and the following disclaimer in the documentation and/or other * materials provided with the distribution. * - * THIS DOCUMENTATION IS PROVIDED BY THE MINGW.ORG PROJECT "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE MINGW.ORG PROJECT, OR + * THIS DOCUMENTATION IS PROVIDED BY THE MINGW.OSDN PROJECT "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE MINGW.OSDN PROJECT, OR * ITS CONTRIBUTORS, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, @@ -255,6 +255,30 @@ dl.masthead+p } +/* Subsection Reference Positioning Relative to Page Header + * ======================================================== + */ +.overlapped +{ /* Any internal page reference will be positioned at the same + * vertical offset, within the viewport, as the top of the page + * header block. Thus, any text which appears within the upper + * 70px of the subsection division will be hidden behind the + * header block; adjust the alignment of the target element, + * such that its top margin overlaps the lower region of the + * preceding element, by the depth of the header block, then + * pad it, to push the content downward, into the viewport. + */ + margin-top: -70px; padding-top: 70px; +} +hr+div.overlapped +{ /* When an overlapped division follows a horizontal rule, we + * need to adjust its position upward, to allow for the blank + * space in the bottom margin of the rule element. + */ + margin-top: calc( -70px - 0.6em ); +} + + /* Supplementary Formatting for Sections with Numbered Headings * ============================================================ */