wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
Test Coverage
/**
 * @license GNU GPL v2+
 * @author H. Snater < mediawiki@snater.com >
 */

.wikibase-sitelinklistview .wikibase-sitelinklistview-listview {
    line-height: 1;
    list-style: outside none none;
    margin: 0 0 0 10px;
    clear: both;
}

.wikibase-sitelinklistview .wikibase-sitelinklistview-listview > * {
    margin: 1px 0;
}

/***** sitelinkview in sitelinklistview *****/

.wikibase-sitelinklistview .wikibase-sitelinkview {
    clear: both;
    float: left;
    line-height: 1.2;
    width: 100%;
}

.wikibase-sitelinklistview .wikibase-sitelinkview .wikibase-sitelinkview-siteid-container {
    background: #eaecf0;
    border: 1px solid #c8ccd1;
    display: table-cell;
    line-height: 1.5;
    padding-left: 0.2em;
    padding-right: 0;
    vertical-align: middle;
}

.wikibase-sitelinklistview .wikibase-sitelinkview .wikibase-sitelinkview-siteid-container .wikibase-sitelinkview-siteid {
    background: none;
    display: inline-block;
    min-width: 1.5em;
    padding: 0 0.2em 0 0;
    text-align: center;
}

.wikibase-sitelinklistview .wikibase-sitelinkview .wikibase-sitelinkview-link {
    display: table-cell;
    padding-left: 0.4em;
    vertical-align: middle;
    word-break: break-all; /* Break in Firefox if no hyphenation data is available */
}

.wikibase-sitelinklistview .wikibase-sitelinkview .wikibase-sitelinkview-link .wikibase-sitelinkview-page {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    /* WebKit supports non-standard "word-break: break-word" for compatibility.
     * https://miketaylr.com/posts/2014/01/word-break-break-word.html */
    word-break: break-word;
    word-wrap: break-word;
}

/* Edit mode */

.wikibase-sitelinklistview .wikibase-sitelinkview.wb-edit {
    white-space: nowrap;
}

.wikibase-sitelinklistview .wikibase-sitelinkview.wb-edit .wikibase-sitelinkview-siteid-container {
    display: inline-block;
}

.wikibase-sitelinklistview .wikibase-sitelinkview.wb-edit .wikibase-sitelinkview-link {
    display: inline;
}

.wikibase-sitelinklistview .wikibase-sitelinkview.wb-edit .wikibase-sitelinkview-link .wikibase-sitelinkview-page {
    /* Must reset non-standard WebKit value to avoid render issues. */
    word-break: normal;
}

.wikibase-sitelinklistview .wikibase-sitelinkview .wikibase-toolbar-container {
    padding-left: 0.5em;
    position: static;
}

.wikibase-sitelinklistview .wikibase-sitelinkview .wikibase-removetoolbar-container {
    background: #fff;
    line-height: 1.5;
    margin-left: 0;
    padding: 0 0.2em;
    vertical-align: bottom;
    width: auto;
}

.wikibase-sitelinklistview .wikibase-sitelinkview .wikibase-removetoolbar-container * {
    line-height: 0;
}