From fc0c8cbbfdbbd330c942bb37d063bf03ddff90ad Mon Sep 17 00:00:00 2001 From: Marcel Peterkau Date: Sun, 18 Sep 2022 23:58:32 +0200 Subject: [PATCH] some Fomat-Tweaks for Text of Cards --- css/tweaks.css | 119 ++++++++++++++++++++++++++++--------------------- index.php | 13 ++++-- 2 files changed, 77 insertions(+), 55 deletions(-) diff --git a/css/tweaks.css b/css/tweaks.css index 14de334..5b79115 100644 --- a/css/tweaks.css +++ b/css/tweaks.css @@ -1,63 +1,80 @@ @font-face { - font-family: 'Comfortaa'; - font-style: normal; - font-weight: 300; - src: url(../fonts/comfortaa.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + font-family: 'Comfortaa'; + font-style: normal; + font-weight: 300; + src: url(../fonts/comfortaa.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } + .bd-placeholder-img { - font-size: 1.125rem; - text-anchor: middle; - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; - } + font-size: 1.125rem; + text-anchor: middle; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} - @media (min-width: 768px) { - .bd-placeholder-img-lg { - font-size: 3.5rem; - } +@media (min-width: 768px) { + .bd-placeholder-img-lg { + font-size: 3.5rem; } +} - .b-example-divider { - height: 3rem; - background-color: rgba(0, 0, 0, .1); - border: solid rgba(0, 0, 0, .15); - border-width: 1px 0; - box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15); - } +.b-example-divider { + height: 3rem; + background-color: rgba(0, 0, 0, .1); + border: solid rgba(0, 0, 0, .15); + border-width: 1px 0; + box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15); +} - .b-example-vr { - flex-shrink: 0; - width: 1.5rem; - height: 100vh; - } +.b-example-vr { + flex-shrink: 0; + width: 1.5rem; + height: 100vh; +} - .bi { - vertical-align: -.125em; - fill: currentColor; - } +.bi { + vertical-align: -.125em; + fill: currentColor; +} - .nav-scroller { - position: relative; - z-index: 2; - height: 2.75rem; - overflow-y: hidden; - } +.nav-scroller { + position: relative; + z-index: 2; + height: 2.75rem; + overflow-y: hidden; +} - .nav-scroller .nav { - display: flex; - flex-wrap: nowrap; - padding-bottom: 1rem; - margin-top: -1px; - overflow-x: auto; - text-align: center; - white-space: nowrap; - -webkit-overflow-scrolling: touch; - } +.nav-scroller .nav { + display: flex; + flex-wrap: nowrap; + padding-bottom: 1rem; + margin-top: -1px; + overflow-x: auto; + text-align: center; + white-space: nowrap; + -webkit-overflow-scrolling: touch; +} - .card-img-top { - width: 100%; - height: 15vw; - object-fit: scale-down; +.card-img-top { + width: 100%; + height: 15vw; + object-fit: scale-down; + padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x); +} + +.card-text { + min-height: 3em; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; + text-overflow: ellipsis; +} + +.card-title { + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; } \ No newline at end of file diff --git a/index.php b/index.php index 9fcf14e..3dee879 100644 --- a/index.php +++ b/index.php @@ -21,6 +21,12 @@ include_once('config/config.php'); + + + + + + @@ -29,9 +35,8 @@ include_once('config/config.php');