From 54eaf8e9afc11f0b4b4531123cfaadeac18f835d Mon Sep 17 00:00:00 2001 From: Louis Ouellet Date: Tue, 27 Feb 2024 15:14:31 -0500 Subject: [PATCH] Moved page-tools outside of the widget in order to base the border of the site tools based on if some are listed or not --- css/components/sidebar/widgets.less | 4 +- css/tools.less | 21 ++++++ main.php | 102 ++++++++++++++-------------- 3 files changed, 75 insertions(+), 52 deletions(-) diff --git a/css/components/sidebar/widgets.less b/css/components/sidebar/widgets.less index a8e8d85..e84868c 100644 --- a/css/components/sidebar/widgets.less +++ b/css/components/sidebar/widgets.less @@ -6,9 +6,11 @@ /* Widgets */ .widget { margin: 0 0 20px; - border-bottom: 3px solid @ini_theme_color_alt; font-size: 14px; } +.widget:has(*) { + border-bottom: 3px solid @ini_theme_color_alt; +} .content-area .widget { border-bottom-color: @ini_background_neu; &:last-of-type { diff --git a/css/tools.less b/css/tools.less index 919938a..dfc933b 100644 --- a/css/tools.less +++ b/css/tools.less @@ -24,6 +24,27 @@ } .page-tools { + ul { + list-style: none; + text-transform: uppercase; + } + li { + padding: 5px 0; + } + li:first-child { + padding-top: 0; + } + li:last-child { + padding-bottom: 0; + } + ul a { + color: @ini_background; + font-weight: bold; + text-decoration: none; + } + ul a:hover { + color: @ini_theme_color_alt; + } a span.icon { display: inline-block; width: 20px; diff --git a/main.php b/main.php index 271a78a..d5d3845 100644 --- a/main.php +++ b/main.php @@ -81,6 +81,57 @@ + +
+

>

+ +
+ - - -
-

>

- -