From 8832a71bfd27fb683c7f09f6e27e8fff61263ab8 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sun, 5 Nov 2023 23:11:00 -0500 Subject: Icons for header --- alabaster-lite/css/fkfd.css | 52 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 44 insertions(+), 8 deletions(-) (limited to 'alabaster-lite') diff --git a/alabaster-lite/css/fkfd.css b/alabaster-lite/css/fkfd.css index 749c4cb..294c4f6 100644 --- a/alabaster-lite/css/fkfd.css +++ b/alabaster-lite/css/fkfd.css @@ -118,35 +118,49 @@ div.footer a { /* * Custom home page for fkfd.me * Created on 2022-12-28 + * Last revision 2023-11-05 */ -div .category-block-container { +.header-block-container { + display: grid; + gap: 60px; + grid-template-columns: 120px 120px 120px; +} + +.category-block-container { display: grid; gap: 20px; grid-template-columns: 320px 320px; } -div .webring-block-container { +.webring-block-container { display: grid; gap: 0px; grid-template-columns: 120px 120px 120px; } @media screen and (max-width: 870px) { - div .category-block-container { - display: grid; - gap: 20px; + .header-block-container { + gap: 0px; + } + + .category-block-container { /* one column only on narrow screens */ grid-template-columns: 320px; } } -.category-block, .webring-block { +.header-block-container a, +.webring-block-container a { + text-decoration: none; +} + +.header-block, .category-block, .webring-block { display: grid; text-align: center; } -.category-icon, .webring-icon { +.header-icon, .category-icon, .webring-icon { display: block; width: 120px; height: 120px; @@ -159,12 +173,19 @@ div .webring-block-container { -webkit-mask-repeat: no-repeat; } +@media screen and (max-width: 870px) { +} + @media (prefers-color-scheme: dark) { - .category-icon, .webring-icon { + .header-icon, .category-icon, .webring-icon { background-color: white; } } +.header-text { + text-align: center; +} + .category-text { position: absolute; margin-left: 130px; @@ -176,6 +197,21 @@ div .webring-block-container { text-align: center; } +#icon-about { + mask-image: url("../img/icons/about.png"); + -webkit-mask-image: url("../img/icons/about.png"); +} + +#icon-x { + mask-image: url("../img/icons/x.png"); + -webkit-mask-image: url("../img/icons/x.png"); +} + +#icon-links { + mask-image: url("../img/icons/links.png"); + -webkit-mask-image: url("../img/icons/links.png"); +} + #icon-projects { mask-image: url("../img/icons/projects.png"); -webkit-mask-image: url("../img/icons/projects.png"); -- cgit v1.2.3