Index: web-extra/martin.css.pp ================================================================== --- web-extra/martin.css.pp +++ web-extra/martin.css.pp @@ -115,11 +115,10 @@ } .nonhist { font-variant-alternates: normal; } - /*
is the white box of content with the flat-looking drop shadow. */ main { background: white; margin: 0; padding: ◊x-lineheight[0.5] ◊x-lineheight[1]; } @@ -127,33 +126,33 @@ main header { text-align: center; } main header h1 { - font-size: ◊x-lineheight[1.15]; + font-size: ◊x-lineheight[1.5]; line-height: ◊x-lineheight[2]; margin: 0 0 ◊x-lineheight[0.5] 0; font-weight: normal; - font-feature-settings: "smcp" on, "liga" on, "clig" on, "dlig" on, "kern" on, "onum" on, "pnum" on; + font-style: italic; text-transform: lowercase; color: ◊color-pagehead; - /* transition: color 0.25s ease; */ + transition: color 0.25s ease; } img.logo { filter: grayscale(60%); transition: filter 0.5s ease; } header:hover img.logo { filter: none; - transition: filter 0.25s ease; + transition: filter 0.1s ease; } main header:hover h1 { - color: ◊color-bodytext; - /* transition: color 0.25s ease; */ + color: ◊color-linkhover; + transition: color 0.1s 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. @@ -187,11 +186,12 @@ 100% {background: transparent;} } /* On mobile, an
is just a box. Later we'll do fancy stuff if grid support is detected. */ article { - margin: 0 0 ◊x-lineheight[1] 0; + margin: ◊x-lineheight[2] 0 ◊x-lineheight[1] 0; + padding-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 @@ -286,12 +286,10 @@ } footer.article-info { margin: ◊x-lineheight[1] 0; text-align: center; font-feature-settings: "smcp" on, "liga" on, "clig" on, "dlig" on, "kern" on, "onum" on, "pnum" on; - text-transform: lowercase; - letter-spacing: 0; color: #888; } footer.article-info::before { content: "☞\00a0"; @@ -562,22 +560,21 @@ /* 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 { - box-shadow: 0.4em 0.4em 10px #e3e3e3; margin: 2em auto; - /*border: solid 1px #ccc; */ padding-left: 1rem; padding-right: 1rem; width: 30rem; max-width: 90%; } @supports (grid-area: auto) { main { width: 42rem; + background: none; } main header { display: grid; grid-template-columns: 9rem 12fr 1fr; @@ -611,10 +608,14 @@ "corner title title" "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; } article>h1 { grid-area: margin; font-size: 1.1rem; @@ -642,12 +643,13 @@ footer.article-info { padding-top: 0.2rem; grid-area: margin; text-align: right; font-size: 0.8rem; - line-height: 0.87rem; /* Line up every 4th line w/3rd line of body */ + line-height: ◊derive-lineheight[4 #:per-lines 3]; margin: 0; + padding-left: 3px; } article.no-title footer.article-info { padding-top: 1.5rem; }