From 3ad3393c8613f964ec710fc80762a09255bf82c9 Mon Sep 17 00:00:00 2001 From: ZYR0Z Date: Sat, 5 Apr 2025 19:29:37 +0200 Subject: [PATCH 1/2] Remove duplicate CSS properties --- main.css | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/main.css b/main.css index 591efd0..8a16808 100644 --- a/main.css +++ b/main.css @@ -18,17 +18,14 @@ small { font-size: 16px; } h1 { - color: #EEE; font-size: 48px; margin-bottom: 45px; } h2 { - color: #EEE; font-size: 32px; margin-bottom: 40px; } h3 { - color: #EEE; font-size: 24px; margin-bottom: 35px; } @@ -53,38 +50,23 @@ li { position: relative; margin-bottom: 4px; } -a:link { +a { color: #EEE; + transition: text-decoration-color 0.2s; text-decoration: underline; text-decoration-thickness: 2px; - text-decoration-color: #73c936; - transition: text-decoration-color 0.2s; text-underline-offset: 2px; } +a:link, a:visited { - color: #EEE; - text-decoration: underline; - text-decoration-thickness: 2px; text-decoration-color: #73c936; - transition: text-decoration-color 0.2s; - text-underline-offset: 2px; } a:hover { - color: #EEE; - text-decoration: underline; - text-decoration-thickness: 2px; text-decoration-color: #EEE; - transition: text-decoration-color 0.2s; - text-underline-offset: 2px; } a:active { - color: #EEE; - text-decoration: underline; - text-decoration-thickness: 2px; text-decoration-color: #f43841; - transition: text-decoration-color 0.2s; - text-underline-offset: 2px; -} +} h1 a:link { text-decoration-thickness: 4px; } @@ -102,13 +84,11 @@ h2 a:link { border-radius: 0%; transition: all 0.2s; } - li:has(a:hover)::before, .logo:hover, body:has(.logo:hover) li::before { border-radius: 50%; } - li:has(a:active)::before, .logo:active, body:has(.logo:active) li::before { @@ -116,8 +96,7 @@ body:has(.logo:active) li::before { border-radius: 0%; transform: rotate(45deg); } - body:has(.logo:active) a:link, body:has(.logo:active) a:visited { text-decoration-color: #f43841; -} +} \ No newline at end of file From c4c758729b579e9346646819c3461b5ebd331812 Mon Sep 17 00:00:00 2001 From: ZYR0Z Date: Sat, 5 Apr 2025 19:41:09 +0200 Subject: [PATCH 2/2] Make logo a `div` --- index.html | 2 +- main.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 9035901..e7b0c99 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - +

rexim

Hi! My name is Alexey Kutepov. I'm also known as rexim, mixer, Tsoding, Zozin, and many other names. I'm a Recreational Programmer.

My social media links

diff --git a/main.css b/main.css index 8a16808..14c063e 100644 --- a/main.css +++ b/main.css @@ -83,6 +83,7 @@ h2 a:link { top: -5px; border-radius: 0%; transition: all 0.2s; + user-select: none; } li:has(a:hover)::before, .logo:hover,