376 lines
6.7 KiB
CSS
376 lines
6.7 KiB
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
|
|
* 2. Glava članka (naslov, podnaslov, datum)
|
|
* 3. Glavna slika in slike v vsebini
|
|
* 4. Telo članka (vsebina, tipografija, citati)
|
|
* 5. Noga članka (avtor, deljenje)
|
|
* 6. Poziv k prijavi na novice (CTA)
|
|
* 7. Stili za stran s člankom na mobilnih napravah
|
|
*/
|
|
|
|
/* 1. Glavna postavitev strani članka */
|
|
|
|
.article-page {
|
|
padding-top: 80px;
|
|
background: #FFFFFF;
|
|
}
|
|
|
|
.article-container {
|
|
max-width: 1024px;
|
|
margin: 0 auto;
|
|
padding: 96px 32px;
|
|
}
|
|
|
|
/* 2. 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;
|
|
}
|
|
|
|
/* 3. 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-inline-image {
|
|
margin: 16px 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.article-inline-image img {
|
|
width: 100%;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
.article-inline-image figcaption {
|
|
font-size: 14px;
|
|
color: #667085;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 4. 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;
|
|
}
|
|
|
|
.article-body ol {
|
|
padding-left: 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* Stil za citat */
|
|
.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;
|
|
}
|
|
|
|
/* 5. 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;
|
|
}
|
|
|
|
/* 6. Poziv k prijavi na novice (CTA) */
|
|
|
|
.newsletter-cta {
|
|
padding: 0 32px 96px 32px;
|
|
}
|
|
|
|
.newsletter-cta .container {
|
|
padding: 64px;
|
|
background: #F9FAFB;
|
|
border-radius: 16px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
max-width: 1216px;
|
|
gap: 32px;
|
|
}
|
|
|
|
.newsletter-cta .cta-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
flex: 1;
|
|
}
|
|
.newsletter-cta h2 {
|
|
font-size: 30px;
|
|
font-weight: 600;
|
|
line-height: 38px;
|
|
color: #101828;
|
|
margin: 0;
|
|
}
|
|
.newsletter-cta p {
|
|
font-size: 20px;
|
|
line-height: 30px;
|
|
color: #667085;
|
|
margin: 0;
|
|
}
|
|
.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: 12px;
|
|
padding-bottom: 12px;
|
|
}
|
|
|
|
|
|
/* ==========================================================================
|
|
Mobile Article Page Styles
|
|
========================================================================== */
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
.article-page {
|
|
padding-top: 60px;
|
|
}
|
|
|
|
.article-container {
|
|
padding: 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;
|
|
}
|
|
|
|
.article-quote p {
|
|
font-size: 20px;
|
|
line-height: 30px;
|
|
}
|
|
|
|
.author-share-section {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 24px;
|
|
}
|
|
|
|
.newsletter-cta {
|
|
padding: 0 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;
|
|
}
|
|
} |