Making WordPress.org


Ignore:
Timestamp:
07/04/2024 04:01:44 PM (2 years ago)
Author:
renyot
Message:

Learn: Sync with git WordPress/learn@909b85c

File:
1 edited

Legend:

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

    r13873 r13878  
    7878                > section.wp-block-sensei-lms-course-outline-module-bordered {
    7979                        border: 1px solid var(--wp--preset--color--light-grey-1) !important;
    80                         border-radius: 2px;
     80                        border-radius: var(--wp--custom--box--border--radius);
    8181
    8282                        header {
    … …  
    9191
    9292                                div.wp-block-sensei-lms-course-outline-module__progress-indicator {
    93                                         border-radius: 2px;
     93                                        border-radius: var(--wp--custom--box--border--radius);
    9494
    9595                                        &.completed {
    … …  
    161161                        border: 1px solid var(--wp--preset--color--light-grey-1) !important;
    162162                        margin-bottom: var(--wp--preset--spacing--20) !important;
    163                         border-radius: 2px;
     163                        border-radius: var(--wp--custom--box--border--radius);
    164164                }
    165165        }
    … …  
    169169                .is-secondary.sensei-course-theme__button {
    170170                        border: solid 1px var(--sensei-secondary-color);
     171                }
     172        }
     173
     174        section.wp-block-sensei-lms-course-results {
     175                display: flex;
     176                flex-direction: column;
     177                margin-top: 40px;
     178                margin-bottom: 40px;
     179
     180                > h2 {
     181                        text-align: left;
     182                        font-size: var(--wp--preset--font-size--heading-6);
     183                        margin-top: 0;
     184                        margin-bottom: var(--wp--preset--spacing--20);
     185                }
     186
     187                > div.wp-block-sensei-lms-course-results__separator {
     188                        display: none;
     189                }
     190
     191                > section.wp-block-sensei-lms-course-results__module {
     192                        margin-bottom: var(--wp--preset--spacing--20);
     193                        margin-top: 0;
     194                        border-radius: var(--wp--custom--box--border--radius);
     195
     196                        header {
     197                                padding-top: var(--wp--preset--spacing--20);
     198                                padding-bottom: var(--wp--preset--spacing--20);
     199
     200                                h3 {
     201                                        margin: 0;
     202                                }
     203                        }
     204                }
     205
     206                // wrapper of lesson items that don't belong to a module
     207                > ul.wp-block-sensei-lms-course-results__lessons {
     208                        margin: 0;
     209
     210                        > li.wp-block-sensei-lms-course-results__lesson {
     211                                border: 1px solid var(--wp--custom--color--border);
     212                                margin-bottom: var(--wp--preset--spacing--20);
     213                                border-radius: var(--wp--custom--box--border--radius);
     214                        }
     215                }
     216
     217                > .wp-block-sensei-lms-course-results__grade {
     218                        order: 3;
     219                        display: flex;
     220                        background: var(--wp--preset--color--light-grey-2);
     221                        padding: var(--wp--preset--spacing--20);
     222                        border-radius: var(--wp--custom--box--border--radius);
     223
     224                        > * {
     225                                font-size: var(--wp--preset--font-size--normal);
     226                                font-weight: 700;
     227                                line-height: 26px;
     228                        }
     229
     230                        > span.wp-block-sensei-lms-course-results__grade-score::before {
     231                                content: ": ";
     232                        }
    171233                }
    172234        }
Note: See TracChangeset for help on using the changeset viewer.