Skip to content

Commit ab52088

Browse files
committedJan 7, 2023
docs: clean up examples
- remove grunticon example - tidy up styles on the CSS styling example
1 parent 30f1b6a commit ab52088

8 files changed

+6
-96
lines changed
 

‎docs/grunticon/grunticon.loader.js

-3
This file was deleted.

‎docs/grunticon/icons.data.png.css

-5
This file was deleted.

‎docs/grunticon/icons.data.svg.css

-5
This file was deleted.

‎docs/grunticon/icons.fallback.css

-5
This file was deleted.

‎docs/grunticon/png/grunticon-link.png

-310 Bytes
Binary file not shown.

‎docs/grunticon/preview.html

-33
This file was deleted.

‎docs/index.html

+1-41
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@
2121
<link rel="stylesheet" href="fonts/fonts.css">
2222
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-twilight.css">
2323
<meta name="viewport" content="width=device-width, initial-scale=1">
24-
<script src="grunticon/grunticon.loader.js"></script>
25-
<script>
26-
grunticon(["grunticon/icons.data.svg.css", "grunticon/icons.data.png.css", "grunticon/icons.fallback.css"]);
27-
</script>
28-
<noscript>
29-
<link rel="stylesheet" href="grunticon/icons.fallback.css">
30-
</noscript>
3124
</head>
3225
<body>
3326
<a href="https://github.com/bryanbraun/anchorjs" class="github-corner" aria-label="View source on GitHub">
@@ -554,7 +547,7 @@ <h3>Link w/CSS Styling</h3>
554547
margin-top: 4px;
555548
margin-left: -1.4em !important;
556549
}
557-
.anchorjs-link::before {
550+
.anchorjs-link::after {
558551
margin-left: 7px;
559552
margin-top: -4px;
560553
display: block;
@@ -664,32 +657,6 @@ <h3>Emoji</h3>
664657
</div>
665658
</div>
666659

667-
<div class="example">
668-
<div class="example-content">
669-
<h3>Grunticon</h3>
670-
<p>Lorem ipsum dolor consectetur amet nulla elit. Vivamus luctus urna sed urna ultricies. Vivamus luctus urna sed.</p>
671-
<a href="#" class="example-code-link">{}</a>
672-
</div>
673-
<div class="example-code">
674-
<pre class="js"><code>// Assuming you have set up
675-
// grunticon and you have a
676-
// grunticon class named
677-
// 'icon-grunticon-link'...
678-
anchors.options = {
679-
visible: 'always',
680-
class: 'icon-grunticon-link'
681-
icon: ''
682-
};
683-
anchors.add('h3');</code></pre>
684-
<pre class="css"><code>.anchorjs-link {
685-
display: inline-block;
686-
margin-left: .375em;
687-
width: .375em;
688-
height: 20px;
689-
}</code></pre>
690-
</div>
691-
</div>
692-
693660
</div>
694661

695662
<h2 id="hover-examples" class="title">Hover examples</h2>
@@ -933,13 +900,6 @@ <h3>Tooltip</h3>
933900
});
934901
ex15.add('.examples .example:nth-child(15) p');
935902

936-
var ex16 = new AnchorJS({
937-
visible: 'always',
938-
class: 'icon-grunticon-link',
939-
icon: ''
940-
});
941-
ex16.add('.examples .example:nth-child(16) h3');
942-
943903
var hovEx1 = new AnchorJS();
944904
hovEx1.add('.hover-examples .example:nth-child(1) h3');
945905

‎docs/styles.css

+5-4
Original file line numberDiff line numberDiff line change
@@ -341,20 +341,21 @@ pre > code {
341341
}
342342

343343
.examples .example:nth-child(10) .anchorjs-link::after {
344-
margin-left: 7px;
345-
margin-top: -4px;
346-
display: block;
344+
position: absolute;
345+
top: -5px;
346+
left: 5px;
347347
}
348348

349349
.examples .example:nth-child(10) .anchorjs-link {
350350
background-color: #ff5231;
351351
height: 32px;
352-
width: 18px;
352+
width: 32px;
353353
border-radius: 50%;
354354
display: inline-block;
355355
color: #fff;
356356
margin-top: 4px;
357357
margin-left: -1.4em !important;
358+
padding: 0 !important;
358359
}
359360

360361
.examples .example:nth-child(12) .anchorjs-link {

0 commit comments

Comments
 (0)
Please sign in to comment.