Athenaeum/static/css/styles.css
2025-05-26 19:24:45 +02:00

326 lines
5.4 KiB
CSS

:root {
--bg-dark: #072C24;
--text-gold: #E3CB9A;
--accent-blue: #78DBFF;
--footer-text: #93B8B1;
}
.dark-theme {
background-color: var(--bg-dark);
color: var(--text-gold);
}
.navbar-brand {
font-family: 'Lobster', cursive;
font-size: 2.2rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.nav-link {
font-family: 'Inter', sans-serif;
font-weight: 500;
transition: all 0.3s ease;
}
.auth-container a {
color: var(--accent-blue) !important;
text-decoration: none;
text-align: center;
margin-top: 1rem;
}
footer {
background-color: #09342b;
padding: 2rem 0;
margin-top: 4rem;
font-family: 'Inter', sans-serif;
color: var(--footer-text);
}
.card {
background: linear-gradient(145deg, #08352c 0%, #062a23 100%);
border: 1px solid #1c4d42;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.btn-gothic {
background-color: #1c4d42;
color: var(--text-gold);
border: 1px solid #2a6b5e;
}
.btn-gothic:hover {
background-color: #2a6b5e;
color: #fff;
}
.auth-container {
max-width: 500px;
margin: 2rem auto;
padding: 2rem;
border: 1px solid #2a6b5e;
border-radius: 8px;
}
.auth-container h2 {
font-family: 'Lobster', cursive;
text-align: center;
font-size: 2.5rem;
margin-bottom: 2rem;
}
#books-container {
justify-content: center !important;
}
.book-card {
width: 100%; /* Wykorzystaj całą dostępną szerokość */
height: 100%;
background: #1a1a1a;
border: 1px solid #343434;
transition: all 0.3s ease;
}
.cover-container {
width: 100%;
aspect-ratio: 5/8; /* Nowoczesne podejście do proporcji */
overflow: hidden;
position: relative;
}
.book-cover {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center top;
transition: transform 0.3s ease;
}
.book-cover:hover {
transform: scale(1.05);
}
.book-title {
font-size: 1rem;
line-height: 1.3;
height: 3.2em; /* Na 2 linie tekstu */
margin: 0.5rem 0;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-align: center;
padding: 0 0.5rem;
}
.book-info {
color: var(--text-gold);
text-align: center;
padding: 1rem;
}
/* Dodaj do istniejących styli */
.lobster-font {
font-family: 'Lobster', cursive;
}
.inter-font {
font-family: 'Inter', sans-serif;
}
footer a {
color: var(--accent-blue) !important;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
.text-accent {
color: var(--accent-blue) !important;
}
.dark-card {
background-color: #1a1a1a;
border: 1px solid #333;
border-radius: 8px;
color: #fff;
}
.dark-card:hover {
transform: translateY(-5px);
}
.text-accent {
color: #78DBFF;
}
#book-description {
line-height: 1.8;
font-size: 1.1rem;
}
#searchInput {
height: 50px;
font-size: 1.2rem;
}
/* W pliku styles.css */
.navbar-nav {
gap: 1.5rem !important; /* Odstępy między linkami */
}
footer a {
padding: 0.5rem 1rem; /* Większy obszar klikalny */
display: inline-block; /* Lepsze wyrównanie */
}
.card-img-top {
height: 350px;
object-fit: cover;
object-position: center top;
}
.bg-dark {
background-color: #072C24 !important;
}
.text-gold {
color: #E3CB9A;
text-decoration: none;
font-family: 'Inter', sans-serif;
font-weight: 500;
transition: opacity 0.3s ease;
}
.text-gold:hover {
color: #E3CB9A;
opacity: 0.8;
}
#searchInput {
min-width: 300px;
background-color: #1a322d;
color: #E3CB9A;
border: 1px solid #3d5a53;
}
#searchInput::placeholder {
color: #93B8B1;
opacity: 0.7;
}
.user-links, .anonymous-links {
gap: 1rem;
align-items: center;
}
/* Responsywność */
@media (max-width: 768px) {
#books-container {
grid-template-columns: 1fr;
}
.navbar-nav {
flex-direction: column;
gap: 0.5rem !important;
}
}
.btn-outline-gothic {
border: 2px solid #0ff;
color: #0ff;
transition: all 0.3s ease;
}
.btn-outline-gothic:hover {
background-color: #0ff;
color: #000;
box-shadow: 0 0 15px #0ff;
}
.neon-title {
color: #0ff;
text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}
.order-item {
background-color: #2a2a2a;
border-radius: 5px;
padding: 10px;
margin-bottom: 10px;
}
.order-item:last-child {
margin-bottom: 0;
}
.hidden {
display: none !important;
}
/* Pokazywanie elementów */
.visible {
display: flex !important;
}
.auth-links {
display: flex;
gap: 1rem;
}
.anonymous-links,
.user-links {
display: none;
}
.anonymous-links.visible,
.user-links.visible {
display: flex !important;
gap: 1rem;
}
.navbar-brand {
font-size: 1.8rem;
position: absolute;
left: 50%;
transform: translateX(-50%);
}
@media (max-width: 991px) {
.navbar-brand {
position: static;
transform: none;
order: 0 !important;
margin: 0.5rem 0;
}
.navbar-toggler {
order: 1;
}
#searchForm {
order: 2;
width: 100%;
margin-top: 1rem;
}
.auth-links {
order: 3;
width: 100%;
justify-content: center;
margin-top: 1rem;
}
}
/* Responsywność formularza wyszukiwania */
@media (min-width: 992px) {
#searchForm {
max-width: 400px;
}
.navbar-brand {
position: absolute;
}
}