From ff289ee5731bf72d77f2fa068d0ed97084b91fe8 Mon Sep 17 00:00:00 2001
From: 1024jp <1024jp@wolfrosch.com>
Date: Wed, 6 Nov 2024 00:24:35 +0900
Subject: [PATCH] Replace twitter logo with X
---
archives.html | 2 +-
archives.ja.html | 2 +-
archives.tr.html | 2 +-
contact.html | 2 +-
contact.ja.html | 2 +-
contact.tr.html | 2 +-
cot.html | 2 +-
css/common.css | 15 ++++++---------
css/parts/twitter_large.svg | 23 -----------------------
css/parts/w_sns_twitter.svg | 23 -----------------------
css/parts/w_sns_x.svg | 13 +++++++++++++
css/parts/x_large.svg | 8 ++++++++
index.html | 2 +-
index.ja.html | 2 +-
index.tr.html | 2 +-
js/common.js | 4 ++--
privacy.html | 2 +-
privacy.tr.html | 2 +-
18 files changed, 41 insertions(+), 69 deletions(-)
delete mode 100644 css/parts/twitter_large.svg
delete mode 100644 css/parts/w_sns_twitter.svg
create mode 100644 css/parts/w_sns_x.svg
create mode 100644 css/parts/x_large.svg
diff --git a/archives.html b/archives.html
index 2f7481a..71a9970 100644
--- a/archives.html
+++ b/archives.html
@@ -36,7 +36,7 @@
diff --git a/archives.ja.html b/archives.ja.html
index 028fb78..4570a79 100644
--- a/archives.ja.html
+++ b/archives.ja.html
@@ -36,7 +36,7 @@
diff --git a/archives.tr.html b/archives.tr.html
index cd9e70a..37a05f5 100644
--- a/archives.tr.html
+++ b/archives.tr.html
@@ -36,7 +36,7 @@
diff --git a/contact.html b/contact.html
index 6220378..84058a7 100644
--- a/contact.html
+++ b/contact.html
@@ -36,7 +36,7 @@
diff --git a/contact.ja.html b/contact.ja.html
index 0ca569f..5e4da22 100644
--- a/contact.ja.html
+++ b/contact.ja.html
@@ -36,7 +36,7 @@
diff --git a/contact.tr.html b/contact.tr.html
index 0bf44ed..434e4fe 100644
--- a/contact.tr.html
+++ b/contact.tr.html
@@ -36,7 +36,7 @@
diff --git a/cot.html b/cot.html
index 10a6fb0..9935a61 100644
--- a/cot.html
+++ b/cot.html
@@ -33,7 +33,7 @@
diff --git a/css/common.css b/css/common.css
index 14e01c6..49a7be5 100644
--- a/css/common.css
+++ b/css/common.css
@@ -6,7 +6,7 @@
author : 1024jp
site : coteditor.com
target : all pages
- lastMod : 2022-05
+ lastMod : 2024-11
////////////////////////////////////// */
/*___0.universal_reset_______________________________________________________*/
@@ -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]) {
@@ -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%;
diff --git a/css/parts/twitter_large.svg b/css/parts/twitter_large.svg
deleted file mode 100644
index 986b4da..0000000
--- a/css/parts/twitter_large.svg
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
diff --git a/css/parts/w_sns_twitter.svg b/css/parts/w_sns_twitter.svg
deleted file mode 100644
index 705132c..0000000
--- a/css/parts/w_sns_twitter.svg
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
diff --git a/css/parts/w_sns_x.svg b/css/parts/w_sns_x.svg
new file mode 100644
index 0000000..892b151
--- /dev/null
+++ b/css/parts/w_sns_x.svg
@@ -0,0 +1,13 @@
+
+
+
+
diff --git a/css/parts/x_large.svg b/css/parts/x_large.svg
new file mode 100644
index 0000000..8566078
--- /dev/null
+++ b/css/parts/x_large.svg
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/index.html b/index.html
index c699bd6..f1bce76 100644
--- a/index.html
+++ b/index.html
@@ -46,7 +46,7 @@
diff --git a/index.ja.html b/index.ja.html
index 755c8b7..554fd72 100644
--- a/index.ja.html
+++ b/index.ja.html
@@ -42,7 +42,7 @@
diff --git a/index.tr.html b/index.tr.html
index 75a3d87..f150626 100644
--- a/index.tr.html
+++ b/index.tr.html
@@ -39,7 +39,7 @@
diff --git a/js/common.js b/js/common.js
index 022e0c1..56a3ef0 100644
--- a/js/common.js
+++ b/js/common.js
@@ -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'};
}
diff --git a/privacy.html b/privacy.html
index 95c429f..c672d81 100644
--- a/privacy.html
+++ b/privacy.html
@@ -31,7 +31,7 @@
diff --git a/privacy.tr.html b/privacy.tr.html
index dd6a686..955a643 100644
--- a/privacy.tr.html
+++ b/privacy.tr.html
@@ -31,7 +31,7 @@