Jump to content

Module:Navigation header/styles.css

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Harej (talk | contribs) at 03:45, 7 May 2023 (significant margin between navigation header and rest of content). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
.navigation-header {
    margin: 1em 0;
    box-sizing: border-box;
    clear: both;
    background: #fff;
}
.navigation-header-tabs ul {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center; /* noflex */
    margin-bottom: 4em;
}
.navigation-header-tabs #leadtab a {
    color: #fff;
}
.navigation-header-tabs #emergencytab {
    border-top: 0.5em solid red;
}
.navigation-header-tabs li {
    flex:1 1 0;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    background-color: inherit;
    padding: 1em;
    font-weight: bold;
    border-top: 0.2em solid #07015a;
    text-transform: uppercase;
}
.navigation-header-tabs li.selected {
    background-color: #f8f9fa;
    border-left: 0.5em solid #07015a;
}
.navigation-header-tabs li a {
    color:#36c;
}
.navigation-header-tabs .navigation-header-content {
    font-size: 1em;
    background-color: #07015a;
    border-bottom: 2px solid #07015a;
    padding: 1em;
}
.navigation-header-tabs .navigation-header-icon {
    display:inline-block;
    margin:0 0.5em 0 0;
    vertical-align:text-bottom;
}
.navigation-header-tabs .navigation-header-break {
    clear:both;
}

.navigation-header-tabs #leadtab {
	display:inline-block;
	color:#fff;
	background: #07015a;
}


@media (min-width:550px) {
    .navigation-header-tabs ul {
        flex-direction: row;
        padding: 0;
        margin-top: 0 !important; /* cancels out the sibling styling */
    }
    .navigation-header-tabs ul > li {
        display: inline-block; /* noflex */
        vertical-align:bottom; /* noflex */
        white-space: nowrap;
        width: auto;
        margin: .5em .5em 0 0;
        border-top: .5em solid #07015a;
        font-size: 1em;
    }
    .navigation-header-tabs li.selected {
        border-left: 0;
    }
}

@media (min-width:1000px) {
    .navigation-header-tabs ul > li {
        flex: 0 1 0;
    }
}