Skip to content

Commit

Permalink
Main page title: Short bord red underline - follow the title alignement
Browse files Browse the repository at this point in the history
  • Loading branch information
polmih committed Sep 27, 2024
1 parent 20b6690 commit 01d6c8d
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sites/main-page-title/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ h1#wb-cont, hgroup#wb-cont h1 {
border-top-width: 0;
}

h1#wb-cont[dir="rtl"], hgroup#wb-cont h1[dir="rtl"] {
border-bottom: $main-page-title-rule-thickness solid $main-page-title-rule-color;
border-image: linear-gradient(to left, $main-page-title-rule-color $main-page-title-rule-width, transparent $main-page-title-rule-width);
border-image-slice: 1;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
}


hgroup#wb-cont {
margin-top: 1em;

Expand Down
16 changes: 16 additions & 0 deletions sites/main-page-title/index.json-ld
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
"title": "Titre principal superposé",
"language": "fr",
"path": "main-page-title-stacked-fr.html"
},
{
"title": "Main page title aligned on the right",
"language": "en",
"path": "main-page-title-align-right-en.html"
},
{
"title": "Titre principal de la page aligné à droite",
"language": "fr",
"path": "main-page-title-align-right-fr.html"
}
]
},
Expand Down Expand Up @@ -359,6 +369,12 @@
"name": "Stacked main page title - Iteration 1",
"date": "2024-08",
"detectableBy": "hgroup > h1#wb-cont"
},
{
"@id": "_:iteration_mptar_1",
"name": "Main page title aligned on the right - Iteration 1",
"date": "2024-09",
"detectableBy": "<h1 property='name' id='wb-cont' dir='rtl'></h1>"
}
]
}
10 changes: 10 additions & 0 deletions sites/main-page-title/main-page-title-align-right-en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
altLangPage: "main-page-title-align-right-fr.html"
dateModified: "2024-09-26"
language: "en"
pageclass: "wb-prettify all-pre"
layout: without-h1
index_json: index.json-ld
---
<h1 property="name" id="wb-cont" dir="rtl">Main page title aligned on the right</h1>
<p property="description">Main title of a page with a short bold red underline aligned on the right.</p>
10 changes: 10 additions & 0 deletions sites/main-page-title/main-page-title-align-right-fr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
altLangPage: "main-page-title-align-right-en.html"
dateModified: "2024-09-26"
language: "fr"
pageclass: "wb-prettify all-pre"
layout: without-h1
index_json: index.json-ld
---
<h1 property="name" id="wb-cont" dir="rtl">Titre principal de la page aligné à droite</h1>
<p property="description">Titre principal d'une page avec un court soulignement rouge en gras aligné à droite.</p>

0 comments on commit 01d6c8d

Please sign in to comment.