MediaWiki:Common.css: Difference between revisions

From e-girl wiki
No edit summary
Tags: Mobile edit Mobile web edit
 
No edit summary
 
Line 261: Line 261:
     width: 100%;
     width: 100%;
     height: 100%;
     height: 100%;
}
/* Ensure that the Main Page link is never styled as visited */
a[href="https://egirl.wiki/Main_Page"]:visited {
    color: inherit; /* Inherit the color from the unvisited state */
    pointer-events: none; /* Disable the visited state interaction */
}
}

Latest revision as of 04:53, 18 August 2024

/* 
CSS placed here will be applied to all skins.
This file includes custom styles specifically for the Main Page and general layout improvements.
*/

/* Custom styles for the Main Page */

/* Header and Subheader Styles */
body.page-Main_Page #content #firstHeading,
body.page-Main_Page #content #siteSub {
    border-bottom: 2px solid #AAAAAA;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Add the crown before the "e-girl wiki" text. */
.branding-box a span::before {
    content: "♕";
    font-size: 1.5em; /* Adjust size as needed */
    vertical-align: middle;
    margin-right: 3px; /* Adjust spacing as needed */
    position: relative;
    top: -2px; /* Adjust vertical alignment as needed */
}

/* Hide the header only on the Main Page */
body.page-Main_Page .mw-body-header.vector-page-titlebar {
    display: none;
}

/* Custom Front Page Layout */


/* Header Welcome Fix */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: inline;
  }
}
/* Header Welcome Fix */
@media (min-width: 769px) {
  .desktop-only {
    display: inline;
  }
  .mobile-only {
    display: none;
  }
}


/* Container for the front page layout */
.front-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* Heading style for the front page */
.front-page-heading {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

/* Content area for the front page */
.front-page-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 20px;
}

/* General flex container styling */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* General flex item styling */
.flex-item {
    flex-grow: 1;
    text-align: center;
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
    .flex-item {
        flex: 0 0 100%; /* Make each item take full width on small screens */
        margin-bottom: 10px; /* Optional: Add some space between items */
    }

    .flex-container {
        flex-direction: column; /* Stack items vertically */
    }

    .hide-on-mobile {
        display: none; /* Hide this item on small screens */
    }

    /* Hide the header only on the Main Page (repeated for mobile) */
    body.page-Main_Page .mw-body-header.vector-page-titlebar {
        display: none;
    }
}

/* Box styling for sections on the front page */
.front-page-box {
    flex: 1 1 45%; /* Adjust the width as needed */
    min-width: 300px;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

/* Bottom section styling for the front page */
.front-page-bottom {
    width: 100%;
    margin-top: 20px;
}

/* Infobox styling for responsive layout */
.infobox {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* Link styling for certain custom links */
.haxLinks a { 
    color: #00cc00; 
}

/* Toggle styling for collapsible sections */
.hiddentext {
    display: none;
}

.showhidetext {
    color: #0645ad;
    cursor: pointer;
}

.showhidetext,
.collapsibletoggle {
    -khtml-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.showhidetext:hover {
    text-decoration: underline;
}

.showhidetext:active {
    color: #faa700;
}

/* Fix for problem with floating edit bottom and floating thumbnails */
h1, h2, h3, h4, h5, h6 {
    overflow: hidden;
    word-wrap: break-word;
}

/* Image thumbnail styling */
.thumb {
    border-color: transparent;
}

/* Code block styling */
pre {
    white-space: pre-wrap;
}

/* Gallery styling */
table.gallery {
    border: 1px solid #ccc;
    margin: 2px;
    padding: 2px;
    background-color: white;
}

table.gallery tr {
    vertical-align: top;
}

table.gallery td {
    vertical-align: top;
    background-color: #f9f9f9;
    border: solid 2px white;
}

table.gallery td.galleryheader {
    text-align: center;
    font-weight: bold;
}

table.gallery caption {
    font-weight: bold;
}

div.gallerybox {
    margin: 2px;
}

div.gallerybox div.thumb {
    text-align: center;
    border: 1px solid #ccc;
    margin: 2px;
}

div.gallerytext {
    overflow: hidden;
    font-size: 94%;
    padding: 2px 4px;
}

/* Ensure collapsible elements are styled correctly */
.mw-collapsible .mw-collapsible-content {
    display: none;
}

.mw-collapsible.mw-collapsed .mw-collapsible-content {
    display: none !important;
}

.mw-collapsible-toggle {
    cursor: pointer;
    color: #0066cc;
    text-decoration: none;
}

.mw-collapsible-toggle:hover {
    text-decoration: underline;
}

.responsive-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.responsive-video-container youtube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Ensure that the Main Page link is never styled as visited */
a[href="https://egirl.wiki/Main_Page"]:visited {
    color: inherit; /* Inherit the color from the unvisited state */
    pointer-events: none; /* Disable the visited state interaction */
}