diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-02-26 23:21:06 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-02-26 23:25:26 -0500 |
| commit | 106cebec65e8b6a623bec2fff29a87c2932fa4dc (patch) | |
| tree | 8c38145d998509046c35f122f8f184ca0d7cdee5 /src/web | |
| parent | make the header logo a clickable link to home (diff) | |
| download | website-106cebec65e8b6a623bec2fff29a87c2932fa4dc.tar.gz website-106cebec65e8b6a623bec2fff29a87c2932fa4dc.tar.bz2 website-106cebec65e8b6a623bec2fff29a87c2932fa4dc.zip | |
update css to not using box-sizing
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/_views/footer.php | 15 | ||||
| -rw-r--r-- | src/web/_views/head.php | 4 | ||||
| -rw-r--r-- | src/web/_views/header.php | 11 | ||||
| -rw-r--r-- | src/web/lib/hooks.php | 14 |
4 files changed, 14 insertions, 30 deletions
diff --git a/src/web/_views/footer.php b/src/web/_views/footer.php index 1f1ad30..8807160 100644 --- a/src/web/_views/footer.php +++ b/src/web/_views/footer.php @@ -7,14 +7,15 @@ $footer_text = ''; } ?> - <div id="ad" class="section ad-slot" role="region"> - <span class="ad-slot"> - <?=lang('adblock_notice')?> - </span> - </div> + <div id="ad" class="section ad-slot" role="region"> + <span class="ad-slot"> + <?=lang('adblock_notice')?> + </span> </div> </div> - <div id="footer" role="contentinfo" aria-label="footer"> + </div> + <div id="footer" role="contentinfo" aria-label="footer"> + <div class="container"><div class="section"> <?=lang('license')?> <br> <?=lang('copyright')?> <?=lang('first_name')?> <?=lang('last_name')?> <?=date('Y')?> @@ -49,7 +50,7 @@ title="<?=lang('bucket_title')?>" src="<?=$this->get_url('bucket?name=freya')?>" ></iframe> - </div> + </div></div> </div> <?=ie('</center>')?> </body> diff --git a/src/web/_views/head.php b/src/web/_views/head.php index 8cd6f87..73bd3f6 100644 --- a/src/web/_views/head.php +++ b/src/web/_views/head.php @@ -53,10 +53,6 @@ echo ie($this->embed_css('css/ie/ie.css')); /* IE 4 Styles */ echo ie_ua($this->embed_css('css/ie/ie4.css'), 4); - /* IE 6-7 Styles */ - echo '<!--[if (gt IE 5)&(lt IE 8) ]>'; - echo $this->embed_css('css/ie/ie6.css'); - echo '<![endif]-->'; /* CSS Files */ foreach($css as $file) diff --git a/src/web/_views/header.php b/src/web/_views/header.php index fe8e0f1..d4966a9 100644 --- a/src/web/_views/header.php +++ b/src/web/_views/header.php @@ -5,8 +5,8 @@ </head> <body> <?=ie('<center>')?> -<div class="center"> - <div id="header" role="banner" aria-label="banner"> +<div id="header" role="banner" aria-label="banner"> + <div class="container"><div class="section"> <a href="<?=$this->get_url('')?>"> <?=image('img/headerLogo', 'alt_website_logo', 'title_website_logo', size: '200')?> </a> @@ -32,6 +32,7 @@ </ul> </div> </div> - </div> - <div id="main" role="main" aria-label="main"> - <div id="container"> + </div></div> +</div> +<div id="main" role="main" aria-label="main"> + <div class="container"> diff --git a/src/web/lib/hooks.php b/src/web/lib/hooks.php index a688069..70853e1 100644 --- a/src/web/lib/hooks.php +++ b/src/web/lib/hooks.php @@ -1,20 +1,6 @@ <?php /* Copyright (c) 2024 Freya Murphy */ -function load_htc(string $file) { - $file_path = PUBLIC_ROOT . '/polyfills/' . $file; - if (!file_exists($file_path)) - return; - - header('Content-type: text/x-component'); - include($file_path); - CRIMSON_DIE(); -} - function CRIMSON_pre_route_hook(Router $router): void { - $uri_str = ROUTER->req['uri_str'] ?? ''; - $file = basename($uri_str); - if (str_ends_with($file, '.htc')) - load_htc($file); } function CRIMSON_error_hook(?array $req, int $code): never { |