Difference between revisions of "MediaWiki:Common.css"

From Hackerspace ACKspace
Jump to: navigation, search
m (fixed whitespace problem)
m (undo whitespace problem (css selector not supported))
Line 49: Line 49:
 
}
 
}
  
div.car td:blank
+
div.car td:empty
 
{
 
{
 
     background-color: lightgreen;
 
     background-color: lightgreen;

Revision as of 17:28, 10 November 2016

/* CSS placed here will be applied to all skins */
/* silly car-table css because people just don't get it */
div.car
{
    display: inline-block;
    padding: 0 2em 0 4em;
    margin: 1em 0;
    position: relative;
}

div.car:before
{
    content:"";
    position: absolute;
    border-top: 0.5em solid black;
    border-bottom: 0.5em solid black;
    width: 3em;
    left: 3em;
    top: -0.5em;
    bottom: -0.5em;
    z-index: -1;
}

div.car:after
{
    content:"";
    position: absolute;
    border-top: 0.5em solid black;
    border-bottom: 0.5em solid black;
    width: 3em;
    right: 1em;
    top: -0.5em;
    bottom: -0.5em;
    z-index: -1;
}

div.car table
{
    box-sizing: border-box;
    border-collapse: collapse;
}

div.car td
{
    width: 6em;
    height: 2.5em;
    border: 0.05em solid black;
    box-sizing: border-box;
}

div.car td:empty
{
    background-color: lightgreen;
}

div.car table:before
{
    position: absolute;
    content: "";
    border: 0.05em solid black;
    border-right: none;
    border-radius: 50% 0 0 50%;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4em;
    box-sizing: border-box;
}

div.car table:after
{
    position: absolute;
    content: "";
    border: 0.05em solid black;
    border-left: none;
    border-radius: 0 0.5em 0.5em 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 2em;
    box-sizing: border-box;
}

/* remove the form edit from the Pizza-meet event page (the calculated dates break) */
.page-Pizza-meet #ca-form_edit{display:none}

/* Progress (processing animation) */
@keyframes progress
{
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}    

.processing
{
  background-size:100px 100px;
  background-image: linear-gradient(-45deg,
     rgba(0,0,0,0.05) 25%, rgba(0,0,0,0) 25%, 
     rgba(0,0,0,0) 50%, rgba(0,0,0,0.05) 50%,
     rgba(0,0,0,0.05) 75%, rgba(0,0,0,0) 75%);
  animation: progress 2s linear infinite;
}

/* disconnected state (fading) */
@keyframes connecting
{
  0% {opacity:0;}
  50% {opacity:0.5;}
  100% {opacity:0;}
}

.disconnected
{
  animation: connecting linear 1.4s infinite;
}

/* Calendar */
table.calendar
{
    border: 2px solid gray;
    border-collapse: collapse;
    background-color: #f9f9f9;
}

table.calendar th
{
    background-color: #f2f2f2;
}

table.calendar th,
table.calendar td
{
    border: 1px solid #aaa;
    padding: 0.2em 0.4em;
}

table.calendar .na
{
    opacity: 0.5;
}

table.calendar .now
{
    font-weight: bold;
}

table.calendar .title
{
    text-decoration: overline underline;
    cursor :help;
}

/* switch table */
table.switchtable tr td
{
    width: 72px;
}

canvas#logo,
canvas.winternight
{
    background: -moz-linear-gradient(top, rgba(0,0,68,0) 0%, rgba(0,0,68,1) 25%, rgba(0,0,68,1) 100%);
    background: -webkit-linear-gradient(top, rgba(0,0,68,0) 0%,rgba(0,0,68,1) 25%,rgba(0,0,68,1) 100%);
    background: linear-gradient(to bottom, rgba(0,0,68,0) 0%,rgba(0,0,68,1) 25%,rgba(0,0,68,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000044', endColorstr='#000044',GradientType=0 );
}

#nggyunglydngtaahy
{
background: #000 linear-gradient(95deg,rgba(113,3,180,0.8),rgba(83,42,230,0.8),rgba(38,149,220,0.8),rgba(65,204,180,0.8),rgba(255,207,123,0.8),rgba(254,129,0,0.8),rgba(197,52,81,0.8));
background-size: 400% 100%;

-webkit-animation: homeCycle 10s ease infinite;
animation: homeCycle 10s ease infinite;

border: medium solid #FF0;
padding-top: 5px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px;

color: #FFF;
text-align: center;
}

@-webkit-keyframes homeCycle
{
    0% {background-position: 0% 50%}
    50% {background-position: 100% 50%}
    100% {background-position: 0% 50%}
} 

@keyframes homeCycle
{
    0% {background-position: 0% 50%}
    50% {background-position: 100% 50%}
    100% {background-position: 0% 50%}
}

/* Hide main page heading */
body.page-Main_Page h1.firstHeading { display: none; }

/* reserve extra space for transcluded (featured) page headers */
body.page-Main_Page h6 { font-size: 130%; padding-top: 2em; margin-top: 1em; border-top: 1px solid #ddd; }

/* shadow under iframes */
iframe
{
    -moz-box-shadow: 3px 3px 4px #000;
    -webkit-box-shadow: 3px 3px 4px rgba(0,0,0,0.2);
    box-shadow: 3px 3px 4px rgba(0,0,0,0.2);
}

/* get rid of some ugly mediawiki styling */
#mw-head-base,
#content,
#footer,
div.vectorTabs,
div.vectorTabs ul li,
div.vectorTabs li a
{
    background-image: none;
}

div.vectorTabs ul li:hover
{
    background-color: #f9f9f9;
}

div.vectorTabs li a,
div.vectorTabs li a span,
#mw-panel div.portal div.body ul li a,
#mw-panel div.portal div.body ul li a:visited
{
    color: #333;
}

div.vectorTabs li a:hover,
div.vectorTabs li a:hover span,
#mw-panel div.portal div.body ul li a:hover,
#mw-panel div.portal div.body ul li a:focus
{
    color: #633;
}

div.vectorTabs li a:hover,
div.vectorTabs li a:hover span
{
    margin-top: 0.05em;
}

#mw-panel div.portal div.body ul li a,
#mw-panel div.portal div.body ul li a:visited
{
    text-decoration: none;
    display: block;
    line-height: 1.2em;
    padding: 0.6em;
    border-radius: 5px;
}

#mw-panel div.portal h5
{
    text-shadow: 1px 1px 3px rgba(150, 150, 150, 0.3);
    font-size: 85%;
}

#mw-panel div.portal div.body ul li a:hover,
#mw-panel div.portal div.body ul li a:focus
{
    background-color: #f0eeee;
    padding-left: 0.65em;
}

/* avoid icon collision */
a.feedlink
{
    background-position: right 10px center;
}

/* table strikeout/done feature */
table.wikitable
{
    empty-cells: show;
}

table.wikitable td
{
    position: relative;
}


table.wikitable tr.strikeout,
table.wikitable tr.done,
table.wikitable td.na
{
    opacity: 0.4;
}

table.wikitable tr.strikeout td:before,
table.wikitable tr.done td:before
{
    content: " ";
    position: absolute;
    top: 50%;
    left: 0;
    border-bottom: 1px solid #111;
    width: 100%;
}

table td.hl-red
{
    background-color: rgba( 255, 0, 0, 0.2 );
}

table td.hl-green
{
    background-color: rgba( 0, 255, 0, 0.2 );
}

table td.hl-blue
{
    background-color: rgba( 0, 0, 255, 0.2 );
}

table td.hl-yellow
{
    background-color: rgba( 255, 255, 0, 0.2 );
}

table td.hl-purple
{
    background-color: rgba( 255, 0, 255, 0.2 );
}

table td.hl-cyan
{
    background-color: rgba( 0, 255, 255, 0.2 );
}

/* button style */
.button
{
    line-height: 300%;
}

.button a
{
    padding: 10px;
    border:2px outset #eee;
    border-radius: 6px;
    background-color: #fefefe;
    font-weight: bold;
    text-decoration: none;
}

.button:hover a
{
    background-color: #eee;
    /*padding: 11px 9px 9px 11px;*/
}