Making WordPress.org

Changeset 9598


Ignore:
Timestamp:
03/17/2020 11:36:05 PM (5 years ago)
Author:
coffee2code
Message:

WP I18N Teams: Fix responsive appearance of download buttons on team pages.

  • Prevent unnecessary font size increase
  • Prevent button text overflow and scrolling

Props passoniate, coffee2code.
Fixes #5077.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/css/i18n-teams.css

    r7826 r9598  
    117117#main ul#postlist .postcontent #locale-header ul li.download-button {
    118118    float: left;
    119     height: 34px;
     119    height: unset;
    120120    margin: 8px 12px 0 0;   /* todo put list spacing on the button itself, so that the ul takes up no space when there are no li's inside it */
    121121    padding: 6px 12px;
     122    text-align: center;
     123    white-space: unset;
    122124}
    123125#locale-header ul li.download-button a {
    124     font-size: 1.6em;
     126    font-size: 14px;
     127    font-size: 1.4rem;
    125128    line-height: 1.5;
    126129    color: white;
    127130    text-decoration: none;
    128131}
     132@media only screen and (max-width: 600px) {
     133    #locale-header ul li.download-button,
     134    #main ul#postlist .postcontent #locale-header ul li.download-button {
     135        width: 100%;
     136    }
     137}
     138
    129139#locale-details,
    130140#main ul#locale-details {
Note: See TracChangeset for help on using the changeset viewer.