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

Template:Main page/header/styles.css: Difference between revisions

Template page
(Inside created the page Template:Main page/header/styles.css using a non-default content model "CSS")
 
No edit summary
Line 1: Line 1:
.home-header {
        position: relative;
        margin-top: -1rem;
        margin-bottom: 2rem;
        padding-top: 1rem;
        line-height: var( --line-height-sm );
}


.home-header:before {
    content: """";
    position: absolute;
    top: 1rem;
    bottom: 4.75rem;
    left: 0;
    right: 0;
    opacity: 0.1;
    background-repeat: no-repeat;
    background-position: right;
    pointer-events: none;
}
.home-header__pretitle {
        margin-bottom: var( --space-xs );
    color: var( --color-base--subtle );
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
}
.home-header__title {
        margin: 0;
        font-size: 3rem;
        text-transform: uppercase;
        letter-spacing: 0.025em;
        line-height: 1;
}
.home-header__subtitle {
        margin-top: var( --space-xs );
        font-size: 0.875rem;
}
.home-header__search {
        padding: var( --space-md );
        margin-top: var( --space-lg );
        margin-bottom: var( --space-md );
        margin-left: auto;
        margin-right: auto;
        border: 1px solid;
        border-color: var( --border-color-base--darker );
        border-radius: var( --border-radius--pill );
        cursor: pointer;
        font-size: 0.875rem;
        font-weight: var( --font-weight-medium );
        text-align: center;
}
.home-header__search:hover {
        background-color: var( --background-color-quiet--hover );
}
.home-header__searchIcon img {
        margin-right: var( --space-md );
    opacity: var( --opacity-icon-base );
}
/* Fix vertical alignment problem */
.home-header__search .keyboard-key {
        display: inline;
        padding-top: 0.1em;
        padding-bottom: 0.1em;
}
html.skin-citizen-dark .home-header:before,
html.skin-citizen-dark .home-header__searchIcon img {
        filter: invert( 1 );
}
@media ( hover: none ) {
        .desktoponly {
                display: none;
        }
}

Revision as of 20:17, 14 May 2024

.home-header {
        position: relative;
        margin-top: -1rem;
        margin-bottom: 2rem;
        padding-top: 1rem;
        line-height: var( --line-height-sm );
}

.home-header:before {
    content: """";
    position: absolute;
    top: 1rem;
    bottom: 4.75rem;
    left: 0;
    right: 0;
    opacity: 0.1;
    background-repeat: no-repeat;
    background-position: right;
    pointer-events: none;
}

.home-header__pretitle {
        margin-bottom: var( --space-xs );
    color: var( --color-base--subtle );
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
}

.home-header__title {
        margin: 0;
        font-size: 3rem;
        text-transform: uppercase;
        letter-spacing: 0.025em;
        line-height: 1;
}

.home-header__subtitle {
        margin-top: var( --space-xs );
        font-size: 0.875rem;
}

.home-header__search {
        padding: var( --space-md );
        margin-top: var( --space-lg );
        margin-bottom: var( --space-md );
        margin-left: auto;
        margin-right: auto;
        border: 1px solid;
        border-color: var( --border-color-base--darker );
        border-radius: var( --border-radius--pill );
        cursor: pointer;
        font-size: 0.875rem;
        font-weight: var( --font-weight-medium );
        text-align: center;
}

.home-header__search:hover {
        background-color: var( --background-color-quiet--hover );
}

.home-header__searchIcon img {
        margin-right: var( --space-md );
    opacity: var( --opacity-icon-base );
}

/* Fix vertical alignment problem */
.home-header__search .keyboard-key {
        display: inline;
        padding-top: 0.1em;
        padding-bottom: 0.1em;
}

html.skin-citizen-dark .home-header:before,
html.skin-citizen-dark .home-header__searchIcon img {
        filter: invert( 1 );
}

@media ( hover: none ) {
        .desktoponly {
                display: none;
        }
}