MediaWiki:Common.css: Difference between revisions

From The Political Machine - Official Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 82: Line 82:


.card-name-text {
.card-name-text {
top: 40.5%; /* Adjust these values based on your layout */
top: 39.5%; /* Adjust these values based on your layout */
left: 11%;
left: 11%;
width: 75%;
width: 75%;
min-height: 35px;
color: white;
color: white;
text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
font-size: 1.25em;
font-size: 1.25em;
line-height: 1.2;
display: flex;
align-items: center;
justify-content: center;
}
}


.card-description-text {
.card-description-text {
left: 14%; /* Centering the box horizontally, adjust as necessary */
left: 14%; /* Centering the box horizontally, adjust as necessary */
top: 56%;
top: 53%;
width: 70%;
width: 70%;
font-size: 0.98em;
}
.main-page-category-left {
float: left;
padding-left: 10px;
padding-right: 15px;
width: calc(50% - 25px);
}
.main-page-category-right {
float: right;
padding-left: 15px;
padding-right: 10px;
width: calc(50% - 25px);
}
}

Latest revision as of 18:20, 3 April 2024

/* CSS placed here will be applied to all skins */
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }
body.page-Test_Main.action-view h1.firstHeading, body.page-Test_Main.action-submit h1.firstHeading { display: none; }

#p-logo { height: 250px; width: 160px; }

#p-logo a { height: 250px; width: 160px; }
div#mw-panel { padding-top: 2em; }

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 760px) { /* Adjust as needed */
  table, tbody, tr, td {
    display: block;
    width: 100%;
  }
}

.card-container {
  position: relative;
  width: 300px; /* Adjust to match your desired container width */
  height: 450px; /* Adjust to match your desired container height */
}

.card-container img {
  position: absolute;
  top: 0;
  left: 0;
}

.card-frame img {
  z-index: 1; /* Ensures the frame is at the bottom */
  width: 95%; /* Adjust to fit the container or as needed */
  height: 95%; /* Adjust to fit the container or as needed */
  padding-left: 5%;
  padding-top: 5%;
}

.card-main-art img {
  z-index: 2; /* Above the frame */
  width: 78%; /* Adjust based on your needs */
  padding-left: 13.5%;
  height: auto;
  transform: translateY(-4%);
}


.card-banner img {
  z-index: 3; /* Ensures the banner is at the top */
  width: 90%; /* Adjust based on your needs */
  height: auto; /* Maintain aspect ratio */
  padding-top: 57%;
  padding-left: 7.4%;
}

.card-cost img {
    z-index: 3; /* Ensures the banner is at the top */
    height: auto; /* Maintain aspect ratio */
  }
  
.card-text-box {
position: absolute;
padding: 10px;
border-radius: 5px;
z-index: 4;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-align: center;
/* Add more common styles here */
}

.card-cost-text {
top: 2%; /* Position from the top */
left: 6.5%; /* Position from the left */
color: white;
text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
font-size: 1.5em;
}

.card-name-text {
top: 39.5%; /* Adjust these values based on your layout */
left: 11%;
width: 75%;
min-height: 35px;
color: white;
text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
font-size: 1.25em;
line-height: 1.2;
display: flex;
align-items: center;
justify-content: center;
}

.card-description-text {
left: 14%; /* Centering the box horizontally, adjust as necessary */
top: 53%;
width: 70%;
font-size: 0.98em;
}

.main-page-category-left {
float: left;
padding-left: 10px;
padding-right: 15px;
width: calc(50% - 25px);
}

.main-page-category-right {
float: right;
padding-left: 15px;
padding-right: 10px;
width: calc(50% - 25px);
}