Skip to content

Commit 6b4e312

Browse files
authored
Update example.html
1 parent 41df53a commit 6b4e312

File tree

1 file changed

+4
-23
lines changed

1 file changed

+4
-23
lines changed

example.html

+4-23
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,9 @@
1414
color: #ccc;
1515
}
1616
body { font-size: 2rem } /* 2rem = 20px in our setup. */
17-
html button {
18-
font-size: 2rem;
19-
cursor: pointer;
20-
color: #fff;
21-
text-shadow: 0 2px #000000AA;
22-
padding: 2rem 2.4rem;
23-
margin: 2rem;
24-
background: hsl(345 100% 47%);
25-
border: 0;
26-
border-bottom: 0.5rem solid hsl(345 100% 28%);
27-
border-radius: 12px;
28-
transition: all 0.3s;
29-
&:hover { background: hsl(345 100% 60%); transform: translateY(-0.2rem) }
30-
&:active { transform: translateY(0.2rem) }
31-
}
17+
html button { font-size: 2rem; cursor: pointer; color: #fff; text-shadow: 0 2px #000000AA; padding: 2rem 2.4rem; margin: 2rem; background: hsl(345 100% 47%); border: 0; border-bottom: 0.5rem solid hsl(345 100% 28%); border-radius: 12px; transition: all 0.3s; }
18+
html button:hover { background: hsl(345 100% 60%); transform: translateY(-0.2rem) }
19+
html button:active { transform: translateY(0.2rem) }
3220
</style>
3321
</head>
3422
<body>
@@ -45,14 +33,7 @@
4533
<div>
4634
<style>
4735
.me {
48-
font-family: 'Noto Sans', sans-serif;
49-
background: hsl(264 62% 20%);
50-
border:none;
51-
border-radius: 12px;
52-
box-shadow: 0 2px 5px #00000044;
53-
padding: 10px 20px;
54-
color: #fff;
55-
margin: 20px;
36+
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;
5637
/* CSS Nesting works! */
5738
& span {
5839
background: hsl(264 90% 90%);

0 commit comments

Comments
 (0)