MediaWiki:Common.css

From Hollywood in Pixels Wiki
Revision as of 08:42, September 14, 2021 by WikiVisor (talk | contribs)
Jump to navigation Jump to search

Note: After saving, 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: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* CSS placed here will be applied to all skins */

/* hide comments and references h2 */
/* remove unnecessary br */
.cdependent, .fileupload-container br {
	display: none;
}
/** CARDS */

@media screen and (min-width: 540px) and (max-width: 1024px) {
        .card-columns {
                columns: 2 !important;
        }
        .card-group > .card, .card-deck .card {
                flex: 1 0 50% !important;
        }
}
@media screen and (min-width: 1024px) {
        .card-columns {
                columns: 3 !important;
        }
        .card-group > .card, .card-deck .card {
                flex: 1 0 30% !important;
        }
}

/** FORM CREATE */

[name="createbox"] p, 
.pfFormInputWrapper {
	margin: 0 !important;
}

/** INFOBOX */

.infobox {
	border: 1px solid #dfdfdf;
	border-radius: 3px;
	background-color: #f8f9fa;
    clear: right;
    color: black;
    float: right;
    font-size: .92em;
    line-height: 1.4em;
    margin: 0.5em 0 2em 1em;
    max-width: 400px;
    padding-bottom: 1em;
}

.infobox-image img {
    height: auto;
    width: 100% !important;
}

.infobox-image-caption {
    color: darkcyan;
    font-size: 0.97em;
    padding: 0 1em;
    text-align: center;
}

@media screen and ( max-width: 720px ) {
.infobox {
    max-width: unset;
    width: 100% !important;
}
}

.infobox-header {
    background: #f0f0f0;
    border: 1px solid #ddd;
    font-weight: bold;
    font-size: 1.2em;
    margin: .2em;
    margin-top: .75em;
    text-align: center;
}

.infobox-header:first-of-type {
    margin-top: .2em;
}

.infobox > div > div > div:first-of-type {
    color: #444;
    font-style: italic;
    font-size: .9em;
    line-height: 1.3em;
    padding-top: 10px;
    text-align: right;
    width: 90px;
}

.infobox > div > div > div:last-of-type {
    padding-left: 16px;
    vertical-align: text-top;
}

/** TILES */

.tile-halves {
 display:flex;
 flex-flow:row wrap;
 border: 1px solid rgba(0,0,0,.15);
 background: #ffffff;
 /* box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,.5); */
}
.tile-top.tile-image {
 display:flex;
 align-items:center;
 background-color:#949eaa;
 overflow:hidden;
 padding:0;
 height:11vw;
 max-height:11em;
 border-top-left-radius: 3px;
 border-top-right-radius: 3px;
}
.tile-top.tile-image a {
 width:100%
}
.tile-top.tile-image img {
 width:100%;
 height:auto;
 transition:0.4s ease-out
}
.mainpage-recent-updates .tile-halves {
 flex:1;
 align-content:flex-start;
}
.mainpage-recent-updates .tile-halves:hover .tile-top img,
.block-right .tile-halves:hover .tile-top img {
 transform:scale(1.04)
}
.mainpage-recent-updates .tile-halves:last-child {
}
body.wgl-readermode .mainpage-recent-updates .tile-image {
 max-height:10.5em
}
.mainpage-recent-updates .tile-bottom.link-button a {
 text-align:left;
}
.mainpage-recent-updates h2 {
 margin:-0.5em 0 0.3em
}
.mainpage-recent-updates p:not(.byline) {
 /* font-size:0.9em; */
 line-height:1.45em;
 color:#444e5a
}
.mainpage-recent-updates .jagex-promotion .byline {
 color:#855cd8
}
@media only screen and (max-width:767px) {
 .mainpage-recent-updates .tile-row, .tile-row {
 	flex-flow: column wrap !important;
 }
 .mainpage-recent-updates .tile-halves {
  margin-bottom: 1rem;
  width: 100%;
 }
 .dataTables_wrapper .top {
	flex-direction: column;
 }
}

#pfForm .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f0f0f0;
    border: 0;
    border-radius: 2px;
    padding: 4px 16px 4px 8px;
}
#pfForm .select2-container .select2-selection--single .select2-selection__rendered {
    display: flex;
    font-size: 1rem;
    background: #f0f0f0 !important;
    border-radius: 2px;
    padding: 2px 16px 2px 8px;
    margin-left: 4px;
}
#pfForm .select2-selection {
    padding: 4px 0 !important;
}
#pfForm .select2-container--default .select2-selection--single .select2-selection__clear {
    color: #999;
    margin-right: .25rem;
}

/* DataTables */

.dataTables_wrapper .top {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: baseline;
}
.pagination * {
    border: 0;
}
table.dataTable > thead .sorting::before, table.dataTable > thead .sorting::after, 
table.dataTable > thead .sorting_asc::before, table.dataTable > thead .sorting_asc::after, 
table.dataTable > thead .sorting_desc::before, table.dataTable > thead .sorting_desc::after, 
table.dataTable > thead .sorting_asc_disabled::before, table.dataTable > thead .sorting_asc_disabled::after, 
table.dataTable > thead .sorting_desc_disabled::before, table.dataTable > thead .sorting_desc_disabled::after {
    bottom: 0.5rem;
}
.smwtable-clean tr > th {
    padding: 8px 20px 8px 0 !important;
}
thead input {
	width: 100%;
}

element {
}
div.dtsp-panesContainer div.dtsp-searchPane div.dtsp-topRow {
    margin: .5em 0;
}
div.dtsp-topRow.dtsp-bordered, div.dtsp-topRow.dtsp-bordered:hover {
	border: 0;
}
div.dtsb-searchBuilder div.dtsb-group {
	float: left !important;
	clear: both;
}
input.dtsb-input {
	font-size: 1em;
}