feat: Add custom styles and Bulma import to style.css
This commit is contained in:
1 parent
a906be43ea
commit
e787eb7419
1 file changed
+184
@@ -0,0 +1,184 @@
|
||||
/* 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;
|
||||
}
|
||||
|
||||
/* 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 */
|
||||
Reference in new issue
Block a user