Making WordPress.org


Ignore:
Timestamp:
03/25/2024 09:24:53 PM (21 months ago)
Author:
coffee2code
Message:

Support: Fix search button height at the 768px breakpoint.

Props kajalgohel, dd32, coffee2code.
Fixed #6860.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/forms/_buttons.scss

    r13167 r13368  
    332332---------------------------------------------------------------------------- */
    333333
    334 @media screen and ( max-width: $ms-breakpoint ) {
     334$button-font-size: 14px;
     335// Convert 1px to ems.
     336$px-to-em: calc( 1px / $button-font-size );
     337@media screen and ( max-width: ($ms-breakpoint - $px-to-em) ) {
    335338
    336339    .button,
    337340    .button.button-large,
    338341    .button.button-small {
    339         font-size: 14px;
     342        font-size: $button-font-size;
    340343        height: auto;
    341344        line-height: normal;
Note: See TracChangeset for help on using the changeset viewer.