From e77afb36fdbebb8da22ad3d2d2582572bdeb84ea Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 3 Feb 2026 02:28:20 +0000 Subject: [PATCH] Fix: Unified language cards formatting and improved mobile text justification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added descriptive paragraphs to Slovenščina and Srbščina cards - Changed Albanščina colon to period for consistency - Updated hero CTA box margin (2.5rem top, 1.5rem bottom) - Improved mobile justified text with hyphenation, letter-spacing, and word-breaking --- css/style.css | 72 ++++++++++++++++++++++++++++++++++++++++++---- ponudba/index.html | 7 +++-- 2 files changed, 71 insertions(+), 8 deletions(-) diff --git a/css/style.css b/css/style.css index fb910b5..7c243f4 100644 --- a/css/style.css +++ b/css/style.css @@ -209,6 +209,30 @@ body.no-scroll { box-shadow: 0 4px 15px rgba(251, 99, 57, 0.4) } +/* Desktop/Mobile button visibility */ +.cta-button-mobile { + display: none; +} + +.cta-button-desktop { + display: inline-block; +} + +.cta-button-auto { + width: auto !important; + padding: 0.75rem 1rem; +} + +@media (max-width: 768px) { + .cta-button-mobile { + display: inline-block; + } + + .cta-button-desktop { + display: none; + } +} + .services { padding: 80px 2rem; background: white @@ -3913,7 +3937,8 @@ footer { .mediation-hero-text { display: flex; flex-direction: column; - gap: 2rem + gap: 2rem; + align-items: center; } .mediation-hero-text p { @@ -5156,7 +5181,7 @@ footer { .pdf-button { display: inline-block; - padding: 0.8rem 1.8rem; + padding: 0.8rem 1.5rem; background: var(--primary-color); color: white; text-decoration: none; @@ -5164,7 +5189,17 @@ footer { font-weight: 500; transition: var(--transition); margin-top: 1.5rem; - border: 2px solid transparent + border: 2px solid transparent; + width: auto; + align-self: center; +} + +.workshop-text { + text-align: center; +} + +.workshop-section { + text-align: left; } .pdf-button:hover { @@ -5354,9 +5389,10 @@ footer { .recommendation-box-home { grid-area: branje; - margin-top: 1rem; - align-self: end; + margin-top: 0; + align-self: start; width: 100%; + min-height: 320px; } #hero-welcome { @@ -5369,7 +5405,7 @@ footer { background: rgba(251, 99, 57, 0.08); padding: 0.75rem 1rem; border-radius: 10px; - margin: 1rem 0; + margin: 2.5rem 0 1.5rem 0; border-left: 4px solid var(--primary-color); } @@ -7554,3 +7590,27 @@ html, body { font-size: 1rem; } } + +/* Izboljšan popravek za prevelike razmike med besedami na mobilnikih */ +@media (max-width: 768px) { + p, + .about-hero-text p, + .about-accordion-content p, + .step-card p, + .mediation-detail-text p, + .article-body-text p { + text-align: justify !important; + text-justify: inter-word; + /* 1. Samodejno deljenje z vezaji (če brskalnik pozna slovenščino) */ + -webkit-hyphens: auto; + -ms-hyphens: auto; + hyphens: auto; + /* 2. Prisiljen prelom dolgih besed (če vezaji ne delujejo) */ + overflow-wrap: break-word; + word-wrap: break-word; + /* 3. Rahlo stiskanje črk (to vizualno močno pomaga zapolniti vrstico) */ + letter-spacing: -0.02em; + /* 4. Preprečevanje raztegovanja zadnje vrstice v odstavku */ + text-align-last: left; + } +} diff --git a/ponudba/index.html b/ponudba/index.html index 454403f..1d6c9e0 100644 --- a/ponudba/index.html +++ b/ponudba/index.html @@ -187,6 +187,7 @@

Slovenščina

+

Poučevanje jezika usvojenega v naravno govorečem okolju.