@@ -160,14 +160,16 @@ blockquote > :last-child { margin-bottom: 0; }
160160 cursor : pointer;
161161}
162162. button : hover { background : var ( --tint ) ; }
163+ /* A link drawn as a button: its words are not underlined as a link's in text are. */
164+ a . button { text-decoration : none; }
163165. button-primary { border-color : var ( --focus ) ; color : var ( --accent ) ; font-weight : 600 ; }
164166
165- /* Code blocks */
167+ /* Code blocks, on the cards' color: it stands out from the page and from a tinted band alike. */
166168. code {
167169 margin : 1rem 0 1.25rem ;
168170 border : 1px solid var ( --border ) ;
169171 border-radius : var ( --radius ) ;
170- background : var ( --surface ) ;
172+ background : var ( --raised ) ;
171173 overflow : hidden;
172174}
173175/* The preview pane's bar shares these, so it matches the Current markup bar below it. */
@@ -187,7 +189,7 @@ pre[class*="language-"] {
187189 margin : 0 ;
188190 padding : 0.85rem 1rem ;
189191 overflow : auto;
190- background : var ( --surface ) ;
192+ background : var ( --raised ) ;
191193 font : 0.8125 rem/1.6 var ( --mono ) ;
192194 tab-size : 2 ;
193195}
@@ -476,8 +478,8 @@ tbody th a:hover code { text-decoration: underline; }
476478 --icon : url ( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 18 6-6-6-6M8 6l-6 6 6 6'/%3E%3C/svg%3E" ) ;
477479}
478480/* Grows with the markup, so a typical setup shows in full; past a third of the screen it scrolls,
479- leaving the viewer most of the pane. */
480- . preview pre . preview-markup { max-height : 35dvh ; padding : 0.5rem 0.75rem ; background : var ( --bg ) ; font-size : 0.75rem ; }
481+ leaving the viewer most of the pane. On the cards' color, as every code block is. */
482+ . preview pre . preview-markup { max-height : 35dvh ; padding : 0.5rem 0.75rem ; font-size : 0.75rem ; }
481483. preview-markup code { white-space : pre-wrap; overflow-wrap : anywhere; }
482484
483485. flash { animation : flash 0.6s ease-out; }
@@ -557,9 +559,24 @@ tbody th a:hover code { text-decoration: underline; }
557559
558560/* Org home: the build page's bands, its first screen's words no wider than a heading of two lines. */
559561. home . hero-words { max-inline-size : 46rem ; }
560- /* Cards: on the home page, the elements and the tools, as the build page's steps are drawn. Three to
561- a row on a wide screen, two on a tablet, one on a phone; each an <article> as tall as its row,
562- with its links in its <footer>, at its foot. */
562+ /* Its one action, support for the work: a heart before the words, masked as the site's icons are,
563+ in the warm red the code's tags take. */
564+ . button-support :: before {
565+ content : "" ;
566+ flex : none;
567+ inline-size : 1.125em ;
568+ block-size : 1.125em ;
569+ background : var ( --t-tag ) ;
570+ mask : url ( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.6-4.7-9.6-9.6C1 7.9 3 4 6.9 4c2.2 0 3.9 1.2 5.1 3 1.2-1.8 2.9-3 5.1-3C21 4 23 7.9 21.6 11.4 19.6 16.3 12 21 12 21Z'/%3E%3C/svg%3E" ) center / contain no-repeat;
571+ }
572+ @media ( forced-colors : active) {
573+ /* Masked icons paint with their background, which forced colors would turn into Canvas. */
574+ . button-support :: before { forced-color-adjust : none; background : CanvasText; }
575+ }
576+ /* Cards: on the home page, the elements and the tools, and at the build page's foot, where else a
577+ package plays and how it went; drawn as the build page's steps are. Three to a row on a wide
578+ screen, two on a tablet, one on a phone; each an <article> as tall as its row, its title an h2
579+ or an h3 by where it stands, with its links or buttons in its <footer>, at its foot. */
563580. cards {
564581 display : grid;
565582 grid-template-columns : repeat ( auto-fill, minmax ( min ( 100% , 21rem ) , 1fr ) ) ;
@@ -570,7 +587,7 @@ tbody th a:hover code { text-decoration: underline; }
570587}
571588. cards > li { display : grid; margin : 0 ; }
572589. cards article { display : flex; flex-direction : column; gap : 0.5rem ; padding : 1.5rem ; border : 1px solid var ( --border ) ; border-radius : 12px ; background : var ( --raised ) ; }
573- . cards h3 { margin : 0 ; font-size : 1.125rem ; }
590+ . cards : is ( h2 , h3 ) { margin : 0 ; padding : 0 ; border : 0 ; font-size : 1.125rem ; }
574591. cards p { margin : 0 ; color : var ( --muted ) ; }
575592. card-tag code { font-size : 0.8125rem ; }
576593. cards . links { display : flex; flex-wrap : wrap; gap : 0.25rem 1rem ; margin-top : auto; padding-top : 0.5rem ; font-size : 0.875rem ; }
@@ -608,7 +625,6 @@ tbody th a:hover code { text-decoration: underline; }
608625 steps are, its steps on the skill page's timeline, its prompts in code blocks to copy, and the
609626 types it lists by name and use. */
610627. guide > * { max-inline-size : 48rem ; }
611- . guide a . button { text-decoration : none; }
612628. guide h3 + . code { margin-top : 0.75rem ; }
613629/* A row each, the name beside its use where the list is wide enough for both, over it where not. */
614630. type-list {
@@ -796,16 +812,9 @@ tbody th a:hover code { text-decoration: underline; }
796812}
797813. how h3 { margin : 0 0 0.4rem ; font-size : 1.0625rem ; }
798814. how p { margin : 0 ; color : var ( --muted ) ; }
799- /* The prompt, in a code block's frame for its Copy button: prose, so it wraps. It is on the
800- accent's tint, which a code block's color is not: that is a tinted band's own, as on the build
801- page, and next to the page's. Its frame takes the tint once, the text and the bar showing it
802- through; the bar's label then takes the text's color, where the muted one is too faint on the
803- tint in the dark theme (4.4:1). */
815+ /* The prompt, in a code block's frame for its Copy button: prose, so it wraps. */
804816. prompt-box { max-inline-size : 48rem ; }
805817pre . prompt { white-space : pre-wrap; overflow-wrap : anywhere; font-size : 0.9375rem ; }
806- pre . prompt , . code : has ( > pre . prompt ) { background : var ( --tint ) ; }
807- . code > pre . prompt { background : none; }
808- . code : has ( > pre . prompt ) . code-bar { color : var ( --text ) ; }
809818
810819/* Build it: the steps on the same left edge as the rest, no wider than the source's editor reads. */
811820. tool . step { max-inline-size : 60rem ; }
@@ -824,12 +833,9 @@ pre.prompt, .code:has(> pre.prompt) { background: var(--tint); }
824833. stats-note { margin : 0.75rem 0 1.5rem ; color : var ( --muted ) ; font-size : 0.8125rem ; }
825834. cost-more { margin : 0 ; color : var ( --muted ) ; }
826835
827- /* Under it all: where else it plays, and how it went, a card each, side by side where they fit. */
836+ /* Under it all: where else it plays, and how it went, as cards (.cards); the second's footer holds
837+ its two buttons. */
828838. linked . closing { padding-block-start : 0 ; }
829- . closing-grid { display : grid; grid-template-columns : repeat ( auto-fit, minmax ( min ( 100% , 22rem ) , 1fr ) ) ; gap : 1.25rem ; }
830- . closing-grid > section { display : flex; flex-direction : column; gap : 0.75rem ; padding : clamp ( 1.5rem , 3vw , 2.25rem ) ; border : 1px solid var ( --border ) ; border-radius : 12px ; background : var ( --surface ) ; }
831- . closing-grid h2 { margin : 0 ; padding : 0 ; border : 0 ; font-size : 1.375rem ; }
832- . closing-grid p { margin : 0 ; color : var ( --muted ) ; }
833839. feedback-actions { display : flex; flex-wrap : wrap; gap : 0.5rem ; margin-block-start : auto; padding-block-start : 0.5rem ; }
834840
835841/* H5P build page, /h5p/build/ */
@@ -987,7 +993,6 @@ pre.prompt, .code:has(> pre.prompt) { background: var(--tint); }
987993 cursor : pointer;
988994}
989995. build input [type = "file" ]:: file-selector-button : hover { background : var ( --tint ) ; }
990- . build a . button { text-decoration : none; }
991996. button-large { padding : 0.55rem 1.1rem ; font-size : 0.9375rem ; }
992997/* The page's two main actions, Build and Download, filled where the site's other buttons are outlined. */
993998. button-solid , . button-solid : hover { border-color : var ( --accent ) ; background : var ( --accent ) ; color : var ( --bg ) ; font-weight : 600 ; }
0 commit comments