Jump to content

⚠ Info: We are working on adding content to this platform.

✔ If you want to share your experience and be an active contributor to this Wiki platform, ✉ contact us

×

Template:Ai/infobox.css: Difference between revisions

From Idiosymbolia
Created page with "Infobox Container: .infobox { width: 300px; background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%); Dark gradient background: border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); color: #e2e8f0; Light text color: border: 1px solid rgba(255, 255, 255, 0.1); max-width: 90%; Ensure responsiveness on smaller screens: ..."
 
No edit summary
Line 1: Line 1:
/* Infobox Container */
/* Infobox Container */
        .infobox {
.infobox {
            width: 300px;
    width: 300px;
            background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%); /* Dark gradient background */
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%); /* Dark gradient background */
            border-radius: 12px;
    border-radius: 12px;
            overflow: hidden;
    overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            color: #e2e8f0; /* Light text color */
    color: #e2e8f0; /* Light text color */
            border: 1px solid rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
            max-width: 90%; /* Ensure responsiveness on smaller screens */
    margin: 1em auto; /* Center the infobox and add vertical margin */
        }
    float: right; /* Float to the right, common for infoboxes */
    clear: right; /* Clear any floats before it */
    font-size: 90%; /* Smaller font size for infobox content */
    line-height: 1.4;
    box-sizing: border-box; /* Include padding/border in element's total width */
}


        /* Header */
/* Header */
        .infobox-header {
.infobox-header {
            background-color: #4a5568; /* Slightly lighter dark header */
    background-color: #4a5568; /* Slightly lighter dark header */
            padding: 1rem; /* 16px */
    padding: 0.8em;
            text-align: center;
    text-align: center;
            font-size: 1.25rem; /* 20px */
    font-size: 1.2em;
            font-weight: bold; /* Equivalent to font-weight: 700 */
    font-weight: bold;
            color: #ffffff;
    color: #ffffff;
            border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        }
}


        /* Logo Section */
/* Logo Section */
        .infobox-logo {
.infobox-logo {
            padding: 1rem; /* 16px */
    padding: 0.8em;
            display: flex;
    display: flex;
            justify-content: center;
    justify-content: center;
            align-items: center;
    align-items: center;
            background-color: #2d3748; /* Darker background for logo */
    background-color: #2d3748; /* Darker background for logo */
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
}
        .infobox-logo img {
.infobox-logo img {
            max-width: 150px;
    max-width: 150px;
            height: auto;
    height: auto;
            border-radius: 8px; /* Slightly rounded logo */
    border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            display: block; /* Remove extra space below image */
    display: block;
        }
}


        /* Content Area */
/* Content Area */
        .infobox-content {
.infobox-content {
            padding: 1.25rem; /* 20px */
    padding: 1em;
        }
}


        /* Individual Row in Content */
/* Individual Row in Content */
        .infobox-row {
.infobox-row {
            display: flex;
    display: flex; /* Use flexbox for layout */
            justify-content: space-between;
    justify-content: space-between;
            align-items: flex-start;
    align-items: flex-start;
            margin-bottom: 0.75rem; /* 12px */
    margin-bottom: 0.6em;
            line-height: 1.4;
}
        }
.infobox-row:last-child {
    margin-bottom: 0; /* No margin for the last row */
}


        /* Label for each row */
/* Label for each row */
        .infobox-label {
.infobox-label {
            font-weight: bold; /* Equivalent to font-weight: 600 */
    font-weight: bold;
            color: #cbd5e0; /* Slightly darker label color */
    color: #cbd5e0;
            flex-shrink: 0;
    flex-shrink: 0; /* Prevent shrinking */
            margin-right: 1rem; /* 16px */
    margin-right: 0.8em;
            white-space: nowrap; /* Prevent label from wrapping */
    white-space: nowrap; /* Keep label on one line */
        }
}


        /* Value for each row */
/* Value for each row */
        .infobox-value {
.infobox-value {
            text-align: right;
    text-align: right;
            color: #e2e8f0;
    color: #e2e8f0;
            word-break: break-word; /* Allow long words to break */
    word-break: break-word; /* Allow long words to break */
        }
    flex-grow: 1; /* Allow value to take up remaining space */
        .infobox-value a {
}
            color: #63b3ed; /* Link color */
.infobox-value a {
            text-decoration: none;
    color: #63b3ed; /* Link color */
            transition: color 0.2s ease-in-out;
    text-decoration: none;
        }
}
        .infobox-value a:hover {
.infobox-value a:hover {
            color: #90cdf4; /* Lighter link color on hover */
    color: #90cdf4; /* Lighter link color on hover */
            text-decoration: underline;
    text-decoration: underline;
        }
}


        /* Footer */
/* Footer */
        .infobox-footer {
.infobox-footer {
            padding: 1rem; /* 16px */
    padding: 0.8em;
            text-align: center;
    text-align: center;
            font-size: 0.875rem; /* 14px */
    font-size: 0.9em;
            color: #a0aec0; /* Lighter gray for footer text */
    color: #a0aec0;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
            background-color: #2d3748;
    background-color: #2d3748;
         }
}
 
/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .infobox {
         width: 100%;
        float: none; /* Don't float on small screens */
        margin-left: auto;
        margin-right: auto;
    }
}

Revision as of 17:17, 3 August 2025

/* Infobox Container */
.infobox {
    width: 300px;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%); /* Dark gradient background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: #e2e8f0; /* Light text color */
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1em auto; /* Center the infobox and add vertical margin */
    float: right; /* Float to the right, common for infoboxes */
    clear: right; /* Clear any floats before it */
    font-size: 90%; /* Smaller font size for infobox content */
    line-height: 1.4;
    box-sizing: border-box; /* Include padding/border in element's total width */
}

/* Header */
.infobox-header {
    background-color: #4a5568; /* Slightly lighter dark header */
    padding: 0.8em;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Logo Section */
.infobox-logo {
    padding: 0.8em;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2d3748; /* Darker background for logo */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.infobox-logo img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: block;
}

/* Content Area */
.infobox-content {
    padding: 1em;
}

/* Individual Row in Content */
.infobox-row {
    display: flex; /* Use flexbox for layout */
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6em;
}
.infobox-row:last-child {
    margin-bottom: 0; /* No margin for the last row */
}

/* Label for each row */
.infobox-label {
    font-weight: bold;
    color: #cbd5e0;
    flex-shrink: 0; /* Prevent shrinking */
    margin-right: 0.8em;
    white-space: nowrap; /* Keep label on one line */
}

/* Value for each row */
.infobox-value {
    text-align: right;
    color: #e2e8f0;
    word-break: break-word; /* Allow long words to break */
    flex-grow: 1; /* Allow value to take up remaining space */
}
.infobox-value a {
    color: #63b3ed; /* Link color */
    text-decoration: none;
}
.infobox-value a:hover {
    color: #90cdf4; /* Lighter link color on hover */
    text-decoration: underline;
}

/* Footer */
.infobox-footer {
    padding: 0.8em;
    text-align: center;
    font-size: 0.9em;
    color: #a0aec0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #2d3748;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .infobox {
        width: 100%;
        float: none; /* Don't float on small screens */
        margin-left: auto;
        margin-right: auto;
    }
}