MediaWiki:Common.css: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 581: Line 581:




/* REMOVES THE DUMB ZOOM-IN EFFECT WHEN HOVERING IMAGES. CODED VERY BAD CAUSE IMAGE IS RESTRICTED INTO A SMALL SPACE, SO THE ZOOM IN JUST DOES NOT ZOOM BUT CUT THE IMAGE MAKING IT NOT USEFUL TO ITS SCOPE */
   figure[typeof~='mw:File'] > a:first-child:hover:not( .lazy ):not( .new ) img,
   figure[typeof~='mw:File'] > a:first-child:hover:not( .lazy ):not( .new ) img,
   figure[typeof~='mw:File/Frameless'] > a:first-child:hover:not( .lazy ):not( .new ) img,
   figure[typeof~='mw:File/Frameless'] > a:first-child:hover:not( .lazy ):not( .new ) img,

Revision as of 14:10, 26 August 2024

/* CSS placed here will be applied to all skins */

.pro-table {
    background-color: #333333;
    border: 5px solid #000000;
    border-radius: 20px;
    padding: 3px;
    cellspacing: 2px;
    cellpadding: 2px;
    border-spacing: 5px 5px;
    color: white;
}

.pro-table-header {
    background-color: #1B1A1A;
    color: #FFB600;
    border-radius: 30px;
    border: 1px solid #000000;
    font-weight: bold;
    font-size: 125%;
    text-align: center;
    padding: 4px;
}

.pro-table-header-cell {
    padding: 7px;
    border: 3px solid #000000;
}

.pro-table-row {
    background-color: #DDD;
    color: #000000;
}

.divRow {
    display: table;
    width: 100%;
    text-align: center;
    table-layout: fixed; 
    border-spacing: 10px; 
}
.divColumn {
    display: table-cell;
    background-color: white; 
}

.circular-icon {
    width: 55px;
    height: 55px;
    border-radius: 35px;
    border: 3px solid #000000;
    background-color: white;
    text-align: center;
    padding: 5px;
    align: left;
}

.pro-table-cell {
    background-color: #666666;
    border-radius: 20px;
    border: 1px solid #000000;
    padding: 4px;
}

.informational-box {
margin-left: 15px;
margin-top: 5px;
margin-bottom: 5px;
cellspacing: 2px;
float: right;
text-align: center;
padding: 3px;
}

.top-align {
    vertical-align: top;
}

.middle-align {
    vertical-align: middle;
}

.tab {
  text-align: center;
}

.tab td {
  float: left;
  border: 1px solid {{#var:border}};
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
  border-radius: 25px 25px 1px 1px;
}

.tab td:hover {
  text-decoration: underline;
}

.tab td.active {
  background-color: {{#var:background}};
  font-weight: bold; 
  color: {{#var:border}};
}

.tabcontent {
  display: none;
  background-color: none;
  border: none;
  border-top: none;
}

#n-PRO-Wiki-Discord a {
    background-image: url("https://i.imgur.com/4TeLNLE.png");
    background-position: left;
    color: white !important;
    background-repeat: no-repeat;
    font-size: 10px;
    font-weight: bold;
    border-radius: 25px;
    border: 1px solid #2b44a1;
    background-color: #7289da;
    display: block;
    position: relative;
    padding-left: 32px;
    padding-bottom: 7px;
    padding-top: 7px;
    padding-right: 7px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    transition: 0.2s ease;
}

.collapsible span.collapsible-toggle {
    float: right;
}

.border-top-radius {
  border-top-right-radius: 25px;
  border-top-left-radius: 25px;
}

.border-bottom-radius {
  border-bottom-right-radius: 25px;
  border-bottom-left-radius: 25px;
}

colgroup {
  display: table-column-group;
}

col {
  display: table-column;
}

.4w td {
  width: 4%;
}




/* KEITA'S HOME PAGE */

.mw-parser-output .home-grid {
    display: grid;
    grid: auto-flow dense/repeat(auto-fit,minmax(18.75rem,1fr));
    grid-auto-rows: minmax(4.875rem,auto);
    grid-gap: var(--space-sm);
}


@media only screen and (max-width: 1030px) {
	.mw-parser-output .home-grid {
        row-gap: 1rem;
        column-gap: var(--space-sm);
        grid: auto-flow dense/repeat(auto-fit,minmax(28%,1fr));
        grid-auto-rows: minmax(4.875rem,auto);
	}
}

@media only screen and (max-width: 720px) {
	.mw-parser-output .home-grid {
        row-gap: 1rem;
        column-gap: var(--space-sm);
        grid: auto-flow dense/repeat(auto-fit,minmax(48%,1fr));
        grid-auto-rows: minmax(4.175rem,auto);
	}
}


.mw-parser-output .home-card {
    position: relative;
    padding: var(--space-md);
    background: var(--color-surface-1);
    border: 1px solid var(--border-color-base);
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.04), 0 3px 6px rgba(0,0,0,0.0575);
    font-size: 0.875rem;
}


.mw-parser-output .home-card--button a {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 0 var(--space-md);
    background: transparent;
    color: #fff;
    font-weight: 500;
}

.mw-parser-output .home-card__background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #242a31;
    border-radius: 8px;
}



.mw-parser-output .home-card.home-card--button {
    overflow: hidden;
    padding: 0;
    background: #242a31;
    border: 0;
}


.mw-parser-output .home-card__foreground {
    position: absolute;
    top: 40%;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xxs);
    color: #fff;
    line-height: var(--line-height-xs);
    pointer-events: none;
    font-size: 1.20rem;
    font-weight: 700;
}

.mw-parser-output .home-card__foreground2 {
    position: absolute;
    top: 50%;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xxs);
    color: #fff;
    line-height: var(--line-height-xs);
    pointer-events: none;
    font-size: 1.20rem;
    font-weight: 500;
}



.mw-parser-output .home-card--button .home-card__background a {
    padding: 0;
}


.mw-parser-output .home-card__background:after {
    position: absolute;
    pointer-events: none;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    background: linear-gradient(to right,#000,transparent 63%);
    content: "";
}

.mw-parser-output .home-card__foreground {
  
}

.mw-parser-output excavation > home-card__background img {
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: 100%;
}

.mw-parser-output .home-card__background img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}


/* TEST FOR 2ND IMAGE */

.mw-parser-output .home-card__background2 img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.mw-parser-output .home-card__background2 {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 8px;
}

.mw-parser-output .home-card__background2:after {
    position: absolute;
    pointer-events: none;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    background: linear-gradient(to right,#000,transparent 63%);
    content: "";
}


/* SIDE MENU AREA MAPS */

.table-container {
    width:420px;
    border-radius: 25px; 
    padding: 5px; 
    text-align: center;
}


.AreaMapName {
    border-radius: 25px; 
    font-weight: bold; 
    font-size: 20px;
}

.MapsInfoBox {
    text-align: center; 
    width: 100%; 
    padding: 6px; 
}

.LocationInfoBox {
    border-radius: 25px; 
}


.LocationHeader {
    margin-bottom: 5px; 
    font-weight: bold;
}

.CategoryInfoBox {
    border-radius: 25px; 
    margin: auto auto; 
}


.Table-CategoryInfoBox {
    width: 100%; 
    padding: 7px;
}

.CategoryHeaders {
    margin-bottom: 5px; 
    margin: auto auto; 
    font-weight: bold; 
    font-size: 18px;
}

.CategoryCell-CellContainer {
    border-radius: 25px; 
    padding: 5px;
}

.CategoryCell-Title {
    border-radius: 25px; 
    font-weight: bold; 
    padding: 3px; 
    margin-bottom: 7px;
}

.CategoryCell-ValueInfo {
    background-color: #FFFFFF; 
    border-radius: 25px; 
    padding: 3px;
}

.AdjacentMapsNorth {
    background-color:#FFFFFF; 
    border-radius: 100px 100px 1px 1px; 
    margin: auto auto; 
    padding: 5px;
}

.AdjacentMapsWest {
    background-color:#FFFFFF; 
    border-radius: 100px 1px 1px 100px; 
    padding: 5px;
}

.AdjacentMapsNameCenter {
    background-color:#FFFFFF; 
    margin: auto auto; 
    padding: 5px;
}

.AdjacentMapsEast {
    background-color:#FFFFFF; 
    border-radius: 1px 100px 100px 1px; 
    padding: 5px; 
}


.AdjacentMapsSouth {
    background-color:#FFFFFF; 
    border-radius: 1px 1px 100px 100px; 
    padding: 8px;
}



/* KEITA MENU CARD BUTTONS UPDATED */


.mw-parser-output .grid-menu {
    display:grid;
    max-width: 1080px;
    margin: 0 auto;
}

.mw-parser-output .menu__homepage {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}


.mw-parser-output .menu-homepage__cards {
    color: white;
    position:relative;
    display: grid;
    width: 350px;
    height: 90px;
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    transition: all .23s cubic-bezier(0.4, 0, 1, 1) !important;
    cursors: pointer;
}


.mw-parser-output .menu-homepage__cards:nth-child(1) {
    background-image: url(/images/4/42/Newtest.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mw-parser-output .menu-homepage__cards:nth-child(2) {
    background-image: url(/images/1/1f/Excavationcard2.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mw-parser-output .menu-homepage__cards:nth-child(3) {
    background-image: url(/images/5/50/Testdungeon3.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mw-parser-output .menu-homepage__cards:nth-child(4) {
    background-image: url(/images/b/b8/Eventform.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mw-parser-output .menu-homepage__cards:nth-child(5) {
    background-image: url(/images/0/07/Storywalkt.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mw-parser-output .menu-homepage__cards:nth-child(6) {
    background-image: url(/images/1/1a/Schooltest.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mw-parser-output .menu-homepage__cards::after {
    position:absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    background: linear-gradient(to right, #000 15%, transparent 70%);
    content: "";
    border-radius: 10px;
    cursor: pointer;
}

.mw-parser-output .menu-homepage__cards:hover,
.mw-parser-output .menu-homepage__cards:focus {
  box-shadow: 0 0.55em 0.5em -0.4em black;
  transform: translateY(-0.15em);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) { /* Tablet */
    .mw-parser-output .menu-homepage__cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        margin: 0 auto;
    }
}

@media (max-width: 480px) { /* Mobile */
    .mw-parser-output .menu-homepage__cards {
        grid-template-columns: 1fr;
        margin: 0 auto;
    }
}

.mw-parser-output .card-category {
    z-index: 3;
    color:white;
    margin: 0;
    position: absolute;
    top: 55%;
    padding-left: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1.243rem;
    font-weight: 700;
    transition: all .30s cubic-bezier(0.4, 0, 1, 1) !important;
}

.menu-headers {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    font-weight: bold;
    margin-block-end: 0;
    color: black;
}

.wiki-home-introduction {
    margin-block-start: 0;
    margin-block-end: 0;
    text-align: center;
}

.first-header {
    margin-top: 1.5rem;
}


/* REMOVES THE DUMB ZOOM-IN EFFECT WHEN HOVERING IMAGES. CODED VERY BAD CAUSE IMAGE IS RESTRICTED INTO A SMALL SPACE, SO THE ZOOM IN JUST DOES NOT ZOOM BUT CUT THE IMAGE MAKING IT NOT USEFUL TO ITS SCOPE */
  figure[typeof~='mw:File'] > a:first-child:hover:not( .lazy ):not( .new ) img,
  figure[typeof~='mw:File/Frameless'] > a:first-child:hover:not( .lazy ):not( .new ) img,
  figure[typeof~='mw:File/Thumb'] > a:first-child:hover:not( .lazy ):not( .new ) img,
  figure[typeof~='mw:File/Frame'] > a:first-child:hover:not( .lazy ):not( .new ) img,
  figure[typeof~='mw:File'] > a:first-child:hover:not( .lazy ):not( .new ) source,
  figure[typeof~='mw:File/Frameless'] > a:first-child:hover:not( .lazy ):not( .new ) source,
  figure[typeof~='mw:File/Thumb'] > a:first-child:hover:not( .lazy ):not( .new ) source,
  figure[typeof~='mw:File/Frame'] > a:first-child:hover:not( .lazy ):not( .new ) source {
    transform: none !important;
  }