Skip to content

Commit

Permalink
Replace twitter logo with X
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Nov 5, 2024
1 parent d60becb commit ff289ee
Show file tree
Hide file tree
Showing 18 changed files with 41 additions and 69 deletions.
2 changes: 1 addition & 1 deletion archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<nav><ul>
<li><a>Archives</a></li>
<li><a href="contact">Contact</a></li>
<li><a href="https://twitter.com/CotEditor" rel="external">Twitter</a></li>
<li><a href="https://x.com/CotEditor" rel="external">X</a></li>
</ul></nav>
</header>

Expand Down
2 changes: 1 addition & 1 deletion archives.ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<nav><ul>
<li><a>アーカイブ</a></li>
<li><a href="contact.ja">コンタクト</a></li>
<li><a href="https://twitter.com/CotEditor" rel="external">Twitter</a></li>
<li><a href="https://x.com/CotEditor" rel="external">X</a></li>
</ul></nav>
</header>

Expand Down
2 changes: 1 addition & 1 deletion archives.tr.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<nav><ul>
<li><a>Arşiv</a></li>
<li><a href="contact.tr">İletişim</a></li>
<li><a href="https://twitter.com/CotEditor" rel="external">Twitter</a></li>
<li><a href="https://x.com/CotEditor" rel="external">X</a></li>
</ul></nav>
</header>

Expand Down
2 changes: 1 addition & 1 deletion contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<nav><ul>
<li><a href="archives">Archives</a></li>
<li><a>Contact</a></li>
<li><a href="https://twitter.com/CotEditor" rel="external">Twitter</a></li>
<li><a href="https://x.com/CotEditor" rel="external">X</a></li>
</ul></nav>
</header>

Expand Down
2 changes: 1 addition & 1 deletion contact.ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<nav><ul>
<li><a href="archives.ja">アーカイブ</a></li>
<li><a>コンタクト</a></li>
<li><a href="https://twitter.com/CotEditor" rel="external">Twitter</a></li>
<li><a href="https://x.com/CotEditor" rel="external">X</a></li>
</ul></nav>
</header>

Expand Down
2 changes: 1 addition & 1 deletion contact.tr.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<nav><ul>
<li><a href="archives.tr">Arşiv</a></li>
<li><a>İletişim</a></li>
<li><a href="https://twitter.com/CotEditor" rel="external">Twitter</a></li>
<li><a href="https://x.com/CotEditor" rel="external">X</a></li>
</ul></nav>
</header>

Expand Down
2 changes: 1 addition & 1 deletion cot.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<nav><ul>
<li><a href="archives">Archives</a></li>
<li><a href="contact">Contact</a></li>
<li><a href="https://twitter.com/CotEditor" rel="external">Twitter</a></li>
<li><a href="https://x.com/CotEditor" rel="external">X</a></li>
</ul></nav>
</header>

Expand Down
15 changes: 6 additions & 9 deletions css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
author : 1024jp <wolfrosch.com>
site : coteditor.com
target : all pages
lastMod : 2022-05
lastMod : 2024-11
////////////////////////////////////// */

/*___0.universal_reset_______________________________________________________*/
Expand Down Expand Up @@ -187,12 +187,9 @@ body > header > nav li {
display: inline;
margin: 0 0.4em;
}
body > header > nav a[href*=twitter] {
color: hsl(203,80%,50%) !important;
}
body > header > nav a[href*=twitter]::before {
content: url('parts/twitter_large.svg');
margin-right: 4px;
body > header > nav a[href*='x.com'] {
content: url('parts/x_large.svg');
height: 16px;
vertical-align: -2px;
}
body > header > nav a:lang(ja):not([rel=external]) {
Expand Down Expand Up @@ -246,8 +243,8 @@ aside.sns li+li {
[role=tooltip].github p:first-child::before {
content: url('parts/w_sns_github.svg');
}
[role=tooltip].twitter p:first-child::before {
content: url('parts/w_sns_twitter.svg');
[role=tooltip].x p:first-child::before {
content: url('parts/w_sns_x.svg');
}
[role=tooltip].note p {
font-size: 90%;
Expand Down
23 changes: 0 additions & 23 deletions css/parts/twitter_large.svg

This file was deleted.

23 changes: 0 additions & 23 deletions css/parts/w_sns_twitter.svg

This file was deleted.

13 changes: 13 additions & 0 deletions css/parts/w_sns_x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions css/parts/x_large.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 index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<nav><ul>
<li><a href="archives">Archives</a></li>
<li><a href="contact">Contact</a></li>
<li><a href="https://twitter.com/CotEditor" rel="external">Twitter</a></li>
<li><a href="https://x.com/CotEditor" rel="external">X</a></li>
</ul></nav>
</header>

Expand Down
2 changes: 1 addition & 1 deletion index.ja.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<nav><ul>
<li><a href="archives.ja">アーカイブ</a></li>
<li><a href="contact.ja">コンタクト</a></li>
<li><a href="https://twitter.com/CotEditor" rel="external">Twitter</a></li>
<li><a href="https://x.com/CotEditor" rel="external">X</a></li>
</ul></nav>
</header>

Expand Down
2 changes: 1 addition & 1 deletion index.tr.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<nav><ul>
<li><a href="archives.tr">Arşiv</a></li>
<li><a href="contact.tr">İletişim</a></li>
<li><a href="https://twitter.com/CotEditor" rel="external">Twitter</a></li>
<li><a href="https://x.com/CotEditor" rel="external">X</a></li>
</ul></nav>
</header>

Expand Down
4 changes: 2 additions & 2 deletions js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ function initTooltips() {
var opt = {};
if (el.matches('nav a')) {
opt = {displaysUrl: false};
} else if (el.matches('[href*="//twitter.com/"]')) {
opt = {'class': 'twitter'};
} else if (el.matches('[href*="//x.com/"]')) {
opt = {'class': 'x'};
} else if (el.matches('[href*="//github.com/"]')) {
opt = {'class': 'github'};
}
Expand Down
2 changes: 1 addition & 1 deletion privacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<nav><ul>
<li><a href="archives">Archives</a></li>
<li><a href="contact">Contact</a></li>
<li><a href="https://twitter.com/CotEditor" rel="external">Twitter</a></li>
<li><a href="https://x.com/CotEditor" rel="external">X</a></li>
</ul></nav>
</header>

Expand Down
2 changes: 1 addition & 1 deletion privacy.tr.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<nav><ul>
<li><a href="archives.tr">Arşiv</a></li>
<li><a href="contact.tr">İletişim</a></li>
<li><a href="https://twitter.com/CotEditor" rel="external">Twitter</a></li>
<li><a href="https://x.com/CotEditor" rel="external">X</a></li>
</ul></nav>
</header>

Expand Down

0 comments on commit ff289ee

Please sign in to comment.