Below is an example “modernized” CSS stylesheet designed to override Craigslist’s native styling. (Note that by default—unless you’ve separately enabled user styles—changes in your Firefox userChrome.css affect the browser’s interface rather than website content. To change website styles you typically use userContent.css. However, if you’re set up to apply CSS overrides to Craigslist via userChrome.css, simply copy–paste the following into your file.)
This code uses modern layout techniques (flexbox), resets, and a fresh color scheme. Feel free to tweak colors, font sizes, and selectors if your Craigslist view uses different class names or IDs.
/*
Modern Craigslist Redesign
-------------------------------------------
To use: Paste this code into your userChrome.css (or userContent.css, if preferred)
Ensure that Firefox’s “toolkit.legacyUserProfileCustomizations.stylesheets” preference is set to true,
and restart Firefox to see changes.
*/
@-moz-document domain("craigslist.org") {
/* Base reset and typography update */
html, body {
margin: 0;
padding: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.5;
color: #333;
background-color: #f4f4f4;
}
/* Container: Wrap the main content in a centered card-style layout */
#pagecontainer, .container, .body {
margin: 20px auto;
max-width: 1200px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
overflow: hidden;
}
/* Header: modern gradient background with centered title */
header, .header, #hdr {
background: linear-gradient(135deg, #4e54c8, #8f94fb);
color: #fff;
text-align: center;
padding: 20px;
}
header h1, .header h1, #hdr h1 {
margin: 0;
font-size: 2.5rem;
}
/* Navigation Bar: Modern horizontal nav using flexbox */
nav, .navbar, #nav {
background-color: #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
nav ul, .navbar ul, #nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
justify-content: center;
}
nav ul li, .navbar ul li, #nav ul li {
margin: 0 15px;
}
nav ul li a, .navbar ul li a, #nav ul li a {
display: block;
padding: 10px 15px;
text-decoration: none;
color: #333;
border-radius: 4px;
transition: background 0.3s ease;
}
nav ul li a:hover, .navbar ul li a:hover, #nav ul li a:hover {
background-color: #f4f4f4;
}
/* Listings: Each Craigslist result is updated with a flex layout and hover effects */
.result-row, .row, .listing {
display: flex;
flex-wrap: wrap;
align-items: center;
padding: 15px;
border-bottom: 1px solid #eee;
transition: background-color 0.3s ease;
}
.result-row:hover, .row:hover, .listing:hover {
background-color: #fafafa;
}
.result-info, .info, .text {
flex: 1 1 auto;
min-width: 250px;
}
.result-meta, .meta, .price {
margin-left: auto;
font-weight: bold;
color: #4e54c8;
}
/* Pagination & Secondary Navigation: Give buttons a modern pill-like appearance */
.pagebuttons, .pagination, .pages {
display: flex;
justify-content: center;
margin: 20px 0;
}
.pagebuttons a, .pagination a, .pages a,
.pagebuttons span, .pagination span, .pages span {
margin: 0 5px;
padding: 8px 16px;
background-color: #eee;
border-radius: 20px;
text-decoration: none;
color: #333;
transition: background-color 0.3s ease;
}
.pagebuttons a:hover, .pagination a:hover, .pages a:hover {
background-color: #ddd;
}
/* Footer: Clean and simple footer */
footer, .footer, #ft {
background-color: #333;
color: #fff;
text-align: center;
padding: 15px;
font-size: 0.9rem;
}
/* Buttons & Labels: Modern flat style */
.btn, button, input[type="submit"] {
background-color: #4e54c8;
border: none;
color: #fff;
padding: 10px 20px;
font-size: 1rem;
border-radius: 4px;
cursor: pointer;
transition: background 0.3s ease;
}
.btn:hover, button:hover, input[type="submit"]:hover {
background-color: #3b439d;
}
/* Responsive adjustments */
@media (max-width: 768px) {
nav ul, .navbar ul, #nav ul {
flex-direction: column;
}
nav ul li, .navbar ul li, #nav ul li {
margin: 5px 0;
}
.result-row, .row, .listing {
flex-direction: column;
text-align: left;
}
.result-meta, .meta, .price {
margin: 10px 0 0;
}
}
}
Usage Notes:
-
Firefox Setup:
- Ensure that Firefox’s custom style override is enabled (set
toolkit.legacyUserProfileCustomizations.stylesheets to true in about:config).
- Place the file in your Firefox profile’s chrome folder (either as
userChrome.css or, for content styling, using userContent.css).
-
Selector Adjustments:
Craigslist’s HTML structure might vary depending on the section you’re viewing. If some elements don’t immediately pick up the new styles, adjust or add corresponding CSS selectors.
-
Customization:
Feel free to modify colors, fonts, and spacing to suit your taste. This example is provided as a starting point for a more modern, flat design.
Enjoy your refreshed Craigslist experience!