wikimedia/mediawiki-extensions-Translate

View on GitHub
resources/css/ext.translate.special.translate.css

Summary

Maintainability
Test Coverage
/*
 * Breadcrumb for message group selector
 */
.tux-breadcrumb {
    color: #222;
    margin-top: 5px;
    font-size: 14pt;
    line-height: 1.25em;
}

/* Arrow between breadcrumb items */
.tux-breadcrumb .grouplink::after {
    border-left: 4px solid #777;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    content: '';
    display: inline-block;
    vertical-align: middle;
    position: relative;
    right: -5px;
}

.tux-breadcrumb .grouplink:last-of-type::after {
    display: none;
}

.tux-breadcrumb .grouplink:last-of-type {
    font-size: 1em;
    margin: 6px 0 4px 0;
    clear: both;
}

.tux-breadcrumb .grouplink.tux-breadcrumb__item--aggregate:last-of-type > span {
    font-size: 0.75em;
    margin-inline-start: 6px;
}

/* This applies to all items in the breadcrumb */
.tux-breadcrumb .grouptitle {
    float: left;
    padding: 0 6px 0 0;
    font-size: 0.75em;
}

/* Not all of these are links, so name is wrong besides being too generic.
 * This excludes the first item which says "message group". */
.tux-breadcrumb .grouplink {
    padding: 0 6px;
}

/* Color clickable groups to look as links */
.tux-breadcrumb__item--aggregate,
.tux-breadcrumb .grouplink.tux-breadcrumb__item--aggregate:last-of-type > span > span {
    cursor: pointer;
    color: #0645ad;
}

.tux-breadcrumb .grouplink.tux-breadcrumb__item--aggregate:last-of-type {
    color: unset;
}

/** Move the triangle for the groupselector */
.tux-groupselector.tux-groupselector-tpt::before {
    left: 19px;
}

.tux-groupselector.tux-groupselector-tpt::after {
    left: 20px;
}

.tux-message-selector {
    font-size: 14px;
    margin: 0;
    padding: 6px 0 0 0;
    list-style: none;
}

.tux-message-selector .column {
    border: medium none;
    font-size: 14pt;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.25em;
    top: 1px;
    display: block;
    margin-bottom: 0;
}

.tux-message-selector .more {
    padding: 0 40px 0 5px;
}

.tux-message-selector .more ul {
    display: none;
    cursor: default;
    border: 1px solid #777;
    border-top: 2px solid transparent;
    padding: 3px 5px 10px 5px;
    width: 300px;
    z-index: 10;
    background: #fff;
    top: 100%;
    left: -5px;
}

.tux-message-selector .more ul a {
    display: block;
    white-space: nowrap;
    margin-left: 1px;
}

.tux-message-selector .more:hover ul {
    display: block;
    position: absolute;
}

.tux-message-selector .more:hover li {
    float: none;
}

.tux-message-selector li.selected {
    border-bottom: 2px solid #36c;
}

.tux-message-selector li.selected a {
    color: #36c;
}

.tux-message-selector li a {
    color: #54595d;
    text-decoration: none;
    white-space: nowrap;
    margin-left: 1px;
}

.tux-message-selector label {
    color: #54595d;
    font-size: 12pt;
    top: 1px;
}

.tux-breadcrumb .mw-ui-button.tux-watch-button {
    float: left;
    padding: 3px 8px;
    margin-left: 3px;
    margin-top: 2px;
}

.tux-breadcrumb .tux-watch-button .tux-watch-icon {
    background: no-repeat left center transparent;
    background-size: contain;
    width: 20px;
    height: 20px;
}

.tux-breadcrumb .tux-watch-button.tux-watch-group--unwatch .tux-watch-icon {
    background-image: url( ../images/bookmark-outlined.svg );
}

.tux-breadcrumb .tux-watch-button.tux-watch-group--watch .tux-watch-icon {
    background-image: url( ../images/bookmark.svg );
}

.tux-breadcrumb .tux-watch-button .tux-watch-label {
    font-size: 0.75em;
    padding-inline-start: 3px;
}

.tux-breadcrumb .tux-watch-button .tux-watch-label,
.tux-breadcrumb .tux-watch-button .tux-watch-icon {
    display: inline-block;
    vertical-align: middle;
}

.tux-editor-header {
    color: #222;
    font-size: 14px;
    padding-bottom: 10px;
}

.tux-editor-header .description {
    margin: 5px 0;
}

.tux-editor-header .mw-message-box {
    margin-bottom: 5px;
}

.tux-editor-header .tux-group-warning.tux-group-warning {
    padding: 0.5em 1.2em;
}

.tux-group-warning:empty {
    display: none;
}

.tux-messagetable-header {
    padding-top: 5px;
    border-bottom: 1px solid #777;
    /* @noflip */
    box-shadow: 0 3px 3px -3px rgba( 0, 0, 0, 0.5 );
    font-size: 14px;
    margin: 0;
    list-style: none;
    transition: width 250ms;
}

@media screen and ( min-height: 600px ) {
    .tux-messagetable-header {
        background: #fff;
        position: sticky;
        padding-top: 5px;
        top: 0;
        z-index: 200;
    }
}

.tux-message-filter-box {
    background: no-repeat url( ../images/search.svg ) left 8px center;
    background-size: 18px;
    font-size: 14px;
    /* FIXME: `box-sizing` lives here due to a shortcoming in Timeless, isn't needed in other skins
    As soon as https://phabricator.wikimedia.org/T276896 is resolved, next line should be removed */
    box-sizing: border-box !important;
    height: 28px;
    border: 1px solid #c9c9c9;
    width: 100%;
    padding: 0 5px 0 34px;
    margin: 0;
}

.client-nojs .tux-messagetable-header {
    display: none;
}

.client-js .tux-nojs {
    display: none;
}

.mw-special-Translate #firstHeading {
    display: none;
}