MediaWiki:Common.css: Difference between revisions

From Makerpedia

TCGmaker (talk | contribs)
No edit summary
No edit summary
 
(26 intermediate revisions by 4 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
body {
  --cc-spinner-size: 70px;
}


.cautionBox {
.cautionBox {
Line 27: Line 31:
}
}


/* big edit button that appears in bottom-right corner */
.big-edit-button {
.big-edit-button {
   position: fixed;
   position: fixed;
Line 32: Line 37:
   right: 2vh;
   right: 2vh;
   z-index: 100;
   z-index: 100;
   background-color: var(--medik);
   background-color: var(--medik); /* theme color; set in LocalSettings.php */
   color: white;
   color: white;
   border-radius: 5em;
   border-radius: 5em;
Line 42: Line 47:
}
}


/* insert pencil icon before text of big edit button */
.big-edit-button p::before {
.big-edit-button p::before {
   background-image: url("images/icons/edit.svg");
   background-image: url("images/icons/edit.svg");
Line 49: Line 55:
   background-size: 1.75em;
   background-size: 1.75em;
   padding: .25em 1em;
   padding: .25em 1em;
   filter: invert(100%) sepia(100%) saturate(2%) hue-rotate(141deg) brightness(103%) contrast(101%);
   filter: invert(1); /* change pencil icon from black to white */
}
}


.favorite {
.favorite {
   background-image: url("images/icons/edit.svg");
   background-image: url("images/likednt.png");
   position: fixed;
   background-size: contain;
   right: 1vw;
  float: right;
  top: 100px;
   right: 10px;
   z-index: 100;
   z-index: 100;
  border-radius: 5em;
  padding: 1em;
}
}


.unfavorite {
.unfavorite {
   background-image: url("images/icons/edit.svg");
   background-image: url("images/liked.png");
   position: fixed;
   background-size: contain;
   right: 1vw;
  float: right;
  top: 100px;
   right: 10px;
   z-index: 100;
   z-index: 100;
  border-radius: 5em;
  padding: 1em;
}
}


.gallery-container {
.gallery-container {
    column-count: 4;  
  display: flex;
    column-gap: 10px;  
  flex-direction: row;
    width: 100%;
  flex-wrap: wrap;
    max-width: 1200px;  
  justify-content: flex-start;
    margin: auto;  
  align-items: flex-start;
  min-height: 400px;
}
}
/*.gallery-container {
  width: 100%;
  display: grid;
  gap: 10px;
  grid-template: repeat(4, 1fr) / repeat(2, 1fr);
  grid-auto-flow: row dense; /* or 'row', 'row dense', 'column dense' */
}*/


.gallery-item {
.gallery-item {
     display: inline-block;
     width: 20%;
     width: 100%;  
    min-width:200px;
     margin-bottom: 10px;  
     max-width: 30vw;
     margin: 10px;
    flex-grow: 2;
}
}


Line 95: Line 120:
@media (max-width: 768px) { /* Adjust for mobile */
@media (max-width: 768px) { /* Adjust for mobile */
     .gallery-container {
     .gallery-container {
         grid-template-columns: repeat(3, 1fr);  
         column-count: 2;  
         padding-top: 20px;
         padding-top: 20px;
    }
    .gallery-caption {
        font-size: 12px;
    }
    .gallery-item {
      width: 80% !important;
      min-width:200px;
      max-width: 100vw !important;
      margin: 10px;
      flex-grow: 2;
     }
     }
}
}


.videoBox {
.videoBox {
     display: none;
     display: none;
}
@keyframes spinner {
  to {transform: rotate(360deg);}
}
.loadSpinner {
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--cc-spinner-size);
  height: var(--cc-spinner-size);
  margin-top: calc(-1 * var(--cc-spinner-size) / 2);
  margin-left: calc(-1 * var(--cc-spinner-size) / 2);
  border-radius: 50%;
  border: 2px solid #ccc;
  border-top-color: #000;
  animation: spinner .6s linear infinite;
  z-index: 1;
  display: block;
}
.loadSpinner.hide {
  display: none;
}
.cc-table {
  width:100%;
}
.cc-table tr:nth-child(2n) {
    background-color: var(--cc-blue);
    filter: brightness(1);
    color: white;
}
}

Latest revision as of 21:39, 20 March 2025

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

body {
  --cc-spinner-size: 70px;
}

.cautionBox {
  border: 1px solid #ddcc55;
  background-color: #ffedaa;
  padding: 1em;
  border-radius: .5vmin;
}

.warningBox {
  border: 1px solid #dd5555;
  background-color: #ffaaaa;
  padding: 1em;
  border-radius: .5vmin;
}

.introBox {
  border: 2px solid #f505f5;
  background-color: #c2cbde;
  border-radius: .5vmin;
  padding: 1em;
  padding-top: .25em;
}

.ytplayer {
  max-width: 90vw;
}

/* big edit button that appears in bottom-right corner */
.big-edit-button {
  position: fixed;
  bottom: 2vh;
  right: 2vh;
  z-index: 100;
  background-color: var(--medik); /* theme color; set in LocalSettings.php */
  color: white;
  border-radius: 5em;
  padding: 1em;
}

.big-edit-button p {
  margin: 0em;
}

/* insert pencil icon before text of big edit button */
.big-edit-button p::before {
  background-image: url("images/icons/edit.svg");
  background-repeat: no-repeat;
  content: '';
  display: inline;
  background-size: 1.75em;
  padding: .25em 1em;
  filter: invert(1); /* change pencil icon from black to white */
}

.favorite {
  background-image: url("images/likednt.png");
  background-size: contain;
  float: right;
  top: 100px;
  right: 10px;
  z-index: 100;
  border-radius: 5em;
  padding: 1em;
}

.unfavorite {
  background-image: url("images/liked.png");
  background-size: contain;
  float: right;
  top: 100px;
  right: 10px;
  z-index: 100;
  border-radius: 5em;
  padding: 1em;
}

.gallery-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 400px;
}

/*.gallery-container {
  width: 100%;
  display: grid;
  gap: 10px;
  grid-template: repeat(4, 1fr) / repeat(2, 1fr);
  grid-auto-flow: row dense; /* or 'row', 'row dense', 'column dense' */
}*/

.gallery-item {
    width: 20%;
    min-width:200px;
    max-width: 30vw;
    margin: 10px;
    flex-grow: 2;
}

.gallery-item img {
    width: 100%; 
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}


.gallery-caption {
    margin-top: 5px;
    font-size: 14px;
}


@media (max-width: 768px) { /* Adjust for mobile */
    .gallery-container {
        column-count: 2; 
        padding-top: 20px;
    }

    .gallery-caption {
        font-size: 12px; 
    }

    .gallery-item {
      width: 80% !important;
      min-width:200px;
      max-width: 100vw !important;
      margin: 10px;
      flex-grow: 2;
    }
}


.videoBox {
    display: none;
}


@keyframes spinner {
  to {transform: rotate(360deg);}
}
 
.loadSpinner {
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--cc-spinner-size);
  height: var(--cc-spinner-size);
  margin-top: calc(-1 * var(--cc-spinner-size) / 2);
  margin-left: calc(-1 * var(--cc-spinner-size) / 2);
  border-radius: 50%;
  border: 2px solid #ccc;
  border-top-color: #000;
  animation: spinner .6s linear infinite;
  z-index: 1;
  display: block;
}

.loadSpinner.hide {
  display: none;
}

.cc-table {
  width:100%;
}

.cc-table tr:nth-child(2n) {
    background-color: var(--cc-blue);
    filter: brightness(1);
    color: white;
}