wp-duckbehaviorjournal/style.css
Kumi 4de71503e8
fix(lightbox): improve compatibility and responsiveness
Updated lightbox initialization to use jQuery namespace for better compatibility. Tweaked CSS to use viewport units for enhanced responsiveness. These changes aim to prevent potential conflicts and adapt lightbox content better to different screen sizes.
2024-08-06 20:26:13 +02:00

209 lines
No EOL
3.1 KiB
CSS

/*
Theme Name: Duck Behavior Journal
Theme URI: https://duckbehaviorjournal.com
Author: Kumi
Author URI: https://kumi.website
Description: A WordPress theme for the Duck Behavior Journal.
Version: 1.0
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: duck-behavior-journal
*/
body {
font-family: 'Helvetica Neue', Arial, sans-serif;
color: #333;
}
.logo {
height: 50px;
}
.nav-link {
color: #333;
font-weight: bold;
}
.nav-link:hover {
color: #007bff;
}
.hero {
height: 60vh;
background-size: cover;
background-position: center;
position: relative;
}
.hero::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
}
.hero .container {
position: relative;
z-index: 1;
}
.hero h1,
.hero p {
color: white;
}
.card {
border: none;
}
.card-title {
font-size: 1.25rem;
font-weight: bold;
}
.card-text {
color: #777;
}
footer {
border-top: 1px solid #eee;
}
footer p {
margin: 0;
}
footer .social-media img {
height: 24px;
}
a h5 {
color: #333;
text-decoration: none;
}
#doi-link {
color: #333;
text-decoration: dashed;
}
.alignright {
float: right;
margin-left: 20px;
margin-bottom: 20px;
}
.alignleft {
float: left;
margin-right: 20px;
margin-bottom: 20px;
}
.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
margin-bottom: 20px;
}
.wp-block-image img,
.alignleft,
.alignright,
.aligncenter {
max-width: 100%;
height: auto;
border: 1px solid #ddd;
padding: 5px;
background-color: #f9f9f9;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.wp-caption {
text-align: center;
margin-top: 10px;
margin-bottom: 10px;
font-style: italic;
color: #666;
}
.wp-caption .wp-caption-text {
padding: 5px 10px;
background-color: #f9f9f9;
border-top: 1px solid #ddd;
margin-bottom: 0;
}
.pagination {
display: flex;
justify-content: center;
padding: 0;
}
.pagination .page-numbers {
display: block;
padding: 10px 15px;
margin: 0 5px;
color: #333;
background-color: #f9f9f9;
border: 1px solid #ddd;
text-decoration: none;
}
.pagination a:hover {
background-color: #ddd;
}
.pagination .current {
background-color: #007bff;
color: white;
}
.MJXc-display {
display: inline-block !important
}
.lightbox {
display: none;
position: fixed;
z-index: 9999;
padding-top: 60px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.9);
}
.lightbox-content {
margin: auto;
display: block;
max-width: 80vw;
max-height: 90vh;
}
.lightbox-close {
position: absolute;
top: 15px;
right: 35px;
color: #fff;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
}
.lightbox-close:hover,
.lightbox-close:focus {
color: #bbb;
text-decoration: none;
cursor: pointer;
}
@media only screen and (max-width: 700px) {
.lightbox-content {
width: 100%;
}
}