Skip to content

Commit

Permalink
New Links
Browse files Browse the repository at this point in the history
  • Loading branch information
macx committed Feb 14, 2022
1 parent 506722d commit b6fe6bd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions assets/styles/base/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,20 @@ HELPER
└──────────────────────────────────┘
*/

.new {
display: inline-flex;
justify-content: center;
align-items: center;
background-color: var(--clr-text);
color: var(--clr-inverse);
font-size: var(--font-size--xsmall);
margin-left: 0.5em;
padding: 0.2em 0.5em 0;
border-radius: var(--border-radius);
cursor: default;
user-select: none;
}

@for $i from 1 through 4 {
.bgs-#{$i} {
background-color: var(--clr-play-#{$i});
Expand Down
4 changes: 4 additions & 0 deletions content/links/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ Du brauchst Code-Beispiele? Gern, hier sind die, die ich gebaut habe. Die sind a
Einführung in PWA, sowie Leitfaden zur Entwicklung.
- [Accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility)\
Einführung und Dokumentation der `aria`-Rollen.
- [Variable Fonts](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide){{< new >}}\
Font-Spezifikation, um statt mehrere Schriftschnitte nur einen (variablen) Font zu verwenden.
- [Can I use](https://caniuse.com/){{< new >}}\
Zeigt den Unterstützung von Front-end-Technologien bei den Browsern.

### Schnell gelernt

Expand Down
1 change: 1 addition & 0 deletions layouts/shortcodes/new.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<span class="new">NEU</span>

0 comments on commit b6fe6bd

Please sign in to comment.