diff --git a/style.css b/style.css deleted file mode 100644 index 8cb93ec..0000000 --- a/style.css +++ /dev/null @@ -1,558 +0,0 @@ -/* 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; -} - -/* 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; -} - -.single-post-container { - max-width: 600px; - margin-top: 2rem; -} -.comment-section { - margin-top: 2rem; -} -.comment { - margin-top: 1.5rem; - padding-left: 0; - font-size: 0.9rem; /* Smaller text for comments */ -} -.nested-comment { - margin-left: 1.5rem; - margin-top: 1rem; - border-left: 2px solid #ddd; - padding-left: 1rem; - font-size: 0.9rem; -} -.comment-header small.reply { - text-decoration: underline; - font-size: 0.75rem; - cursor: pointer; - margin-left: 0.5rem; - display: inline-block; -} -.comment-header a.nav-link { - font-size: 0.75rem; - margin-left: 0.5rem; - text-decoration: underline; - color: #38315f; -} -.comment-header a.nav-link:hover { - color: #2d274a; -} -.upvote-arrow { - font-size: 0.9rem; - margin-right: 0.5rem; - color: #6c757d; -} -.upvote-arrow:hover { - color: #ff6600; -} -.reply-box { - margin-left: 2rem; - margin-top: 1rem; -} -.reply-box textarea { - margin-bottom: 0.5rem; - background-color: #f8f9fa; - border: 1px solid #dbdbdb; - font-size: 0.9rem; -} -.comments-list { - margin-top: 1rem; -} -.comment-header { - margin-bottom: 0.3rem; -} -.comment-body p { - margin-bottom: 0.5rem; -} -.button.is-primary { - background-color: #38315f; - border-color: transparent; - color: #fff; -} -.button.is-primary:hover { - background-color: #2d274a; -} -textarea.textarea { - background-color: #f8f9fa; - border: 1px solid #dbdbdb; - color: #363636; -} - -/* Styling the post title header to appear below the title and closer to it */ -.post-title-header { - font-size: 0.9rem; /* Slightly smaller font size */ - margin-top: 0.1rem; /* Reduced space between title and header */ - margin-bottom: 0.5rem; /* Added space below the title header */ - color: #38315f; /* Regular color */ -} - -/* Style for handle and time (grey color and bigger text) */ -.post-title-header .handle, -.post-title-header .time { - font-size: 1rem; /* Increase the font size */ - color: #6b6b6b; /* Grey color for handle and time */ -} - -/* Make the handle underlined on hover */ -.post-title-header .handle { - text-decoration: none; - cursor: pointer; -} - -.post-title-header .handle:hover { - text-decoration: underline; /* Underline effect on hover */ -} - -/* Style for the navigation links (parent, next) */ -.post-title-header .nav-link { - font-size: 0.875rem; /* Smaller font size for the links */ - margin-left: 0.5rem; - color: #38315f; /* Match the color with other text */ - text-decoration: none; -} - -.post-title-header .nav-link:hover { - color: #2d274a; /* Darker color on hover */ - text-decoration: underline; /* Underline effect on hover */ -} - -/* Styling for the body text to create more space below the title header */ -.content p:first-of-type { - margin-bottom: 0.0rem; /* Add more space below the title header and before the body */ -} - -/* Ensure post text is aligned to the left */ -.media-content { - text-align: left; -} - -/* Add specific styles for login page if needed */ -.login-container { - max-width: 450px; /* Increased width for longer fields */ - margin-top: 2rem; -} -.login-container h2 { - font-size: 1.2rem; - margin-bottom: 1rem; - color: #38315f; /* Updated text color */ -} -.login-container .field { - margin-bottom: 0.75rem; -} -.login-container .label { - font-size: 0.9rem; - font-weight: normal; - color: #38315f; /* Updated text color */ - margin-bottom: 0.25rem; - display: inline-block; /* HN style labels */ - width: 100px; /* Align inputs */ -} -.login-container .input { - font-size: 0.9rem; - max-width: 250px; /* Increased max-width for longer fields */ - display: inline-block; /* Align with label */ - width: calc(100% - 110px); /* Adjust width */ - background-color: #ffffff; /* Ensure white background */ - color: #363636; /* Default input text color */ - border: 1px solid #dbdbdb; /* Standard Bulma border */ -} -.login-container .input:focus { - border-color: #38315f; /* Highlight focus */ - box-shadow: 0 0 0 0.125em rgba(56, 49, 95, 0.25); -} -.login-container .button.is-link { /* Target the specific button */ - font-size: 0.9rem; - margin-left: 100px; /* Align button with inputs */ - margin-top: 0.5rem; - background-color: #38315f; /* Updated button color */ - color: #ffffff; /* White text for contrast */ - border-color: transparent; /* Remove default border */ -} -.login-container .button.is-link:hover { - background-color: #2d274a; /* Slightly darker on hover */ -} -.recaptcha-placeholder { - margin-left: 100px; /* Align with inputs */ - margin-top: 0.75rem; - font-size: 0.8rem; - color: #6c757d; - border: 1px dashed #ccc; - padding: 10px; - display: inline-block; - width: 250px; /* Match input width */ - text-align: center; - background-color: #f5f5f5; /* Light background for placeholder */ -} -.form-section { - margin-bottom: 2rem; -} -.login-container p a { - color: #38315f; /* Link color */ -} -.login-container p a:hover { - text-decoration: underline; -} \ No newline at end of file