#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 /> <Divider />
## Use case!anchorId:features-use-cases; ## Use cases!anchorId:features-use-cases;
<AlbumsPreview /> <AlbumsPreview />
<Divider /> <Divider />

View File

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

View File

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

View File

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

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

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