Making WordPress.org


Ignore:
Timestamp:
08/01/2024 07:53:35 PM (22 months ago)
Author:
ryelle
Message:

Learn: Sync with git WordPress/learn@c832cea

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/src/style/_sensei.scss

    r13938 r13940  
    7070
    7171    &.single-lesson {
    72         .sensei-lesson-footer .sensei-buttons-container {
    73             margin: unset;
    74             display: flex;
    75             gap: var(--wp--preset--spacing--10);
    76 
    77             > *,
    78             .sensei-buttons-container__button-block {
    79                 padding: unset;
     72        .sensei-lesson-footer {
     73            .screen-reader-text {
     74                display: none;
     75            }
     76
     77            .sensei-buttons-container {
     78                margin: unset;
     79                display: flex;
     80                gap: var(--wp--preset--spacing--10);
     81
     82                > *,
     83                .sensei-buttons-container__button-block {
     84                    padding: unset;
     85                }
    8086            }
    8187        }
     
    103109
    104110    @media screen and (max-width: 782px) {
    105         .sensei-lesson-footer .wp-block-sensei-lms-button-lesson-completed {
    106             display: flex;
    107 
    108             .wp-block-button__link {
    109                 flex: 1;
    110             }
     111        .sensei-lesson-footer .sensei-lesson-actions-nav {
     112            width: 100%;
    111113        }
    112114    }
     
    125127        }
    126128
     129        #sensei-quiz-list fieldset {
     130            padding: 0;
     131            border: none;
     132
     133            ul {
     134                margin-top: 0;
     135            }
     136        }
     137
    127138        #sensei-quiz-list li ul li input,
    128139        #sensei-quiz-list .sensei-multiple-choice-answer-option-checkbox + label::before {
    129140            flex-shrink: 0;
     141        }
     142
     143        #sensei-quiz-list li ul li input:focus,
     144        #sensei-quiz-list .sensei-multiple-choice-answer-option-checkbox:focus + label::before {
     145            outline: 1.5px solid var(--wp--preset--color--blueberry-1);
     146            outline-offset: 1.5px;
     147        }
     148
     149        #sensei-quiz-list .sensei-multiple-choice-answer-option-checkbox {
     150            // Checkboxes need to be displayed, otherwise keyboard nav will not work.
     151            // The following code is copied from `screen-reader-text` so that the checkboxes
     152            // exist on the page, but are not shown visually. The visual checkboxes are added
     153            // by `::before` on the label.
     154            display: initial !important;
     155            clip: rect(1px, 1px, 1px, 1px);
     156            word-wrap: normal !important;
     157            border: 0;
     158            clip-path: inset(50%);
     159            height: 1px;
     160            margin: -1px;
     161            overflow: hidden;
     162            padding: 0;
     163            position: absolute;
     164            width: 1px;
     165
     166            + label {
     167                margin-left: 0;
     168            }
    130169        }
    131170    }
Note: See TracChangeset for help on using the changeset viewer.