Skip to content

Commit 6cba9af

Browse files
committed
fix: replace fontawesome with svg
1 parent b0c7624 commit 6cba9af

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

demo/atomic-css.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
<h2 class="background:red@sm@md">CoCreate helper CSS</h2>
2929
</div>
3030
<div class="display:flex align-items:center font-size:20px" share-height="600" share-width="500" share-media="https://via.placeholder.com/300/09f/fff.png">
31-
<a href="https://github.com/CoCreate-app/CoCreateCSS" target="_blank" class="margin-right:15px"><i class="fab fa-github"></i></a>
32-
<a class="margin-right:15px" share-network='twitter' title="Share on twitter"><i class="fab fa-twitter"></i></a>
33-
<a class="margin-right:15px" share-network='facebook' title="Share on Facebook"><i class="fab fa-facebook"></i></a>
34-
<a class="margin-right:15px" share-network='instagram' title="Share on instagram"><i class="fab fa-instagram"></i></a>
35-
<a class="margin-right:15px" share-network='share' title="Share on share"><i class="fas fa-share-alt"></i></a>
31+
<a href="https://github.com/CoCreate-app/CoCreateCSS" target="_blank" class="margin-right:15px"><i class="height:20px fill:#505050" src="/assets/svg/github.svg"></i></a>
32+
<a class="margin-right:15px" share-network='twitter' title="Share on twitter"><i class="height:20px fill:#505050" src="/assets/svg/twitter.svg"></i></a>
33+
<a class="margin-right:15px" share-network='facebook' title="Share on Facebook"><i class="height:20px fill:#505050" src="/assets/svg/facebook.svg"></i></a>
34+
<a class="margin-right:15px" share-network='instagram' title="Share on instagram"><i class="height:20px fill:#505050" src="/assets/svg/instagram.svg"></i></a>
35+
<a class="margin-right:15px" share-network='share' title="Share on share"><i class="height:20px fill:#505050" src="/assets/svg/share-alt.svg"></i></a>
3636
</div>
3737
</div>
3838
<p class="max-width:500px margin-top:20px">CoCreate provides the most convenient helper class.</p>
@@ -41,7 +41,7 @@ <h2 class="background:red@sm@md">CoCreate helper CSS</h2>
4141
<div id="css-parser-reference" class="margin-top:80px border-bottom:1px_solid_lightgrey">
4242
<span class="display:flex align-items:center" hover="display:block!important" hover-target='[href="#css-parser-reference"]'>
4343
<h2 class="padding:5px_0px">Reference</h2>
44-
<a class="margin-left:10px display:none" href="#css-parser-reference"><i class="fas fa-link"></i></a>
44+
<a class="margin-left:10px display:none" href="#css-parser-reference"><i class="height:20px fill:#505050" src="/assets/svg/link.svg"></i></a>
4545
</span>
4646
</div>
4747

@@ -725,7 +725,7 @@ <h3 class="border-bottom:1px_solid_lightgrey margin-top:15px padding:5px">cursor
725725
<div id="css-parser-demo" class="border-bottom:1px_solid_lightgrey">
726726
<span class="display:flex align-items:center" hover="display:block!important" hover-target='[href="#css-parser-demo"]'>
727727
<h2 class="padding:5px_0px">Demo</h2>
728-
<a class="margin-left:10px display:none" href="#css-parser-demo"><i class="fas fa-link"></i></a>
728+
<a class="margin-left:10px display:none" href="#css-parser-demo"><i class="height:20px fill:#505050" src="/assets/svg/link.svg"></i></a>
729729
</span>
730730
</div>
731731
<div class="position:sticky top:0 padding:15px_0px height:100vh">
@@ -742,10 +742,10 @@ <h2 class="padding:5px_0px">Demo</h2>
742742
</div>
743743

744744
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
745-
<a class="margin-right:10px" id="eye" show="#eye-slash" hide="#eye, #demo-preview" toggle="code-height" toggle-target="#demo-code"><i class="far fa-eye"></i></a>
746-
<a class="margin-right:10px" hidden id="eye-slash" show="#eye, #demo-preview" hide="#eye-slash" toggle="code-height" toggle-target="#demo-code"><i class="fas fa-eye-slash"></i></a>
747-
<a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="fa fa-code"></i></a>
748-
<a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="fas fa-code"></i></a>
745+
<a class="margin-right:10px" id="eye" show="#eye-slash" hide="#eye, #demo-preview" toggle="code-height" toggle-target="#demo-code"><i class="height:18px fill:#505050" src="/assets/svg/eye.svg"></i></a>
746+
<a class="margin-right:10px" hidden id="eye-slash" show="#eye, #demo-preview" hide="#eye-slash" toggle="code-height" toggle-target="#demo-code"><i class="height:20px fill:#505050" src="/assets/svg/eye-slash.svg"></i></a>
747+
<a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="height:20px fill:#505050" src="/assets/svg/code.svg"></i></a>
748+
<a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="display:flex height:18px fill:#505050" src="/assets/svg/code.svg"></i></a>
749749
<a class="margin-right:5px" fullscreen fullscreen-target="#playground"></a>
750750
</div>
751751

demo/test.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ <h1 class="font-size:1.5rem text-transform:uppercase">Thirdparty API Intergratio
210210
</section>
211211

212212
<button href="https://github.com/CoCreate-app/CoCreate-css-parser/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..." target="_blank" class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue color:#fff font-size:1.5rem grow-hover border-radius:50% border-width:0 box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
213-
<i class="fas fa-pencil-alt" parse="false"></i>
213+
<i class="height:20px fill:#505050" src="/assets/svg/pencil-alt.svg"></i>
214214
</button>
215215
</main>
216216

@@ -222,11 +222,11 @@ <h1 class="text-align:center">SPREAD THE WORD!</h1>
222222
<div class="margin:20px_30px padding-bottom:20px font-size:21px border-bottom:1px_solid_white">
223223
Social Share
224224
<div class="display:flex justify-content:center" share-height="600" share-width="500" share-media="https://via.placeholder.com/300/09f/fff.png">
225-
<a href="https://twitter.com/CoCreate_App" target="_blank" class="margin:15px color:white"><i class="fab fa-twitter"></i></a>
226-
<a href="https://www.facebook.com/CoCreate.apps/" target="_blank" class="margin:15px color:white"><i class="fab fa-facebook"></i></a>
227-
<a href="https://www.instagram.com/cocreate_app/" target="_blank" class="margin:15px color:white"><i class="fab fa-instagram"></i></a>
228-
<a href="https://www.linkedin.com/company/cocreate-app/" target="_blank" class="margin:15px color:white"><i class="fab fa-linkedin-in"></i></a>
229-
<a href="https://www.pinterest.com/cocreate-app/" target="_blank" class="margin:15px color:white"><i class="fab fa-pinterest-p"></i></a>
225+
<a href="https://twitter.com/CoCreate_App" target="_blank" class="margin:15px color:white"><i class="height:20px fill:#505050" src="/assets/svg/twitter.svg"></i></a>
226+
<a href="https://www.facebook.com/CoCreate.apps/" target="_blank" class="margin:15px color:white"><i class="height:20px fill:#505050" src="/assets/svg/facebook.svg"></i></a>
227+
<a href="https://www.instagram.com/cocreate_app/" target="_blank" class="margin:15px color:white"><i class="height:20px fill:#505050" src="/assets/svg/instagram.svg"></i></a>
228+
<a href="https://www.linkedin.com/company/cocreate-app/" target="_blank" class="margin:15px color:white"><i class="height:16px fill:#505050" src="/assets/svg/linkedin-in.svg"></i></a>
229+
<a href="https://www.pinterest.com/cocreate-app/" target="_blank" class="margin:15px color:white"><i class="height:20px fill:#505050" src="/assets/svg/pinterest-p.svg"></i></a>
230230
</div>
231231
</div>
232232

docs/index.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ <h2>CoCreate utility CSS</h2>
3737
<div class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
3838
<div class="display:flex align-items:center transition:0.3s padding-left:10px" share-network="true" share-text="Enter decription here" share-title="testing im a title" share-height="600" share-width="700" share-media="https://cdn.cocreate.app/docs/css-parser.png" hover="display:block!important" hover-target=".social-networks">
3939
<div class="display:none social-networks">
40-
<a class="margin-right:15px" share-network='twitter' title="Share on twitter"><i class="fab fa-twitter"></i></a>
41-
<a class="margin-right:15px" share-network='facebook' title="Share on Facebook"><i class="fab fa-facebook"></i></a>
42-
<a class="margin-right:15px" share-network='instagram' title="Share on instagram"><i class="fab fa-instagram"></i></a>
40+
<a class="margin-right:15px" share-network='twitter' title="Share on twitter"><i class="height:20px fill:#505050" src="/assets/svg/twitter.svg"></i></a>
41+
<a class="margin-right:15px" share-network='facebook' title="Share on Facebook"><i class="height:20px fill:#505050" src="/assets/svg/facebook.svg"></i></a>
42+
<a class="margin-right:15px" share-network='instagram' title="Share on instagram"><i class="height:20px fill:#505050" src="/assets/svg/instagram.svg"></i></a>
4343
</div>
44-
<a class="margin-right:15px" share-network='share' title="Share on share"><i class="fas fa-share-alt"></i></a>
44+
<a class="margin-right:15px" share-network='share' title="Share on share"><i class="height:20px fill:#505050" src="/assets/svg/share-alt.svg"></i></a>
4545
</div>
46-
<a href="https://github.com/CoCreate-app/CoCreateCSS" target="_blank" class="margin-right:15px"><i class="fab fa-github"></i></a>
46+
<a href="https://github.com/CoCreate-app/CoCreateCSS" target="_blank" class="margin-right:15px"><i class="height:20px fill:#505050" src="/assets/svg/github.svg"></i></a>
4747
</div>
4848
</div>
4949
<p class="max-width:500px margin-top:20px">CoCreate provides the most convenient utility class.</h1>
@@ -52,7 +52,7 @@ <h2>CoCreate utility CSS</h2>
5252
<div id="css-parser-usage" class="margin-top:80px border-bottom:1px_solid_lightgrey" scroll scroll-intersect="color:dodgerblue" scroll-target="#css-parser-usage-section">
5353
<span class="display:flex align-items:center width:fit-content" hover="display:block!important" hover-target='[href="#css-parser-usage"]'>
5454
<h2 class="padding:5px_0px">Usage</h2>
55-
<a class="margin-left:10px display:none" href="#css-parser-usage"><i class="fas fa-link"></i></a>
55+
<a class="margin-left:10px display:none" href="#css-parser-usage"><i class="height:20px fill:#505050" src="/assets/svg/link.svg"></i></a>
5656
</span>
5757
</div>
5858

@@ -735,7 +735,7 @@ <h3 class="border-bottom:1px_solid_lightgrey margin-top:15px padding:5px">cursor
735735
<div id="css-parser-demo" class="border-bottom:1px_solid_lightgrey" scroll scroll-intersect="color:dodgerblue" scroll-target="#css-parser-demo-section">
736736
<span class="display:flex align-items:center width:fit-content" hover="display:block!important" hover-target='[href="#css-parser-demo"]'>
737737
<h2 class="padding:5px_0px">Demo</h2>
738-
<a class="margin-left:10px display:none" href="#css-parser-demo"><i class="fas fa-link"></i></a>
738+
<a class="margin-left:10px display:none" href="#css-parser-demo"><i class="height:20px fill:#505050" src="/assets/svg/link.svg"></i></a>
739739
</span>
740740
</div>
741741
<div class="position:sticky top:0 padding:15px_0px height:100vh">
@@ -752,10 +752,10 @@ <h2 class="padding:5px_0px">Demo</h2>
752752
</div>
753753

754754
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
755-
<a class="margin-right:10px" id="eye" show="#eye-slash" hide="#eye, #demo-preview" toggle="code-height" toggle-target="#demo-code"><i class="far fa-eye"></i></a>
756-
<a class="margin-right:10px" hidden id="eye-slash" show="#eye, #demo-preview" hide="#eye-slash" toggle="code-height" toggle-target="#demo-code"><i class="fas fa-eye-slash"></i></a>
757-
<a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="fa fa-code"></i></a>
758-
<a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="fas fa-code"></i></a>
755+
<a class="margin-right:10px" id="eye" show="#eye-slash" hide="#eye, #demo-preview" toggle="code-height" toggle-target="#demo-code"><i class="height:18px fill:#505050" src="/assets/svg/eye.svg"></i></a>
756+
<a class="margin-right:10px" hidden id="eye-slash" show="#eye, #demo-preview" hide="#eye-slash" toggle="code-height" toggle-target="#demo-code"><i class="height:20px fill:#505050" src="/assets/svg/eye-slash.svg"></i></a>
757+
<a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="height:20px fill:#505050" src="/assets/svg/code.svg"></i></a>
758+
<a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="display:flex height:18px fill:#505050" src="/assets/svg/code.svg"></i></a>
759759
<a class="margin-right:5px" fullscreen fullscreen-target="#playground"></a>
760760
</div>
761761

@@ -765,7 +765,7 @@ <h2 class="padding:5px_0px">Demo</h2>
765765
</div>
766766
</div>
767767
<button href="https://github.com/CoCreate-app/CoCreate-css-parser/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..." target="_blank" class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue color:#fff font-size:1.5rem grow-hover border-radius:50% border-width:0 box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
768-
<i class="fas fa-pencil-alt"></i>
768+
<i class="height:20px fill:#505050" src="/assets/svg/pencil-alt.svg"></i>
769769
</button>
770770
</main>
771771
<script src="./apikey.js"></script>

0 commit comments

Comments
 (0)