777 lines
18 KiB
CSS
777 lines
18 KiB
CSS
/* css/pages/_article.css */
|
|
|
|
/* ==========================================================================
|
|
Single Article/Project Page Specific Styles
|
|
========================================================================== */
|
|
|
|
/**
|
|
* Ta datoteka vsebuje stile, ki se uporabljajo izključno na strani s
|
|
* posameznim člankom ali projektom.
|
|
*
|
|
* 1. Glavna postavitev strani članka (z levo navigacijo)
|
|
* 2. Lepljiva leva navigacija (Scrollspy - Desktop)
|
|
* 3. Lepljiva zgornja vrstica z naslovom in progress barom (Mobile)
|
|
* 4. Glava članka (naslov, podnaslov, datum)
|
|
* 5. Glavna slika in slike v vsebini
|
|
* 6. Telo članka (vsebina, tipografija, citati)
|
|
* 7. Noga članka (avtor, deljenje)
|
|
* 8. Poziv k prijavi na novice (CTA)
|
|
* 9. Stili za stran s člankom na mobilnih napravah
|
|
*/
|
|
|
|
/* ==========================================================================
|
|
1. Glavna postavitev strani članka
|
|
========================================================================== */
|
|
|
|
.article-page {
|
|
padding-top: 80px;
|
|
background: #FFFFFF;
|
|
}
|
|
|
|
.article-layout-container {
|
|
display: flex;
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
padding: 0 32px 72px;
|
|
gap: 64px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.article-container {
|
|
flex-grow: 1;
|
|
min-width: 0;
|
|
padding: 96px 0 24px;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
2. Lepljiva leva navigacija (Scrollspy - Desktop) - POSODOBLJENO
|
|
========================================================================== */
|
|
|
|
.article-sidebar {
|
|
width: 288px;
|
|
flex-shrink: 0;
|
|
position: sticky;
|
|
top: 112px;
|
|
/* max-height (not fixed height) so short lists size to content and never clip;
|
|
the list only scrolls when the viewport is genuinely too short. */
|
|
max-height: calc(100vh - 140px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Article title above the table of contents, so the reader always knows
|
|
which article they are reading. Injected by main.js from the page <h1>. */
|
|
.article-sidebar-title {
|
|
flex-shrink: 0;
|
|
margin: 0 0 16px 0;
|
|
padding: 0 0 16px 20px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
line-height: 24px;
|
|
color: #101828;
|
|
border-bottom: 1px solid #EAECF0;
|
|
}
|
|
|
|
.scrollspy-nav {
|
|
/* Fill the remaining sidebar height and scroll internally when needed.
|
|
min-height:0 lets a flex child actually shrink so overflow works. */
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
/* No flex centering here: centering inside a scroll container pushed the first
|
|
item out of reach at 100% zoom / short viewports. Content now flows from the top. */
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.scrollspy-nav ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
border-left: 2px solid #EAECF0;
|
|
}
|
|
|
|
.scrollspy-nav li a {
|
|
display: block;
|
|
padding: 8px 20px;
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
font-weight: 500;
|
|
color: #667085;
|
|
border-left: 2px solid transparent;
|
|
margin-left: -2px;
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
|
|
.scrollspy-nav li a:hover {
|
|
color: #101828;
|
|
background-color: #F9FAFB;
|
|
}
|
|
|
|
.scrollspy-nav li a.active {
|
|
color: #2D738C;
|
|
font-weight: 600;
|
|
border-left-color: #2D738C;
|
|
background-color: transparent;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
3. Lepljiva zgornja vrstica (Mobile)
|
|
========================================================================== */
|
|
.mobile-article-header {
|
|
display: none;
|
|
position: sticky;
|
|
top: 60px;
|
|
background-color: #FFFFFF;
|
|
z-index: 900;
|
|
border-bottom: 1px solid #EAECF0;
|
|
padding: 12px 24px;
|
|
cursor: pointer;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.mobile-article-header .fa-chevron-down {
|
|
transition: transform 0.3s ease-in-out;
|
|
}
|
|
|
|
.mobile-article-header.open .fa-chevron-down {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
#mobile-article-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #101828;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
flex-grow: 1;
|
|
padding-right: 16px;
|
|
}
|
|
|
|
.progress-bar-container {
|
|
width: 100%;
|
|
height: 3px;
|
|
background-color: #EAECF0;
|
|
position: absolute;
|
|
bottom: -1px;
|
|
left: 0;
|
|
}
|
|
|
|
.progress-bar {
|
|
width: 0%;
|
|
height: 100%;
|
|
background-color: #2D738C;
|
|
transition: width 0.1s linear;
|
|
}
|
|
|
|
.mobile-scrollspy-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
width: 100%;
|
|
background: #FFFFFF;
|
|
border-top: 1px solid #EAECF0;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s;
|
|
}
|
|
|
|
.mobile-scrollspy-dropdown.open {
|
|
max-height: 50vh;
|
|
opacity: 1;
|
|
visibility: visible;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.mobile-scrollspy-dropdown ul {
|
|
list-style: none;
|
|
padding: 8px;
|
|
margin: 0;
|
|
}
|
|
|
|
.mobile-scrollspy-dropdown a {
|
|
display: block;
|
|
padding: 12px 16px;
|
|
text-decoration: none;
|
|
color: #344054;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
border-radius: 6px;
|
|
white-space: normal;
|
|
}
|
|
|
|
.mobile-scrollspy-dropdown a:hover,
|
|
.mobile-scrollspy-dropdown a.active {
|
|
background-color: #F9FAFB;
|
|
color: #2D738C;
|
|
}
|
|
|
|
|
|
/* ==========================================================================
|
|
4. Glava članka
|
|
========================================================================== */
|
|
|
|
.article-header {
|
|
text-align: center;
|
|
margin-bottom: 64px;
|
|
}
|
|
|
|
.article-publish-date {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #FA7850;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.article-header h1 {
|
|
font-size: 48px;
|
|
font-weight: 600;
|
|
line-height: 60px;
|
|
letter-spacing: -0.02em;
|
|
color: #101828;
|
|
margin: 0;
|
|
}
|
|
|
|
.article-subtitle {
|
|
font-size: 20px;
|
|
line-height: 30px;
|
|
color: #667085;
|
|
margin-top: 24px;
|
|
max-width: 960px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
5. Glavna slika in slike v vsebini
|
|
========================================================================== */
|
|
|
|
.article-main-image {
|
|
margin: 0 0 64px 0;
|
|
}
|
|
|
|
.article-main-image img {
|
|
width: 100%;
|
|
height: auto;
|
|
max-height: 516px;
|
|
object-fit: cover;
|
|
border-radius: 24px;
|
|
display: block;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.article-main-image figcaption {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.article-inline-image {
|
|
margin: 16px 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.article-inline-image img {
|
|
width: 100%;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
/* Shared caption style for hero and inline images */
|
|
.article-main-image figcaption,
|
|
.article-inline-image figcaption {
|
|
font-family: 'Inter', sans-serif;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
font-weight: 400;
|
|
color: #667085;
|
|
text-align: center;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* Attribution link inside image captions */
|
|
.article-main-image figcaption a,
|
|
.article-inline-image figcaption a {
|
|
color: #2D738C;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* NOVO: Stili za odziven vdelan video */
|
|
.video-responsive {
|
|
position: relative;
|
|
overflow: hidden;
|
|
padding-top: 56.25%; /* 16:9 Aspect Ratio */
|
|
margin: 16px 0;
|
|
border-radius: 16px; /* Ujemanje z ostalimi slikami */
|
|
}
|
|
|
|
.video-responsive iframe {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border: 0;
|
|
}
|
|
|
|
|
|
/* ==========================================================================
|
|
6. Telo članka
|
|
========================================================================== */
|
|
|
|
.article-body {
|
|
max-width: 720px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 32px;
|
|
}
|
|
|
|
.article-body p, .article-body ol li {
|
|
font-size: 18px;
|
|
line-height: 28px;
|
|
color: #667085;
|
|
margin: 0;
|
|
}
|
|
|
|
.article-body h2 {
|
|
font-size: 30px;
|
|
font-weight: 600;
|
|
line-height: 38px;
|
|
color: #101828;
|
|
margin: 16px 0;
|
|
scroll-margin-top: 120px;
|
|
}
|
|
|
|
.article-body ol {
|
|
padding-left: 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.article-quote {
|
|
margin: 16px 0;
|
|
padding-left: 20px;
|
|
border-left: 2px solid #D0D5DD;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 32px;
|
|
background: transparent;
|
|
}
|
|
|
|
.article-quote p {
|
|
font-family: 'Inter', sans-serif;
|
|
font-style: italic;
|
|
font-weight: 500;
|
|
font-size: 24px;
|
|
line-height: 36px;
|
|
color: #101828;
|
|
margin: 0;
|
|
}
|
|
|
|
.article-quote footer {
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
color: #FA7850;
|
|
background: transparent;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
7. Noga članka
|
|
========================================================================== */
|
|
|
|
.article-footer {
|
|
max-width: 720px;
|
|
margin: 48px auto 0;
|
|
background: transparent;
|
|
}
|
|
.article-footer hr {
|
|
border: 0;
|
|
height: 1px;
|
|
background-color: #EAECF0;
|
|
margin: 0 0 24px 0;
|
|
}
|
|
|
|
.author-share-section {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.author-details {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.author-details img {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.author-name {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #101828;
|
|
margin: 0;
|
|
}
|
|
|
|
.author-title {
|
|
font-size: 16px;
|
|
color: #667085;
|
|
margin: 0;
|
|
}
|
|
|
|
.share-buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
8. Poziv k prijavi na novice (CTA)
|
|
========================================================================== */
|
|
|
|
.newsletter-cta {
|
|
padding: 40px 32px 72px 32px;
|
|
}
|
|
|
|
.newsletter-cta .container {
|
|
padding: 44px 48px;
|
|
background: #F9FAFB;
|
|
border-radius: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
max-width: 1216px;
|
|
gap: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.newsletter-cta .cta-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex: 1;
|
|
}
|
|
.newsletter-cta h2 {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
line-height: 32px;
|
|
color: #101828;
|
|
margin: 0;
|
|
}
|
|
.newsletter-cta p {
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
color: #667085;
|
|
margin: 0;
|
|
}
|
|
/* Small print — override the generic .newsletter-cta p size above */
|
|
.newsletter-cta .privacy-note {
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
margin-top: 4px;
|
|
}
|
|
.newsletter-cta .subscribe-form-bottom {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: flex-start;
|
|
}
|
|
.subscribe-form-bottom .input-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.subscribe-form-bottom input {
|
|
width: 360px;
|
|
height: 48px;
|
|
padding: 12px 16px;
|
|
border: 1px solid #D0D5DD;
|
|
border-radius: 8px;
|
|
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
|
|
font-size: 16px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.subscribe-form-bottom .btn-primary-orange {
|
|
height: 48px;
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
|
|
/* ==========================================================================
|
|
9. Mobile Article Page Styles
|
|
========================================================================== */
|
|
|
|
@media (max-width: 768px) {
|
|
.article-page {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.article-layout-container {
|
|
flex-direction: column;
|
|
/* Reset the desktop `align-items: flex-start`: in a column flexbox it
|
|
sizes children to their content width (max-content), which makes
|
|
.article-container overflow the viewport. Stretch fits it to width. */
|
|
align-items: stretch;
|
|
padding: 0;
|
|
gap: 0;
|
|
}
|
|
|
|
.article-sidebar {
|
|
display: none;
|
|
}
|
|
|
|
.mobile-article-header {
|
|
display: flex;
|
|
}
|
|
|
|
.article-container {
|
|
padding: 32px 24px 48px 24px;
|
|
}
|
|
|
|
.article-header {
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.article-header h1 {
|
|
font-size: 32px;
|
|
line-height: 40px;
|
|
}
|
|
|
|
.article-subtitle {
|
|
font-size: 18px;
|
|
line-height: 28px;
|
|
}
|
|
|
|
.article-main-image {
|
|
margin: 0 0 32px 0;
|
|
width: 100%;
|
|
position: static;
|
|
left: auto;
|
|
right: auto;
|
|
}
|
|
|
|
.article-main-image img {
|
|
border-radius: 16px;
|
|
}
|
|
|
|
.article-body {
|
|
gap: 32px;
|
|
}
|
|
|
|
.article-body p {
|
|
font-size: 16px;
|
|
line-height: 26px;
|
|
}
|
|
|
|
.article-body h2 {
|
|
font-size: 24px;
|
|
line-height: 32px;
|
|
scroll-margin-top: 120px;
|
|
}
|
|
|
|
.article-quote p {
|
|
font-size: 20px;
|
|
line-height: 30px;
|
|
}
|
|
|
|
.author-share-section {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 24px;
|
|
}
|
|
|
|
.newsletter-cta {
|
|
/* top gap so the box doesn't touch the CTA/content above it on mobile */
|
|
padding: 32px 24px 64px 24px;
|
|
}
|
|
|
|
.newsletter-cta .container {
|
|
flex-direction: column;
|
|
padding: 32px;
|
|
gap: 32px;
|
|
}
|
|
|
|
.newsletter-cta .cta-content,
|
|
.newsletter-cta .cta-content p {
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.newsletter-cta .subscribe-form-bottom {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.subscribe-form-bottom .input-wrapper {
|
|
width: 100%;
|
|
}
|
|
|
|
.subscribe-form-bottom input {
|
|
width: 100%;
|
|
}
|
|
|
|
.newsletter-cta .privacy-note {
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Image placeholders (used until a sourced, licensed photo is added)
|
|
========================================================================== */
|
|
|
|
/* Article hero / inline placeholder */
|
|
.image-placeholder .image-placeholder-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
gap: 10px;
|
|
padding: 32px 24px;
|
|
min-height: 220px;
|
|
background: #F9FAFB;
|
|
border: 2px dashed #D0D5DD;
|
|
border-radius: 12px;
|
|
color: #667085;
|
|
}
|
|
|
|
.image-placeholder .image-placeholder-box .ph-icon {
|
|
font-size: 32px;
|
|
color: #98A2B3;
|
|
}
|
|
|
|
.image-placeholder .ph-label {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: #FA7850;
|
|
}
|
|
|
|
.image-placeholder .ph-desc {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #344054;
|
|
max-width: 620px;
|
|
margin: 0;
|
|
}
|
|
|
|
.image-placeholder .ph-meta {
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
color: #667085;
|
|
max-width: 620px;
|
|
margin: 0;
|
|
}
|
|
|
|
.image-placeholder .ph-meta code {
|
|
background: #EEF2F6;
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Listing card image placeholder */
|
|
.post-image-placeholder {
|
|
width: 100%;
|
|
height: 240px;
|
|
border-radius: 8px;
|
|
margin-bottom: 32px;
|
|
background: #F9FAFB;
|
|
border: 2px dashed #D0D5DD;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
color: #98A2B3;
|
|
box-sizing: border-box;
|
|
padding: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.post-image-placeholder i {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.post-image-placeholder span {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: #667085;
|
|
}
|
|
/* ==========================================================================
|
|
Membership / support CTA at the end of project & event articles
|
|
========================================================================== */
|
|
.article-support-cta { max-width: 760px; margin: 8px auto 0; padding: 0 24px; }
|
|
.asc-card {
|
|
background: linear-gradient(135deg, #EAF2F5 0%, #F3F8FA 100%);
|
|
border: 1px solid #E4EEF2; border-radius: 16px;
|
|
padding: 30px 26px; text-align: center;
|
|
}
|
|
.asc-card h3 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; color: #101828; font-weight: 700; }
|
|
.asc-card p { font-size: 15px; line-height: 24px; color: #475467; margin: 0 0 20px; }
|
|
.asc-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
|
|
|
|
/* Small "illustrative image" tag prepended to symbolic blog/news photo captions */
|
|
.fig-illustrative { font-weight: 600; color: #667085; }
|
|
.fig-illustrative i { font-size: 11px; color: #98A2B3; margin-right: 3px; }
|
|
|
|
/* Prose posts (personal stories) — no scrollspy sidebar, single centred column */
|
|
.article-page--prose .article-sidebar { display: none; }
|
|
.article-page--prose .article-layout-container { display: block; }
|
|
.article-page--prose .article-container { max-width: 760px; margin: 0 auto; }
|
|
.article-page--prose .mobile-article-header { display: none; }
|
|
|
|
/* ---- Sidebar CTA: sits under the table of contents (Proxify-style) ---- */
|
|
.sidebar-cta {
|
|
flex-shrink: 0;
|
|
margin-top: 18px;
|
|
background: linear-gradient(160deg, #21596E 0%, #143240 100%);
|
|
border-radius: 16px;
|
|
padding: 20px 18px;
|
|
text-align: center;
|
|
color: #FFFFFF;
|
|
}
|
|
.sidebar-cta-title { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 0 0 14px; }
|
|
.sidebar-cta-btn {
|
|
display: block; background: #FA7850; color: #FFFFFF; font-weight: 600; font-size: 14px;
|
|
padding: 11px 14px; border-radius: 10px; text-decoration: none;
|
|
transition: background 0.18s ease;
|
|
}
|
|
.sidebar-cta-btn:hover { background: #E8613B; }
|
|
.sidebar-cta-note { font-size: 12px; line-height: 17px; color: rgba(255,255,255,0.78); margin: 12px 0 0; }
|
|
.sidebar-cta-note a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 2px; }
|
|
|
|
/* Where a page has the sidebar CTA (i.e. it has a ToC), the desktop bottom CTA is
|
|
redundant, so hide it above the mobile breakpoint. Pages without a ToC sidebar
|
|
keep the bottom CTA on every screen. On mobile the sidebar is hidden, so the
|
|
bottom CTA always shows. */
|
|
@media (min-width: 769px) {
|
|
.article-page:has(.sidebar-cta) .article-support-cta { display: none; }
|
|
}
|