◊(Local Yarn Code "Check-in [7c1b510b]")

Overview
Comment:Tweak CSS styles
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7c1b510b2f1760b4dc5552e8fec01e76609316942f90376cf36a36a6f98ee08d
User & Date: joel on 2019-03-13 02:39:08
Other Links: manifest | tags
Context
2019-03-13
02:49
Don’t include disposition marks in article footers check-in: b8391481 user: joel tags: trunk
02:39
Tweak CSS styles check-in: 7c1b510b user: joel tags: trunk
2019-03-10
04:19
Add overview to code docs check-in: c0e4841e user: joel tags: trunk
Changes

Modified web-extra/martin.css.pp from [de63ae31] to [f9d06d1a].

113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132

133
134
135
136

137
138
139

140
141
142
143
144
145
146
147
148
149

150
151
152
153
154


155
156
157
158
159
160
161
113
114
115
116
117
118
119

120
121
122
123
124
125
126
127
128
129
130

131
132
133
134

135
136
137

138
139
140
141
142
143
144
145
146
147

148
149
150
151


152
153
154
155
156
157
158
159
160







-











-
+



-
+


-
+









-
+



-
-
+
+







    .hist p {
        font-variant-alternates: historical-forms;
    }
    .nonhist {
        font-variant-alternates: normal;
    }

    /* <main> 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];
    }

    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.
       
       Not sure if that's relevant advice any more but I still follow it. It can't hurt. */
185
186
187
188
189
190
191

192

193
194
195
196
197
198
199
184
185
186
187
188
189
190
191

192
193
194
195
196
197
198
199







+
-
+







        0% {background: transparent;}
        10% {background: #feffc1;}
        100% {background: transparent;}
    }

    /* On mobile, an <ARTICLE> 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;
        margin: 0 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
       different types of articles (those with titles AND dates, and those with just a date for the title). 

284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
284
285
286
287
288
289
290


291
292
293
294
295
296
297







-
-







    p.time {
        margin: 0 0 ◊x-lineheight[1] 0;
    }
    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";
    }

560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578

579
580
581
582
583
584
585
558
559
560
561
562
563
564

565

566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582







-

-









+









/* 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;
            grid-column-gap: 0;
            grid-template-areas: "logo masthead .";
609
610
611
612
613
614
615




616
617
618
619
620
621
622
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623







+
+
+
+







            grid-template-rows: auto auto auto;
            grid-template-areas: 
               "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;
            text-align: right;
            /* padding-right: 1rem; */
640
641
642
643
644
645
646
647

648

649
650
651
652
653
654
655
641
642
643
644
645
646
647

648
649
650
651
652
653
654
655
656
657







-
+

+







        }

        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;
        }
        
        section.entry-content {