| @@ -26,34 +26,141 @@ | ||
| 26 | 26 | .wp-block-group { |
| 27 | 27 | --lp-container-max-width: var(--wp--style--global--wide-size); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | +/** | |
| 31 | +* Style for the buttons | |
| 32 | +*/ | |
| 33 | +.lp-btn-edit-primary { | |
| 34 | + border: none; | |
| 35 | + background: #135e96; | |
| 36 | + color: #fff; | |
| 37 | +} | |
| 38 | +.lp-btn-edit-primary:not(.active) { | |
| 39 | + opacity: 0.5; | |
| 40 | +} | |
| 41 | +.lp-btn-edit-primary:hover, .lp-btn-edit-primary.active, .lp-btn-edit-primary.active:hover { | |
| 42 | + background: #135E96; | |
| 43 | + color: #fff; | |
| 44 | + opacity: 1; | |
| 45 | +} | |
| 46 | + | |
| 47 | +/* 5. Minimal Bottom Line */ | |
| 48 | +.btn-line::after { | |
| 49 | + content: ""; | |
| 50 | + position: absolute; | |
| 51 | + bottom: 0; | |
| 52 | + left: 0; | |
| 53 | + height: 4px; | |
| 54 | + width: 0%; | |
| 55 | + background-color: #38bdf8; | |
| 56 | + animation: lineLoad 2s ease-in-out infinite; | |
| 57 | +} | |
| 58 | + | |
| 59 | +@keyframes lineLoad { | |
| 60 | + 0% { | |
| 61 | + width: 0%; | |
| 62 | + left: 0; | |
| 63 | + } | |
| 64 | + 50% { | |
| 65 | + width: 100%; | |
| 66 | + left: 0; | |
| 67 | + } | |
| 68 | + 100% { | |
| 69 | + width: 0%; | |
| 70 | + left: 100%; | |
| 71 | + } | |
| 72 | +} | |
| 73 | +.lp-button { | |
| 74 | + padding: 8px 16px; | |
| 75 | + border: 1px solid var(--lp-border-color, #E2E0DB); | |
| 76 | + border-radius: var(--lp-border-radius, 5px); | |
| 77 | + color: #374151; | |
| 78 | + font-weight: 500; | |
| 79 | + text-decoration: none; | |
| 80 | + cursor: pointer; | |
| 81 | +} | |
| 82 | +.lp-button.loading { | |
| 83 | + position: relative; | |
| 84 | + display: inline-flex; | |
| 85 | + align-items: center; | |
| 86 | + justify-content: center; | |
| 87 | + pointer-events: none; | |
| 88 | + color: rgba(0, 0, 0, 0) !important; | |
| 89 | +} | |
| 90 | +.lp-button.loading:before { | |
| 91 | + position: absolute; | |
| 92 | + inset: 0; | |
| 93 | + display: flex; | |
| 94 | + align-items: center; | |
| 95 | + justify-content: center; | |
| 96 | + font-family: "lp-icon"; | |
| 97 | + content: "\f110"; | |
| 98 | + animation: lp-rotating 1s linear infinite; | |
| 99 | + font-variant: normal; | |
| 100 | + text-transform: none; | |
| 101 | + -webkit-font-smoothing: antialiased; | |
| 102 | + -moz-osx-font-smoothing: grayscale; | |
| 103 | + color: black; | |
| 104 | +} | |
| 105 | + | |
| 30 | 106 | .learn-press-message { |
| 31 | 107 | position: relative; |
| 108 | + display: flex; | |
| 109 | + align-items: center; | |
| 32 | 110 | margin: 0 !important; |
| 33 | - padding: 10px 20px; | |
| 111 | + padding: 10px; | |
| 34 | 112 | border-radius: var(--lp-border-radius, 5px); |
| 35 | 113 | background-color: #E5F7FF; |
| 36 | 114 | color: #007AFF; |
| 37 | 115 | max-width: 100%; |
| 38 | 116 | } |
| 117 | +.learn-press-message::before { | |
| 118 | + display: inline-block; | |
| 119 | + margin-right: 8px; | |
| 120 | + font-family: "lp-icon"; | |
| 121 | + font-size: 20px; | |
| 122 | + font-style: normal; | |
| 123 | + font-weight: normal; | |
| 124 | + line-height: 1; | |
| 125 | +} | |
| 39 | 126 | .learn-press-message.error { |
| 40 | 127 | background-color: #FEE5E5; |
| 41 | 128 | color: #FF3B30; |
| 42 | - border-left: none; | |
| 129 | + border: 1px solid #E31A1A; | |
| 130 | + padding: 10px 20px; | |
| 43 | 131 | } |
| 132 | +.learn-press-message.error::before { | |
| 133 | + content: "\f071"; | |
| 134 | + color: #E31A1A; | |
| 135 | +} | |
| 44 | 136 | .learn-press-message.warning { |
| 45 | 137 | background-color: #FEF7E6; |
| 46 | 138 | color: #FF9500; |
| 139 | + border: 1px solid #F8A100; | |
| 47 | 140 | } |
| 141 | +.learn-press-message.warning::before { | |
| 142 | + content: "\f06a"; | |
| 143 | + color: #F8A100; | |
| 144 | +} | |
| 48 | 145 | .learn-press-message.success { |
| 49 | 146 | background-color: #EBF8E5; |
| 50 | 147 | color: #3AB500; |
| 148 | + border: 1px solid #28A746; | |
| 51 | 149 | } |
| 150 | +.learn-press-message.success::before { | |
| 151 | + content: "\f058"; | |
| 152 | + color: #28A746; | |
| 153 | +} | |
| 52 | 154 | .learn-press-message.info { |
| 53 | 155 | background-color: rgba(0, 122, 255, 0.1019607843); |
| 54 | 156 | color: #007AFF; |
| 157 | + border: 1px solid #2E91FA; | |
| 55 | 158 | } |
| 159 | +.learn-press-message.info::before { | |
| 160 | + content: "\e931"; | |
| 161 | + color: #2E91FA; | |
| 162 | +} | |
| 56 | 163 | .learn-press-message a { |
| 57 | 164 | text-decoration: underline; |
| 58 | 165 | } |
| 59 | 166 | |
| @@ -665,18 +772,21 @@ | ||
| 665 | 772 | box-shadow: none; |
| 666 | 773 | outline: none; |
| 667 | 774 | } |
| 668 | 775 | .course-curriculum .section-item__loadmore.loading button:before { |
| 669 | - display: inline-block; | |
| 776 | + position: absolute; | |
| 777 | + inset: 0; | |
| 778 | + display: flex; | |
| 779 | + align-items: center; | |
| 780 | + justify-content: center; | |
| 670 | 781 | font-family: "lp-icon"; |
| 671 | 782 | content: "\f110"; |
| 672 | 783 | animation: lp-rotating 1s linear infinite; |
| 673 | - margin-right: 5px; | |
| 674 | 784 | font-variant: normal; |
| 675 | 785 | text-transform: none; |
| 676 | 786 | -webkit-font-smoothing: antialiased; |
| 677 | 787 | -moz-osx-font-smoothing: grayscale; |
| 678 | - vertical-align: middle; | |
| 788 | + color: black; | |
| 679 | 789 | } |
| 680 | 790 | .course-curriculum .section-header { |
| 681 | 791 | display: table; |
| 682 | 792 | width: 100%; |
| @@ -891,18 +1001,21 @@ | ||
| 891 | 1001 | margin-top: 20px; |
| 892 | 1002 | margin-bottom: 20px; |
| 893 | 1003 | } |
| 894 | 1004 | .course-curriculum .curriculum-more__button.loading:before { |
| 895 | - display: inline-block; | |
| 1005 | + position: absolute; | |
| 1006 | + inset: 0; | |
| 1007 | + display: flex; | |
| 1008 | + align-items: center; | |
| 1009 | + justify-content: center; | |
| 896 | 1010 | font-family: "lp-icon"; |
| 897 | 1011 | content: "\f110"; |
| 898 | 1012 | animation: lp-rotating 1s linear infinite; |
| 899 | - margin-right: 5px; | |
| 900 | 1013 | font-variant: normal; |
| 901 | 1014 | text-transform: none; |
| 902 | 1015 | -webkit-font-smoothing: antialiased; |
| 903 | 1016 | -moz-osx-font-smoothing: grayscale; |
| 904 | - vertical-align: middle; | |
| 1017 | + color: black; | |
| 905 | 1018 | } |
| 906 | 1019 | |
| 907 | 1020 | body .content-item-summary .form-button-finish-course, body .lp-quiz-buttons .form-button-finish-course { |
| 908 | 1021 | float: right; |
| @@ -1338,8 +1451,26 @@ | ||
| 1338 | 1451 | min-height: 100vh; |
| 1339 | 1452 | text-align: center; |
| 1340 | 1453 | align-items: center; |
| 1341 | 1454 | justify-content: center; |
| 1455 | + /*.lp-button { | |
| 1456 | + cursor: pointer; | |
| 1457 | + border: 1px solid $border-color; | |
| 1458 | + border-radius: $border-radius-global; | |
| 1459 | + padding: $spacing-base-2x $spacing-base-4x; | |
| 1460 | + | |
| 1461 | + &.loading { | |
| 1462 | + pointer-events: none; | |
| 1463 | + opacity: 0.8; | |
| 1464 | + @include loading(); | |
| 1465 | + } | |
| 1466 | + | |
| 1467 | + &:hover { | |
| 1468 | + border-color: $color-primary; | |
| 1469 | + color: #fff; | |
| 1470 | + background: $color-primary; | |
| 1471 | + } | |
| 1472 | + }*/ | |
| 1342 | 1473 | } |
| 1343 | 1474 | .lp-modal-dialog .learn-press-message { |
| 1344 | 1475 | width: auto; |
| 1345 | 1476 | margin: 0 !important; |
| @@ -1408,35 +1539,8 @@ | ||
| 1408 | 1539 | display: flex; |
| 1409 | 1540 | align-items: center; |
| 1410 | 1541 | gap: 10px; |
| 1411 | 1542 | } |
| 1412 | -.lp-modal-dialog .lp-button { | |
| 1413 | - cursor: pointer; | |
| 1414 | - border: 1px solid var(--lp-border-color, #E2E0DB); | |
| 1415 | - border-radius: var(--lp-border-radius, 5px); | |
| 1416 | - padding: 8px 16px; | |
| 1417 | -} | |
| 1418 | -.lp-modal-dialog .lp-button.loading { | |
| 1419 | - pointer-events: none; | |
| 1420 | - opacity: 0.8; | |
| 1421 | -} | |
| 1422 | -.lp-modal-dialog .lp-button.loading:before { | |
| 1423 | - display: inline-block; | |
| 1424 | - font-family: "lp-icon"; | |
| 1425 | - content: "\f110"; | |
| 1426 | - animation: lp-rotating 1s linear infinite; | |
| 1427 | - margin-right: 5px; | |
| 1428 | - font-variant: normal; | |
| 1429 | - text-transform: none; | |
| 1430 | - -webkit-font-smoothing: antialiased; | |
| 1431 | - -moz-osx-font-smoothing: grayscale; | |
| 1432 | - vertical-align: middle; | |
| 1433 | -} | |
| 1434 | -.lp-modal-dialog .lp-button:hover { | |
| 1435 | - border-color: var(--lp-primary-color, #ffb606); | |
| 1436 | - color: #fff; | |
| 1437 | - background: var(--lp-primary-color, #ffb606); | |
| 1438 | -} | |
| 1439 | 1543 | |
| 1440 | 1544 | .lp-button.btn-finish-course { |
| 1441 | 1545 | cursor: pointer; |
| 1442 | 1546 | width: 100%; |
| @@ -1455,24 +1559,8 @@ | ||
| 1455 | 1559 | .lp-button.btn-finish-course:hover { |
| 1456 | 1560 | background-color: var(--lp-secondary-color, #442e66); |
| 1457 | 1561 | border-color: var(--lp-secondary-color, #442e66); |
| 1458 | 1562 | } |
| 1459 | -.lp-button.btn-finish-course.loading { | |
| 1460 | - pointer-events: none; | |
| 1461 | - opacity: 0.8; | |
| 1462 | -} | |
| 1463 | -.lp-button.btn-finish-course.loading:before { | |
| 1464 | - display: inline-block; | |
| 1465 | - font-family: "lp-icon"; | |
| 1466 | - content: "\f110"; | |
| 1467 | - animation: lp-rotating 1s linear infinite; | |
| 1468 | - margin-right: 5px; | |
| 1469 | - font-variant: normal; | |
| 1470 | - text-transform: none; | |
| 1471 | - -webkit-font-smoothing: antialiased; | |
| 1472 | - -moz-osx-font-smoothing: grayscale; | |
| 1473 | - vertical-align: middle; | |
| 1474 | -} | |
| 1475 | 1563 | |
| 1476 | 1564 | /** |
| 1477 | 1565 | * Mixin |
| 1478 | 1566 | */ |
| @@ -1542,18 +1630,21 @@ | ||
| 1542 | 1630 | opacity: 0.8; |
| 1543 | 1631 | } |
| 1544 | 1632 | .wp-block-learnpress-course-button-read-more.loading:before, |
| 1545 | 1633 | .wp-block-learnpress-course-button.loading:before { |
| 1546 | - display: inline-block; | |
| 1634 | + position: absolute; | |
| 1635 | + inset: 0; | |
| 1636 | + display: flex; | |
| 1637 | + align-items: center; | |
| 1638 | + justify-content: center; | |
| 1547 | 1639 | font-family: "lp-icon"; |
| 1548 | 1640 | content: "\f110"; |
| 1549 | 1641 | animation: lp-rotating 1s linear infinite; |
| 1550 | - margin-right: 5px; | |
| 1551 | 1642 | font-variant: normal; |
| 1552 | 1643 | text-transform: none; |
| 1553 | 1644 | -webkit-font-smoothing: antialiased; |
| 1554 | 1645 | -moz-osx-font-smoothing: grayscale; |
| 1555 | - vertical-align: middle; | |
| 1646 | + color: black; | |
| 1556 | 1647 | } |
| 1557 | 1648 | |
| 1558 | 1649 | @media (min-width: 992px) { |
| 1559 | 1650 | .lp-block-course-sidebar { |
| @@ -2169,22 +2260,5 @@ | ||
| 2169 | 2260 | } |
| 2170 | 2261 | |
| 2171 | 2262 | .lp-sidebar-toggle__open .js-block-sidebar { |
| 2172 | 2263 | display: block; |
| 2173 | -} | |
| 2174 | - | |
| 2175 | -.lp-button.loading { | |
| 2176 | - pointer-events: none; | |
| 2177 | - opacity: 0.8; | |
| 2178 | -} | |
| 2179 | -.lp-button.loading:before { | |
| 2180 | - display: inline-block; | |
| 2181 | - font-family: "lp-icon"; | |
| 2182 | - content: "\f110"; | |
| 2183 | - animation: lp-rotating 1s linear infinite; | |
| 2184 | - margin-right: 5px; | |
| 2185 | - font-variant: normal; | |
| 2186 | - text-transform: none; | |
| 2187 | - -webkit-font-smoothing: antialiased; | |
| 2188 | - -moz-osx-font-smoothing: grayscale; | |
| 2189 | - vertical-align: middle; | |
| 2190 | 2264 | } |