@charset "UTF-8"; /* Theme Name: TylkoFotografia.pl Theme URI: https://krzysztof-turek.com Author: Krzysztof Turek Author URI: https://krzysztof-turek.com */ html, body { height: 100%; margin-top: 0; } /* body jako kontener flex, w kolumnie: nav + main + footer */ body { display: flex; flex-direction: column; } /* główna zawartość ma się rozpychać, żeby odepchnąć footer na dół */ main { flex: 1 0 auto; margin-top: 60px; /* to już masz – przenosimy tutaj, żeby było w jednym miejscu */ } /* stopka nie kurczy się i siedzi na dole, jeśli treści jest mało */ footer { flex-shrink: 0; margin-top: auto; padding: 30px 0; /* to już masz u siebie – możesz zostawić tu */ } * { margin: 0; padding: 0; font-family: 'Maven Pro', sans-serif; font-display: swap; } img { max-width: 100%; height: auto; } a { color: #6B7887; text-decoration: none; } a:hover { color: #9FADBD; } /* ======================== */ /* TYPOGRAFIA */ /* ======================== */ h1.logo, p.logo { font-size: 28px; color: #1C2F40; margin-bottom: 0; display: none !important; } h2 {} /* ======================== */ /* NAWIGACJA */ /* ======================== */ .navbar { border-radius: 0; padding-right: 20px; background: #fff; opacity: 0.9; } .navbar-brand { padding-top: 0; padding-bottom: 0; } .navbar-light .navbar-nav .nav-link, .navbar-light .navbar-brand { color: #1C2F40; } .btn-outline-dark { color: #1C2F40; border-color: #1C2F40; } .btn-outline-dark:hover { color: #fff; background-color: #1C2F40; border-color: #1C2F40; } @media (min-width: 992px) { .navbar-expand-lg .navbar-nav .nav-link { padding-left: 2rem; } /* ======================== */ /* TREŚĆ ARTYKUŁU */ /* ======================== */ article { font-family: 'Helvetica', Arial, sans-serif; font-size: 1rem; line-height: 1.8; color: #333; text-align: justify; margin: 20px auto; padding: 20px; max-width: 800px; border-radius: 8px; --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); background-color: #fff; } article p { margin-bottom: 1.5rem; } article a { color: #1a73e8; text-decoration: none; border-bottom: 1px dotted #1a73e8; transition: color 0.3s ease, border-bottom-color 0.3s ease; } article a:hover { color: #0c47a1; border-bottom-color: transparent; } article strong { font-weight: bold; } article h2 { font-size: 25px; margin-top: 40px; margin-bottom: 15px; font-weight: bold; } article h3 { padding-top: 30px; padding-bottom: 15px; font-size: 20px; font-weight: bold; } article h4 { padding-top: 15px; padding-bottom: 15px; font-size: 16px; font-weight: bold; } article ul { margin-left: 15px; } figure.aligncenter, .has-text-align-center, figcaption { text-align: center; } figcaption { font-style: italic; } .table { margin-bottom: 2px; } /* ======================== */ /* OVERLAY IMAGE */ /* ======================== */ .img-container { position: relative; width: 100%; max-width: 800px; /* Możesz dostosować */ margin: 0 auto; } .overlay { position: absolute; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%; opacity: 0; transition: opacity 0.5s ease; background-color: rgba(28, 47, 64, 0.9); /* Lekka przezroczystość */ } .img-container:hover .overlay, .img-container:active .overlay { opacity: 0.9; } .overlay h2 { color: #fff; text-align: center; margin-bottom: 20px; font-weight: 600; font-size: 2rem; line-height: 1.3; } .text { color: white; font-size: 1.25rem; position: absolute; padding: 9px; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 90%; /* Dostosowanie szerokości do urządzeń mobilnych */ } /* RESPONSYWNOŚĆ */ @media (max-width: 768px) { .overlay h2 { font-size: 1.5rem; } .text { font-size: 1.25rem; padding: 5px; width: 95%; } .img-container:hover .overlay, .img-container:active .overlay { opacity: 0.9; } } /* ======================== */ /* KOMENTARZE */ /* ======================== */ .comments-area { margin-top: 60px; } /* ======================== */ /* SEARCH FORM */ /* ======================== */ .searchform { margin: 30px 0; } /* ======================== */ /* NEWSLETTER */ /* ======================== */ .newsletter { padding: 60px 0; background: #e1faff; } .newsletter .content { max-width: 650px; margin: 0 auto; text-align: center; position: relative; z-index: 2; } .newsletter .content h2 { color: #1C2F40; margin-bottom: 40px; } .newsletter .content .form-control { height: 50px; border-color: #ffffff; border-radius: 0; } .newsletter .content .form-control:focus { box-shadow: none; border: 2px solid #1C2F40; } .newsletter .content .btn { min-height: 50px; border-radius: 0; background: #1C2F40; color: #fff; font-weight: 600; } /* ======================== */ /* FOOTER */ /* ======================== */ footer { padding: 30px 0; } .footer { background: #1C2F40; color: #fff; } footer a { color: #fff; text-decoration: none; } footer a:hover { text-decoration: underline; } /* ======================== */ /* TABLE OF CONTENTS */ /* ======================== */ .table-of-contents { background: #e1faff; border: 1px solid #aaa; font-size: 85%; padding: 20px; margin: 5px; width: 100%; overflow: hidden; transition: width 2s; } .table-of-contents:hover { width: auto; } /* ======================== */ /* KARTY I ELEMENTY */ /* ======================== */ .card { margin-bottom: 10px; border-radius: 10px; } .custom-card-header { background-color: #1C2F40; border-radius: 10px 10px 0 0; } .custom-card-title { color: #fff; padding-left: 10px; margin: 10px 0; font-weight: bold; } .custom-card-body nav { margin-top: 5px; margin-left: 5px; } /* ======================== */ /* RESPONSYWNOŚĆ */ /* ======================== */ @media (max-width: 992px) { .overlay h2 { font-size: 18px; } .text { font-size: 12px; padding: 7px; } .table-of-contents { font-size: 95%; margin-right: 20px; margin-bottom: 10px; } .btn-primary { min-height: 40px; border-radius: 4px; background: #1C2F40; color: #fff; } .btn-primary:hover { background: #2E506D; } article { padding: 15px; } } /* Kontener artykułu */ .content-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; border: 1px solid #ccc; padding: 10px; box-sizing: border-box; } /* Obrazek */ .content-card figure { margin: 0; } .content-card img { /*width: 100%;*/ height: auto; } /* Sekcja tekstowa */ .content-details { display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; } .content-details p { margin: 0 0 10px 0; } .more-link { margin-top: auto; } .content-details hr { margin: 10px 0 0 0; border: none; border-top: 1px solid #ccc; } /* Równe wysokości dla kolumn */ @media (min-width: 768px) { .content-wrapper { display: flex; gap: 20px; } .content-card { width: 100%; } }