@@ -121,38 +121,35 @@ background: white; margin: 0; padding: ◊x-lineheight[0.5] ◊x-lineheight[1]; } - main header { + main > a > header { text-align: center; } - main header h1 { - font-size: ◊x-lineheight[1.5]; + main > a > header h1 { + display: none; + /* font-size: ◊x-lineheight[1.5]; line-height: ◊x-lineheight[2]; margin: 0 0 ◊x-lineheight[0.5] 0; font-weight: normal; font-style: italic; text-transform: lowercase; color: ◊color-pagehead; - transition: color 0.25s ease; + transition: color 0.25s ease; */ } img.logo { - filter: grayscale(60%); + height: ◊x-lineheight[3]; + filter: none; transition: filter 0.5s ease; } header:hover img.logo { - filter: none; - transition: filter 0.1s ease; - } - - main header:hover h1 { - color: ◊color-linkhover; - transition: color 0.1s ease; + filter: invert(12%) sepia(87%) saturate(2559%) hue-rotate(348deg) brightness(125%) contrast(88%); + transition: filter 0.5s ease; } /* I read somewhere years ago that you should specify styling for links in the following order: Link, Visited, Hover, Active. → Remember the mnemonic: Lord Vader Has Arrived. @@ -166,39 +163,114 @@ a:hover, a:active { /* …[H]as [A]rrived */ color: ◊color-linkhover; background: ◊color-linkbackground; } + + a.index-link:link, a.index-link:visited { + color: ◊color-bodytext; + } + + a.index-link:hover, a.index-link:active { + color: #006400; + } + + a.index-link::after { + content: '\f89b'; + color: #809102; + position: relative; + top: -0.3em; + } main>a { color: inherit; } span.links-footnote { display: inline-block; /* allows keyframe animation to work */ } - li:target, a:target, span.links-footnote:target { + :target { animation: hilite 2.5s; } @keyframes hilite { 0% {background: transparent;} 10% {background: #feffc1;} 100% {background: transparent;} } + main > aside { + text-align: center; + } + + nav { + font-family: 'Triplicate T4c', monospace; + font-feature-settings: "onum" off; + font-size: 0.7rem; + margin: 0; + margin-top: 0.5rem; + text-align: center; + } + + nav ul { + list-style-type: none; + margin: 0.2em auto; + padding: 0; + } + + nav li { + display: none; /* Numbers not displayed on mobile */ + color: gray; + } + + nav li.nav-text { + display: inline; + text-transform: uppercase; + letter-spacing: 0.05rem; + font-size: 0.6rem; + } + + nav li.inactive-link { + color: gray; + } + + nav li.current-page { + color: ◊color-bodytext; + padding: 0.2rem 0.5rem; + border-bottom: dotted ◊color-bodytext 2px; + } + + nav li a { + padding: 0.2rem 0.5rem; + } + + nav li a:link, nav li a:visited { + color: ◊color-bodytext; + } + + nav li a:hover, nav li a:active { + color: ◊color-linkhover; + background: #ebebeb; + } + + i > em { font-style: normal; } + /* On mobile, an
is just a box. Later we'll do fancy stuff if grid support is detected. */ article { margin: ◊x-lineheight[2] 0 ◊x-lineheight[1] 0; padding-top: ◊x-lineheight[1]; } + article:first-of-type { + margin-top: ◊x-lineheight[1]; + } /* Here's my thing these days about article titles: they shouldn't be required. When you write in a paper journal, do you think of a title for every entry? No! You just write the date. The date is the heading. Makes sense. But, this means I've had to think long and hard about how to present two different types of articles (those with titles AND dates, and those with just a date for the title). + filter: invert(12%) sepia(87%) saturate(359%) hue-rotate(348deg) brightness(105%) contrast(88%); For now: By default, the title-less article is assumed to be the norm. On these, we use

to show the date in italics. */ article>h1 { font-size: ◊x-lineheight[1]; line-height: ◊x-lineheight[1]; @@ -206,20 +278,24 @@ font-style: italic; font-weight: normal; } /* Titles non-bold, non-smallcaps by default. This can be overridden in document markup. */ - article>h1.entry-title { + h1.entry-title { margin: 0 0 0 0; text-transform: none; font-style: normal; line-height: 1.7rem; } + + h1.entry-title.note-full { + font-feature-settings: "smcp" on, "liga" on, "clig" on, "dlig" on, "kern" on, "onum" on, "pnum" on; + } /* This class is used in titles for Notes appended to earlier articles */ h1.entry-title .cross-reference { - font-feature-settings: "scmp" off, "liga" on, "clig" on, "dlig" on, "kern" on, "onum" on, "pnum" on; + font-feature-settings: "smcp" off, "liga" on, "clig" on, "dlig" on, "kern" on, "onum" on, "pnum" on; font-style: italic; text-transform: none; } /* I want my *title* permlinks not to be green or underlined. Just your basic raven black, dark green on hover. @@ -240,11 +316,11 @@ } a.rel-bookmark:hover, /* Has */ a.rel-bookmark:active { /* Arrived */ text-decoration: none; - background: #f1f1f1; + background: ◊color-linkbackground; color: #006400; } /* Here's where we add the minty fresh maple leaf glyph. */ a.rel-bookmark::after { @@ -300,10 +376,15 @@ } footer.article-info::before { content: "☞\00a0"; } + + /* Within article info, don’t display series info when on a series page (redundant) */ + body.series-page .series-part { + display: none; + } p.time::before { content: none; } @@ -422,10 +503,16 @@ white-space: pre-wrap; /* Whitespace is preserved by the browser. Text will wrap when necessary, and on line breaks */ } + p.verse-heading { + font-feature-settings: "smcp" on, "liga" on, "clig" on, "dlig" on, "kern" on, "onum" on, "pnum" on; + text-align: center; + font-size: 1.3rem; + } + section.entry-content figure { margin: ◊x-lineheight[1] 0; padding: 0; } @@ -525,31 +612,16 @@ width: 1em; } /* ******* (Mobile first) Journal View styling ******* */ - section.article-listing h2 { - font-weight: normal; - font-style: italic; - font-size: ◊x-lineheight[1]; - margin: 0 0 ◊x-lineheight[0.5] 0; - } - - section.article-listing h2::before { - content: '§\00a0'; - font-family: ◊body-font; - font-style: normal; - color: #d0d0d0; - } - - section.article-listing aside { - margin-bottom: ◊x-lineheight[1]; - font-style: italic; + + section.content-block { } ul.article-list { - margin: 0; + margin-top: ◊x-lineheight[1]; padding: 0; } ul.article-list li { list-style-type: none; @@ -568,10 +640,34 @@ } div.article-list-title { font-size: 1.2rem; } + + /* ******* (Mobile first) Keyword Index styling ******* + */ + + #keywordindex { + column-width: 7rem; + margin-top: ◊x-lineheight[2]; + } + + #keywordindex section { + -webkit-column-break-inside: avoid; /* Chrome, Safari, Opera */ + page-break-inside: avoid; /* Firefox */ + break-inside: avoid; /* IE 10+ */ + } + + #keywordindex h2 { + margin: 0; + } + + #keywordindex ul { + margin-top: 0; + list-style-type: none; + padding: 0; + } /* End of mobile-first typography and layout */ } @@ -578,42 +674,32 @@ /* Here’s where we start getting funky for any viewport wider than mobile portrait. An iPhone 6 is 667px wide in landscape mode, so that’s our breakpoint. */ @media only screen and (min-width: 667px) { main { - margin: 2em auto; + margin: 0 auto; padding-left: 1rem; padding-right: 1rem; width: 30rem; max-width: 90%; } + + nav li { display: inline; } /* Display page numbers on larger screens */ @supports (grid-area: auto) { main { width: 42rem; background: none; } - main header { - display: grid; - grid-template-columns: 9rem 12fr 1fr; - grid-column-gap: 0; - grid-template-areas: "logo masthead ."; - align-items: center; - text-align: left; - margin-bottom: ◊x-lineheight[2]; - } - header img.logo { - grid-area: logo; height: ◊x-lineheight[3]; max-height: 103px; width: auto; - justify-self: end; - margin-right: 1rem; } + /* This header is display:none above, so the following is vestigial */ main header h1 { grid-area: masthead; margin: 0; line-height: 1em; } @@ -667,21 +753,22 @@ margin: 0; padding-left: 3px; } article.no-title footer.article-info { - padding-top: 1.5rem; + margin-top: 1.5rem; + padding-top: 0; } section.entry-content { grid-area: main; /* Prevent content from overriding grid column sizing */ /* See https://css-tricks.com/preventing-a-grid-blowout/ */ min-width: 0; } - section.entry-content:first-child { + section.entry-content :first-child { margin-top: 0 !important; } article>:last-child::after { content: none; @@ -729,32 +816,29 @@ } /* ******* (Grid support) Journal View styling ******* */ - section.article-listing { + section.content-block { display: grid; grid-template-columns: 8rem 7fr 1fr; grid-template-rows: auto auto auto; - grid-template-areas: - ". title title" - "margin main ."; + grid-template-areas: "margin main ."; align-items: start; /* Puts everything at the top */ margin-bottom: 0; grid-column-gap: 1rem; + box-shadow: 0.4em 0.4em 10px #e3e3e3; + background: white; + border: solid 1px #dedede; + border-radius: 2px; + } + div.content-block-main { + padding-top: ◊x-lineheight[1]; + padding-bottom: ◊x-lineheight[1]; + grid-area: main; } - section.article-listing>h2 { - grid-area: title; - } - section.article-listing>aside { - grid-area: margin; - font-size: 0.8rem; - line-height: ◊derive-lineheight[4 #:per-lines 3]; - text-align: right; - color: #6b6b6b; - } - ul.article-list { - grid-area: main; + div.content-block-main > :first-child { + margin-top: 0 !important; } } }