339 lines
8.1 KiB
CSS
339 lines
8.1 KiB
CSS
/* Import Bulma */
|
|
@import 'node_modules/bulma/css/bulma.min.css';
|
|
/* Removed Bulma Switch CSS import */
|
|
|
|
/* Custom Styles */
|
|
html {
|
|
background-color: #f8f9fa; /* Light grey background */
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
color: #343a40; /* Darker text for readability */
|
|
padding-top: 3.25rem; /* Account for fixed navbar */
|
|
}
|
|
|
|
.main-content {
|
|
padding-top: 1rem; /* Reduced top padding */
|
|
padding-bottom: 4rem;
|
|
}
|
|
|
|
/* Navbar Styling */
|
|
.navbar {
|
|
background-color: #e5fa70 !important; /* New background color */
|
|
border-bottom: 1px solid #cddb60; /* Slightly darker border for contrast */
|
|
}
|
|
|
|
.navbar .navbar-item,
|
|
.navbar .navbar-link,
|
|
.navbar-brand > .navbar-item { /* Target brand item specifically */
|
|
color: #38315f !important; /* New text color */
|
|
background-color: transparent !important; /* Ensure transparent background */
|
|
}
|
|
|
|
.navbar .navbar-item:hover,
|
|
.navbar .navbar-link:hover,
|
|
.navbar-brand > .navbar-item:hover { /* Consistent hover */
|
|
background-color: rgba(56, 49, 95, 0.05) !important; /* Subtle dark overlay on hover */
|
|
color: #38315f !important; /* Keep text color on hover */
|
|
}
|
|
|
|
.navbar .navbar-item.is-active {
|
|
font-weight: bold;
|
|
color: #38315f !important; /* Ensure active link uses the new color */
|
|
background-color: transparent !important; /* No background change for active */
|
|
}
|
|
|
|
/* Adjust burger color */
|
|
.navbar-burger span {
|
|
background-color: #38315f !important; /* New burger color */
|
|
}
|
|
|
|
/* Removed Navbar Switch Styling */
|
|
|
|
/* Rules/Tips Box */
|
|
.rules-tips {
|
|
font-size: 0.9rem;
|
|
background-color: #eef6f6; /* A light neutral background */
|
|
color: #38315f; /* Match navbar text for consistency */
|
|
border-left: 4px solid #38315f; /* Accent border */
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
.rules-tips.notification.is-light.is-info {
|
|
/* Override Bulma's default light info colors if needed */
|
|
background-color: #eef6f6;
|
|
color: #38315f;
|
|
}
|
|
.rules-tips strong {
|
|
color: #38315f; /* Ensure strong text matches */
|
|
}
|
|
|
|
/* Post List Styling */
|
|
.post-list {
|
|
background-color: #f8f9fa; /* Match HTML background */
|
|
}
|
|
|
|
.post-item {
|
|
padding: 0.75rem 0.5rem; /* Add padding top/bottom, less on sides */
|
|
border-bottom: 1px solid #dee2e6; /* Separator line */
|
|
background-color: transparent; /* Ensure no background color */
|
|
}
|
|
|
|
.post-item:last-child {
|
|
border-bottom: none; /* No border for the last item */
|
|
}
|
|
|
|
.post-item .media {
|
|
align-items: flex-start; /* Align items to the top */
|
|
}
|
|
|
|
.post-item .media-left {
|
|
margin-right: 0.5rem; /* Space between upvote and content */
|
|
}
|
|
|
|
.upvote-arrow {
|
|
color: #6c757d; /* Grey color for the arrow */
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
line-height: 1; /* Adjust line height for alignment */
|
|
display: inline-block;
|
|
padding-top: 0.1rem; /* Fine-tune vertical alignment */
|
|
}
|
|
|
|
.upvote-arrow:hover {
|
|
color: #ff6600; /* HN orange on hover */
|
|
}
|
|
|
|
.post-item .content p {
|
|
margin-bottom: 0.25rem; /* Tighter spacing below title line */
|
|
line-height: 1.3; /* Adjust line height for title */
|
|
}
|
|
|
|
.post-title {
|
|
color: #212529; /* Slightly darker title */
|
|
font-weight: normal; /* HN style titles are not bold */
|
|
font-size: 1rem; /* Standard font size */
|
|
}
|
|
.post-title:hover {
|
|
text-decoration: underline;
|
|
color: #212529; /* Keep color same on hover, just underline */
|
|
}
|
|
|
|
.handle {
|
|
color: #6c757d; /* Grey for handle */
|
|
margin-left: 0.5em;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.time {
|
|
color: #6c757d; /* Grey for time */
|
|
margin-left: 0.5em;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* Post Meta (comments link) */
|
|
.post-meta {
|
|
margin-top: 0.1rem !important; /* Reduce space above comments link */
|
|
font-size: 0.8rem; /* Smaller font size for meta */
|
|
}
|
|
|
|
.post-meta .level-right small a {
|
|
color: #6c757d; /* Grey color for comments link */
|
|
}
|
|
.post-meta .level-right small a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Remove tags styling */
|
|
.tag {
|
|
display: none; /* Hide tags completely */
|
|
}
|
|
|
|
/* More Link Styling */
|
|
.more-link-section {
|
|
padding-left: calc(0.5rem + 0.5rem + 1em); /* Align roughly with post content start (arrow width + margin + some padding) */
|
|
/* Adjust the padding-left value above as needed for precise alignment */
|
|
}
|
|
.more-link-section a {
|
|
color: #38315f; /* Match navbar text color */
|
|
font-size: 0.9rem;
|
|
}
|
|
.more-link-section a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.floating-submit {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.footer {
|
|
background-color: #e9ecef; /* Slightly darker footer */
|
|
padding: 2rem 1.5rem;
|
|
color: #6c757d;
|
|
}
|
|
|
|
.footer-menu {
|
|
margin-top: 1rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.footer-menu a {
|
|
color: #6c757d;
|
|
margin: 0 0.5rem;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.footer-menu a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.search-box {
|
|
margin-top: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.search-box input {
|
|
padding: 0.5rem;
|
|
width: 200px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Remove default Vite styles if they exist */
|
|
#app { display: none; } /* Hide default Vite content */
|
|
.logo, .card, .read-the-docs { display: none; } /* Hide default Vite elements */
|
|
|
|
.carbon-demo {
|
|
background-color: #fff;
|
|
border-radius: 0.2em;
|
|
display: grid;
|
|
grid-template-columns: 130px 1fr;
|
|
justify-content: center;
|
|
margin: 60px auto;
|
|
max-width: 360px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
padding: 0;
|
|
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
|
|
}
|
|
.carbon-demo > * {
|
|
box-sizing: border-box;
|
|
}
|
|
.carbon-demo .carbon-img {
|
|
height: auto;
|
|
width: 130px;
|
|
}
|
|
.carbon-demo .carbon-desc {
|
|
font-size: 0.875rem;
|
|
line-height: 1.35;
|
|
padding: 0.75rem;
|
|
}
|
|
.carbon-demo .carbon-via {
|
|
bottom: 1em;
|
|
font-size: 0.625em;
|
|
font-weight: 600;
|
|
left: calc(130px + 0.75rem);
|
|
letter-spacing: 0.1ch;
|
|
position: absolute;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* Filter Section Styling */
|
|
.filter-section {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.filter-section.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.filter-section.visible {
|
|
display: block;
|
|
}
|
|
|
|
.date-display {
|
|
margin-bottom: 1rem;
|
|
font-size: 1rem;
|
|
color: #38315f;
|
|
}
|
|
|
|
/* Date Link Styling */
|
|
.date-link {
|
|
color: #38315f;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.date-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Login/Signup Page Specific Styles */
|
|
/* Ensure body padding override is removed if navbar isn't present */
|
|
body.login-signup-page {
|
|
padding-top: 0; /* Remove navbar padding */
|
|
}
|
|
|
|
/* Style the boxes containing the forms */
|
|
.login-signup-page .box {
|
|
background-color: #ffffff; /* Keep the standard white box */
|
|
border: 1px solid #dbdbdb; /* Default Bulma box border */
|
|
box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02); /* Default shadow */
|
|
}
|
|
|
|
/* Style the titles (Login/Sign Up) */
|
|
.login-signup-page .title {
|
|
color: #38315f; /* Use accent color for titles */
|
|
margin-bottom: 1.5rem; /* Add some space below titles */
|
|
}
|
|
|
|
/* Style form labels */
|
|
.login-signup-page .label {
|
|
color: #363636; /* Default Bulma label color is fine */
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Style form inputs */
|
|
.login-signup-page .input {
|
|
border-color: #dbdbdb; /* Default border */
|
|
}
|
|
.login-signup-page .input:focus {
|
|
border-color: #38315f; /* Use accent color for focus */
|
|
box-shadow: 0 0 0 0.125em rgba(56, 49, 95, 0.25); /* Accent color focus shadow */
|
|
}
|
|
|
|
/* Style buttons */
|
|
.login-signup-page .button.is-primary {
|
|
background-color: #38315f; /* Use accent color for primary button (Login) */
|
|
border-color: transparent;
|
|
}
|
|
.login-signup-page .button.is-primary:hover {
|
|
background-color: #2c264a; /* Darken accent color slightly on hover */
|
|
}
|
|
|
|
.login-signup-page .button.is-link {
|
|
background-color: #5a5fcf; /* A slightly lighter purple/blue for Signup */
|
|
border-color: transparent;
|
|
color: #fff;
|
|
}
|
|
.login-signup-page .button.is-link:hover {
|
|
background-color: #4a4fbf; /* Darken link button slightly on hover */
|
|
}
|
|
|
|
/* Center the reCAPTCHA section */
|
|
.recaptcha-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 1.5rem;
|
|
}
|
|
.recaptcha-container .g-recaptcha {
|
|
display: inline-block; /* Ensure reCAPTCHA aligns correctly */
|
|
}
|
|
.recaptcha-container .help {
|
|
text-align: center; /* Center the error message */
|
|
width: 100%; /* Ensure it takes full width for centering */
|
|
margin-top: 0.5rem;
|
|
}
|