Making WordPress.org

Changeset 4821


Ignore:
Timestamp:
01/29/2017 10:29:23 AM (9 years ago)
Author:
samuelsidler
Message:

Breathe: Improve responsiveness of site title.

The site title gets hidden at smaller viewports. To fix this, it needs a max-width as well as a max font-size. Using viewport width as a base works well for the font-size, but requires added fallback in px for browsers that do not support the vw sizing unit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/style.css

    r4819 r4821  
    117117}
    118118
     119@media (max-width: 500px) {
     120    .site-header .site-title {
     121        max-width: 334px;
     122        margin-top: 4px;
     123    }
     124    .site-header .site-title a {
     125        font-size: 17px;
     126        font-size: 4.5vw;
     127    }
     128}
     129
    119130@media (max-width: 400px) {
    120     .site-header .site-title a {
    121         font-size: 16px;
    122     }
     131    .site-header .site-title {
     132        max-width: 295px;
     133    }
     134}
     135
     136@media (max-width: 320px) {
     137    .site-header .site-title {
     138        max-width: 240px;
     139    }
     140    .site-header .site-title a {
     141        font-size: 13px;
     142        font-size: 4.2vw;
     143    }   
    123144}
    124145
     
    233254    #secondary-toggle {
    234255        margin-left: 22px;
     256        margin-right: 0px;
    235257    }
    236258
Note: See TracChangeset for help on using the changeset viewer.