#48 : Update style names

This commit is contained in:
Vadim
2021-08-14 19:08:11 +03:00
parent 7341dffbe6
commit 7966df7ab8
5 changed files with 12 additions and 11 deletions

View File

@@ -239,7 +239,7 @@
<Divider />
## Use case!anchorId:features-use-cases;
## Use cases!anchorId:features-use-cases;
<AlbumsPreview />
<Divider />

View File

@@ -15,8 +15,8 @@
</script>
<div>
<svelte:component this={titleComponent} id={anchorId} class="title">
<a class="anchor" href={`#${anchorId}`}>
<svelte:component this={titleComponent} id={anchorId} class="docs__title">
<a class="docs__anchor" href={`#${anchorId}`}>
{title}
{#if !title}
<span bind:this={titleEl}><slot /></span>
@@ -26,19 +26,19 @@
</div>
<style>
:global(.title) {
:global(.docs__title) {
display: inline-block;
}
:global(.title:hover .anchor::before) {
:global(.docs__title:hover .docs__anchor::before) {
visibility: visible;
}
.anchor {
.docs__anchor {
position: relative;
margin-left: 10px;
text-decoration: none;
color: #000000;
}
.anchor::before {
.docs__anchor::before {
visibility: hidden;
font-size: 14px;
content: "\1F517";

View File

@@ -8,10 +8,10 @@
</H>
<style>
:global(h1.title) {
:global(h1.docs__title) {
margin: 16px 0;
}
:global(h1.title .anchor::before) {
:global(h1.docs__title .docs__anchor::before) {
top: 15px;
}
</style>

View File

@@ -8,10 +8,10 @@
</H>
<style>
:global(h2.title) {
:global(h2.docs__title) {
margin: 14px 0;
}
:global(h2.title .anchor::before) {
:global(h2.docs__title .docs__anchor::before) {
top: 8px;
}
</style>

1
src/docs/README.md Normal file
View File

@@ -0,0 +1 @@
Source code for demo site