Created
August 20, 2012 02:46
-
-
Save nelsonjchen/3399663 to your computer and use it in GitHub Desktop.
new css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Twitter Feed Graphic*/ | |
a[href="http://twitter.com/reddit_ucsb"]:after { | |
width: 68px; | |
height: 16px; | |
content: ""; | |
background-image: url(%%twitter%%); | |
background-position: 0px; | |
display: inline-block; | |
cursor: pointer; | |
position: relative; | |
} | |
/* Disable create and submit */ | |
.side .sidebox.create, .side .sidebox.submit { | |
display: none; | |
} | |
/* replace "readers" with gauchos */ | |
.subscribers span.word { | |
display: none; | |
} | |
.subscribers span.number:after { | |
content: " gauchos subscribed"; | |
} | |
/* replace "users here now" with "guachos online" */ | |
.users-online span.word { | |
display: none; | |
} | |
.users-online span.number:after { | |
content: " gauchos online in the last 15 min"; | |
} | |
/*Flair Classes*/ | |
.flair-mod:before { | |
content: ""; | |
text-align: right; | |
float: left; | |
width: 16px; | |
height: 16px; | |
background: transparent url(%%light-bulb%%) center center no-repeat; | |
} | |
.flair-tweetposter { | |
border: 0; | |
padding: 0; | |
background: transparent url(%%tweet-poster%%) center center no-repeat; | |
height: 16px; | |
width: 16px; | |
text-indent: -9999px; | |
} | |
/* Flair */ | |
.linkflair-gold .title { | |
background-color: gold; | |
} | |
/* Credit for stuff from other subreddits | |
r/Modclub: General inspiration and reference for other subreddits to pull from | |
r/Music: the origin of the stick out headers? | |
r/gentlemanboners: Typography for header | |
r/chrome: moving the userbar up | |
r/apple: Touchups to subreddit bar to handle RES | |
r/baseball: submit links | |
r/UCSD: Dark Bluish Userbar | |
r/UCR: Yellow Tabs | |
r/surfing: Ideas on getting a surfboard back into the header | |
RES: Night mode for quick inspiration | |
r/SJSU: code for gradient mixin should we need more of it. | |
r/Android: Great example used for basis of handling RES Night Mode | |
As for this stylesheet/design itself, | |
u/bboe and u/mellort for the Python Reddit API Wrapper for which this project would not | |
have gotten any sort of near-instant feedback on ongoing designs without. | |
u/snifty for the logo | |
u/crazysim for the base SCSS, tower pixel art, concept, and Heroku | |
compatibility, deployment script, and Rakefiles | |
u/beetling for feedback on sidebar buttons. | |
Storke Tower: | |
Clark and Morgan, which I think is an architectural firm of some sort that | |
built Storke Tower in the first place. Without the tower, finding some sort of | |
landmark to draw would be quite a bit harder. | |
Source/Toolkit for this whole boondongle: https://github.com/crazysim/cowboystyle | |
*/ | |
/* This is the color fallback for any unspecified variables */ | |
body { | |
background-color: #b8e2fc !important; | |
background-image: url(%%tower-base%%) !important; | |
background-repeat: repeat-y; | |
background-position: 100% 35px; | |
} | |
/* ~~~~~~~~~~~~~~~~~~~~~~ Global ~~~~~~~~~~~~~~~~~~~~~~~ */ | |
a { | |
/* [> color: $user_link_color; <] */ | |
} | |
/* ~~~~~~~~~~~~~~~~~~~~~~ Subreddit Bar ~~~~~~~~~~~~~~~~~~~~~~~ */ | |
#sr-header-area { | |
background-color: #2d2d2d !important; | |
} | |
#sr-header-area .srSep { | |
color: gray !important; | |
} | |
#sr-header-area .width-clip { | |
right: 0px !important; | |
} | |
#sr-header-area a, #sr-more-link, .srdrop > .selected { | |
background-color: #2d2d2d !important; | |
color: #cccccc !important; | |
} | |
#RESShortcuts { | |
color: #cccccc !important; | |
} | |
#srLeftContainer { | |
max-height: 19px !important; | |
height: 19px !important; | |
} | |
#RESShortcutsEditContainer { | |
background-color: #2d2d2d !important; | |
} | |
#RESShortcutsRight, #RESShortcutsLeft, #RESShortcutsAdd, #RESShortcutsTrash { | |
background-color: #2d2d2d !important; | |
color: #cccccc !important; | |
} | |
.res-navTop { | |
z-index: 10 !important; | |
height: 12px !important; | |
top: 19px !important; | |
} | |
#userbarToggle { | |
background-color: #002773 !important; | |
border-right-color: #001f5a !important; | |
color: #ffc82e !important; | |
min-height: 0px; | |
line-height: 22px !important; | |
} | |
#userbarToggle.userbarShow { | |
min-height: 0px !important; | |
} | |
#header-bottom-right { | |
background-color: #0039a6 !important; | |
top: 19px; | |
-moz-border-radius-topleft: 0; | |
-webkit-border-top-left-radius: 0; | |
border-top-left-radius: 0; | |
-moz-border-radius-bottomleft: 7px; | |
-webkit-border-bottom-left-radius: 7px; | |
border-bottom-left-radius: 7px; | |
padding-left: 10px; | |
height: 12px; | |
} | |
#header-bottom-right a, #header-bottom-right b, #header-bottom-right > .separator, #header-bottom-right .user, #header-bottom-right .userkarma { | |
color: #ffc82e !important; | |
} | |
#header-bottom-right .login-required { | |
text-decoration: underline; | |
} | |
#NREFloat { | |
z-index: 100; | |
} | |
.width-clip { | |
right: 300px !important; | |
} | |
/* ~~~~~~~~~~~~~~~~~~~~~~ Header ~~~~~~~~~~~~~~~~~~~~~~~ */ | |
#header-bottom-left { | |
background-color: #004ba7 !important; | |
background-repeat: repeat-y; | |
background-position: 100% 0%; | |
padding-right: 300px; | |
} | |
#header { | |
border-bottom-color: #5f99cf !important; | |
z-index: 45; | |
} | |
#header-img { | |
background-image: url(%%alien%%); | |
height: 40px; | |
width: 140px; | |
} | |
.pagename, .pagename a { | |
font-family: "Minion Pro", "Hoefler Text", "Palatino Linotype", "Book Antiqua", Palatino, georgia, garamond, FreeSerif, serif; | |
font-size: 16px; | |
font-variant: small-caps; | |
text-transform: capitalize; | |
color: #ffc82e; | |
} | |
.tabmenu { | |
z-index: 55; | |
} | |
.tabmenu li a { | |
background-color: #ffc82e; | |
color: #0039a6; | |
} | |
.tabmenu li.selected a { | |
border: 1px solid #5f99cf; | |
border-bottom-color: #e9f6fe; | |
} | |
/* ~~~~~~~~~~~~~~~~~~~~~~ Sidebar ~~~~~~~~~~~~~~~~~~~~~~~ */ | |
.side { | |
background-color: transparent; | |
background-position: 8px 0; | |
margin: 0px 8px 0px 8px; | |
} | |
.side > .spacer:first-child { | |
background-color: #b8e2fc !important; | |
background-image: url(%%tower-base%%); | |
background-repeat: no-repeat; | |
background-position: -8px 250px; | |
padding-top: 340px; | |
margin: 0; | |
} | |
.side .md a[href="http://www.youtube.com/watch?v=JPPjS-TCCqk"] { | |
background-color: transparent; | |
background-image: url(%%tower-top%%); | |
background-position: -8px 0px; | |
position: absolute; | |
top: 48px; | |
right: 0; | |
height: 314px; | |
width: 300px; | |
z-index: 52; | |
} | |
.side .titlebox > .redditname { | |
display: none; | |
} | |
.side .titlebox .flairtoggle, .side .titlebox .leavemoderator { | |
background-color: white; | |
} | |
.side .sidebox.create, .side .sidebox.submit { | |
display: none; | |
} | |
.side .md { | |
margin: 0; | |
padding: 0; | |
overflow: visible; | |
} | |
.side .md p { | |
color: black !important; | |
} | |
.side .md a[href$="#submitlink"], .side .md a[href$="#selfpost"] { | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
-ms-border-radius: 5px; | |
-o-border-radius: 5px; | |
border-radius: 5px; | |
/* background-color: $ucsb_blue; */ | |
background-image: -webkit-linear-gradient(bottom, #b8e2fc, #e9f6fe); | |
background-image: -moz-linear-gradient(bottom, #b8e2fc, #e9f6fe); | |
background-image: -o-linear-gradient(bottom, #b8e2fc, #e9f6fe); | |
background-image: linear-gradient(bottom, #b8e2fc, #e9f6fe); | |
background-color: #b8e2fc !important; | |
color: #336699 !important; | |
text-align: center; | |
font-size: 15px; | |
font-weight: bold; | |
width: 278px; | |
padding: 5px 0px; | |
margin: 5px 0px; | |
border: 1px solid #56baf8; | |
position: relative; | |
float: left; | |
} | |
.side .md a[href$="#submitlink"]:hover, .side .md a[href$="#selfpost"]:hover { | |
background-image: -webkit-linear-gradient(bottom, #9fd8fb, #6fc4f9); | |
background-image: -moz-linear-gradient(bottom, #9fd8fb, #6fc4f9); | |
background-image: -o-linear-gradient(bottom, #9fd8fb, #6fc4f9); | |
background-image: linear-gradient(bottom, #9fd8fb, #6fc4f9); | |
/* color: $ucsb_gold; */ | |
} | |
.side .md > h1, .side .md > h3 { | |
background-color: #004ba7; | |
color: white; | |
margin-left: -18px; | |
margin-right: 5px; | |
padding-left: 20px; | |
padding-right: 20px; | |
padding-top: 5px; | |
padding-bottom: 5px; | |
} | |
.side .md > h1:after, .side .md > h3:after { | |
content: ""; | |
border-color: transparent #003474 transparent transparent; | |
border-style: solid; | |
border-width: 15px; | |
height: 0px; | |
width: 0px; | |
position: absolute; | |
display: block; | |
margin-left: -35px; | |
margin-top: -10px; | |
z-index: -1; | |
} | |
.side .md thead { | |
background-color: #0039a6; | |
} | |
.side .titlebox, .side #moderation_tools, .side .sidecontentbox, .side .account-activity-box { | |
background-color: white !important; | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
-ms-border-radius: 5px; | |
-o-border-radius: 5px; | |
border-radius: 5px; | |
padding: 10px !important; | |
} | |
.side .login-form-side { | |
background-color: white; | |
} | |
.side .sidecontentbox .content { | |
border: none; | |
margin: 0; | |
} | |
.side .account-activity-box a { | |
font-size: 13px; | |
} | |
.side .spacer { | |
background-color: transparent !important; | |
} | |
/* ~~~~~~~~~~~~~~~~~~~~~~ Content ~~~~~~~~~~~~~~~~~~~~~~~ */ | |
.content { | |
background-color: white; | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
-ms-border-radius: 5px; | |
-o-border-radius: 5px; | |
border-radius: 5px; | |
margin-top: 8px; | |
margin-left: 8px; | |
margin-right: 330px; | |
padding: 10px !important; | |
} | |
.content .thing { | |
/* border-top: 1px solid lighten(gray, 40%); */ | |
/* padding: 7px 0; */ | |
/* margin-bottom: 0px; */ | |
/* &.last-clicked { */ | |
/* // Nullify dashed lines */ | |
/* border-left: 0; */ | |
/* border-right: 0; */ | |
/* border-bottom: 0; */ | |
/* } */ | |
} | |
.content .thing:first-child { | |
/* border-top: 0; */ | |
} | |
.content .thing .title { | |
color: #0039a6; | |
} | |
.content .thing .title:visited, .content .thing .title.click { | |
color: #551a8b; | |
} | |
.content .thing .title.loggedin { | |
color: #0039a6; | |
} | |
.content .thing .title.loggedin:visited, .content .thing .title.loggedin.click, .content .thing .title.loggedin.click:visited { | |
color: #551a8b; | |
} | |
.content .thing .tagline a { | |
/* color: $user_link_color; */ | |
} | |
.content .thing .entry.keyHighlight { | |
outline-width: 0; | |
border-right: 2px solid blue; | |
} | |
.content .thing .thumbnail { | |
background-color: transparent; | |
} | |
.content .sitetable form { | |
overflow: auto; | |
} | |
.content .sitetable .flat-list { | |
display: block; | |
} | |
.content .sitetable .flat-list li { | |
display: inline-block; | |
white-space: normal; | |
} | |
/* ~~~~~~~~~~~~~~~~~~~~~~ Footer ~~~~~~~~~~~~~~~~~~~~~~~ */ | |
.footer.rounded { | |
background-color: white; | |
color: black; | |
} | |
.res-nightmode { | |
background-color: #081327 !important; | |
background-image: url(%%tower-base-night%%) !important; | |
background-repeat: repeat-y; | |
background-position: 100% 35px; | |
/* ~~~~~~~~~~~~~~~~~~~~~~ Global ~~~~~~~~~~~~~~~~~~~~~~~ */ | |
/* ~~~~~~~~~~~~~~~~~~~~~~ Subreddit Bar ~~~~~~~~~~~~~~~~~~~~~~~ */ | |
/* ~~~~~~~~~~~~~~~~~~~~~~ Header ~~~~~~~~~~~~~~~~~~~~~~~ */ | |
/* ~~~~~~~~~~~~~~~~~~~~~~ Sidebar ~~~~~~~~~~~~~~~~~~~~~~~ */ | |
/* ~~~~~~~~~~~~~~~~~~~~~~ Content ~~~~~~~~~~~~~~~~~~~~~~~ */ | |
/* ~~~~~~~~~~~~~~~~~~~~~~ Footer ~~~~~~~~~~~~~~~~~~~~~~~ */ | |
} | |
.res-nightmode a { | |
/* [> color: $user_link_color; <] */ | |
} | |
.res-nightmode #sr-header-area { | |
background-color: #141414 !important; | |
} | |
.res-nightmode #sr-header-area .srSep { | |
color: gray !important; | |
} | |
.res-nightmode #sr-header-area .width-clip { | |
right: 0px !important; | |
} | |
.res-nightmode #sr-header-area a, .res-nightmode #sr-more-link, .res-nightmode .srdrop > .selected { | |
background-color: #141414 !important; | |
color: #aaaaaa !important; | |
} | |
.res-nightmode #RESShortcuts { | |
color: #aaaaaa !important; | |
} | |
.res-nightmode #srLeftContainer { | |
max-height: 19px !important; | |
height: 19px !important; | |
} | |
.res-nightmode #RESShortcutsEditContainer { | |
background-color: #141414 !important; | |
} | |
.res-nightmode #RESShortcutsRight, .res-nightmode #RESShortcutsLeft, .res-nightmode #RESShortcutsAdd, .res-nightmode #RESShortcutsTrash { | |
background-color: #141414 !important; | |
color: #aaaaaa !important; | |
} | |
.res-nightmode .res-navTop { | |
z-index: 10 !important; | |
height: 12px !important; | |
top: 19px !important; | |
} | |
.res-nightmode #userbarToggle { | |
background-color: #001640 !important; | |
border-right-color: #000d26 !important; | |
color: #ffc82e !important; | |
min-height: 0px; | |
line-height: 22px !important; | |
} | |
.res-nightmode #userbarToggle.userbarShow { | |
min-height: 0px !important; | |
} | |
.res-nightmode #header-bottom-right { | |
background-color: #002773 !important; | |
top: 19px; | |
-moz-border-radius-topleft: 0; | |
-webkit-border-top-left-radius: 0; | |
border-top-left-radius: 0; | |
-moz-border-radius-bottomleft: 7px; | |
-webkit-border-bottom-left-radius: 7px; | |
border-bottom-left-radius: 7px; | |
padding-left: 10px; | |
height: 12px; | |
} | |
.res-nightmode #header-bottom-right a, .res-nightmode #header-bottom-right b, .res-nightmode #header-bottom-right > .separator, .res-nightmode #header-bottom-right .user, .res-nightmode #header-bottom-right .userkarma { | |
color: #ffc82e !important; | |
} | |
.res-nightmode #header-bottom-right .login-required { | |
text-decoration: underline; | |
} | |
.res-nightmode #NREFloat { | |
z-index: 100; | |
} | |
.res-nightmode .width-clip { | |
right: 300px !important; | |
} | |
.res-nightmode #header-bottom-left { | |
background-color: #00295a !important; | |
background-repeat: repeat-y; | |
background-position: 100% 0%; | |
padding-right: 300px; | |
} | |
.res-nightmode #header { | |
border-bottom-color: #001227 !important; | |
z-index: 45; | |
} | |
.res-nightmode #header-img { | |
background-image: url(%%alien%%); | |
height: 40px; | |
width: 140px; | |
} | |
.res-nightmode .pagename, .res-nightmode .pagename a { | |
font-family: "Minion Pro", "Hoefler Text", "Palatino Linotype", "Book Antiqua", Palatino, georgia, garamond, FreeSerif, serif; | |
font-size: 16px; | |
font-variant: small-caps; | |
text-transform: capitalize; | |
color: #ffc82e; | |
} | |
.res-nightmode .tabmenu { | |
z-index: 55; | |
} | |
.res-nightmode .tabmenu li a { | |
background-color: #ffc82e; | |
color: #0039a6; | |
} | |
.res-nightmode .tabmenu li.selected a { | |
border: 1px solid #001227; | |
border-bottom-color: #112851; | |
} | |
.res-nightmode .side { | |
background-color: transparent; | |
background-position: 8px 0; | |
margin: 0px 8px 0px 8px; | |
} | |
.res-nightmode .side > .spacer:first-child { | |
background-color: #081327 !important; | |
background-image: url(%%tower-base-night%%); | |
background-repeat: no-repeat; | |
background-position: -8px 250px; | |
padding-top: 340px; | |
margin: 0; | |
} | |
.res-nightmode .side .md a[href="http://www.youtube.com/watch?v=JPPjS-TCCqk"] { | |
background-color: transparent; | |
background-image: url(%%tower-top-night%%); | |
background-position: -8px 0px; | |
position: absolute; | |
top: 48px; | |
right: 0; | |
height: 314px; | |
width: 300px; | |
z-index: 52; | |
} | |
.res-nightmode .side .titlebox > .redditname { | |
display: none; | |
} | |
.res-nightmode .side .titlebox .flairtoggle, .res-nightmode .side .titlebox .leavemoderator { | |
background-color: #222222; | |
} | |
.res-nightmode .side .sidebox.create, .res-nightmode .side .sidebox.submit { | |
display: none; | |
} | |
.res-nightmode .side .md { | |
margin: 0; | |
padding: 0; | |
overflow: visible; | |
} | |
.res-nightmode .side .md p { | |
color: #dddddd !important; | |
} | |
.res-nightmode .side .md a[href$="#submitlink"], .res-nightmode .side .md a[href$="#selfpost"] { | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
-ms-border-radius: 5px; | |
-o-border-radius: 5px; | |
border-radius: 5px; | |
/* background-color: $ucsb_blue; */ | |
background-image: -webkit-linear-gradient(bottom, #aaaaaa, #c3c3c3); | |
background-image: -moz-linear-gradient(bottom, #aaaaaa, #c3c3c3); | |
background-image: -o-linear-gradient(bottom, #aaaaaa, #c3c3c3); | |
background-image: linear-gradient(bottom, #aaaaaa, #c3c3c3); | |
background-color: #aaaaaa !important; | |
color: #336699 !important; | |
text-align: center; | |
font-size: 15px; | |
font-weight: bold; | |
width: 278px; | |
padding: 5px 0px; | |
margin: 5px 0px; | |
border: 1px solid #777777; | |
position: relative; | |
float: left; | |
} | |
.res-nightmode .side .md a[href$="#submitlink"]:hover, .res-nightmode .side .md a[href$="#selfpost"]:hover { | |
background-image: -webkit-linear-gradient(bottom, #9d9d9d, #848484); | |
background-image: -moz-linear-gradient(bottom, #9d9d9d, #848484); | |
background-image: -o-linear-gradient(bottom, #9d9d9d, #848484); | |
background-image: linear-gradient(bottom, #9d9d9d, #848484); | |
/* color: $ucsb_gold; */ | |
} | |
.res-nightmode .side .md > h1, .res-nightmode .side .md > h3 { | |
background-color: #00295a; | |
color: white; | |
margin-left: -18px; | |
margin-right: 5px; | |
padding-left: 20px; | |
padding-right: 20px; | |
padding-top: 5px; | |
padding-bottom: 5px; | |
} | |
.res-nightmode .side .md > h1:after, .res-nightmode .side .md > h3:after { | |
content: ""; | |
border-color: transparent #001227 transparent transparent; | |
border-style: solid; | |
border-width: 15px; | |
height: 0px; | |
width: 0px; | |
position: absolute; | |
display: block; | |
margin-left: -35px; | |
margin-top: -10px; | |
z-index: -1; | |
} | |
.res-nightmode .side .md thead { | |
background-color: #0039a6; | |
} | |
.res-nightmode .side .titlebox, .res-nightmode .side #moderation_tools, .res-nightmode .side .sidecontentbox, .res-nightmode .side .account-activity-box { | |
background-color: #222222 !important; | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
-ms-border-radius: 5px; | |
-o-border-radius: 5px; | |
border-radius: 5px; | |
padding: 10px !important; | |
} | |
.res-nightmode .side .login-form-side { | |
background-color: white; | |
} | |
.res-nightmode .side .sidecontentbox .content { | |
border: none; | |
margin: 0; | |
} | |
.res-nightmode .side .account-activity-box a { | |
font-size: 13px; | |
} | |
.res-nightmode .side .spacer { | |
background-color: transparent !important; | |
} | |
.res-nightmode .content { | |
background-color: #222222; | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
-ms-border-radius: 5px; | |
-o-border-radius: 5px; | |
border-radius: 5px; | |
margin-top: 8px; | |
margin-left: 8px; | |
margin-right: 330px; | |
padding: 10px !important; | |
} | |
.res-nightmode .content .thing { | |
/* border-top: 1px solid lighten(gray, 40%); */ | |
/* padding: 7px 0; */ | |
/* margin-bottom: 0px; */ | |
/* &.last-clicked { */ | |
/* // Nullify dashed lines */ | |
/* border-left: 0; */ | |
/* border-right: 0; */ | |
/* border-bottom: 0; */ | |
/* } */ | |
} | |
.res-nightmode .content .thing:first-child { | |
/* border-top: 0; */ | |
} | |
.res-nightmode .content .thing .title { | |
color: #0039a6; | |
} | |
.res-nightmode .content .thing .title:visited, .res-nightmode .content .thing .title.click { | |
color: gray; | |
} | |
.res-nightmode .content .thing .title.loggedin { | |
color: #0039a6; | |
} | |
.res-nightmode .content .thing .title.loggedin:visited, .res-nightmode .content .thing .title.loggedin.click, .res-nightmode .content .thing .title.loggedin.click:visited { | |
color: gray; | |
} | |
.res-nightmode .content .thing .tagline a { | |
/* color: $user_link_color; */ | |
} | |
.res-nightmode .content .thing .entry.keyHighlight { | |
outline-width: 0; | |
border-right: 2px solid blue; | |
} | |
.res-nightmode .content .thing .thumbnail { | |
background-color: #dddddd; | |
} | |
.res-nightmode .content .sitetable form { | |
overflow: auto; | |
} | |
.res-nightmode .content .sitetable .flat-list { | |
display: block; | |
} | |
.res-nightmode .content .sitetable .flat-list li { | |
display: inline-block; | |
white-space: normal; | |
} | |
.res-nightmode .footer.rounded { | |
background-color: #222222; | |
color: black; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment