User:Tark/common.css

From the Portal Wiki
< User:Tark
Revision as of 14:23, 26 June 2023 by Tark (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/******* Start "scroll to top" button *******/
@keyframes tfwikiScrollUpFadeIn {
     from {
         opacity: 0;
    }
     to {
     	/* same as #tfwiki-scrollup */
         opacity: 0.7;
    }
}

 #tfwiki-scrollup {
     position: fixed;
     bottom: 24px;
     left: 18px;
     opacity: 0.7;
     cursor: pointer;
     display: none;
     width: 50px;
     height: 50px;
     animation: tfwikiScrollUpFadeIn 1s;
}

/******* End "scroll to top" button *******/

#pt-userpage a,
#pt-anonuserpage a,
#pt-login a {
	background-image: url(https://i2.theportalwiki.net/img/b/b4/Icon_Tiny_Cube.png) !important;
	background-position-y: 6px !important;
}


/* Code for div-based collapsing
 * From [[wikipedia:MediaWiki:Common.css]] */
div.NavFrame {
    margin: 0;
    padding: 4px;
    border: 1px solid #79542B;
    text-align: center;
    border-collapse: collapse;
    font-size: 95%;
}
div.NavFrame + div.NavFrame {
    border-top-style: none;
    border-top-style: hidden;
}
div.NavPic {
    background-color: #fff;
    margin: 0;
    padding: 2px;
    float: left;
}
div.NavFrame div.NavHead {
    height: 1.6em;
    font-weight: bold;
    background-color: #F3A957; /* Level 1 color */
    position: relative;
}
div.NavFrame p,
div.NavFrame div.NavContent,
div.NavFrame div.NavContent p {
    font-size: 100%;
}
div.NavEnd {
    margin: 0;
    padding: 0;
    line-height: 1px;
    clear: both;
}
a.NavToggle {
    position: absolute;
    top: 0;
    right: 3px;
    font-weight: normal;
    font-size: 90%;
}

/* End */
.collapsibleDiv {
    overflow: hidden;
}
.collapseButton {          /* 'show'/'hide' buttons created dynamically */
    float: right;          /* by the CollapsibleTables javascript in    */
    font-weight: normal;   /* [[MediaWiki:Common.js]]are styled here    */
    text-align: right;     /* so they can be customised.                */
    width: auto;
}
.navbox .collapseButton {  /* In navboxes, the show/hide button balances */
    width: 6em;            /* the vde links from [[Template:Tnavbar]],   */
}