Dancer2-Plugin-LiteBlog
view release on metacpan or search on metacpan
lib/Dancer2/Plugin/LiteBlog/Scaffolder/Data.pm view on Meta::CPAN
background-color: red;
color: #eee !important;
padding: 10px 20px;
text-transform: uppercase;
text-decoration: none; /* Removes underline from links */
font-weight: bold;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.cta-button:hover {
background-color: darkred; /* Slightly darker red on hover for button */
color: #fff !important;
}
/* Boutons de navigation */
.prev, .next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
padding: 16px;
margin-top: -22px;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}
.next {
right: 0;
border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
background-color: rgba(0,0,0,0.8);
}
--- public/css/liteblog/single-page.css
/* Styling for the post entry page */
/* START single page post-header style */
.post-header {
display: flex;
height: 100%;
position: relative;
border-bottom: 5px solid #e2e2e2;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
padding-bottom: 20px; /* Space at the bottom */
flex-direction: column;
justify-content: space-between; /* This will push the title to the center and meta to the bottom */
align-items: center;
background-size: cover;
background-position: center;
max-width: 100%;
border-radius: 5px;
position: relative; /* Needed for the overlay and for the meta's absolute positioning */
margin-bottom: 20px;
}
.post-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6); /* Black overlay to ensure text readability */
z-index: 1;
}
.post-header .header-content {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
z-index: 2; /* To ensure it's above the ::before pseudo-element */
width: 100%; /* Ensure it takes the full width of the container */
}
.header-content .post-title {
font-size: 3.5em;
margin-bottom: 20px; /* Can adjust this for spacing, if needed */
margin-top: 80px;
padding: 1rem;
text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.7); /* Subtle text outline for depth */
text-align: center;
color: #fff;
z-index: 2;
}
ul.post-meta {
align-self: flex-end; /* Align to the end of the flex container */
z-index: 3;
padding: 0;
margin: 0px;
margin-right: 10px;
margin-top: 40px;
margin-bottom: 10px;
list-style-type: none; /* Remove bullet points */
display: flex; /* Arrange child items horizontally */
gap: 15px; /* Space between meta items */
justify-content: flex-end; /* Aligns meta to the right */
}
.post-meta li {
background: rgba(220, 220, 220, 0.8); /* 7220% opaque white */
margin: 0;
border-radius: 10px 10px 10px 10px; /* top-left, top-right, bottom-right, bottom-left */
font-family: 'Roboto', 'Arial', sans-serif;
font-size: 0.9em;
padding: 3px 10px;
}
.post-meta li a, .post-meta li {
color: #4d4d4d;
text-decoration: none;
}
.post-meta li.clickable:hover a {
color: #fff; /* Changing text color on hover */
}
.post-meta li.clickable:hover
{
background-color: rgba(255, 165, 0, 0.8); /* transparent orange color */
color: #fff; /* Changing text color on hover */
}
.post-meta li.clickable a:hover {
text-decoration: none; /* Removing underline on hover */
color: #fff; /* Changing text color on hover */
}
/* END single page post-header style */
/* post-header when there is no featured image */
.post-header.no-featured-image {
background: #f0f0f0; /* Light background */
color: #333; /* Darker text color for better contrast on light bg */
}
/* Override the dark overlay when no featured image */
.post-header.no-featured-image::before {
background: rgba(255, 255, 255, 0); /* Transparent overlay */
}
/* Adjust the title color for better readability on light background */
.post-header.no-featured-image .post-title {
color: #333;
text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.7); /* Subtle text outline for depth */
}
/* Adjust the meta background and text color for light theme */
.post-header.no-featured-image .post-meta li {
background: rgba(0, 0, 0, 0.05); /* Very light background for the meta */
border: 1px solid #ddd; /* Subtle border for definition */
color: #333;
}
.post-header.no-featured-image .post-meta li.clickable:hover,
.post-header.no-featured-image .post-meta li.clickable:hover a {
background-color: #e2e2e2; /* Light grey for hover */
color: #333; /* Dark text for contrast */
}
/* If the links need to be a different color, update here */
.post-header.no-featured-image .post-meta li a {
color: #333;
}
.post-header.no-featured-image .header-content {
align-items: center; /* Center align the content for a polished look */
text-align: center; /* Center the text for a modern feel */
}
.post-header.no-featured-image .post-meta li.clickable a:hover {
color: #333;
}
/* Tags and Meta Data of the Page */
.tags {
display: flex;
flex-wrap: wrap;
list-style-type: none;
margin: 10px 0 20px 0; /* spacing above and below the tags */
margin: 0;
padding: 0;
gap: 6px; /* reduced space between tags */
justify-content: flex-end; /* aligns the tags to the right */
}
.tags li {
font-family: 'Roboto', 'Arial', sans-serif;
margin: 0;
display: inline-block; /* makes the li inline */
padding: 2px 8px; /* reduced padding */
background-color: #f7f7f7; /* light gray background */
border: 1px solid #eaeaea; /* subtle border color */
border-radius: 10px; /* adjusted rounded corners */
font-size: 12px; /* smaller font size */
color: #777; /* softer color */
}
( run in 1.580 second using v1.01-cache-2.11-cpan-5735350b133 )