Skip to content

Commit

Permalink
Change twitter icons to X
Browse files Browse the repository at this point in the history
  • Loading branch information
ZsharE committed Dec 28, 2023
1 parent 59a6b8b commit 1c4588d
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 15 deletions.
4 changes: 2 additions & 2 deletions amp.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{{!-- Styles'n'Scripts --}}
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
<style amp-custom>body,dl,h1,h2,h3,h4,h5,h6,ol,p,ul{text-rendering:geometricPrecision}amp-img,hr,img,legend,p code{border:0}pre,textarea{overflow:auto}.main-header,.post,.site-footer,sub,sup{position:relative}article,aside,details,figcaption,figure,footer,header,hr,main,menu,nav,section,summary{display:block}hr,table td,table th{border-top:#efefef 1px solid}body,html{max-height:100%;height:100%}dl dt,svg:not(:root){overflow:hidden}dl dd,dl dt{margin-bottom:1em}body,li li{margin:0}blockquote,hr{margin:1.75em 0}hr,legend,pre code,pre tt,td,th{padding:0}blockquote small,kbd{display:inline-block}a,table{background-color:transparent}mark,table th{color:#000}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{color:#0da58e}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,blockquote cite,optgroup,strong{font-weight:700}dfn{font-style:italic}mark{background:#fdffb6}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0}sup{top:-.5em}sub{bottom:-.25em}figure{margin:1em 40px}hr{box-sizing:content-box;height:1px}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;color:inherit;font:inherit}body,h1,h2,h3,h4,h5,h6{font-family:Roboto,sans-serif}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{margin:0 2px;padding:.35em .625em .75em;border:1px solid silver}html{font-size:62.5%;-webkit-tap-highlight-color:transparent}body{color:#3a4145;background:#f5f5f5;letter-spacing:.01rem;font-size:1.8rem;line-height:1.75em}::-moz-selection{background:#d6edff}::selection{background:#d6edff}h1,h2,h3,h4,h5,h6{margin:0 0 .3em;color:#2e2e2e;line-height:1.15em}code,pre,tt{background:#f7fafb;font-family:Inconsolata,monospace,sans-serif}p code{padding:2px 4px;color:#c7254e;background-color:#f9f2f4}h1{text-indent:-2px;letter-spacing:-1px;font-size:2.6rem}h2{letter-spacing:0;font-size:2.4rem}h3{letter-spacing:-.6px;font-size:2.1rem}h4{font-size:1.9rem}h5,h6{font-size:1.8rem}a:hover{color:#111}dl,ol,p,ul{margin:0 0 2.5rem;font-size:1.5rem}ol,ul{padding-left:2em}ol ol,ol ul,ul ol,ul ul{margin:0 0 .4em;padding-left:2em}dl dt{float:left;clear:left;width:180px;text-align:right;text-overflow:ellipsis;white-space:nowrap;font-weight:700}dl dd{margin-left:200px}li{margin:.4em 0}blockquote{padding:5px 20px;margin:0 0 20px;border:0;border-left:5px solid #eee;background-color:#FFF6D5;border-left-color:#F3E3AA;text-align:left;box-sizing:border-box;-moz-box-sizing:border-box}pre,table{box-sizing:border-box;width:100%;-moz-box-sizing:border-box}blockquote p{margin:.8em 0;font-style:italic}blockquote small{margin:.8em 0 .8em 1.5em;color:#ccc;font-size:.9em}blockquote small:before{content:"\2014 \00A0"}blockquote cite a{font-weight:400}code,tt{padding:1px 3px;border:1px solid #e3edf3;border-radius:2px;white-space:pre-wrap;font-size:.85em}pre{margin:0 0 1.75em;padding:10px;border:1px solid #e3edf3;border-radius:3px;white-space:pre;font-size:.9em}pre code,pre tt{border:none;background:0 0;white-space:pre-wrap;font-size:inherit}kbd{margin-bottom:.4em;padding:1px 8px;border:1px solid #ccc;background:#f4f4f4;border-radius:4px;box-shadow:0 1px 0 rgba(0,0,0,.2),0 1px 0 0 #fff inset;color:#666;text-shadow:#fff 0 1px 0;font-size:.9em;font-weight:700}table{border-spacing:0;border-collapse:collapse;margin:1.75em 0;max-width:100%}table td,table th{padding:8px;vertical-align:top;text-align:left;line-height:20px}table caption+thead tr:first-child td,table caption+thead tr:first-child th,table colgroup+thead tr:first-child td,table colgroup+thead tr:first-child th,table thead:first-child tr:first-child td,table thead:first-child tr:first-child th{border-top:0}table tbody+tbody{border-top:#efefef 2px solid}table table table{background-color:#fff}table tbody>tr:nth-child(odd)>td,table tbody>tr:nth-child(odd)>th{background-color:#f6f6f6}table.plain tbody>tr:nth-child(odd)>td,table.plain tbody>tr:nth-child(odd)>th{background:0 0}.fluid-width-video-wrapper,amp-iframe,iframe{display:block;margin:1.75em 0}.fluid-width-video-wrapper amp-iframe,.fluid-width-video-wrapper iframe{margin:0}input,select,textarea{margin:0 0 5px;padding:6px 9px;width:260px;outline:0;border:1px solid #e7eef2;background:#fff;border-radius:4px;box-shadow:none;font-family:"Open Sans",sans-serif;font-size:1.6rem;line-height:1.4em;font-weight:100;-webkit-appearance:none}.blog-title a,.post-meta,.site-footer{font-family:Roboto,sans-serif}textarea{min-width:250px;min-height:80px;max-width:340px;width:100%;height:auto}input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,textarea:focus{outline:0;border:1px solid #bbc7cc;background:#fff}select{width:270px;height:30px;line-height:30px}.clearfix:after,.clearfix:before{content:" ";display:table}.clearfix:after{clear:both}.clearfix{zoom:1}.main-header{display:table;overflow:hidden;box-sizing:border-box;margin-bottom:25px;border-bottom:3px solid #0da58e;width:100%;height:60px;background:center center no-repeat #444;background-size:cover;text-align:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.content{background:#fff;padding-top:15px;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24),0 0 3px rgba(0,0,0,.05)}.blog-title,.content{margin:auto;max-width:600px}.blog-title a{display:inline-block;padding-right:10px;padding-left:10px;height:60px;color:#fff;text-decoration:none;font-size:16px;line-height:60px;font-weight:500}.blog-title .amp-elmah-logo{display:inline-block;width:35px;vertical-align:middle}.blog-title .amp-open-sidebar{float:right;margin:10px 0}.post{margin-top:0;margin-right:20px;margin-left:20px;padding-bottom:0;max-width:100%;border-bottom:#ebf2f6 1px solid;word-wrap:break-word;font-size:.95em;line-height:1.65em}.post-header{margin-bottom:1.5rem}.post-title-wrapper{margin:0 -20px;border-bottom:1px solid #ddd;padding-bottom:15px}.post-title{margin:0 20px}.post-title a{text-decoration:none}.post-meta{display:block;margin:15px 0 0;color:#9eabb3;font-size:1.3rem;line-height:2.2rem;}.post-meta a{color:#0da58e;text-decoration:none}.post-meta a:hover{text-decoration:underline}.footnotes p a:last-child,.site-footer a,amp-sidebar ul li a{text-decoration:none}.post-meta .author{margin:0;font-size:1.3rem;line-height:1.3em;display:inline-block}.post-date{display:inline-block;white-space:nowrap;font-size:1.2rem;line-height:1.2em}.post-image{margin:0;padding-top:3rem;padding-bottom:30px;border-top:1px #E8E8E8 solid}.post-content amp-anim,.post-content amp-img{position:relative;left:50%;display:block;padding:0;min-width:0;max-width:112%;width:calc(100% + 32px);height:auto;transform:translateX(-50%);-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%)}.copyright,.poweredby{display:block;width:45%}.footnotes{font-size:1.3rem;line-height:1.6em;font-style:italic}.footnotes li{margin:.6rem 0}.footnotes p{margin:0}.site-footer{margin:0 auto 20px;padding:1rem 15px;max-width:600px;color:rgba(0,0,0,.5);font-size:1.1rem;line-height:1.75em}.site-footer a{color:rgba(0,0,0,.5);font-weight:700}.site-footer a:hover{border-bottom:#bbc7cc 1px solid}.copyright{float:left}amp-sidebar{background:#222;width:250px;padding:19px;box-sizing:border-box}amp-sidebar ul{margin:0;padding:0;list-style:none;text-align:center}amp-sidebar ul li a{color:#fff}amp-sidebar ul li a:hover{color:#999}@media screen and (max-width:600px){.blog-title,.content{margin:0 15px}}.author-meta{display:inline-block;vertical-align:middle;width:calc(100% - 154px);text-align:right;}
{display:inline-block;vertical-align:top;margin-left:-10px;margin-top:-10px;}.inline_share_toolbox,.post-meta{align-items:center;display:flex}.inline_share_toolbox{width:130px}.inline_share_toolbox>a{width:16px;height:16px;padding:5px;text-align:center;border-radius:4px;display:flex;align-items:center;justify-content:center;margin:0 2px 5px}.inline_share_toolbox>a.share-facebook{background-color:#3b5998;margin-left:0}.inline_share_toolbox>a.share-twitter{background-color:#1da1f2}.inline_share_toolbox>a.share-linkedin{background-color:#0077b5}.inline_share_toolbox>a.share-email{background-color:#848484}.author-meta{margin-left:auto}</style>
{display:inline-block;vertical-align:top;margin-left:-10px;margin-top:-10px;}.inline_share_toolbox,.post-meta{align-items:center;display:flex}.inline_share_toolbox{width:130px}.inline_share_toolbox>a{width:16px;height:16px;padding:5px;text-align:center;border-radius:4px;display:flex;align-items:center;justify-content:center;margin:0 2px 5px}.inline_share_toolbox>a.share-facebook{background-color:#3b5998;margin-left:0}.inline_share_toolbox>a.share-twitter{background-color:#0f1419}.inline_share_toolbox>a.share-linkedin{background-color:#0077b5}.inline_share_toolbox>a.share-email{background-color:#848484}.author-meta{margin-left:auto}</style>

{{!-- The AMP boilerplate --}}
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
Expand Down Expand Up @@ -60,7 +60,7 @@
<section class="post-meta">
<div class="inline_share_toolbox">
<a class="share-facebook" title="Share to Facebook" target="_blank" href="https://www.facebook.com/sharer.php?u={{encode url absolute='true'}}"><amp-img layout="fixed" height="14" width="7.5" src="{{asset 'img/share/facebook.svg'}}"></amp-img></a>
<a class="share-twitter" title="Share to Twitter" target="_blank" href="https://twitter.com/intent/tweet?url={{encode url absolute='true'}}&amp;text={{encode title}}"><amp-img layout="fixed" height="14" width="11.37" src="{{asset 'img/share/twitter.svg'}}"></amp-img></a>
<a class="share-twitter" title="Share to Twitter" target="_blank" href="https://twitter.com/intent/tweet?url={{encode url absolute='true'}}&amp;text={{encode title}}"><amp-img layout="fixed" height="14" width="11.37" src="{{asset 'img/share/x-twitter.svg'}}"></amp-img></a>
<a class="share-linkedin" title="Share to LinkedIn" target="_blank" href="https://www.linkedin.com/sharing/share-offsite/?url={{encode url absolute='true'}}"><amp-img layout="fixed" height="12.25" width="12.25" src="{{asset 'img/share/linkedin.svg'}}"></amp-img></a>
<a class="share-email" title="Share to Email" target="_blank" href="mailto:?subject={{encode title}}&amp;body={{encode meta_description}} Link: {{encode url absolute='true'}}"><amp-img layout="fixed" height="14" width="10.5" src="{{asset 'img/share/email.svg'}}"></amp-img></a>
</div>
Expand Down
20 changes: 18 additions & 2 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,14 @@ img.gif {
background: #3b5998
}
.inline_share_toolbox a.share-twitter {
background: #1da1f2
background: #0f1419
}
.inline_share_toolbox a.share-twitter .x-twitter:before {
display: inline-block;
vertical-align: bottom;
top: 0;
width: 11px;
height: 11px;
}
.inline_share_toolbox a.share-linkedin {
background: #0377b5
Expand All @@ -1685,7 +1692,7 @@ img.gif {
transition: transform .2s ease-in-out;
}
.follow-box .follow-list li.social-link-twitter {
background-color: #1da1f2;
background-color: #0f1419;
}
.follow-box .follow-list li.social-link-facebook {
background-color: #3b5998
Expand Down Expand Up @@ -1716,4 +1723,13 @@ img.gif {
.video-box > i {
font-size: 50px
}
}

.x-twitter:before {
content: url(../img/share/x-twitter.svg);
position: relative;
display: block;
top: 2px;
width: 16px;
height: 16px;
}
4 changes: 2 additions & 2 deletions assets/css/style.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/img/share/x-twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/js/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/main.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion author.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ into the {body} of the default.hbs template --}}
<a class="social-link social-link-wb" href="{{website}}" target="_blank" rel="noopener"><span class="fas fa-globe"></span></a>
{{/if}}
{{#if twitter}}
<a class="social-link social-link-tw" href="{{twitter_url}}" target="_blank" rel="noopener"><span class="fab fa-twitter"></span></a>
<a class="social-link social-link-tw" href="{{twitter_url}}" target="_blank" rel="noopener"><span class="fab x-twitter"></span></a>
{{/if}}
{{#if facebook}}
<a class="social-link social-link-fb" href="{{facebook_url}}" target="_blank" rel="noopener"><span class="fab fa-facebook-f"></span></a>
Expand Down
2 changes: 1 addition & 1 deletion default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
</div>
<div class="col-lg-2 col-md-12 order-3 order-lg-1">
<ul class="list-unstyled social mb-0">
<li class="list-inline-item"><a href="https://twitter.com/elmah_io"><i class="fab fa-twitter"></i></a></li>
<li class="list-inline-item"><a href="https://twitter.com/elmah_io"><i class="fab x-twitter"></i></a></li>
<li class="list-inline-item"><a href="https://facebook.com/elmahdotio"><i class="fab fa-facebook-f"></i></a></li>
<li class="list-inline-item"><a href="https://www.linkedin.com/company/elmah-io/"><i class="fab fa-linkedin-in"></i></a></li>
</ul>
Expand Down
8 changes: 4 additions & 4 deletions partials/sidebar.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,20 @@
<ul class="follow-list">
{{#if @site.twitter}}
<li class="social-link-twitter">
<a class="social-link" href="{{twitter_url}}" title="Twitter" target="_blank rel="noopener noreferrer">
<span class="fab fa-twitter"></span>
<a class="social-link" href="{{twitter_url}}" title="Twitter" target="_blank" rel="noopener noreferrer">
<span class="fab x-twitter"></span>
</a>
</li>
{{/if}}
{{#if @site.facebook}}
<li class="social-link-facebook">
<a class="social-link" href="{{facebook_url}}" title="Facebook" target="_blank rel="noopener noreferrer">
<a class="social-link" href="{{facebook_url}}" title="Facebook" target="_blank" rel="noopener noreferrer">
<span class="fab fa-facebook-f"></span>
</a>
</li>
{{/if}}
<li class="social-link-linkedin">
<a class="social-link" href="https://www.linkedin.com/company/elmah-io/" title="LinkedIn" target="_blank rel="noopener noreferrer">
<a class="social-link" href="https://www.linkedin.com/company/elmah-io/" title="LinkedIn" target="_blank" rel="noopener noreferrer">
<span class="fab fa-linkedin-in"></span>
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ into the {body} of the default.hbs template --}}

<div class="inline_share_toolbox">
<a class="share-facebook" title="Share to Facebook" target="_blank" href="https://www.facebook.com/sharer.php?u={{url absolute='true'}}"><i class="fab fa-facebook-f mr-md-2"></i><span>Facebook</span></a>
<a class="share-twitter" title="Share to Twitter" target="_blank" href="https://twitter.com/share?text={{encode title}}&url={{url absolute='true'}}"><i class="fab fa-twitter mr-md-2"></i><span>Twitter</span></a>
<a class="share-twitter" title="Share to Twitter" target="_blank" href="https://twitter.com/share?text={{encode title}}&url={{url absolute='true'}}"><i class="fab x-twitter mr-md-2"></i><span>Twitter</span></a>
<a class="share-linkedin" title="Share to LinkedIn" target="_blank" href="https://www.linkedin.com/sharing/share-offsite/?url={{url absolute='true'}}"><i class="fab fa-linkedin-in mr-md-2"></i><span>LinkedIn</span></a>
<a class="share-email" title="Share to Email" target="_blank" href="mailto:?subject={{encode title}}&body={{url absolute='true'}}"><i class="fas fa-envelope mr-md-2"></i><span>Email</span></a>
</div>
Expand Down

0 comments on commit 1c4588d

Please sign in to comment.