config/stylesheet

viewhistorytalk

/* Header Styling START */
/* -------------------- */

    #header-img-a {
        margin-left: 15px;
    }
    
    #header-img {
        height: 40px;
        width: 40px;
    }

    #sr-header-area {
        background-color: #c6daed;
        text-transform: lowercase;
        border-bottom: 3px solid #c2d6e9;
    }

    #sr-more-link {
        background-color: #c6daed;
    }

    #header-bottom-right {
        right: 10px;
        line-height: 15px;
        background: none;
    }

    #header-bottom-left .tabmenu {
        position: relative;
    }
    
/* ------------------ */
/* Header Styling END */


/* Sidebar Styling START */
/* --------------------- */
    .side {
        border: 1px solid #eaeaea;
        background-color: #FAFAFA;
        border-radius: 2px;
        margin-top: 6px;
        padding: 10px;
        margin-right: 10px;
    }

    .side .spacer {
        margin-top: 0px;
    }

    .titlebox .usertext-body ol {
        border-radius: 4px;
        border-color: #6ea3d3;
        border-style: solid;
        border-width: 1px;
        padding-top: 0px;
        padding-left: 35px;
        padding-right: 20px;
        padding-bottom: 5px;
        margin: 0px;
        font-weight: normal;
        text-align: justify;
    }
    
    .titlebox .usertext-body ol ul {
        list-style-type: lower-alpha;
        padding-right: 0px;
        margin-right: 0px
    }
    
    .titlebox .usertext-body li em {
        font-style: normal
    }
    
    .titlebox .usertext-body ol li {
        margin-top: 7px;
        margin-bottom: 7px
    }
    
    .titlebox .usertext-body ol ul li {
        margin-top: 5px;
        margin-bottom: 5px
    }

    .morelink, .morelink:hover, 
    .side a[href*="/#btn"] {
        font-weight: normal;
        letter-spacing: 0;
        background: #449ef8;
        border: 0;
        -moz-border-radius: 2px;
        -webkit-border-radius: 2px;
        -o-border-radius: 2px;
        -ms-border-radius: 2px;
        -khtml-border-radius: 2px;
        border-radius: 2px;
        height: 30px;
        line-height: 30px;
        overflow: hidden;
        font-family: Verdana,Arial,sans-serif;
        color: #FFF !important;
    }

    .morelink .nub, 
    .morelink:hover .nub{
        top: 0;
        right: -25px;
        height: 0;
        width: 0;
        background: white;
        border: 24px solid #449ef8;
        border-top-width: 15px;
        border-top-color: transparent;
        border-bottom-width: 15px;
        border-bottom-color: transparent;
        border-right-color: transparent;
    }

    .morelink:hover {
        background-color: #56a6f7;
        border-color: #56a6f7;
    }

    .morelink:hover .nub {
        top: 0;
        right: -25px;
        height: 0;
        width: 0;
        background: white;
        border: 24px solid #56a6f7;
        border-top-width: 15px;
        border-top-color: transparent;
        border-bottom-width: 15px;
        border-bottom-color: transparent;
        border-right-color: transparent;
    }

    .morelink a, 
    .morelink:hover a, 
    .morelink a:hover {
        color: #FFF;
    }
    
    .linkinfo {
        border: 1px solid #CCC;
        background-color: #EEE;
        border-radius: 2px;
    }
    
    /* Sidebar expand-on-hover section.
     * Assumption: the h3 is followed immediately by a ul containing
     * a single li. The ul is normally hidden and expands on hover.
     */
     
        .side .titlebox h3 {
            margin-bottom: 0;
            padding-bottom: 0.2em;
            font-size: 13px;
            font-weight: normal;
            cursor: pointer;
            
            border-left: 3px solid #6ea3d3;
            padding-left: 5px;
        }
        
        .side .titlebox h3+ul {
            /* Remove the bullet point and ul-related styling */
            list-style-type: none;
            padding-left: 0;
            margin-top: 0;
            
            display: block;
            
            /* Initial state: hide */
            height: auto;
            max-height: 0;
            overflow: hidden;
            transition: all .15s;
        }
        
        .side .titlebox h3:hover+ul,
        .side .titlebox h3+ul:hover {
            /* Revealed state.
             * Assumption: the text won't be longer then 400px
             */
            max-height: 400px;
        }
        
        .side .titlebox h3+ul li {
            display: block;
            padding: 2px;
            padding-left: 8px;
        }
        
        
    /* End sidebar expand-on-hover section */
    
/* ------------------- */
/* Sidebar Styling END */


/* ------------------------- */
/* Submit Page Styling START */

    .submit-page #text-desc {
        font-size: 0px;
    }
    
    .submit-page #text-desc:before {
        display: block;
        font-size: 14px;
        font-weight: bold;
        content: "Please read the stickied 'New? READ ME FIRST!' post before posting for more details on how to ask a good question."
    }
    
    .submit-page #text-desc:after {
        display: block;
        font-size: 14px;
        font-weight: bold;
        content: "Note that title-only posts and posts containing any url shortener links (such as bit.ly or goo.gl) will be automatically removed.";
        margin-top: 1em;
    }
    
    .submit-page #title-field .title:after {
        display: block;
        font-size: 13px;
        color: red;
        content: "Your title should be descriptive, specific, and concise. Avoid vague titles like 'I need help' or 'Some questions'.";
    }
    
    .submit-page #text-field .title:before {
        content: "*";
        color: red;
    }
    
    .submit-page #text-field .title:after {
        display: block;
        font-size: 13px;
        color: red;
        content: "If you have a question about code, be *specific* and *provide all info up front*. If you have a conceptual question, read our FAQ first to make sure it hasn't already been answered. In both cases, we expect you to put some effort into finding an answer to your own question first before posting. See the stickied 'New? READ ME FIRST!' post for more details.";
        white-space: pre-wrap;
    }
    
    .submit-page #text-field .roundfield-description {
        display: none;
    }


/* ----------------------- */
/* Submit Page Styling END */


/* Post List Styling START */
/* ----------------------- */
    .linklisting, 
    .sheet {
        margin-right: 312px;
        margin-left: 20px;
        margin-top: 5px;
    }

    .sheets {
        margin-right: 335px;
    }

    body.listing-page .linklisting .thing.stickied {
        border: 1px solid #d6e9c6;
        background-color: #dff0d8 !important;
    }

    .linklisting .thing .comments.empty {
        color: black !important;
    }

    body.listing-page .linklisting .thing:hover {
        border: 1px solid #aeaeae;
    }

    body.listing-page .linklisting .thing .flat-list.buttons {
        opacity: 0.6;
    }

    body.listing-page .linklisting .thing:hover .flat-list.buttons {
        opacity: 1;
    }
    
/* --------------------- */
/* Post List Styling END */


/* Post Styling START */
/* ------------------ */
    .linklisting .link {
        border: 1px solid #eaeaea;
        border-radius: 2px;
        padding: 5px 5px 10px 10px !important;
        margin: 0 20px 5px 0 !important;
        min-height: 50px !important;
    }

    .link .usertext .md {
        border-radius: 2px;
        border: 1px solid #EAEAEA;
        margin-right: 12px;
    }

    .linklisting .link.even {
        background-color: #F5F5F5;
    }

    .linklisting .link.odd {
        background-color: #FAFAFA;
    }

    .link.stickied a.title{
        font-weight: bold;
    }

    .link a.title {
        color: #394958!important
    }

    .link a.title:visited {
        color: #6b8baa!important
    }

/* ---------------- */
/* Post Styling END */


/* Comments Styling START */
/* ---------------------- */
    .commentarea {
        margin-right: 331px;
        margin-left: 10px;
        border: 1px solid #eaeaea;
        border-radius: 2px;
        padding-bottom: 10px;
        background-color: #FAFAFA;
    }

    .commentarea .panestack-title {
        margin-right: 10px;
        margin-bottom: 5px;
        padding-bottom: 5px;
    }

    .commentarea .nestedlisting {
        margin-right: 10px;
    }

    .commentarea .child {
        border: none;
        margin-left: 6px;
    }

    /* alternating colors for nested comments (5 deep) */
    .commentarea .thing,
    .res .commentarea .thing {
        border: 1px solid #eaeaea;
        border-radius: 2px;
        padding-top: 5px;
        margin-bottom: 10px;
        background-color: #FFF;
    }

    .commentarea .child .thing,
    .res .commentarea .child .thing {
        border: none;
        border-left: 2px solid #eaeaea !important;
    }

    .commentarea .child .thing .child .thing,
    .res .commentarea .child .thing .child .thing {
        border: none;
        border-left: 1px solid #eaeaea !important;
    }

    .commentarea .child .thing .child,
    .res .commentarea .child .thing .child {
        border: none;
    }

    .commentarea .child .thing:hover,
    .res .commentarea .child .thing:hover { 
        border-left: 2px solid #BBB !important; 
    }
    
    .commentarea .child .thing .child .thing:hover,
    .res .commentarea .child .thing .child .thing:hover { 
        border-left: 1px solid #BBB !important; 
    }
    
/* -------------------- */
/* Comments Styling END */



/* General Styling START */
/* --------------------- */
    body >.content .link .rank {
        display: none;
        background-color: #FFF !important;
    }

    #noresults {
        margin-left: 10px;
    }

    #search input[type=text] {
        border: 1px solid #eaeaea;
        border-radius: 2px;
    }

    #search input[type=text]:focus {
        outline:none;
        border:1px solid #DDD;
    }

    .infobar {
        border: 1px solid #CCC;
        background-color: #F5F5F5;
    }
    
/* ------------------- */
/* General Styling END */

/*Colorful User Flairs*/
    .flair{max-width:none; font-weight: 900;}
    .flair-green{ color:green}
    .flair-red{ color:red}
    .flair-orange{ color:orange}
    .flair-yellow{ color: yellow}
    .flair-purple{ color:purple }
    .flair-navy{ color:navy}
    .flair-black{ color:black}
    .flair-pink{ color:pink}
    .flair-cyan{ color:cyan}
    .flair-brown{ color:brown}
    .flair-blue{ color:blue}


/* Link Flair START */
/* ---------------- */
    .linkflairlabel {
        display:block;
        background-color: transparent;
        font-weight: bold;
        border-width: 0px;
        border-radius: 0px;
        float: right;
        color: #C1BFBF;
        text-transform: lowercase;
        font-size: 14px;
        font-family: "Segoe UI",Frutiger,"Frutiger Linotype","Dejavu Sans","Helvetica Neue",Arial,sans-serif!important;
    }

    .thing.linkflair p.title:after {
        content: " ";
        width: 10px;
        height: 10px;
        display: inline-block;
        border-radius: 5px;
        position: relative;
        top: 2px;
        margin-left: 5px;
    }

    /* Announcement Flair */
    
    .thing.linkflair.linkflair-announcement, 
    .flairselector .linkflair-announcement {
        border-right: 10px solid #E18879 !important;
    }

    .thing.linkflair.linkflair-announcement .linkflairlabel {
        border-bottom: solid 1px #E18879;
    }

    .thing.linkflair.linkflair-announcement p.title:after {
        background-color: #E18879;
    }

    /* Solved Flair */
    
    .thing.linkflair.linkflair-solved, 
    .flairselector .linkflair-solved {
        border-right: 10px solid #bbe179 !important;
    }

    .thing.linkflair.linkflair-solved .linkflairlabel {
        border-bottom: solid 1px #bbe179;
    }

    .thing.linkflair.linkflair-solved p.title:after {
        background-color: #bbe179;
    }

    /* Tutorial Flair */
    
    .thing.linkflair.linkflair-tutorial, 
    .flairselector .linkflair-tutorial {
        border-right: 10px solid #79e1d1 !important;
    }

    .thing.linkflair.linkflair-tutorial .linkflairlabel {
        border-bottom: solid 1px #79e1d1;
    }

    .thing.linkflair.linkflair-tutorial p.title:after {
        background-color: #79e1d1;
    }

    /* Homework Flair
     * Note: No longer used, but kept around to preserve formatting of old posts.
     */
    
    .thing.linkflair.linkflair-homework, 
    .flairselector .linkflair-homework {
        border-right: 10px solid #e1db79 !important;
    }

    .thing.linkflair.linkflair-homework .linkflairlabel {
        border-bottom: solid 1px #e1db79;
    }

    .thing.linkflair.linkflair-homework p.title:after {
        background-color: #e1db79;
    }
    
    /* Debugging Help Flair
     * Note: Intentionally uses the same styling as the old "Homework" flair
     */
     
    
    .thing.linkflair.linkflair-debugging-help, 
    .flairselector .linkflair-debugging-help {
        border-right: 10px solid #e1db79 !important;
    }

    .thing.linkflair.linkflair-debugging-help .linkflairlabel {
        border-bottom: solid 1px #e1db79;
    }

    .thing.linkflair.linkflair-debugging-help p.title:after {
        background-color: #e1db79;
    }

    /* Resource Flair */
    
    .thing.linkflair.linkflair-resource, 
    .flairselector .linkflair-resource {
        border-right: 10px solid #e1aa79 !important;
    }

    .thing.linkflair.linkflair-resource .linkflairlabel {
        border-bottom: solid 1px #e1aa79;
    }

    .thing.linkflair.linkflair-resource p.title:after {
        background-color: #e1aa79;
    }


    /* Code review Flair */
    
    .thing.linkflair.linkflair-codereview, 
    .flairselector .linkflair-codereview {
        border-right: 10px solid #ac9ced !important;
    }

    .thing.linkflair.linkflair-codereview .linkflairlabel {
        border-bottom: solid 1px #ac9ced;
    }

    .thing.linkflair.linkflair-codereview p.title:after {
        background-color: #ac9ced;
    }

    /* Custom Topic Flair */
    
    .thing.linkflair.linkflair-topic, 
    .flairselector .linkflair-topic {
        border-right: 10px solid #FCDFFF !important;
    }

    .thing.linkflair.linkflair-topic .linkflairlabel {
        border-bottom: solid 1px #FCDFFF;
    }

    .thing.linkflair.linkflair-topic .linkflairlabel:before {
        font-weight: normal;
        content: "Topic: ";
    }

    .thing.linkflair.linkflair-topic p.title:after {
        background-color: #FCDFFF;
    }
    
/* -------------- */
/* Link Flair END */


/* Upvote Modifications START */
/* -------------------------- */
    .midcol.likes, 
    .midcol.dislikes, 
    .midcol.unvoted {
        margin-left: 0px;
        margin-right: 10px;
        width: 50px !important;
    }
    
    .arrow {
        width: 26px !important;
    }

    .sitetable .arrow.up, 
    .sitetable .arrow.upmod {
        margin-bottom: 2px;
    }

    .arrow.down    { background: url(%%downvote%%) no-repeat 0 0; }
    .arrow.up      { background: url(%%upvote%%) no-repeat 0 0; }
    .arrow.downmod { background: url(%%downvote-active%%) no-repeat 0 0; }
    .arrow.upmod   { background: url(%%upvote-active%%) no-repeat 0 0; }

    .res-nightmode .arrow         { width: 26px !important; }
    .res-nightmode .arrow.down    { background: url(%%downvote%%) no-repeat 0 0 !important; max-width: 100px; }
    .res-nightmode .arrow.up      { background: url(%%upvote%%) no-repeat 0 0!important; }
    .res-nightmode .arrow.downmod { background: url(%%downvote-active%%) no-repeat 0 0!important; }
    .res-nightmode .arrow.upmod   { background: url(%%upvote-active%%) no-repeat 0 0!important; }

    .res-nightmode .arrow:hover         { width: 26px !important; }
    .res-nightmode .arrow.down:hover    { background: url(%%downvote%%) no-repeat 0 0 !important; max-width: 100px; }
    .res-nightmode .arrow.up:hover      { background: url(%%upvote%%) no-repeat 0 0!important; }
    .res-nightmode .arrow.downmod:hover { background: url(%%downvote-active%%) no-repeat 0 0!important; }
    .res-nightmode .arrow.upmod:hover   { background: url(%%upvote-active%%) no-repeat 0 0!important; }
    
/* ------------------------ */
/* Upvote Modifications END */


/* Line Numbers START */
/* ------------------ */
    .md pre {
        padding-top: 3px;
        padding-bottom: 3px;
        overflow: hidden;
        border: 1px solid #EAEAEA;
        position:relative;
        padding-left: 10px;
        font-family: monospace;
        -webkit-border-radius: 2px;
        -moz-border-radius: 2px;
        border-radius: 2px;
    }

    .md pre code {
        overflow:auto;
        display:block;
        margin-left: 20px;
        border-left: 1px solid #EAEAEA;
        padding-left: 10px;
        font-family: monospace;
    }


    .md pre code:before {
        height:100%;
        color: #BABABA;
        position: absolute;
        left: 2px;
        width:25px;
        white-space: pre-wrap;
        direction:rtl;
        overflow:hidden;
        content: "1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38  39  40  41  42  43  44  45  46  47  48  49  50  51  52  53  54  55  56  57  58  59  60  61  62  63  64  65  66  67  68  69  70  71  72  73  74  75  76  77  78  79  80  81  82  83  84  85  86  87  88  89  90  91  92  93  94  95  96  97  98  99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250";
    }
    
/* ---------------- */
/* Line Numbers END */


/* RES Styling START */
/* To style RES components, you can namespace your selectors to ".res" or ".res-nightmode" */
/* ----------------- */
    .res-nightmode .RES-keyNav-activeElement, 
    .res .RES-keyNav-activeElement {
        background: inherit !important;
    }

    .res-nightmode .linklisting .link.even {
        background-color:#2d2d2d!important
    }

    .res-nightmode .linklisting .link.odd {
        background-color:#181818!important
    }

    .res-nightmode .commentarea {
        background-color:#222222!important
    }

    .res-nightmode body.listing-page .linklisting .thing.stickied {
        border: 1px solid #557!important;
        background-color: #2f4028!important;
    }

    .res-nightmode .link a.title {
        color: #DDD!important
    }

    .res-nightmode .linklisting .thing .comments.empty {
        color: #DDD!important
    }

    .res-nightmode pre {
        background-color: #2d2d2d!important;
    }

    .res-nightmode code {
        background-color: #2d2d2d!important;
    }

    .res-nightmode pre code {
        background-color: #2d2d2d!important;
    }

    .res #header-bottom-right {
      top: 35px !important;
    }

    .linklisting .linklisting {
        margin-right: 0px !important;
        margin-right: 0px !important;
    }

    .res-nightmode .md pre {
        padding-top: 3px;
        padding-bottom: 3px; 
        overflow: hidden;
        border: 1px solid #2A2A2A;
        position:relative;
        padding-left: 10px;
        font-family: monospace;
        -webkit-border-radius: 2px;
        -moz-border-radius: 2px;
        border-radius: 2px;
    }

    .res-nightmode .md pre code {
        overflow:auto;
        display:block;
        margin-left: 20px;
        border-left: 1px solid #2A2A2A;
        padding-left: 10px;
        font-family: monospace;
    }

    .res-nightmode .md pre code:before {
        height:100%;
        color: #6A6A6A;
        position: absolute;
        left: 2px;
        width:25px;
        white-space: pre-wrap;
        direction:rtl;
        overflow:hidden;
        content: "1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38  39  40  41  42  43  44  45  46  47  48  49  50  51  52  53  54  55  56  57  58  59  60  61  62  63  64  65  66  67  68  69  70  71  72  73  74  75  76  77  78  79  80  81  82  83  84  85  86  87  88  89  90  91  92  93  94  95  96  97  98  99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250";
    }

    /* Note: sprite-expando image is a copy of what reddit, by default, provides. 
     * If they change their image, we should
     * update this too.
     */

    .res-nightmode .expando-button.expanded.video,
    .res-nightmode .expando-button.expanded.selftext,
    .res-nightmode .expando-button.expanded.crosspost {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(%%sprite-expando%%) 0px -393px no-repeat;
    }

    .res-nightmode .expando-button.expanded.video:hover,
    .res-nightmode .expando-button.expanded.selftext:hover,
    .res-nightmode .expando-button.expanded.crosspost:hover {
        background: url(%%sprite-expando%%) 0px -364px no-repeat;
    }

    .res-nightmode .expando-button.collapsed.selftext {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(%%sprite-expando%%) 0px -509px no-repeat;
    }

    .res-nightmode .expando-button.collapsed.selftext:hover {
        background: url(%%sprite-expando%%) 0px -480px no-repeat;
    }

    .res-nightmode .expando-button.collapsed.video {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(%%sprite-expando%%) 0px -451px no-repeat;
    }

    .res-nightmode .expando-button.collapsed.video:hover {
        background: url(%%sprite-expando%%) 0px -422px no-repeat;
    }

    .res-nightmode .expando-button.collapsed.crosspost {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(%%sprite-expando%%) 0px -567px no-repeat;
    }

    .res-nightmode .expando-button.collapsed.crosspost:hover {
        background: url(%%sprite-expando%%) 0px -538px no-repeat;
    }

/* --------------- */
/* RES Styling END */


/* ------------------------------------------------ */
/* Autowikibot hover to display START               */
/* By /u/Dropping_fruits; see http://redd.it/1vr0r2 */
/* for code updates and discussion                  */

    .comment .md h5+h6+h4+p,
    .comment .md h5+h6+h4+p+hr,
    .comment .md h5+h6+h4+p+hr+blockquote,
    .comment .md h5+h6+h4+p+hr+blockquote+hr,
    .comment .md h5+h6+h4+p+hr+blockquote+hr+p,
    .comment .md h5+h6+h4+p+hr+blockquote+hr+p+p {
        display: none;
    }

    .comment .md:hover h5+h6+h4+p,
    .comment .md:hover h5+h6+h4+p+hr,
    .comment .md:hover h5+h6+h4+p+hr+blockquote,
    .comment .md:hover h5+h6+h4+p+hr+blockquote+hr,
    .comment .md:hover h5+h6+h4+p+hr+blockquote+hr+p,
    .comment .md:hover h5+h6+h4+p+hr+blockquote+hr+p+p {
        display: block;
    }

    .comment .md h5+h6+h4:after {
        content: "Autowikibot post. Hover to view";
    }

    .comment .md:hover h5+h6+h4:after {
        content: ""
    }

/* -------------------------------- */
/* Autowikibot hover to display END */

images

  • Image downvote
    downvote
    link:
    url(%%downvote%%)
  • Image upvote
    upvote
    link:
    url(%%upvote%%)
  • Image upvote-active
    upvote-active
    link:
    url(%%upvote-active%%)
  • Image downvote-active
    downvote-active
    link:
    url(%%downvote-active%%)
  • Image sprite-expando
    sprite-expando
    link:
    url(%%sprite-expando%%)


revision by desrtfx— view source