• R/O
  • HTTP
  • SSH
  • HTTPS

website: コミット

HTML source code, style-sheets, scripts, and images for deployment on mingw.osdn.io


コミットメタ情報

リビジョン2364afc57ab7ca2ddafe75845885ef2330cc7f4b (tree)
日時2020-11-06 19:12:24
作者Keith Marshall <keith@user...>
コミッターKeith Marshall

ログメッセージ

Correctly handle internal page section references.

* site.js (load_content) in URL: Scroll to internal reference.
* site.css (overlapped): New styling class; define it, such that any
element to which it is assigned will be positioned, with its topmost
content fully visible below the page header block, when an internal
page reference is scrolled into view.

* contact.html (general-enquiry, bug-report, feature-request)
* mailing.html (mingw-users, mingw-notify, mingw-msys, list-etiquette)
* about.html (cross-compile): Mark reference points as "overlapped".

変更サマリ

差分

--- a/about.html
+++ b/about.html
@@ -171,7 +171,8 @@ project mailing lists available
171171 subscription to these older lists is no longer permitted.
172172 </p>
173173 <hr />
174-<h3 id="cross-compile">Using MinGW for Cross-Hosted Development</h3>
174+<div class="overlapped" id="cross-compile">
175+<h3>Using MinGW for Cross-Hosted Development</h3>
175176 <p>While <strong>MinGW</strong> provides tools
176177 primarily intended for use by developers working on the
177178 MS&#8209;Windows platform,
@@ -188,6 +189,6 @@ although we may be able to help out with advice related to the specifics
188189 of MS&#8209;Windows applications development,
189190 common to the use of our own native tool chains
190191 and to such cross&#8209;compilers.
191-</p>
192+</p></div><!-- cross-compile -->
192193
193194 <!-- $RCSfile$: end of file -->
--- a/contact.html
+++ b/contact.html
@@ -78,7 +78,7 @@ in any way, affiliated with MinGW.org;
7878 MinGW.org <strong>does not</strong> support the products
7979 of these projects.</em>
8080 </p>
81-<div id="general-enquiry">
81+<div class="overlapped" id="general-enquiry">
8282 <h3>General Enquiries</h3>
8383 <p>If you encounter a problem using MinGW, or MSYS,
8484 and you cannot find a satisfactory answer on our web&#8209;site,
@@ -111,7 +111,7 @@ we <em>strongly</em> recommend that you acquaint yourself with
111111 compliance with this may improve your chances of receiving a response,
112112 whereas non&#8209;compliance may result in your post being ignored.
113113 </p></div><!-- general-enquiry -->
114-<div id="bug-report">
114+<div class="overlapped" id="bug-report">
115115 <h3>Reporting Bugs</h3>
116116 <p>After discussing an issue on the mailing&#8209;list,
117117 as described above, you may be asked to file a formal bug report.
@@ -185,7 +185,7 @@ and create a bad impression of the reporter).
185185 Finally, when you are satisfied, click the &#8220;Submit&#8221; button
186186 to complete the ticket submission process.
187187 </p></div><!-- bug-report -->
188-<div id="feature-request">
188+<div class="overlapped" id="feature-request">
189189 <h3>Feature Requests</h3>
190190 <p>When you wish to request the implementation of a new feature,
191191 (e.g.&nbsp;to support a currently unsupported MSVC or POSIX API function),
--- a/mailing.html
+++ b/mailing.html
@@ -74,7 +74,7 @@ today, only two remain operational, and both are
7474 <p>The currently operational
7575 MinGW.org mailing&#8209;lists are:&mdash;
7676 </p>
77-<dl class="no-indent" id="mingw-users">
77+<dl class="no-indent overlapped" id="mingw-users">
7878 <dt><a rel="noopener noreferrer" target="_blank"
7979 href="https://lists.osdn.me/mailman/listinfo/mingw-users"
8080 >MinGW&#8209;Users Mailing&#8209;List</a>
@@ -133,7 +133,7 @@ and the SourceForge.net (lower box) archives, respectively.
133133 <input type="hidden" name="mailing_list" value="mingw-users" />
134134 </form>
135135 </dd>
136-</dl><dl class="no-indent" id="mingw-notify">
136+</dl><dl class="no-indent overlapped" id="mingw-notify">
137137 <dt><a rel="noopener noreferrer" target="_blank"
138138 href="https://lists.osdn.me/mailman/listinfo/mingw-notify"
139139 >MinGW&#8209;Notify Mailing&#8209;List</a>
@@ -186,7 +186,7 @@ However, archives of historical postings remain
186186 and may be searched using their respective keyword&#8209;search boxes,
187187 below.
188188 </p>
189-<dl class="no-indent" id="mingw-msys">
189+<dl class="no-indent overlapped" id="mingw-msys">
190190 <dt><a rel="noopener noreferrer" target="_blank"
191191 href="https://sourceforge.net/p/mingw/mailman/mingw-msys"
192192 >MinGW&#8209;MSYS Mailing&#8209;List</a>
@@ -245,7 +245,7 @@ on the historical MinGW-CVS archive.
245245 </form>
246246 </dd>
247247 </dl>
248-<div id="list-etiquette">
248+<div class="overlapped" id="list-etiquette">
249249 <h3>Mailing&#8209;List Posting Etiquette</h3>
250250 <p>MinGW is an open source project.
251251 As such, it is heavily dependent on people who dedicate
--- a/site.css
+++ b/site.css
@@ -255,6 +255,30 @@ dl.masthead+p
255255 }
256256
257257
258+/* Subsection Reference Positioning Relative to Page Header
259+ * ========================================================
260+ */
261+.overlapped
262+{ /* Any internal page reference will be positioned at the same
263+ * vertical offset, within the viewport, as the top of the page
264+ * header block. Thus, any text which appears within the upper
265+ * 70px of the subsection division will be hidden behind the
266+ * header block; adjust the alignment of the target element,
267+ * such that its top margin overlaps the lower region of the
268+ * preceding element, by the depth of the header block, then
269+ * pad it, to push the content downward, into the viewport.
270+ */
271+ margin-top: -70px; padding-top: 70px;
272+}
273+hr+div.overlapped
274+{ /* When an overlapped division follows a horizontal rule, we
275+ * need to adjust its position upward, to allow for the blank
276+ * space in the bottom margin of the rule element.
277+ */
278+ margin-top: calc( -70px - 0.6em );
279+}
280+
281+
258282 /* Supplementary Formatting for Sections with Numbered Headings
259283 * ============================================================
260284 */
--- a/site.js
+++ b/site.js
@@ -73,6 +73,11 @@ function load_content( container, src )
7373 update_page_content_header( "title" );
7474 update_page_content_header( "subtitle" );
7575 set_content( "e404-missing-page", document.URL );
76+ if( src.includes("#") )
77+ { src = src.substring( src.indexOf("#") + 1, src.length );
78+ element = document.getElementById( src );
79+ if( element ) element.scrollIntoView();
80+ }
7681 break;
7782 case 404:
7883 load_content( container, "missing.html" );
旧リポジトリブラウザで表示