wikimedia/mediawiki-extensions-Wikibase

View on GitHub
view/resources/jquery/wikibase/themes/default/jquery.wikibase.entitytermsview.less

Summary

Maintainability
Test Coverage
/**
 * @license GNU GPL v2+
 * @author H. Snater < mediawiki@snater.com >
 */
.wikibase-entitytermsview {
    float: left;
    margin-bottom: 1em;
    position: relative;
    width: 100%;
}

.wikibase-entitytermsview .wikibase-entitytermsview-heading .wikibase-entitytermsview-heading-aliases ul {
    color: #72777d;
    margin: 0;
    word-wrap: break-word;
}

.wikibase-entitytermsview .wikibase-entitytermsview-heading .wikibase-entitytermsview-heading-aliases ul::after {
    content: '';
    clear: left;
    display: block;
}

.wikibase-entitytermsview .wikibase-entitytermsview-heading .wikibase-entitytermsview-heading-aliases li {
    display: block;
    float: left;
}

.wikibase-entitytermsview .wikibase-entitytermsview-heading .wikibase-entitytermsview-heading-aliases li::before {
    content: attr( data-aliases-separator );
    padding: 0 0.4em;
}

.wikibase-entitytermsview .wikibase-entitytermsview-heading .wikibase-entitytermsview-heading-aliases li:first-child::before {
    content: '';
    padding: 0;
}

.wikibase-entitytermsview .wikibase-entitytermsview-heading .wikibase-entitytermsview-heading-description {
    word-wrap: break-word;
}

.wikibase-entitytermsview .wikibase-entitytermsview-heading {
    margin-bottom: 1em;
}

.wikibase-entitytermsview .wikibase-entitytermsview-entitytermsforlanguagelistview-toggler {
    display: inline-block;
    margin-top: 0;
}

.wikibase-entitytermsview .wikibase-entitytermsview-entitytermsforlanguagelistview-configure {
    display: inline-block;
    font-size: 0.7em;
    margin-left: 0.4em;
    vertical-align: super;
}

@media print {
    .wikibase-entitytermsview .wikibase-entitytermsview-entitytermsforlanguagelistview-toggler {
        display: none;
    }

    .wikibase-entitytermsview .wikibase-entitytermsview-entitytermsforlanguagelistview-configure {
        display: none;
    }
}

.wikibase-entitytermsview .wikibase-entitytermsview-entitytermsforlanguagelistview-configure-hidden {
    display: none;
}

.wikibase-entitytermsview-entitytermsforlanguagelistview {
    /* Reserve space for the toggler to avoid the rest of the page jumping down when it loads in */
    margin-top: 2.6em;
}

.wikibase-entitytermsview-entitytermsforlanguagelistview-toggler ~ .wikibase-entitytermsview-entitytermsforlanguagelistview {
    /* Remove the reserve space when the toggler loaded in */
    margin-top: 0;
}

.wikibase-entitytermsview .wikibase-toolbar-container {
    width: auto;
    height: 100%;
}

.wikibase-entitytermsview .wikibase-toolbar-container .wikibase-toolbar-container {
    position: sticky;
    z-index: 2;
    background-color: #fff;
}

.wikibase-entitytermsview .wikibase-entitytermsview-heading-container > .wikibase-toolbar-container {
    float: right;
    margin-top: 1.9em;
    position: static;
}