Repository navigation
Expand file tree
/
Copy pathsailing.css
More file actions
85 lines (73 loc) · 3.41 KB
/
Copy pathsailing.css
File metadata and controls
85 lines (73 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* Header image is public domain from https://pixnio.com/nature-landscapes/beaches/water-sea-foam-beach-wet-nature-ocean-turquoise-summer-beautiful-sand-water-wave */
/* This stylesheet is the other half of sailing.js. It contains the rules that
markdeepOptions has no setting for: the custom properties the banner uses,
the banner title with its compass rose, and the header classes without
numbering. The body, links, and h1 through h5 have names in the style
vocabulary, so they are in sailing.js. The 'header' face and the
banner are in sailing.js as well. */
:root {
/* An outer width: --article-padding comes off each side, so the text column
is 816px. The widest teaser image, 590px, sits beside the inset overview
and needs 811px of column. */
--content-max-width: 880px;
--banner-height: 60px;
--rose-size: 50px;
}
.md #site_header a {
position: relative;
font-family: header;
font-size: 40px;
font-weight: bold;
color: #FFF !important;
text-decoration: none !important;
filter: drop-shadow(0px 1px 3px #333);
}
.md #site_header a::before {
content: "";
position: absolute;
left: -57px;
top: 5px;
width: var(--rose-size);
height: var(--rose-size);
background: url('fat-compass-rose.png') no-repeat;
background-size: contain;
}
em.asterisk { font-style: normal; font-weight: bold; }
/* The dates under a title run as one line: keys and values inline in the body
face, a space after each key and a semicolon between pairs. The block itself
is laid out in sailing.js; a dt or dd inside it has no name in the style
vocabulary. */
.md dl.metadata > dt,
.md dl.metadata > dd {
display: inline;
font-weight: inherit;
}
.md dl.metadata > dt::after { content: " " }
.md dl.metadata > dd + dt::before { content: "; " }
/* The overview is inserted above the dates and floats from there. The top
margin keeps it from starting on the same line as the dates.
The margin also aligns the box's left rule with the top of the teaser image
beside it. The rule is drawn on the border box, which begins above the first
entry's text, so a box that only clears the dates puts the rule 12px higher
than the image and reads as misaligned. 57px lands the two together. Tune it
by eye against the image; a date block of more than one line needs more.
The box is set in Arial against the Georgia prose, so that it reads as
apparatus, separate from the text. */
.md .insetTOC {
margin-top: 57px;
font-family: Arial, Helvetica, sans-serif;
}
/* h1 through h5 are set in sailing.js. These classes style a header without a
section number; such a header has no name in the style vocabulary. */
.md .nonumberh2, .md .nonumberh3, .md .nonumberh4, .md .nonumberh5 {font-family: header}
.md .nonumberh2 {font-size: 30px}
.md .nonumberh3 {font-size: 26px}
.md .nonumberh4 {font-size: 24px}
.md .nonumberh5 {font-size: 22px}
/* Markdeep sets a captioned image in its own block in a band as wide as the page,
centered on the page. Beside the overview that band is shortened on the right
only, which moves a teaser left of the text. The padding makes the band's
content box as wide as the text column, so the teaser centers on the text
beside the overview. A teaser is narrower than the column, so it never needs
the band's full width. */
.md center.wide:has(img.teaser) {box-sizing: border-box; padding-inline: calc((100cqi - 100%) / 2)}