Making WordPress.org


Ignore:
Timestamp:
08/31/2022 12:13:43 AM (4 years ago)
Author:
dufresnesteven
Message:

wporg-themes: Hide viewport controls for mobile devices.

See: #5063.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/css/components/_main.scss

    r12034 r12036  
    781781    padding: 0;
    782782    margin: 0;
    783     z-index: 10;
     783    z-index: 1000;
    784784    background: #eee;
    785785}
     
    10051005}
    10061006
    1007 .wp-full-overlay .devices {
    1008     position: absolute;
    1009     bottom: 20px;
    1010     right: 0;
    1011     z-index: 50;
    1012     display: block;
    1013     height: 25px;
    1014     padding: 0;
    1015     color: #777;
    1016     text-decoration: none;
    1017 }
    1018 
    1019 .wp-full-overlay-footer .devices button {
    1020     display: inline-block;
    1021     cursor: pointer;
    1022     background: transparent;
    1023     border: none;
    1024     height: 46px;
    1025     padding: 0 3px;
    1026     margin: 0 0 0 -4px;
    1027     box-shadow: none;
    1028     border-top: 1px solid transparent;
    1029     border-bottom: 4px solid transparent;
    1030     transition:
    1031         .15s color ease-in-out,
    1032         .15s background-color ease-in-out,
    1033         .15s border-color ease-in-out;
    1034 }
    1035 
    1036 .wp-full-overlay-footer .devices button:focus {
    1037     box-shadow: none;
    1038     outline: none;
    1039 }
    1040 
    1041 .wp-full-overlay-footer .devices button:before {
    1042     display: inline-block;
    1043     -webkit-font-smoothing: antialiased;
    1044     font: normal 20px/30px "dashicons";
    1045     vertical-align: top;
    1046     margin: 3px 0;
    1047     padding: 4px 8px;
    1048     color: #646970;
    1049 }
    1050 
    1051 .wp-full-overlay-footer .devices button.active {
    1052     border-bottom-color: #1d2327;
    1053 }
    1054 
    1055 .wp-full-overlay-footer .devices button:hover,
    1056 .wp-full-overlay-footer .devices button:focus {
    1057     background-color: #fff;
    1058 }
    1059 
    1060 .wp-full-overlay-footer .devices button:focus,
    1061 .wp-full-overlay-footer .devices button.active:hover {
    1062     border-bottom-color: #2271b1;
    1063 }
    1064 
    1065 .wp-full-overlay-footer .devices button.active:before {
    1066     color: #1d2327;
    1067 }
    1068 
    1069 .wp-full-overlay-footer .devices button:hover:before,
    1070 .wp-full-overlay-footer .devices button:focus:before {
    1071     color: #2271b1;
    1072 }
    1073 
    1074 .wp-full-overlay-footer .devices .preview-desktop:before {
    1075     content: "\f472";
    1076 }
    1077 
    1078 .wp-full-overlay-footer .devices .preview-tablet:before {
    1079     content: "\f471";
    1080 }
    1081 
    1082 .wp-full-overlay-footer .devices .preview-mobile:before {
    1083     content: "\f470";
    1084 }
    1085 
    1086 .wp-full-overlay-main .preview-mobile {
    1087     margin: 20vh auto auto;
    1088     width: 320px;
    1089     height: 480px;
    1090 }
    1091 
    1092 .wp-full-overlay-main .preview-tablet {
    1093     margin: 0 auto;
    1094     width: 720px; /* Size is loosely based on a typical "tablet" device size. Intentionally ambiguous - this does not represent any particular device precisely. */
    1095     height: 1080px;
     1007@include breakpoint( 722px ) { // Slighly larger than the table viewport
     1008    .wp-full-overlay .devices {
     1009        position: absolute;
     1010        bottom: 20px;
     1011        right: 0;
     1012        z-index: 50;
     1013        display: block;
     1014        height: 25px;
     1015        padding: 0;
     1016        color: #777;
     1017        text-decoration: none;
     1018    }
     1019
     1020    .wp-full-overlay-footer .devices button {
     1021        display: inline-block;
     1022        cursor: pointer;
     1023        background: transparent;
     1024        border: none;
     1025        height: 46px;
     1026        padding: 0 3px;
     1027        margin: 0 0 0 -4px;
     1028        box-shadow: none;
     1029        border-top: 1px solid transparent;
     1030        border-bottom: 4px solid transparent;
     1031        transition:
     1032            .15s color ease-in-out,
     1033            .15s background-color ease-in-out,
     1034            .15s border-color ease-in-out;
     1035    }
     1036
     1037    .wp-full-overlay-footer .devices button:focus {
     1038        box-shadow: none;
     1039        outline: none;
     1040    }
     1041
     1042    .wp-full-overlay-footer .devices button:before {
     1043        display: inline-block;
     1044        -webkit-font-smoothing: antialiased;
     1045        font: normal 20px/30px "dashicons";
     1046        vertical-align: top;
     1047        margin: 3px 0;
     1048        padding: 4px 8px;
     1049        color: #646970;
     1050    }
     1051
     1052    .wp-full-overlay-footer .devices button.active {
     1053        border-bottom-color: #1d2327;
     1054    }
     1055
     1056    .wp-full-overlay-footer .devices button:hover,
     1057    .wp-full-overlay-footer .devices button:focus {
     1058        background-color: #fff;
     1059    }
     1060
     1061    .wp-full-overlay-footer .devices button:focus,
     1062    .wp-full-overlay-footer .devices button.active:hover {
     1063        border-bottom-color: #2271b1;
     1064    }
     1065
     1066    .wp-full-overlay-footer .devices button.active:before {
     1067        color: #1d2327;
     1068    }
     1069
     1070    .wp-full-overlay-footer .devices button:hover:before,
     1071    .wp-full-overlay-footer .devices button:focus:before {
     1072        color: #2271b1;
     1073    }
     1074
     1075    .wp-full-overlay-footer .devices .preview-desktop:before {
     1076        content: "\f472";
     1077    }
     1078
     1079    .wp-full-overlay-footer .devices .preview-tablet:before {
     1080        content: "\f471";
     1081    }
     1082
     1083    .wp-full-overlay-footer .devices .preview-mobile:before {
     1084        content: "\f470";
     1085    }
     1086
     1087    .wp-full-overlay-main .preview-mobile {
     1088        margin: 20vh auto auto;
     1089        width: 320px;
     1090        height: 480px;
     1091    }
     1092
     1093    .wp-full-overlay-main .preview-tablet {
     1094        margin: 0 auto;
     1095        width: 720px; /* Size is loosely based on a typical "tablet" device size. Intentionally ambiguous - this does not represent any particular device precisely. */
     1096        height: 1080px;
     1097    }
    10961098}
    10971099
Note: See TracChangeset for help on using the changeset viewer.