Making WordPress.org

Changeset 12904


Ignore:
Timestamp:
09/20/2023 01:26:36 PM (3 years ago)
Author:
amieiro
Message:

Translate: Add the CSS for the pattern preview

See https://github.com/WordPress/wordpress.org/pull/169

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/style.css

    r12898 r12904  
    31493149.meta,
    31503150.meta.discussion,
    3151 .meta.history,
    3152 .meta.other-locales,
    3153 .meta.translation-memory {
     3151.meta.others {
    31543152        padding: 12px;
    31553153}
     
    31633161}
    31643162
    3165 .meta.history td:nth-child(1),
    3166 .meta.history td:nth-child(3),
    3167 .meta.history td:nth-child(4) {
     3163.meta.others .summary-translation-memory {
     3164        font-weight: bold;
     3165        padding: 1rem 0 0.5rem 0;
     3166}
     3167
     3168.meta.others td:nth-child(1),
     3169.meta.others td:nth-child(3),
     3170.meta.others td:nth-child(4) {
    31683171        text-align: center;
    31693172        vertical-align: middle;
     
    31713174}
    31723175
    3173 .meta.history th,
    3174 .meta.history td {
     3176.meta.others th,
     3177.meta.others td {
    31753178        padding: 4px !important;
    31763179        border: 1px solid #72777C !important;
    31773180}
    31783181
    3179 .meta.history th:nth-child(1) {
     3182.meta.others th:nth-child(1) {
    31803183        width: 20%;
    31813184        vertical-align: middle;
    31823185}
    31833186
    3184 .meta.history th:nth-child(2) {
     3187.meta.others th:nth-child(2) {
    31853188        width: 50%;
    31863189        vertical-align: middle;
    31873190}
    31883191
    3189 .meta.history th:nth-child(3),
    3190 .meta.history th:nth-child(4) {
     3192.meta.others th:nth-child(3),
     3193.meta.others th:nth-child(4) {
    31913194        width: 15%;
    31923195        vertical-align: middle;
    31933196}
    31943197
    3195 .meta.other-locales ul, .meta.transation-memory ul {
     3198.meta.others ul {
    31963199        margin: 0;
    31973200        padding: 0;
    31983201}
    31993202
    3200 .meta.translation-memory ul.suggestions-list,
    3201 .meta.translation-memory summary {
    3202         list-style: none;
     3203.meta.others ul.suggestions-list,
     3204.meta.others summary {
    32033205        margin-left: 0;
    32043206}
    32053207
    3206 .meta.translation-memory div.translation-suggestion {
     3208.meta.others div.translation-suggestion {
    32073209        margin: 1rem 0;
    32083210}
    32093211
    3210 .meta.other-locales .locale.unique, .meta.other-locales .other-locales .locale {
     3212.meta.others .locale.unique, .meta.others .other-locales .locale {
    32113213        width: 6rem;
    32123214        background: #0073aa;
    32133215        margin-right: 10px !important;
     3216}
     3217
     3218.sidebar-div-others-translation-memory-content > summary {
     3219        list-style-type: none;
    32143220}
    32153221
     
    32373243        }
    32383244}
     3245
     3246ul.other-locales li {
     3247        display: flex;
     3248        margin-bottom: 0.2rem;
     3249}
     3250
     3251.sidebar-div-others-other-locales-content > ul.other-locales > li > span {
     3252        min-width: 6rem;
     3253}
     3254
     3255.sidebar-div-others-other-locales-content > ul.other-locales > li > a {
     3256        display: flex;
     3257        flex: auto;
     3258}
     3259
     3260.sidebar-div-others-other-locales-content > ul.other-locales > li > ul {
     3261        display: flex;
     3262        flex-direction: column;
     3263        flex: auto;
     3264}
     3265
     3266.sidebar-div-others-history-content #translation-history-table > tbody > tr > td {
     3267        overflow: hidden;
     3268}
     3269
     3270#translations.table-virtual-pattern {
     3271        float: left;
     3272        width: 60%;
     3273}
     3274
     3275.preview-virtual-pattern {
     3276        max-width: 39%;
     3277        float: right;
     3278        padding: 1rem 1rem 0 1rem;
     3279        margin-top: 0.5rem;
     3280        margin-bottom: 0.5rem;
     3281        border: 1px solid rgb(114, 119, 124);
     3282}
     3283
     3284.preview-virtual-pattern h2 {
     3285        text-align: center;
     3286        margin: 0.5rem 0;
     3287}
     3288.preview-virtual-pattern p.link-to-pattern {
     3289        text-align: center;
     3290        padding: 0 0 1rem 0;
     3291        margin: 0 -1rem;
     3292        border-bottom: 1px solid rgb(114, 119, 124);
     3293}
     3294
     3295@media screen and (max-width: 1280px) {
     3296        #translations.table-virtual-pattern {
     3297                float: none;
     3298                width: 100%;
     3299        }
     3300
     3301        .preview-virtual-pattern {
     3302                max-width: 100%;
     3303                float: none;
     3304        }
     3305}
Note: See TracChangeset for help on using the changeset viewer.