Jump to content
🚛
Streamline your cross-border operation. From ACE & ACI eManifests to PARS tracking and U.S. In-Bond filing, BorderConnect is the fastest way to cross.

MediaWiki:Common.css: Difference between revisions

From BorderConnect Wiki
No edit summary
No edit summary
Line 192: Line 192:
.bc-card {
.bc-card {
     background: white;
     background: white;
    /* Removed the grey border, replaced with shadow and top-accent */
     border: none;  
     border: none;  
     border-top: 5px solid var(--bc-blue); /* The "Modern Border" you requested */
     border-top: 5px solid var(--bc-blue);
     border-radius: var(--bc-radius);
     border-radius: var(--bc-radius);
     padding: 30px;
     padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
     height: 100%;
     height: 100%;
     box-sizing: border-box;
     box-sizing: border-box;
     box-shadow: var(--bc-shadow); /* Makes it pop off the gray background */
     box-shadow: var(--bc-shadow);
    /* No transition needed since we removed the hover effect */
}
}


.bc-card:hover {
/* REMOVED: .bc-card:hover block so main cards stay static */
    transform: translateY(-4px);
    box-shadow: var(--bc-shadow-hover);
}


.bc-card h2 {
.bc-card h2 {
Line 217: Line 213:
     margin-bottom: 20px;
     margin-bottom: 20px;
}
}
.bc-subtle {
.bc-subtle {
     color: var(--bc-text-muted);
     color: var(--bc-text-muted);

Revision as of 16:54, 30 January 2026

/* --- BORDERCONNECT MODERN WIKI THEME (TEAL BRANDING) --- */

:root {
    --bc-blue: #266065;        /* BRAND COLOR: Teal */
    --bc-blue-dark: #163a3d;   /* DARKER SHADE: Deep Green/Slate */
    --bc-accent: #eef5f6;      /* Light background */
    
    /* ... keep your other variables the same ... */
    --bc-text: #2c3e50;
    --bc-text-muted: #546e7a;
    --bc-bg-page: #f4f7f9;
    --bc-radius: 8px;
    --bc-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --bc-shadow-hover: 0 10px 20px rgba(0,0,0,0.12);
}

/* Global Wrapper - Creates the "Surface" for cards to sit on */
.bc-wrap {
    max-width: 1240px;
    margin: 0 auto;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--bc-text);
    line-height: 1.6;
    background-color: var(--bc-bg-page); /* The light gray background you asked for */
    padding: 30px;
    border-radius: var(--bc-radius);
}

/* --- HERO SECTION --- */
.bc-hero {
    /* The Gradient: Starts with Brand Color, flows to Dark Slate */
    background: linear-gradient(120deg, var(--bc-blue) 0%, var(--bc-blue-dark) 100%);
    
    color: white;
    padding: 60px 30px;
    text-align: center;
    border-radius: var(--bc-radius);
    margin-bottom: 40px;
    
    /* Deep shadow + bottom border for 3D effect */
    box-shadow: 0 10px 25px rgba(38, 96, 101, 0.25); 
    border-bottom: 6px solid rgba(0,0,0,0.15);
}

.bc-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
    border: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bc-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Meta Data (Article & Image Counts) */
.bc-hero .bc-meta {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 25px;
    color: #e0f2f1; /* Soft light teal for normal text */
}

/* MAKE LINKS VISIBLE */
.bc-hero .bc-meta a {
    color: #ffffff !important; /* Pure white */
    font-weight: 700;          /* Bold */
    text-decoration: underline;
    text-underline-offset: 3px; /* Cleaner spacing for underline */
}

.bc-hero .bc-meta a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* --- HERO PILLS (Popular Articles) --- */
/* --- HERO PILLS (Popular Articles) --- */
.bc-hero-pills {
    display: flex;
    flex-wrap: wrap;
    /* Increased gap for better vertical and horizontal spacing */
    gap: 16px; 
    justify-content: center;
    max-width: 950px;
    margin: 35px auto 0 auto; /* More space above the pill section */
    line-height: 1.8; /* Prevents vertical crushing */
}

.bc-hero-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3); /* Slightly brighter border */
    color: white !important;
    padding: 8px 20px; /* Slightly larger padding for a cleaner look */
    border-radius: 50px; /* Fully rounded pill shape */
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    white-space: nowrap; /* Prevents text inside pills from wrapping weirdly */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.bc-hero-pill:hover {
    background: white;
    color: #266065 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    border-color: white;
}

/* Hide accidental breaks in pill container */
.bc-hero-pills br {
    display: none !important;
}

/* --- SEARCH BOX & BUTTON STYLING --- */

.bc-search-container {
    max-width: 650px;
    margin: 0 auto 10px auto;
    display: flex;       /* Aligns input and button side-by-side */
    gap: 10px;          /* Space between input and button */
    justify-content: center;
    align-items: center; /* Ensures vertical alignment */
}

/* The Search Input Field */
.bc-search-container input.mw-ui-input {
    padding: 16px 24px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-size: 1.1rem;
    width: 100%;
    flex: 1; /* Takes up remaining space */
}

/* The Search Button - FORCE OVERRIDE */
/* Targets every possible MediaWiki button variation */
.bc-search-container .mw-ui-button, 
.bc-search-container .mw-ui-progressive,
.bc-search-container input[type="submit"],
.bc-search-container button {
    background-color: #266065 !important; /* BRAND COLOR */
    color: white !important;
    border: none !important;
    border-radius: 50px !important;       /* Matches the round input */
    padding: 0 30px !important;           /* Wider click area */
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    text-shadow: none !important;
    height: auto !important;              /* Fixes rigid heights */
    min-height: 54px !important;          /* Matches input height */
}

/* Search Button Hover State */
.bc-search-container .mw-ui-button:hover,
.bc-search-container .mw-ui-progressive:hover,
.bc-search-container input[type="submit"]:hover,
.bc-search-container button:hover {
    background-color: #163a3d !important; /* Darker Brand Color */
    transform: translateY(-2px);          /* Slight lift effect */
    box-shadow: 0 6px 15px rgba(0,0,0,0.3) !important;
}

/* --- GRID SYSTEM --- */
.bc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.bc-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* --- CARDS --- */
.bc-card {
    background: white;
    border: none; 
    border-top: 5px solid var(--bc-blue);
    border-radius: var(--bc-radius);
    padding: 30px;
    height: 100%;
    box-sizing: border-box;
    box-shadow: var(--bc-shadow);
    /* No transition needed since we removed the hover effect */
}

/* REMOVED: .bc-card:hover block so main cards stay static */

.bc-card h2 {
    margin-top: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bc-blue);
    border-bottom: 2px solid var(--bc-accent);
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.bc-subtle {
    color: var(--bc-text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* --- BUTTONS / PILLS (New User & Common Tasks) --- */
.bc-btngrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.bc-btn {
    display: block;
    /* Light Teal Background (Tint of #266065) */
    background: #eef6f7; 
    padding: 14px 18px;
    border-radius: 6px;
    text-decoration: none;
    
    /* Dark Teal Text for Contrast */
    color: #1b4d52; 
    font-weight: 600;
    
    transition: all 0.2s ease;
    border: 1px solid #dae8ea;      /* Subtle border matching the tint */
    border-left: 5px solid #266065; /* Strong Brand Accent */
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.bc-btn:hover {
    /* Subtle darken on hover - No jarring color flip */
    background: #e0eeef; 
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    color: #0f2e32; /* Slightly darker text on hover */
    border-left-color: #163a3d;
}

.bc-btn strong {
    display: block;
    color: #266065; /* Brand color for the header text */
    font-size: 0.85rem;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
}

.bc-btn span {
    font-size: 1.05rem;
    color: #2c3e50; /* Dark Slate for the main link text */
}

/* --- ALERTS & CALLOUTS --- */
/* "Did You Know" boxes */
.bc-did-you-know {
    background: #fff8e1;
    border-left: 5px solid #ffc107;
    padding: 20px;
    margin-top: 25px;
    border-radius: 4px;
    font-size: 0.95rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.bc-did-you-know h3 {
    margin-top: 0;
    color: #b78a02;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Clean Lists */
.bc-cleanlist ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bc-cleanlist li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.05rem;
}

.bc-cleanlist li:last-child {
    border-bottom: none;
}

/* Links inside lists */
.bc-cleanlist a {
    color: var(--bc-blue);
    font-weight: 500;
    text-decoration: none;
}
.bc-cleanlist a:hover {
    text-decoration: underline;
    color: var(--bc-blue-dark);
}

/* --- LINK GRID (FOOTER) --- */
.bc-linkgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.bc-linktile a {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: var(--bc-radius);
    text-decoration: none;
    color: var(--bc-text);
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.bc-linktile a:hover {
    background: white;
    border-color: var(--bc-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bc-linkicon {
    font-size: 28px;
    margin-right: 15px;
}

.bc-linktext {
    display: flex;
    flex-direction: column;
}

.bc-linktitle {
    font-weight: 700;
    color: var(--bc-blue);
    font-size: 1.1rem;
}

.bc-linkdesc {
    font-size: 0.85rem;
    color: var(--bc-text-muted);
    margin-top: 4px;
}

/* --- VECTOR SKIN OVERRIDES (Logo/Header fixes) --- */
.mw-logo-wordmark,
.mw-logo-tagline {
     display: none !important;
}
 
.mw-logo a,
.mw-logo a * {
    pointer-events: none !important;
    cursor: default !important;
}
 
.vector-header {
    background: #fff;
     box-sizing: border-box !important;
}
 
.vector-header-container {
    max-width: var(--width-layout) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    padding-left: var(--padding-inline-page-container, 16px) !important;
    padding-right: var(--padding-inline-page-container, 16px) !important;
     box-sizing: border-box !important;
}
 
.mw-header {
    height: 90px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
}
 
.mw-header,
.vector-header,
.vector-header-container {
    min-height: unset !important;
}

.vector-header-start {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
 
#mw-panel-button,
.vector-main-menu-dropdown {
    margin-left: 0 !important;
}
 
.mw-logo {
     display: flex;
     align-items: center;
     height: 100%;
}

.mw-logo img,
#p-logo img {
     height: 135px !important;
    width: auto;
    max-height: none;
}

.mw-parser-output > p:empty,
.mw-parser-output > p > br:only-child {
     display: none;
}

.mw-parser-output > .bc-hero:first-child {
    margin-top: 0 !important;
}