Skip to content

Commit

Permalink
Update example.html
Browse files Browse the repository at this point in the history
  • Loading branch information
gnat authored Sep 23, 2023
1 parent 6b4e312 commit d1e4d95
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions example.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,13 @@

<div>
<style>
.me {
font-family: 'Noto Sans', sans-serif; background: hsl(264 62% 20%); border:none; border-radius: 12px; box-shadow: 0 2px 5px #00000044; padding: 10px 20px; color: #fff; margin: 20px;
.me { font-family: 'Noto Sans', sans-serif; background: hsl(264 62% 20%); border:none; border-radius: 12px; box-shadow: 0 2px 5px #00000044; padding: 10px 20px; color: #fff; margin: 20px;
/* CSS Nesting works! */
& span {
background: hsl(264 90% 90%);
color: hsl(264 30% 40%);
padding: 16px 20px;
border-radius: 8px;
box-shadow: 0 0 5px hsl(0 0% 0% / 20%);
& span { background: hsl(264 90% 90%); color: hsl(264 30% 40%); padding: 16px 20px; border-radius: 8px; box-shadow: 0 0 5px hsl(0 0% 0% / 20%);
&::before { content:'🔮'; padding: 0 1ch 0 0; }
}
}
/* Flat style can be more readable! 1 selector per line. */
/* Flat style can be more readable. */
.me ol { padding: 5px 0; }
.me ol li{ list-style: disc; padding: 4px; border-radius: 12px; margin: 4px 20px }
/* ✨ .this and .self alias .me ! */
Expand Down

0 comments on commit d1e4d95

Please sign in to comment.