3 // When we upgrade boostrap to v4 release, we will need to change this to be used by the text-white class.
4 // Because a primary colour that is both AA accessible on grey (footer) and white is not possible, we always
5 // want white default colour.
6 $bg-inverse-link-color: #fff !default;
11 border: $card-border-width solid $card-border-color;
13 @include border-radius($card-border-radius);
15 padding: $card-spacer-x;
16 background-color: $body-bg;
19 .context-header-settings-menu,
20 .region-main-settings-menu {
29 .context-header-settings-menu .dropdown-toggle > .icon,
30 #region-main-settings-menu .dropdown-toggle > .icon {
35 /** Prevent user notifications overlapping with region main settings menu */
41 /** Page layout CSS starts **/
42 .layout-option-noheader #page-header,
43 .layout-option-nonavbar #page-navbar,
44 .layout-option-nofooter #page-footer,
45 .layout-option-nocourseheader .course-content-header,
46 .layout-option-nocoursefooter .course-content-footer {
50 /** Page layout CSS ends **/
62 direction: ltr !important; /* stylelint-disable-line declaration-no-important */
77 a.dimmed_text:visited,
81 .dimmed_text a:visited,
84 .usersuspended a:link,
85 .usersuspended a:visited,
111 font-size: $font-size-xs;
121 color: map-get($theme-colors, 'warning');
126 color: map-get($theme-colors, 'success');
130 color: map-get($theme-colors, 'info');
133 .fitem.advanced .text-info {
141 a.autolink.glossary:hover {
144 /* Block which is hidden if javascript enabled, prevents fickering visible when JS from footer used! */
145 .collapsibleregioncaption {
147 min-height: $line-height-base * $font-size-base;
150 .pagelayout-mydashboard.jsenabled .collapsibleregioncaption {
154 .pagelayout-mydashboard #region-main {
157 background-color: transparent;
161 .collapsibleregioncaption img {
162 vertical-align: middle;
165 .jsenabled .hiddenifjs {
173 .jsenabled .visibleifjs {
177 .jsenabled .collapsibleregion {
179 box-sizing: content-box;
182 .jsenabled .collapsed .collapsibleregioninner {
186 .collapsible-actions {
191 .jsenabled .collapsible-actions {
195 .collapsible-actions .collapseexpand {
197 background: url([[pix:t/collapsed]]) 2px center no-repeat;
200 .collapsible-actions .collapseexpand {
201 background: url([[pix:t/collapsed_rtl]]) right center no-repeat;
204 .collapsible-actions .collapse-all {
205 background-image: url([[pix:t/expanded]]);
208 .yui-overlay .yui-widget-bd {
209 background-color: #ffee69;
210 border: 1px solid #a6982b;
211 border-top-color: #d4c237;
221 background: transparent;
234 .pagingbar .thispage {
239 margin-right: 0.5rem;
247 .action-menu .dropdown-toggle {
248 text-decoration: none;
263 vertical-align: middle;
280 #addmembersform table {
285 table.flexible .emptyrow {
294 .arrow_button input {
301 // Minimum height required for a menu in a table inside a scrollable div.
302 // Position required for table sizing inside a flex container.
303 .no-overflow > .generaltable {
308 // Accessibility features
310 // Accessibility: text 'seen' by screen readers but not visual users.
320 // Accessibility: Skip block link, for keyboard-only users.
326 text-decoration: none;
347 .blog_entry .audience {
356 .blog_entry .content {
371 #doc-contents ul li {
372 list-style-type: none;
375 .groupmanagementtable td {
379 .groupmanagementtable #existingcell,
380 .groupmanagementtable #potentialcell {
384 .groupmanagementtable #buttonscell {
388 .groupmanagementtable #buttonscell p.arrow_button input {
395 .groupmanagementtable #removeselect_wrapper,
396 .groupmanagementtable #addselect_wrapper {
400 .groupmanagementtable #removeselect_wrapper label,
401 .groupmanagementtable #addselect_wrapper label {
412 display: inline-block;
415 .groupselector label {
416 display: inline-block;
423 border-bottom-right-radius: 0;
424 border-bottom-left-radius: 0;
429 border-top-left-radius: 0;
430 border-top-right-radius: 0;
439 .notepost .userpicture {
454 .path-my .coursebox {
459 margin: 15px 30px 10px 30px;
463 .path-my .coursebox .info {
495 .comment-area textarea {
500 -webkit-box-sizing: border-box;
501 -moz-box-sizing: border-box;
502 box-sizing: border-box;
515 vertical-align: text-bottom;
535 .comment-list li.first {
543 .comment-paging .pageno {
547 .comment-paging .curpage {
548 border: 1px solid #ccc;
551 .comment-message .picture {
556 .comment-message .text {
561 .comment-message .text p {
573 .comment-report-selectall {
581 .jsenabled .comment-link {
585 .jsenabled .showcommentsnonjs {
589 .jsenabled .comment-report-selectall {
593 * Completion progress report
595 .completion-expired {
596 color: map-get($theme-colors, 'warning');
599 .completion-expected {
600 font-size: $font-size-xs;
603 .completion-sortchoice,
604 .completion-identifyfield {
605 font-size: $font-size-xs;
606 vertical-align: bottom;
609 .completion-progresscell {
613 .completion-expired .completion-expected {
629 .path-tag .tag-index-items .tagarea {
630 border: 1px solid #e3e3e3;
636 .path-tag .tag-index-items .tagarea h3 {
638 padding: 3px 0 10px 0;
644 text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
645 text-transform: uppercase;
646 word-wrap: break-word;
647 border-bottom: solid 1px #e3e3e3;
651 .path-tag .tagarea .controls,
652 .path-tag .tagarea .taggeditems {
656 .path-tag .tagarea .controls,
657 .path-tag .tag-backtoallitems {
661 .path-tag .tagarea .controls .gotopage.nextpage {
665 .path-tag .tagarea .controls .gotopage.prevpage {
669 .path-tag .tagarea .controls .exclusivemode {
670 display: inline-block;
673 .path-tag .tagarea .controls.controls-bottom {
677 .path-tag .tagarea .controls .gotopage.nextpage::after {
683 .path-tag .tagarea .controls .gotopage.prevpage::before {
693 color: map-get($theme-colors, 'warning');
696 .tag-management-table td,
697 .tag-management-table th {
698 vertical-align: middle;
702 .tag-management-table .inplaceeditable.inplaceeditingon input {
706 .path-admin-tag .addstandardtags {
714 .path-tag .tag-relatedtags {
718 .path-tag .tag-management-box {
722 .path-tag .tag-index-toc {
727 .path-tag .tag-index-toc li,
728 .path-tag .tag-management-box li {
733 .path-tag .tag-management-box li a.edittag {
734 background-image: url([[pix:moodle|i/settings]]);
737 .path-tag .tag-management-box li a.flagasinappropriate {
738 background-image: url([[pix:moodle|i/flagged]]);
741 .path-tag .tag-management-box li a.removefrommyinterests {
742 background-image: url([[pix:moodle|t/delete]]);
745 .path-tag .tag-management-box li a.addtomyinterests {
746 background-image: url([[pix:moodle|t/add]]);
749 .path-tag .tag-management-box li a {
750 background-repeat: no-repeat;
751 background-position: left;
755 .tag_feed.media-list .media .itemimage {
759 .tag_feed.media-list .media .itemimage img {
764 .tag_feed.media-list .media .media-body {
769 .tag_feed .media .muted a {
777 .tag_cloud .inline-list li {
781 .tag_cloud .tag_overflow {
874 .tag_list.hideoverlimit .overlimit {
878 .tag_list .tagmorelink {
882 .tag_list.hideoverlimit .tagmorelink {
886 .tag_list.hideoverlimit .taglesslink {
893 #webservice-doc-generator td {
895 border: 0 solid black;
903 border-collapse: collapse;
915 .userenrolment .subfield {
919 .userenrolment .col_userdetails .subfield {
923 .userenrolment .col_userdetails .subfield_picture {
928 .userenrolment .col_lastseen {
932 .userenrolment .col_role {
936 .userenrolment .col_role .roles,
937 .userenrolment .col_group .groups {
941 .userenrolment .col_role .role {
948 .userenrolment .col_group .group {
955 .userenrolment .col_role .role a,
956 .userenrolment .col_group .group a {
961 .userenrolment .col_role .addrole,
962 .userenrolment .col_group .addgroup {
968 border-bottom: 1px solid #666;
972 .userenrolment .col_role .addrole img,
973 .userenrolment .col_group .addgroup img {
974 vertical-align: baseline;
977 .userenrolment .hasAllRoles .col_role .addrole {
981 .userenrolment .col_enrol .enrolment {
987 .userenrolment .col_enrol .enrolment a {
993 .enrol_user_buttons {
1000 @extend .card-block;
1004 #page-enrol-users .enrol-users-page-action input {
1009 background-color: #ccc;
1029 display: table-cell;
1032 .label .mod-indent {
1036 $mod-indent-size: 30px;
1037 /* Creates a series of .mod-indent-# rule declarations based on indent size and number of indent levels. */
1039 @for $i from 1 through 16 {
1040 $width: ($i * $mod-indent-size);
1048 width: (16 * $mod-indent-size);
1051 /* Audio player size in 'block' mode (can only change width, height is hardcoded in JS) */
1052 .resourcecontent .mediaplugin_mp3 object {
1057 .resourcecontent audio.mediaplugin_html5audio {
1060 /** Large resource images should avoid hidden overflow **/
1064 /* Audio player size in 'inline' mode (can only change width, as above) */
1065 .mediaplugin_mp3 object {
1070 audio.mediaplugin_html5audio {
1073 /* TinyMCE moodle media preview frame should not have padding */
1074 .core_media_preview.pagelayout-embedded #content {
1078 .core_media_preview.pagelayout-embedded #maincontent {
1082 body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
1089 .path-rating .ratingtable {
1094 .path-rating .ratingtable th.rating {
1098 .path-rating .ratingtable td.rating,
1099 .path-rating .ratingtable td.time {
1100 white-space: nowrap;
1104 /* Moodle Dialogue Settings (moodle-core-dialogue) */
1105 .moodle-dialogue-base .moodle-dialogue-lightbox {
1106 background-color: $gray;
1109 // Prevent adding backdrops to popups in popups.
1111 .moodle-dialogue-base {
1112 .moodle-dialogue-lightbox {
1113 background-color: transparent;
1116 box-shadow: $popover-box-shadow;
1121 .moodle-dialogue-base .hidden,
1122 .moodle-dialogue-base .moodle-dialogue-hidden {
1130 .moodle-dialogue-base .moodle-dialogue-fullscreen {
1138 .moodle-dialogue-base .moodle-dialogue-fullscreen .moodle-dialogue-content {
1142 .moodle-dialogue-base .moodle-dialogue-fullscreen .closebutton {
1145 background-size: 100%;
1148 .moodle-dialogue-base .moodle-dialogue-wrap {
1149 background-color: #fff;
1150 border: 1px solid #ccc;
1153 // Show is a bootstrap 2 class - but we use it for modals. We don't want to enable it everywhere because they removed
1154 // it for a reason (conflicts with jquery .show()).
1159 .moodle-dialogue-base .moodle-dialogue-wrap.moodle-dialogue-content {
1160 @extend .modal-content;
1163 .moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-hd {
1164 @extend .modal-header;
1167 .moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-hd.yui3-widget-hd {
1168 // Undo some YUI damage.
1171 background: initial;
1176 .moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-hd h1 {
1177 @extend .modal-title;
1181 .moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-hd .yui3-widget-buttons {
1189 .moodle-dialogue-base .closebutton {
1197 .moodle-dialogue-base .moodle-dialogue .moodle-dialogue-bd {
1201 .moodle-dialogue-base .moodle-dialogue-fullscreen .moodle-dialogue-content {
1212 .moodle-dialogue-exception .moodle-exception-param label {
1216 .moodle-dialogue-exception .param-stacktrace label {
1217 background-color: #eee;
1218 border: 1px solid #ccc;
1219 border-bottom-width: 0;
1222 .moodle-dialogue-exception .param-stacktrace pre {
1223 border: 1px solid #ccc;
1224 background-color: #fff;
1227 .moodle-dialogue-exception .param-stacktrace .stacktrace-file {
1229 font-size: $font-size-sm;
1232 .moodle-dialogue-exception .param-stacktrace .stacktrace-line {
1233 color: map-get($theme-colors, 'warning');
1234 font-size: $font-size-sm;
1237 .moodle-dialogue-exception .param-stacktrace .stacktrace-call {
1240 border-bottom: 1px solid #eee;
1243 .moodle-dialogue-base .moodle-dialogue .moodle-dialogue-content .moodle-dialogue-ft {
1244 @extend .modal-footer;
1247 .moodle-dialogue-base .moodle-dialogue .moodle-dialogue-content .moodle-dialogue-ft:empty {
1251 .moodle-dialogue-base .moodle-dialogue .moodle-dialogue-content .moodle-dialogue-ft.yui3-widget-ft {
1252 // Undo some YUI damage.
1253 background: initial;
1256 .moodle-dialogue-confirm .confirmation-message {
1260 .moodle-dialogue-confirm .confirmation-dialogue input {
1264 .moodle-dialogue-exception .moodle-exception-message {
1268 .moodle-dialogue-exception .moodle-exception-param {
1269 margin-bottom: 0.5em;
1272 .moodle-dialogue-exception .moodle-exception-param label {
1276 .moodle-dialogue-exception .param-stacktrace label {
1282 .moodle-dialogue-exception .param-stacktrace pre {
1288 .moodle-dialogue-exception .param-stacktrace .stacktrace-file {
1289 display: inline-block;
1293 .moodle-dialogue-exception .param-stacktrace .stacktrace-line {
1294 display: inline-block;
1299 .moodle-dialogue-exception .param-stacktrace .stacktrace-call {
1302 padding-bottom: 4px;
1305 .moodle-dialogue .moodle-dialogue-bd .content-lightbox {
1311 background-color: white;
1315 /* Apply a default max-height on tooltip text */
1316 .moodle-dialogue .tooltiptext {
1320 .moodle-dialogue-base .moodle-dialogue.moodle-dialogue-tooltip {
1323 .moodle-dialogue-bd {
1329 * Chooser Dialogues (moodle-core-chooserdialogue)
1331 * This CSS belong to the chooser dialogue which should work both with, and
1332 * without javascript enabled
1334 /* Hide the dialog and it's title */
1335 .chooserdialoguebody,
1340 .moodle-dialogue.chooserdialogue .moodle-dialogue-content .moodle-dialogue-ft {
1344 .chooserdialogue .moodle-dialogue-wrap .moodle-dialogue-bd {
1346 background: #f2f2f2;
1348 @include border-bottom-radius(10px);
1350 /* Center the submit buttons within the area */
1351 .choosercontainer #chooseform .submitbuttons {
1355 /* Fixed for safari browser on iPhone4S with ios7@mixin */
1357 @media (max-height: 639px) {
1358 .ios .choosercontainer #chooseform .submitbuttons {
1363 .choosercontainer #chooseform .submitbuttons input {
1367 /* Various settings for the options area */
1368 .choosercontainer #chooseform .options {
1370 border-bottom: 1px solid #bbb;
1372 /* Only set these options if we're showing the js container */
1373 .jschooser .choosercontainer #chooseform .alloptions {
1380 display: inline-block;
1384 display: inline-block;
1389 /* Settings for option rows and option subtypes */
1390 .choosercontainer #chooseform .moduletypetitle,
1391 .choosercontainer #chooseform .option,
1392 .choosercontainer #chooseform .nonoption {
1394 padding: 0 1.6em 0 1.6em;
1397 .choosercontainer #chooseform .moduletypetitle {
1398 text-transform: uppercase;
1400 padding-bottom: 0.4em;
1403 .choosercontainer #chooseform .option .typename,
1404 .choosercontainer #chooseform .nonoption .typename {
1405 padding: 0 0 0 0.5em;
1408 .choosercontainer #chooseform .modicon + .typename {
1412 .choosercontainer #chooseform .option input[type=radio],
1413 .choosercontainer #chooseform .option span.typename {
1414 vertical-align: middle;
1417 .choosercontainer #chooseform .option label {
1420 padding: ($spacer / 2) 0;
1421 border-bottom: 1px solid #fff;
1424 .choosercontainer #chooseform .option .icon {
1429 .choosercontainer #chooseform .nonoption {
1430 padding-left: 2.7em;
1432 padding-bottom: 0.1em;
1435 .choosercontainer #chooseform .subtype {
1437 padding: 0 1.6em 0 3.2em;
1440 .choosercontainer #chooseform .subtype .typename {
1441 margin: 0 0 0 0.2em;
1443 /* The instruction/help area */
1444 .jschooser .choosercontainer #chooseform .instruction,
1445 .jschooser .choosercontainer #chooseform .typesummary {
1454 background-color: #fff;
1459 /* Selected option settings */
1460 .jschooser .choosercontainer #chooseform .instruction,
1461 .choosercontainer #chooseform .selected .typesummary {
1465 .choosercontainer #chooseform .selected {
1466 background-color: #fff;
1471 .chooserdialogue-course-modchooser .modicon .icon {
1477 @include media-breakpoint-down(xs) {
1478 .jsenabled .choosercontainer #chooseform .alloptions {
1482 .jsenabled .choosercontainer #chooseform .instruction,
1483 .jsenabled .choosercontainer #chooseform .typesummary {
1488 /* Form element: listing */
1490 padding-bottom: 25px;
1491 padding-right: 10px;
1494 .formlistinginputradio {
1505 padding: 1px 19px 14px;
1506 background-color: white;
1507 border: 1px solid #ddd;
1509 @include border-radius(4px);
1520 background-color: whitesmoke;
1521 border: 1px solid #ddd;
1524 @include border-radius(4px 0 4px 0);
1531 @include border-radius(4px);
1536 border-bottom: 1px solid;
1537 border-color: #e1e1e8;
1538 border-left: 1px solid #e1e1e8;
1539 border-right: 1px solid #e1e1e8;
1540 background-color: #f7f7f9;
1542 @include border-radius(0 0 4px 4px);
1551 body.jsenabled .formlistingradio {
1555 body.jsenabled .formlisting {
1562 @extend .table-bordered;
1563 @extend .table-striped;
1571 div.criteria-description {
1574 background: none repeat scroll 0 0 #f9f9f9;
1575 border: 1px solid #eee;
1585 display: inline-block;
1588 vertical-align: top;
1592 .badges li .badge-name {
1601 .badges li .badge-image {
1609 .badges li .badge-actions {
1613 .badges li .expireimage {
1624 background-color: transparent;
1629 display: inline-block;
1630 vertical-align: top;
1632 margin-bottom: 20px;
1655 display: inline-block;
1665 vertical-align: top;
1671 display: inline-block;
1677 display: inline-block;
1684 vertical-align: top;
1688 color: map-get($theme-colors, 'success');
1692 color: map-get($theme-colors, 'danger');
1696 color: map-get($theme-colors, 'warning');
1699 #page-badges-award .recipienttable tr td {
1700 vertical-align: top;
1703 #page-badges-award .recipienttable tr td.actions .actionbutton {
1709 #page-badges-award .recipienttable tr td.existing,
1710 #page-badges-award .recipienttable tr td.potential {
1714 #issued-badge-table .activatebadge {
1715 display: inline-block;
1719 background-color: $state-success-bg;
1722 .statusbox.inactive {
1723 background-color: $state-warning-bg;
1732 .statusbox .activatebadge {
1733 display: inline-block;
1736 .statusbox .activatebadge input[type=submit] {
1743 vertical-align: middle;
1746 img#persona_signin {
1754 .invisiblefieldset {
1771 nav.navbar .logo img {
1775 /** Header-bar styles **/
1776 .page-context-header {
1777 // We need to be explicit about the height of the header.
1778 $pageHeaderHeight: 140px;
1780 // Do not remove these rules.
1784 .page-header-headings {
1790 .page-header-image {
1795 .page-header-headings,
1796 .header-button-group {
1799 vertical-align: middle;
1802 .header-button-group {
1809 // Don't touch it unless you know exactly what you are doing.
1815 ul.dragdrop-keyboard-drag li {
1816 list-style-type: none;
1821 text-decoration: none;
1832 .progressbar_container {
1837 /* IE10 only fix for calendar titling */
1838 .ie10 .yui3-calendar-header-label {
1839 display: inline-block;
1852 // Active tabs with links should have a different
1853 // cursor to indicate they are clickable.
1854 .nav-tabs > .active > a[href],
1855 .nav-tabs > .active > a[href]:hover,
1856 .nav-tabs > .active > a[href]:focus {
1861 &.inplaceeditingon {
1866 font-weight: normal;
1871 white-space: nowrap;
1876 vertical-align: text-bottom;
1885 .quickediticon img {
1891 text-decoration: inherit;
1894 &:hover .quickeditlink .quickediticon img,
1895 .quickeditlink:focus .quickediticon img {
1899 &.inplaceeditable-toggle .quickediticon {
1903 &.inplaceeditable-autocomplete {
1908 h3.sectionname .inplaceeditable.inplaceeditingon .editinstructions {
1920 .chart-output-htmltable caption {
1921 white-space: nowrap;
1923 /** When accessible, we display the table only. */
1925 .chart-table-expand {
1940 /* YUI 2 Tree View */
1961 background-image: url([[pix:theme|yui2-treeview-sprite-rtl]]);
1965 .hover-tooltip-container {
1974 top: calc(-50% - 5px);
1975 transform: translate(-50%, -50%);
1976 background-color: #fff;
1977 border: 1px solid rgba(0, 0, 0, .2);
1978 border-radius: .3rem;
1979 box-sizing: border-box;
1981 white-space: nowrap;
1982 transition: opacity 0.15s, visibility 0.15s;
1987 display: inline-block;
1988 border-left: 8px solid transparent;
1989 border-right: 8px solid transparent;
1990 border-top: 8px solid rgba(0, 0, 0, .2);
1993 left: calc(50% - 8px);
1998 display: inline-block;
1999 border-left: 7px solid transparent;
2000 border-right: 7px solid transparent;
2001 border-top: 7px solid #fff;
2004 left: calc(50% - 7px);
2012 visibility: visible;
2013 transition: opacity 0.15s 0.5s, visibility 0.15s 0.5s;
2022 margin-right: $grid-gutter-width / 2;
2023 background-color: $card-bg;
2025 @include media-breakpoint-down(sm) {
2027 margin-top: $grid-gutter-width;
2033 // Footer link colour was added to allow the colour of footer links to be changed,
2034 // but really in bootstrap we want the colour of links on .bg-inverse to be changed
2035 // rather than being specific to the footer. This is kept for backwards compatibility.
2036 $footer-link-color: $bg-inverse-link-color !default;
2038 color: $footer-link-color;
2039 text-decoration: underline;
2041 color: $footer-link-color;
2046 color: $bg-inverse-link-color;
2047 text-decoration: underline;
2049 color: $bg-inverse-link-color;
2059 // Make links in a menu clickable anywhere in the row.
2065 .dropdown-item:active a {
2066 color: $dropdown-link-active-color;
2071 padding-left: 1.5rem;
2075 .sr-only-focusable {
2078 z-index: $zindex-navbar-fixed + 1;
2087 [data-drag-type="move"] {
2096 .overlay-icon-container {
2102 background-color: rgba(255, 255, 255, 0.6);
2108 transform: translate(-50%, -50%);
2118 .open.atto_menu > .dropdown-menu {
2121 div.editor_atto_toolbar button .icon {
2129 animation: bg-pulse-grey 2s infinite linear;
2132 @keyframes bg-pulse-grey {
2134 background-color: $gray-100;
2137 background-color: darken($gray-100, 5%);
2140 background-color: $gray-100;
2144 @each $size, $length in $spacers {
2145 .line-height-#{$size} {
2146 line-height: $length !important; /* stylelint-disable-line declaration-no-important */
2162 $switch-height: 1.25rem !default;
2163 $switch-height-half: ($switch-height / 2) !default;
2164 $switch-width: ($switch-height * 2) !default;
2165 $switch-border-radius: $switch-height !default;
2166 $switch-bg: $gray-300 !default;
2167 $switch-bg-height: 1rem !default;
2168 $switch-bg-height-half: ($switch-bg-height / 2) !default;
2169 $switch-checked-bg: rgba(map-get($theme-colors, 'primary'), .4) !default;
2170 $switch-checked-thumb-bg: map-get($theme-colors, 'primary') !default;
2171 $switch-disabled-bg: $gray-200 !default;
2172 $switch-disabled-color: $gray-600 !default;
2173 $switch-disabled-thumb-bg: $gray-600 !default;
2174 $switch-thumb-bg: $white !default;
2175 $switch-thumb-border-radius: 50% !default;
2176 $switch-thumb-size: $switch-height !default;
2177 $switch-thumb-size-half: $switch-height-half !default;
2178 $switch-focus-box-shadow: 0 0 0 ($input-btn-focus-width * 2) rgba(map-get($theme-colors, 'primary'), .25);
2179 $switch-transition: .2s all !default;
2183 display: inline-block;
2188 transform: translateX(1px);
2192 line-height: $switch-height;
2196 min-height: $switch-height;
2197 min-width: $switch-width;
2198 line-height: $switch-height;
2199 border-radius: $switch-border-radius;
2200 display: inline-block;
2204 padding-left: ($switch-width + .5rem);
2218 height: $switch-bg-height;
2219 width: $switch-width;
2220 top: calc(50% - #{$switch-bg-height-half});
2221 background-color: $switch-bg;
2222 border-radius: $switch-border-radius;
2223 transition: $switch-transition;
2228 width: $switch-thumb-size;
2229 height: $switch-thumb-size;
2230 top: calc(50% - #{$switch-thumb-size-half});
2231 border-radius: $switch-thumb-border-radius;
2232 background-color: $switch-thumb-bg;
2233 transition: $switch-transition;
2235 0 1px 3px 0 rgba(0, 0, 0, 0.2),
2236 0 1px 1px 0 rgba(0, 0, 0, 0.14),
2237 0 2px 1px -1px rgba(0, 0, 0, 0.12);
2240 &:checked + label::before {
2241 background-color: $switch-checked-bg;
2244 &:checked + label::after {
2245 margin-left: $switch-height;
2246 background-color: $switch-checked-thumb-bg;
2249 &:focus + label::before {
2253 &:focus + label::after {
2255 box-shadow: $switch-focus-box-shadow;
2258 &:disabled + label {
2259 color: $switch-disabled-color;
2260 cursor: not-allowed;
2263 &:disabled + label::before {
2264 background-color: $switch-disabled-bg;
2267 &:disabled + label::after {
2268 background-color: $switch-disabled-thumb-bg;
2274 text-indent: -9999px;
2281 .paged-content-page-container {
2282 min-height: 3.125rem;
2293 min-height: 230px; // This should be the same height as default core_h5p iframes.
2297 .text-decoration-none {
2298 text-decoration: none !important; /* stylelint-disable-line declaration-no-important */
2302 color: inherit !important; /* stylelint-disable-line declaration-no-important */
2306 right: 0 !important; /* stylelint-disable-line declaration-no-important */
2310 overflow: hidden !important; /* stylelint-disable-line declaration-no-important */
2314 overflow-wrap: break-word !important; /* stylelint-disable-line declaration-no-important */
2318 z-index: 1 !important; /* stylelint-disable-line declaration-no-important */
2321 // These floats are deprecated in Bootstrap 4.3.1. It is still okay to use them in Moodle.
2323 float: left !important; /* stylelint-disable-line declaration-no-important */
2326 float: right !important; /* stylelint-disable-line declaration-no-important */
2330 $picker-width: 350px !default;
2331 $picker-width-xs: 320px !default;
2332 $picker-height: 400px !default;
2333 $picker-row-height: 40px !default;
2334 $picker-emoji-button-size: 40px !default;
2335 $picker-emoji-button-font-size: 24px !default;
2336 $picker-emoji-category-count: 9 !default;
2337 $picker-emojis-per-row: 7 !default;
2340 width: $picker-width;
2341 height: $picker-height;
2346 width: $picker-width / $picker-emoji-category-count;
2350 border-bottom: 2px solid transparent;
2353 border-bottom: 2px solid map-get($theme-colors, 'primary');
2358 .search-results-container {
2359 min-width: $picker-emojis-per-row * $picker-emoji-button-size;
2363 height: $picker-row-height;
2366 line-height: $picker-row-height;
2370 height: $picker-emoji-button-size;
2371 width: $picker-emoji-button-size;
2372 line-height: $picker-emoji-button-size;
2373 font-size: $picker-emoji-button-font-size;
2376 @include hover-focus {
2378 text-decoration: none;
2384 height: $picker-row-height;
2385 font-size: $picker-row-height;
2386 line-height: $picker-row-height;
2390 line-height: $picker-row-height / 2;
2393 @include media-breakpoint-down(xs) {
2394 width: $picker-width-xs;
2398 .emoji-auto-complete {
2399 height: $picker-row-height;
2401 .btn.btn-link.btn-icon.emoji-button {
2402 height: $picker-emoji-button-size;
2403 width: $picker-emoji-button-size;
2404 line-height: $picker-emoji-button-size;
2405 font-size: $picker-emoji-button-font-size;
2408 background-color: $gray-200;
2414 max-width: $toast-max-width;
2416 // Place these above any modals and other elements.