Skip to content

Instantly share code, notes, and snippets.

@AdolfVonKleist
Created June 17, 2012 09:48
Show Gist options
  • Save AdolfVonKleist/2944036 to your computer and use it in GitHub Desktop.
Save AdolfVonKleist/2944036 to your computer and use it in GitHub Desktop.
r/surfing CSS
/*
CSS markup customization for r/surfing - 2012
Most of this CSS was cribbed from other subreddits or tutorials with
special mention going out to:
r/battlefield3, r/skyrim, r/fitness, and r/trees
Credit for the various images can be found below in the related
code blocks.
*/
/*
Header CSS markup. Taken from r/skyrim, r/battlefield3
The awesome surfboard fence painting was found here:
http://www.thedesignfoundry.com/blog/wp-content/uploads/2011/06/surfboard-fence-2011sm.png
All credit for its awesomeness goes to The Design Foundry.
*/
#header {
background-color: #555 !important;
border-bottom: 1px solid #909090 !important
}
#header-bottom-left {
background: url(%%surfboardfence%%);
background-repeat: repeat;
background-position: right bottom;
overflow: hidden;
height: 75px;
margin-right: 0px;
margin-left: 0px;
}
body:lang(ds) #header-bottom-left {
background: url(%%surfboardfence%%) no-repeat right bottom
}
#header-img {
margin-top: 17px;
margin-bottom: 10px;
margin-right: 5px;
margin-left: 55px;
}
/*
Subreddit banner - very top of the page header.
*/
#sr-header-area {
background-color: #0894E0;
border-bottom: black 1px solid;
padding: 3px 0px 4px 5px
}
#sr-more-link {
color: gray;
text-shadow: white 0px 1px 0px
}
.sr-bar a, .dropdown.srdrop .selected {
color: white;
text-transform: lowercase;
font-size: 10px
}
.sr-bar a:hover {
color: #364657;
text-decoration: none
}
#sr-more-link {
display: none
}
/*
Customize the 'Surfing' subreddit link in the header.
The font is called 'BeachType' and can be obtained here:
http://www.fontspace.com/david-a-mason/beachtype
This bit of 'wordart' was made in PPT.
*/
.pagename a {
display: block;
background-image: url(%%surfing%%);
background-repeat: no-repeat;
margin: 0 auto;
font-size: 0px;
padding: 75px 300px 0 0;
color: #364657;
left: 125px;
position: absolute;
top: 45px
}
/*
User preferences bar - bottom RHS of the header.
*/
#header-bottom-right {
background: #222;
border: 1px solid black;
border-bottom: none;
border-right: none;
z-index: 99;
right: 0;
bottom: 0;
padding: 5px 10px
}
#header-bottom-right a, #header-bottom-right .user {
color: #EEE;
text-shadow: #222 0px 1px 0px
}
/*
Customize the vote arrows.
This will remain commented out until we find some cool arrow icons.
Arrow icons should be 15x15 px ~ 20x20 px, but the smaller the better.
noknockers noticed that there is even a hover state.
Technically I guess this means we could have 8 different icons:
UP, UP-hover, UPVOTED, UPVOTED-hover,
DOWN, DOWN-hover, DOWNVOTED, DOWNVOTED-hover
*/
/*
.arrow.up {
background-image: url(%%UpNotClicked%%);
background-position: 0px 0px;
height: 15px; width: 15px;
}
.arrow.up:hover {
background-image: url(%%UpNotClickedHover%%);
background-position: 0px 0px;
height: 15px; width: 15px;
}
.arrow.upmod {
background-image: url(%%UpClicked%%);
background-position: 0px 0px;
height: 15px; width: 15px;
}
.arrow.upmod:hover {
background-image: url(%%UpClickedHover%%);
background-position: 0px 0px;
height: 15px; width: 15px;
}
.arrow.down {
background-image: url(%%DownNotClicked%%);
background-position: 0px 0px;
height: 15px; width: 15px;
}
.arrow.down:hover {
background-image: url(%%DownNotClickedHover%%);
background-position: 0px 0px;
height: 15px; width: 15px;
}
.arrow.downmod {
background-image: url(%%DownClicked%%);
background-position: 0px 0px;
height: 15px; width: 15px;
}
.arrow.downmod:hover {
background-image: url(%%DownClickedHover%%);
background-position: 0px 0px;
height: 15px; width: 15px;
}
*/
/* Miscellaneous */
div.content{
margin-top: 65px;
padding-top:45px;
}
body,.side {background-color:#eee!important;}
div.content {background-color:#fff!important;}
/*
Sidebar image markup cribbed from r/fitness
Image of Gerry Lopez shredding pipe found here:
http://surf.transworld.net/files/2008/12/22/5_9_gerrylopez1_ctsy.jpg
*/
div.side{
background-image: url(%%gerrylopez%%);
background-repeat: no-repeat;
background-position: 20px 35px;
padding-top:300px;
padding-left:10px;
}
/*
Navigation menu magic cribbed from r/battlefield3
*/
ul.tabmenu {
background: url(%%tabmenu%%);
border: 1px solid #ddd;
font-family: "Helvetica Neue", Helvetica, Arial;
position: absolute;
font-size: 10px;
top: 170px;
/*announcement sticky*/
left: 15px;
border-radius: 6px
}
ul.tabmenu li {
padding: 4px 0px;
display: block;
float: left
}
ul.tabmenu:after {
clear: both
}
ul.tabmenu li a, ul.tabmenu li.selected a {
background-color: transparent;
border: 0;
color: #1E274A;
text-transform: lowercase;
font-size: 13px;
font-weight: normal
}
ul.tabmenu li.selected a {
color: #ff8333;
font-weight: bold
}
/*
Announcement sticky, cribbed from r/fitness.
The wave icon was cribbed from:
http://www.actsofvolition.com/images/caminowave.png
*/
.titlebox .usertext-body .md h6 {
display: block;
position: absolute;
clear: both;
top: 95px;
left: 5px;
width: 645px;
background-color: #0894E0;
background-image: url(%%wave%%);
background-repeat: no-repeat;
background-position: 10px 5px;
font-family: verdana, sans-serif;
font-size: 12px;
font-weight: bold;
color: #fff;
text-align: left;
padding: 10px 10px 10px 45px;
margin: 15px;
margin-left: 5px;
border-radius: 8px;
}
/* Allow absolute positioning to page */
.titlebox form {
position: static
}
/* Inactive link */
.titlebox .usertext-body .md h6 a, .titlebox .usertext-body .md h6 a:link, .titlebox .usertext-body .md h6 a:visited {
color: #000e1d
}
/* Link on hover */
.titlebox .usertext-body .md h6 a:hover {
color: #666666
}
/* Catches all <a> */
.titlebox .usertext-body .md h6 a:before {
color: firebrick;
border-right: 1px solid #444;
padding-right: .6em;
margin-right: .6em
}
/*
Footer CSS markup
The footer pic was originally cribbed from:
http://wayoftheocean.com/blog/http://www.wayoftheocean.com/html/wp-content/uploads/2011/04/1_DSC0820.jpg
It is a shot from the 2011 film "Way of the Ocean".
*/
.footer-parent {
height: 630px;
padding-top: 0px;
padding-bottom: 0px;
clear: both;
background-image: url(%%footerwave%%);
text-align: center;
width: 100%;
background-position: top center;
background-repeat: no-repeat;
margin-bottom: -1px
}
/*
Customize the submission/moderator page flare and whatnot.
The 'advisory' image was cobbled together in MS PPT.
*/
#link-desc, #text-desc{
background-color: #fff;
border-color: #0894E0;
border-width: 2px;
}
#link-desc::after, #text-desc::after {
content: "";
background: url(%%advisory%%) no-repeat;
background-position: 0px;
background-color: #fff;
display: block;
width: 100%;
height: 300px;
}
.linefield .title {
color: black;
font-weight: bold;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
text-transform: lowercase;
}
.linefield .linefield-content {
border-color: #999
}
.delete-field {
background-color: transparent
}
.tabmenu.formtab .selected a {
color: #324A74;
font-size: 100%;
background-color: transparent
}
.tabmenu.formtab a {
border: none
}
.roundfield {
background-color: #DDD
}
.formtabs-content {
border-top: 4px solid #324A74;
margin-top: 0px
}
/*
Text markup, submission flare and other goodies.
I did not crib pretty much all of this from r/battlefield3.
The favicon.ico images for the submission links were found here,
http://www.getfavicon.org/
*/
.comment .child {
border-left: 1px dotted #888
}
.entry .buttons li a.comments {
color: #324A74
}
.entry .buttons a:hover {
text-decoration: none
}
a {
color: #324AA5
}
.sidecontentbox h1 {
color: #FF9322;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 12px;
text-transform: uppercase
}
textarea {
border-radius: 5px;
background-color: #FAFAFA;
border: 1px solid #CDCDCD
}
a.title {
text-shadow: 0 1px 0 #FFF;
font-family: "Helvetica Neue", Helvetica, Arial
}
.thing .title.loggedin, .thing .title {
color: #324a74 !important;
font-weight: bold
}
.thing .title.loggedin:visited, .thing .title:visited {
color: #777 !important;
font-weight: normal !important
}
.thing .title.loggedin:visited, .thing .title.click:visited, .thing .title.loggedin.click:visited {
color: #777 !important;
font-weight: normal !important
}
.thing .title.loggedin:hover, .thing .title.click:hover, .thing .title.loggedin.click:hover, a:hover {
color: #F88613 !important
}
.thing.spam {
margin-right: 350px;
border-radius: 5px;
margin-bottom: 10px;
margin-top: 10px;
background: white
}
.menuarea {
border-bottom: 0px
}
.comment .expand:hover {
text-decoration: none;
color: white;
background: transparent
}
.tagline a {
color: #324a74
}
.tagline a:hover {
text-decoration: none
}
.tagline .friend {
color: white;
background-color: orangeRed;
padding: 1px;
border-radius: 3px
}
.tagline .submitter {
color: white;
background-color: #059;
padding: 1px;
border-radius: 4px
}
.tagline .moderator {
color: white;
background-color: #282;
padding: 1px;
border-radius: 3px
}
.userattrs .moderator {
background-color: transparent;
color: green
}
.userattrs .submitter {
background-color: transparent;
color: #059
}
.userattrs .friend {
background-color: transparent;
color: orangeRed
}
.link .rank {
font-size: 17px
}
.link, .link.last-clicked {
margin: -1px 0 0;
padding: 7px 21px 7px;
border-bottom: 1px solid #EBEBEB;
font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif;
font-size: 13px
}
.link .title {
font-size: 14px
}
.link .title .domain {
color: #999;
font-size: 0;
font-weight: normal
}
.link .title .domain a {
font-size: 13px;
margin-left: 5px
}
.link .title .domain a[href*="imgur.com"]:before {
content: url(%%imguricon%%);
margin-right: 5px;
}
.link .title .domain a[href*="surfline.com"]:before {
content: url(%%surflineicon%%);
margin-right: 5px
}
.link .title .domain a[href*="vimeo.com"]:before {
content: url(%%vimeoicon%%);
margin-right: 5px
}
.link .title .domain a[href*="surfingmagazine.com"]:before {
content: url(%%surfingmagazineicon%%);
margin-right: 5px
}
.link .title .domain a[href*="surfermag.com"]:before {
content: url(%%surfermagicon%%);
margin-right: 5px
}
.link .title .domain a[href*="stabmag.com"]:before {
content: url(%%stabmagicon%%);
margin-right: 5px
}
.link .title .domain a[href*="youtube.com"]:before {
content: url(%%youtubeicon%%);
margin-right: 5px
}
.link .title .domain a[href*="twitter.com"]:before {
content: url(%%twittericon%%);
margin-right: 5px
}
.link .tagline {
color: #999;
font-size: 12px;
margin: 8px 0
}
.link .flat-list {
font-size: 11px
}
.link .score.likes {
color: #F88613
}
.link .score {
color: #AAA;
text-shadow: 0 1px 0 white
}
.link .score.dislikes {
color: #324a74
}
.link .usertext .md {
border: 1px solid #CDCDCD;
background-color: #FAFAFA
}
.linkinfo .upvotes {
color: #F88613
}
.linkinfo .downvotes {
color: #324a74
}
.error {
color: #F88613
}
.red {
color: #852500
}
.md strong {
color: #444;
text-shadow: 0 1px 0 white
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment