Skip to content

Commit 513df31

Browse files
therobroblenderom
andauthored
feat: explanation & styling for highlight (#149)
## Description resolves [#104](#104) ## Checklist <!-- Check fields with: [x] / Abhaken von Punkten: [x] --> - [ ] Check the License of new pictures (non-commercial use without attribution) <!-- Die Lizenz neuer Bilder geprüft (nicht-kommerzielle Nutzung ohne Namensnennung) --> The content was modified in the following languages: <!-- Der Inhalt wurde für die folgenden Sprachen angepasst --> - [ ] English - [ ] German --------- Signed-off-by: lennartrommeiss <61516567+lenderom@users.noreply.github.com> Co-authored-by: Lennart Rommeiss <61516567+lenderom@users.noreply.github.com>
1 parent 81f6927 commit 513df31

File tree

4 files changed

+24
-9
lines changed

4 files changed

+24
-9
lines changed

assets/sass/textHighlight.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
border-left: var(--bg-neutral) solid 1rem;
77
}
88

9+
.m-text-highlight__roofline {
10+
font-size: 1.4rem;
11+
margin-bottom: 1rem;
12+
text-transform: uppercase;
13+
font-weight: bold;
14+
opacity: .8;
15+
}
16+
917
.m-text-highlight--tip {
1018
background-color: #C4F2FF;
1119
border-left: #1DB5DF solid 1rem;

i18n/de.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ menu-open: Menü
1111
menu-close: Schließen
1212
general: Übergreifendes
1313
information-disclaimer-short: Diese Informationen sind inoffiziell und ohne Gewähr. Es besteht keine rechtliche Verbindung zu FIP oder Bahngesellschaften.
14-
highlight-important: Wichtige Information
15-
highlight-inofficial: Inoffizielle Information
16-
highlight-tip: Persönlicher Tipp
14+
highlight:
15+
important: Wichtige Information
16+
inofficial: Inoffizielle Information
17+
tip: Persönlicher Tipp
1718
news-headline: Was gibt's Neues?
1819
_operator__list_title: Betreiber mit FIP
1920
updateDate: Zuletzt aktualisiert

i18n/en.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ menu-open: Menu
1111
menu-close: Close
1212
general: general
1313
information-disclaimer-short: The information provided is unofficial and without guarantee. There is no legal connection to FIP or railway companies.
14-
highlight-important: Important Information
15-
highlight-inofficial: Unofficial Information
16-
highlight-tip: Personal Tip
14+
highlight:
15+
important: Important Information
16+
inofficial: Unofficial Information
17+
tip: Personal Tip
1718
news-headline: What's new?
1819
_operator__list_title: Operators supporting FIP
1920
updateDate: Last updated

layouts/shortcodes/highlight.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
<div class="m-text-highlight m-text-highlight--{{ (.Get 0) | markdownify }}" aria-label='{{ T (printf "highlight-%s" (.Get 0)) }}'>
2-
{{ .Inner }}
3-
</div>
1+
{{- $param := .Get 0 -}}
2+
<div class="m-text-highlight m-text-highlight--{{ $param }}">
3+
{{- if $param -}}
4+
<div class="m-text-highlight__roofline">{{ T (printf "highlight.%s" $param) }}</div>
5+
{{- end -}}
6+
<div>
7+
{{ .Inner }}
8+
</div></div>

0 commit comments

Comments
 (0)