Skip to content

Instantly share code, notes, and snippets.

@cybrox
Last active August 29, 2015 14:01
Show Gist options
  • Save cybrox/f3a5320bbdcc6b4a9c57 to your computer and use it in GitHub Desktop.
Save cybrox/f3a5320bbdcc6b4a9c57 to your computer and use it in GitHub Desktop.
Custom 4chan style
/* Global elements style */
html, body { height: 100%; }
body {
margin: 0;
padding: 0;
background: #1a1a1a;
}
a, a:visited {
color: #EE6A50;
text-decoration: none;
}
input,
input:focus,
textarea,
textarea:focus {
border: 1px solid #333;
border-radius: 3px;
padding: 3px 5px;
background: #222;
box-shadow: inset 1px 1px 1px #111;
color: #fff;
}
input:focus,
textarea:focus,
a:hover {
color: #FFA07A !important;
}
input[type="submit"]{
margin: 5px;
color: #fff;
}
input[type="checkbox"] {
border: 1px solid #555;
background: #000;
}
/* Chan header */
.is_indexBanner,
.is_indexBanner + hr,
.is_indexBanner + hr + div,
.sideArrows,
.bottomad,
.postInfo input[type="checkbox"],
.abovePostForm,
hr.abovePostForm + div,
hr.aboveMidAd + div, hr.belowLeaderboard,
hr.aboveMidAd,
hr.desktop,
hr.mobile + .center,
.navLinks + hr,
#blotter,
.rules,
.absBotText,
#navbotright,
.boardBanner,
.absBotDisclaimer,
.navtopright a:last-of-type,
.middlead + .desktop hr,
.middlead + .desktop + hr,
.navLinks:last-of-type + hr,
.navLinks:last-of-type + hr + .center,
.bottomad + .ad-plea,
.bottomad + .ad-plea + hr,
#qrHeader,
.thread + hr {
display: none;
}
.middlead + .desktop {
margin: -30px 0 50px 10px;
}
form[name="post"],
#boardNavDesktop,
#togglePostFormLink,
#boardNavDesktopFoot {
background: #2b2b2b;
}
#togglePostFormLink {
color: #2b2b2b;
}
form[name="post"]{
padding: 20px 0;
}
#boardNavDesktopFoot,
#boardNavDesktop {
padding: 10px 3%;
text-align: center;
color: #222;
}
#boardNavDesktopFoot a,
#boardNavDesktop a {
font-size: 1.1em;
text-transform: uppercase;
}
.navLinks {
margin-bottom: 0px;
padding: 10px 0 15px 0;
text-align: center;
background: #2b2b2b;
color: #2b2b2b;
border-bottom: 1px solid #333;
}
.navLinksBot:last-of-type {
margin-bottom: 0px !important;
}
.navLinks label + span {
display: block;
position: fixed;
left: 10px;
bottom: 10px;
padding: 7px 10px;
background: #2b2b2b;
color: #EE6A50;
border: 1px solid #CD5B45;
border-radius: 5px;
}
#togglePostFormLink a,
.navLinks a,
.navLinks label,
input[type="submit"],
#doc #bd #backtoboard a,
.pagelist a {
display: inline-block;
margin: 0 5px;
padding: 4px 8px;
border-radius: 3px;
background: #222;
box-shadow: inset 1px 1px 0px #666;
color: #EE6A50;
}
.navLinks label {
vertical-align: bottom;
padding: 3px 8px;
color: #EE6A50;
}
#togglePostFormLink a:hover,
.navLinks a:hover,
.navLinks label:hover,
input[type="submit"]:hover,
#doc #bd #backtoboard a:hover,
.pagelist a:hover {
cursor: pointer;
background: #333;
box-shadow: 1px 1px 0px #666;
}
/* Board view */
.is_index .thread {
padding: 50px 15%;
}
.is_index .thread .postContainer {
width: 30%;
margin: 10px 1.5%;
float: left;
clear: none;
}
.is_index .thread .post {
width: 100%;
margin: 0;
float: none;
}
.is_index .thread .opContainer,
.is_index .thread .op {
flaot: none;
width: 100%;
margin: 0;
}
.is_index .thread .summary.desktop {
display: block;
width: 100%;
padding: 0 0 20px 0;
background: #1f1f1f;
}
.is_index .thread + hr {
visibility: hidden;
clear: both;
}
.is_index .thread .post .postInfo {
width: auto;
padding-right: 20px;
}
/* Thread view */
.postContainer.replyContainer {
display: block;
width: 100%;
clear: left;
}
.post {
display: table;
width: 60%;
margin: 15px 20%;
padding: 0;
background: #1F1F1F;
border-radius: 4px;
}
.post.op {
border-top: 3px solid #CD5B45;
}
.post.highlight {
border-color: #EE6A50;
background: #1f1f1f;
}
.postMessage,
.postInfo,
.file {
display: block;
}
.postInfo {
float: left;
width: 15%;
padding: 20px 0 20px 20px;
background: #1F1F1F;
text-align: center;
}
.nameBlock,
.nameBlock .name,
.posteruid, .dateTime {
display: block;
}
.nameBlock .name {
padding-bottom: 15px;
font-size: 1em;
text-transform: uppercase;
color: #8B3E2F;
}
.nameBlock .posteruid {
color: #1F1F1F;
}
.nameBlock .hand {
display: block;
width: 50%;
margin: -30px auto 0 auto;
}
.backlink {
display: block;
width: 80%;
margin: 20px 10% 0 10%;
padding: 10px 0;
background: #222;
box-shadow: inset 1px 1px 1px #1a1a1a;
}
.backlink a {
display: block;
}
.file {
background: #222;
box-shadow: inset 1px 1px 1px #1a1a1a;
float: right;
margin: 20px;
padding: 20px;
text-align: center;
}
.fileText a {
display: block;
}
.fileThumb {
float: none;
display: block;
text-align: center;
}
.fileThumb img {
float: none;
opacity: 0.7;
}
.fileThumb img:hover {
opacity: 1 ;
}
/* Instant Reply */
#quickReply {
display: block;
position: fixed;
bottom: 0;
left: 0;
right: auto;
top: auto;
padding: 20px;
background: #1f1f1f;
border-top: 1px solid #CD5B45;
border-right: 1px solid #CD5B45;
border-top-right-radius: 3px;
}
#quickReply input,
#quickReply textarea {
margin: 5px 0;
}
#quickReply input[type="submit"]{
position: absolute;
top: 0;
right: 0;
margin: 0;
box-shadow: none;
}
#qrForm { margin-top: 20px; }
#qrEmail {width: 96%;}
/* Post Preview */
#quotePreview {
position: fixed;
bottom: 0;
right: 0;
width: 25%;
}
/* Footer stuff */
.navLinksBot,
.open-qr-wrap {
position: relative;
}
.open-qr-wrap { padding-bottom: 10px; }
.bottomCtrl {
position: relative;
clear: both;
z-index: 500;
margin-bottom: -30px;
background: #2b2b2b;
}
.pagelist {
width: 100%;
padding: 10px 0 5px 0;
border: none;
background: #2b2b2b;
border-bottom: 1px solid #333;
color: #2b2b2b;
}
.pagelist .pages { margin-top: -4px; }
.pagelist a { margin: 0; }
/* Error page */
#doc #hd,
#doc #ft,
#doc #bd .boxbar{
display: none;
}
#doc #bd {
padding-top: 100px;
}
#doc #bd .box-outer,
#doc #bd .box-inner,
#doc #bd .boxcontent {
background: none;
border: none;
}
#doc #bd .boxcontent img {
border-radius: 10px;
border: 2px solid #000;
}
#doc #bd #backtoboard { color: #1a1a1a; }
/* Fancy shit */
a,
a:hover {
transition: color 0.3s ease-in-out;
}
.fileThumb img,
.fileThumb img:hover {
transition: opacity 0.2s ease-in-out;
}
#togglePostFormLink a,
#togglePostFormLink a:hover,
.navLinks a,
.navLinks a:hover,
.navLinks label,
.navLinks label:hover,
#doc #bd #backtoboard a,
#doc #bd #backtoboard a:hover,
.pagelist a,
.pagelist a:hover {
transition: background 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment