From 46d0b4140ebc3365618b23b01c094b0860baed9d Mon Sep 17 00:00:00 2001 From: maTh Date: Mon, 3 Oct 2022 18:04:10 +0200 Subject: Improved: better semantic HTML for boxes (#4665) * add h1 title on views * add h2 titles into box-title * thin scrollbar in box-content --- app/views/configure/queries.phtml | 6 +++--- app/views/index/global.phtml | 5 +++-- app/views/index/normal.phtml | 1 + app/views/index/reader.phtml | 2 +- app/views/stats/idle.phtml | 4 ++-- app/views/subscription/index.phtml | 6 +++--- p/themes/base-theme/frss.css | 8 ++++++++ p/themes/base-theme/frss.rtl.css | 8 ++++++++ 8 files changed, 29 insertions(+), 11 deletions(-) diff --git a/app/views/configure/queries.phtml b/app/views/configure/queries.phtml index 93ed38e10..bc6d92846 100644 --- a/app/views/configure/queries.phtml +++ b/app/views/configure/queries.phtml @@ -10,13 +10,13 @@
-

+

queries as $key => $query) { ?>
- getName() ?> +

getName() ?>

@@ -37,7 +37,7 @@
-
    +
      hasSearch()) { ?>
    • getSearch()->getRawInput(), ENT_NOQUOTES, 'UTF-8')) ?>
    • diff --git a/app/views/index/global.phtml b/app/views/index/global.phtml index 7348c9cd1..09264fb65 100644 --- a/app/views/index/global.phtml +++ b/app/views/index/global.phtml @@ -14,6 +14,7 @@ ?>
      +

      + href="">

      name() ?>

      -
        +
          nbNotRead(); diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml index 6a4cb77eb..c1c46e877 100644 --- a/app/views/index/normal.phtml +++ b/app/views/index/normal.phtml @@ -19,6 +19,7 @@ $today = @strtotime('today'); ?>
          +

          content_width; $MAX_TAGS_DISPLAYED = FreshRSS_Context::$user_conf->show_tags_max; ?>
          - +

          -
          -
            +

            +
              feeds[$feedInPeriod['id']] ?? null; diff --git a/app/views/subscription/index.phtml b/app/views/subscription/index.phtml index 71bf5b429..3368c5ab0 100644 --- a/app/views/subscription/index.phtml +++ b/app/views/subscription/index.phtml @@ -35,10 +35,10 @@
              - name() ?> +

              name() ?>

              kind() == FreshRSS_Category::KIND_DYNAMIC_OPML) { echo _i('opml-dyn'); } ?>
              -
                +
                  - ✚ + ✚

                  diff --git a/p/themes/base-theme/frss.css b/p/themes/base-theme/frss.css index 46fffb826..fdc99e8a7 100644 --- a/p/themes/base-theme/frss.css +++ b/p/themes/base-theme/frss.css @@ -102,6 +102,10 @@ h3 { line-height: 1.5; } +.title_hidden { + display: none; +} + /*=== Paragraphs */ p { margin: 1rem 0 0.5rem; @@ -795,6 +799,10 @@ input[type="checkbox"]:focus-visible { .box .box-title { position: relative; +} + +.box .box-title h2 { + display: inline; font-size: 1.2rem; font-weight: bold; } diff --git a/p/themes/base-theme/frss.rtl.css b/p/themes/base-theme/frss.rtl.css index 4d731e6f7..5d3b0eab7 100644 --- a/p/themes/base-theme/frss.rtl.css +++ b/p/themes/base-theme/frss.rtl.css @@ -102,6 +102,10 @@ h3 { line-height: 1.5; } +.title_hidden { + display: none; +} + /*=== Paragraphs */ p { margin: 1rem 0 0.5rem; @@ -795,6 +799,10 @@ input[type="checkbox"]:focus-visible { .box .box-title { position: relative; +} + +.box .box-title h2 { + display: inline; font-size: 1.2rem; font-weight: bold; } -- cgit v1.2.3