Skip to content

Commit

Permalink
Adjust CSS again for desktop/mobile readability
Browse files Browse the repository at this point in the history
Affects: #28
  • Loading branch information
io7m committed Sep 15, 2024
1 parent 651e97d commit 95ba74a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@

.brandingContainer
{
margin: 1em;
margin-top: 1em;
margin-bottom: 1em;
font-size: 80%;
}

.branding
{
font-family: monospace;
font-size: 80%;
}

.command,
Expand All @@ -34,7 +35,6 @@
.parameter
{
font-family: monospace;
font-size: 90%;
}

.term
Expand All @@ -45,7 +45,6 @@
.genericTable
{
border: 1px solid #dddddd;
width: 100%;
border-collapse: collapse;
}
.genericTable th
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,21 @@
:root {
--stBackgroundColor: #ffffff;
--stBodyFont: sans-serif;
--stBodyFontSize: 2vmin;
--stBodyFontSize: 16px;
--stBodyLineHeight: 1.4;
--stColumnWidthLeft: 3em;
--stColumnWidthMain: 97%;
--stColumnWidthLeft: 2em;
--stColumnWidthMain: 100%;
--stDivider: 1px solid #dddddd;
--stHeaderColor: #202020;
--stHeaderFont: sans-serif;
--stMarginRight: 0.5em;
--stMarginLeft: 1em;
--stMarginRight: 1em;
--stMetaBorder: 1px solid #dddddd;
--stMetaFont: monospace;
--stNavigationRowGap: 0.25em;
--stVerbatimBorder: 1px solid #dddddd;
--stVerbatimFont: monospace;
--stVerbatimFontSize: 1.5vmin;
--stVerbatimFontSize: 14px;

--stH1Size: 110%;
--stH2Size: 106%;
Expand All @@ -50,6 +51,7 @@ body
font-family: var(--stBodyFont);
font-size: var(--stBodyFontSize);
line-height: var(--stBodyLineHeight);
margin-left: var(--stMarginLeft);
margin-right: var(--stMarginRight);
}

Expand Down Expand Up @@ -97,7 +99,7 @@ h6

.stRegion
{
margin-left: 1em;

}
.stRegionMargin
{
Expand All @@ -123,7 +125,6 @@ h6
grid-template-columns: 33.3% 33.3% 33.3%;
grid-row-gap: var(--stNavigationRowGap);

margin: 1em;
border-bottom: var(--stDivider);
padding-bottom: 1em;
}
Expand All @@ -134,10 +135,9 @@ h6
grid-template-columns: 33.3% 33.3% 33.3%;
grid-row-gap: var(--stNavigationRowGap);

margin: 1em;
margin-top: 2em;
border-top: var(--stDivider);
padding-top: 1em;
border-top: var(--stDivider);
}

.stNavigationHeaderPrevTitle
Expand Down Expand Up @@ -240,9 +240,10 @@ h6
* Document title.
*/

.stDocumentTitle h1
.stDocumentTitle
{
font-size: 120%;
font-size: 130%;
font-weight: bold;
}

/*
Expand Down Expand Up @@ -277,8 +278,7 @@ h6
}
.stParagraph .stRegionContent
{
margin-right: calc(2 * var(--stMarginRight));
color: var(--stContentColor);

}

/*
Expand All @@ -297,14 +297,11 @@ h6

.stFootnotes
{
margin-right: var(--stMarginRight);
margin-top: 1em;
color: var(--stContentColor);
margin-top: 1em;
}
.stFootnotes table
{
border: var(--stMetaBorder);
width: 100%;
border-collapse: collapse;
}
.stFootnotes td
Expand All @@ -328,15 +325,14 @@ h6

.stRegionContent .stMetadataTable
{
margin-right: calc(2 * var(--stMarginRight));

}
.stMetadataTable table
{
font-family: var(--stMetaFont);
margin-top: 2em;
margin-bottom: 2em;
border: var(--stMetaBorder);
width: 100%;
border-collapse: collapse;
}
.stMetadataTable td
Expand All @@ -347,7 +343,7 @@ h6
}
.stMetadataTable td:nth-child(1)
{
width: 12em;
width: 8em;
}

.stVerbatim
Expand All @@ -356,7 +352,6 @@ h6
padding: 1em;
margin: 0em;
overflow: scroll;
margin-right: var(--stMarginRight);
font-family: var(--stVerbatimFont);
font-size: var(--stVerbatimFontSize);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
content="application/xhtml+xml; charset=utf-8"/>
<meta name="generator"
content="${project.groupId}/${project.version}"/>
<meta name="viewport"
content="width=device-width, initial-scale=1.0"/>

<link rel="stylesheet"
type="text/css"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xdoc="http://www.pnp-software.com/XSLTdoc"
xmlns:si="xstructural-index.xsd"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:s="urn:com.io7m.structural:8:0"
xmlns="http://www.w3.org/1999/xhtml"
Expand Down Expand Up @@ -126,6 +125,8 @@
<head>
<meta name="generator"
content="${project.groupId}/${project.version}"/>
<meta name="viewport"
content="width=device-width, initial-scale=1.0"/>

<link rel="stylesheet"
type="text/css"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
<head>
<meta name="generator"
content="${project.groupId}/${project.version}"/>
<meta name="viewport"
content="width=device-width, initial-scale=1.0"/>

<link rel="stylesheet"
type="text/css"
Expand Down

0 comments on commit 95ba74a

Please sign in to comment.