Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 10: Line 10:
}
}


/* Card styling */
/* Card styling - Increased size slightly */
.card {
.card {
     color: black; /* Ensure text inside the card is black */
     color: black; /* Ensure text inside the card is black */
     width: 480px; /* Card width */
     width: 480px; /* Increased card width */
     height: 380px; /* Card height */
     height: 380px; /* Increased card height */
     background-color: #fff;
     background-color: #fff;
     border: 1px solid #ddd;
     border: 1px solid #ddd;
Line 21: Line 21:
     position: relative;
     position: relative;
     cursor: pointer;
     cursor: pointer;
     overflow: hidden; /* Prevent overflow of content */
     overflow: hidden;
    display: flex;
}
     flex-direction: column; /* Stack content inside vertically */
 
    justify-content: flex-start;
/* Specific rule for titles within the card */
    align-items: center;
.card h3, .card h4, .card p {
     color: black; /* Ensure all text inside card is black */
}
}


Line 35: Line 36:
     transition: transform 0.6s ease-in-out;
     transition: transform 0.6s ease-in-out;
     position: relative;
     position: relative;
    display: flex;
    flex-direction: column; /* Stack front and back vertically */
}
}


Line 58: Line 57:
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     gap: 10px;
     gap: 10px; /* Space between text boxes */
     justify-content: flex-start; /* Align text boxes at the top */
     justify-content: center;
     align-items: center;
     align-items: center;
    overflow-y: auto; /* Add scroll if content exceeds card height */
    padding: 15px; /* Add padding for better spacing */
}
}


Line 70: Line 67:
}
}


/* Text box inside the back of the card */
/* Text box on the back of the card */
.text-box {
.text-box {
     width: 90%;
     width: 90%;
Line 80: Line 77:
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
     display: flex;
     display: flex;
     flex-direction: column; /* Stack content inside vertically */
     flex-direction: column; /* Stack content vertically */
     gap: 10px;
     gap: 10px; /* Space between elements */
     justify-content: center; /* Center content inside */
     justify-content: flex-start; /* Align items from top to bottom */
     align-items: center;
     align-items: center;
    overflow-wrap: break-word; /* Prevent long text overflow */
    word-wrap: break-word; /* Compatibility for older browsers */
}
}


/* Title for the text box */
/* Title for the text box - Small and positioned at the top */
.text-box h4 {
.text-box h4 {
     font-size: 14px; /* Adjusted font size */
     font-size: 12px; /* Small font size */
     font-weight: bold;
     font-weight: bold;
     color: black; /* Ensure it's black */
     color: black; /* Make sure it's black */
     margin: 0; /* Remove default margins */
     margin-bottom: 5px; /* Slight space below the title */
     text-transform: uppercase; /* Cleaner look */
     text-transform: uppercase; /* Make it uppercase for a cleaner look */
    display: block;
}
}


/* Sub-panel container inside the text box */
/* Sub-panel styling */
.sub-panel-container {
.sub-panel-container {
     display: flex;
     display: flex;
     flex-direction: column; /* Stack sub-panels vertically */
     flex-direction: column; /* Align sub-panels vertically */
     gap: 10px; /* Space between sub-panels */
     gap: 10px; /* Space between sub-panels */
     width: 100%;
     width: 100%;
    max-height: 100%; /* Prevent overflow within text-box */
     padding: 10px;
    overflow-y: auto; /* Add scroll for sub-panels if necessary */
     padding: 5px;
     box-sizing: border-box;
     box-sizing: border-box;
}
}
Line 111: Line 105:
/* Individual sub-panel styling */
/* Individual sub-panel styling */
.sub-panel {
.sub-panel {
     font-size: 16px;
     font-size: 16px; /* Slightly larger text for better readability */
     color: black;
     color: black; /* Ensure sub-panel text is black */
     width: 100%; /* Fit within the container */
     width: 50%; /* Sub-panel width relative to parent */
     padding: 10px;
     padding: 10px;
     background-color: #ececec;
     background-color: #ececec;
Line 131: Line 125:
/* Buttons inside sub-panels */
/* Buttons inside sub-panels */
.sub-panel button {
.sub-panel button {
     width: 100%;
     width: 100%; /* Make the button fill the entire width of the sub-panel */
     height: 100%;
     height: 100%; /* Make the button fill the entire height of the sub-panel */
     background-color: #4CAF50; /* Green background */
     background-color: #4CAF50; /* Green background */
     color: white;
     color: white; /* White text */
     border: none;
     border: none; /* Remove border */
     border-radius: 4px;
     border-radius: 4px; /* Optional rounded corners */
     font-size: 14px;
    text-align: center; /* Center the text */
     display: flex;
     font-size: 14px; /* Font size */
     justify-content: center;
     display: flex; /* Flexbox for centering content */
     align-items: center;
     justify-content: center; /* Horizontally center the text */
     align-items: center; /* Vertically center the text */
     cursor: pointer;
     cursor: pointer;
}
}
Line 147: Line 142:
.sub-panel button:hover {
.sub-panel button:hover {
     background-color: #45a049; /* Darker green on hover */
     background-color: #45a049; /* Darker green on hover */
     transform: scale(1.05);
     transform: scale(1.05); /* Slightly enlarge on hover */
}
}
/* General container for all main cards */
 
.main-card-container {
 
     display: grid;
 
     grid-template-columns: repeat(2, 1fr); /* Two main cards per row */
/* Main container for the new layout */
     gap: 20px;
.new-main-container {
     display: flex;
     flex-wrap: wrap; /* Allow wrapping of cards */
     gap: 20px; /* Space between cards */
    justify-content: flex-start; /* Align cards horizontally from left */
     padding: 20px;
     padding: 20px;
     box-sizing: border-box;
     box-sizing: border-box;
    justify-items: center; /* Center cards horizontally */
    align-items: start; /* Align cards at the top vertically */
}
}


/* Main card styling */
/* Individual card container */
.main-card {
.new-card {
    color: black; /* Ensure text inside the main card is black */
    width: 480px; /* Main card width */
    height: 380px; /* Main card height */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    overflow: hidden; /* Prevent overflow of content */
     display: flex;
     display: flex;
     flex-direction: column; /* Stack content inside vertically */
     flex-direction: column; /* Stack content vertically */
     justify-content: flex-start;
     gap: 10px;
     align-items: center;
    width: 320px; /* Fixed width */
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
}


/* Main card title */
/* Title for each card */
.main-card h3 {
.new-card-header {
     font-size: 20px;
     font-size: 20px;
     font-weight: bold;
     font-weight: bold;
     padding: 10px;
     color: #333333;
     text-align: center;
     text-align: center;
    margin-bottom: 10px;
}
}


/* Sub-card container inside the main card */
/* Sub-panel container for vertical stacking */
.sub-card-wrapper {
.new-sub-panel-container {
     display: flex;
     display: flex;
     flex-direction: column; /* Stack the sub-cards vertically */
     flex-direction: column; /* Stack items vertically */
     gap: 10px;
     gap: 10px;
    padding: 15px;
    width: 100%;
}
}


/* Sub-card styling */
/* Individual sub-panel styling */
.sub-card {
.new-sub-panel {
     background-color: #f8f8f8;
     background-color: #f5f5f5;
    border: 1px solid #bbbbbb;
     padding: 10px;
     padding: 10px;
     border-radius: 8px;
     border-radius: 5px;
     border: 1px solid #ccc;
     text-align: center;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
     font-size: 16px;
    color: #333333;
     cursor: pointer;
     cursor: pointer;
    text-align: center;
     transition: transform 0.3s ease, background-color 0.3s ease;
     transition: background-color 0.3s ease, transform 0.3s ease;
}
}


/* Hover effect for sub-cards */
/* Hover effect for sub-panels */
.sub-card:hover {
.new-sub-panel:hover {
     background-color: #e0e0e0;
     background-color: #e0e0e0;
     transform: scale(1.05);
     transform: scale(1.05);
}
/* Content inside the sub-card - initially hidden */
.sub-card-content {
    display: none;
    padding: 10px;
    background-color: #ececec;
    border-radius: 8px;
    margin-top: 10px;
    text-align: left;
    color: #333;
}
/* Active class for showing sub-card content */
.sub-card.active .sub-card-content {
    display: block;
}
}

Revision as of 06:56, 30 December 2024

/* General container for all cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two cards per row */
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    justify-items: center; /* Center cards horizontally */
    align-items: start; /* Align cards at the top vertically */
}

/* Card styling - Increased size slightly */
.card {
    color: black; /* Ensure text inside the card is black */
    width: 480px; /* Increased card width */
    height: 380px; /* Increased card height */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Specific rule for titles within the card */
.card h3, .card h4, .card p {
    color: black; /* Ensure all text inside card is black */
}

/* Inner wrapper for flip effect */
.card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
    position: relative;
}

/* Front and back styling */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

/* Back face flipped */
.card-back {
    transform: rotateY(180deg);
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between text boxes */
    justify-content: center;
    align-items: center;
}

/* Flip effect */
.card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Text box on the back of the card */
.text-box {
    width: 90%;
    padding: 10px;
    background-color: #e9ecef; /* Light gray box */
    border-radius: 8px;
    border: 1px solid #ccc;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* Stack content vertically */
    gap: 10px; /* Space between elements */
    justify-content: flex-start; /* Align items from top to bottom */
    align-items: center;
}

/* Title for the text box - Small and positioned at the top */
.text-box h4 {
    font-size: 12px; /* Small font size */
    font-weight: bold;
    color: black; /* Make sure it's black */
    margin-bottom: 5px; /* Slight space below the title */
    text-transform: uppercase; /* Make it uppercase for a cleaner look */
    display: block;
}

/* Sub-panel styling */
.sub-panel-container {
    display: flex;
    flex-direction: column; /* Align sub-panels vertically */
    gap: 10px; /* Space between sub-panels */
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* Individual sub-panel styling */
.sub-panel {
    font-size: 16px; /* Slightly larger text for better readability */
    color: black; /* Ensure sub-panel text is black */
    width: 50%; /* Sub-panel width relative to parent */
    padding: 10px;
    background-color: #ececec;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hover effect for sub-panels */
.sub-panel:hover {
    background-color: #ddd;
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Buttons inside sub-panels */
.sub-panel button {
    width: 100%; /* Make the button fill the entire width of the sub-panel */
    height: 100%; /* Make the button fill the entire height of the sub-panel */
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    border: none; /* Remove border */
    border-radius: 4px; /* Optional rounded corners */
    text-align: center; /* Center the text */
    font-size: 14px; /* Font size */
    display: flex; /* Flexbox for centering content */
    justify-content: center; /* Horizontally center the text */
    align-items: center; /* Vertically center the text */
    cursor: pointer;
}

/* Hover effect for buttons */
.sub-panel button:hover {
    background-color: #45a049; /* Darker green on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
}



/* Main container for the new layout */
.new-main-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping of cards */
    gap: 20px; /* Space between cards */
    justify-content: flex-start; /* Align cards horizontally from left */
    padding: 20px;
    box-sizing: border-box;
}

/* Individual card container */
.new-card {
    display: flex;
    flex-direction: column; /* Stack content vertically */
    gap: 10px;
    width: 320px; /* Fixed width */
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Title for each card */
.new-card-header {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    text-align: center;
    margin-bottom: 10px;
}

/* Sub-panel container for vertical stacking */
.new-sub-panel-container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 10px;
}

/* Individual sub-panel styling */
.new-sub-panel {
    background-color: #f5f5f5;
    border: 1px solid #bbbbbb;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    color: #333333;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hover effect for sub-panels */
.new-sub-panel:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.