Making WordPress.org


Ignore:
Timestamp:
02/05/2019 09:55:07 PM (7 years ago)
Author:
coffee2code
Message:

Developer: Miscellaneous Code Reference landing page UI tweaks.

  • Reduce padding within widget headers
  • Remove border above search form
  • Center horizontal list of topics
  • Move search filter checkboxes onto separate line from label on smaller viewports
  • Ensure consistent margin between sections and left of viewport
  • Vertically center checkboxes with labels in form (and also in search slide-down panel)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss

    r8203 r8206  
    533533        }
    534534
     535        .widget-title {
     536            line-height: 60px;
     537            line-height: 6rem;
     538        }
     539
     540        &.search-guide {
     541            border-top: 2px solid #efefef;
     542        }
     543
    535544        @media ( max-width: 974px ) {
    536545            width: 640px;
     
    561570        }
    562571        &.search-guide {
    563             border-top: 2px solid #efefef;
    564572            padding-top: 60px;
    565573            padding-top: 6rem;
     
    575583            font-size: 25px;
    576584            font-size: 2.5rem;
    577             line-height: 60px;
    578             line-height: 6rem;
     585            line-height: 20px;
     586            line-height: 2rem;
    579587            .dashicons {
    580588                color: #222;
     
    822830                padding-right: 1.3em;
    823831                input {
     832                    margin-bottom: 6px;
    824833                    padding-left: 0.5em;
     834                    vertical-align: middle;
    825835                }
    826836            }
    827837            label:last-child {
    828838                border-right-width: 0;
     839            }
     840
     841            @media ( max-width: 688px ) {
     842                span {
     843                    display: block;
     844                }
     845
     846                label {
     847                    margin-left: 0;
     848                    margin-right: 1em;
     849                    width: 130px;
     850
     851                    &:last-child {
     852                        margin-right: 0;
     853                        padding-right: 0;
     854                        width: initial;
     855                    }
     856                }
    829857            }
    830858        }
     
    928956    }
    929957    .horizontal-list {
    930         display: inline;
     958        display: block;
     959        width: 100%;
    931960        list-style-type: none;
    932961        margin: 0;
    933962        padding: 0;
     963        text-align: center;
    934964    }
    935965    .horizontal-list li {
     
    23342364            }
    23352365        }
     2366        #content-area {
     2367            padding-left: 2%;
     2368        }
    23362369
    23372370        &.archive, &.search {
     
    23582391            .sourcefile {
    23592392                float: left;
     2393            }
     2394        }
     2395        #content-area {
     2396            @media (max-width: 43em) {
     2397                padding-left: 2%;
    23602398            }
    23612399        }
Note: See TracChangeset for help on using the changeset viewer.