Skip to content

Commit c9fb566

Browse files
committed
Merge branch 'master' of https://github.com/malimalik/Web-Dev-Simplified-Official-Blog into next-js-app-router-cache
2 parents 9280712 + e7d7dfd commit c9fb566

File tree

8 files changed

+104
-0
lines changed

8 files changed

+104
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<p class="first-letter">
2+
<slot />
3+
</p>
4+
5+
<style>
6+
.first-letter::first-letter {
7+
font-size: 2em;
8+
color: var(--theme-red);
9+
font-weight: bold;
10+
}
11+
</style>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<p class="first-line">
2+
<slot />
3+
</p>
4+
5+
<style>
6+
.first-line::first-line {
7+
color: var(--theme-red);
8+
}
9+
</style>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<p class="selection">
2+
<slot />
3+
</p>
4+
5+
<style>
6+
.selection::selection {
7+
background-color: var(--theme-red);
8+
color: white;
9+
}
10+
</style>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<button class="tooltip" data-tooltip="Hovered">
2+
Hover Me
3+
</button>
4+
5+
<style>
6+
.tooltip {
7+
position: relative;
8+
margin-bottom: 1rem;
9+
padding: .5rem;
10+
font-size: 1rem;
11+
}
12+
13+
.tooltip:hover::before {
14+
content: attr(data-tooltip);
15+
position: absolute;
16+
left: 50%;
17+
bottom: calc(100% + .25rem);
18+
transform: translateX(-50%);
19+
background-color: var(--theme-blue);
20+
padding: .25rem .5rem;
21+
}
22+
</style>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<p class="first-letter">
2+
<slot />
3+
</p>
4+
5+
<style>
6+
.first-letter::first-letter {
7+
font-size: 2em;
8+
color: var(--theme-red);
9+
font-weight: bold;
10+
}
11+
</style>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<p class="first-line">
2+
<slot />
3+
</p>
4+
5+
<style>
6+
.first-line::first-line {
7+
color: var(--theme-red);
8+
}
9+
</style>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<p class="selection">
2+
<slot />
3+
</p>
4+
5+
<style>
6+
.selection::selection {
7+
background-color: var(--theme-red);
8+
color: white;
9+
}
10+
</style>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<button class="tooltip" data-tooltip="Hovered">
2+
Hover Me
3+
</button>
4+
5+
<style>
6+
.tooltip {
7+
position: relative;
8+
margin-bottom: 1rem;
9+
padding: .5rem;
10+
font-size: 1rem;
11+
}
12+
13+
.tooltip:hover::before {
14+
content: attr(data-tooltip);
15+
position: absolute;
16+
left: 50%;
17+
bottom: calc(100% + .25rem);
18+
transform: translateX(-50%);
19+
background-color: var(--theme-blue);
20+
padding: .25rem .5rem;
21+
}
22+
</style>

0 commit comments

Comments
 (0)