|
| 1 | +/** |
| 2 | + * Snippet Title: Cookies Popup Enhancement |
| 3 | + * Domain: theme_boost_union |
| 4 | + * Scope: global |
| 5 | + * Goal: easeofuse |
| 6 | + * Description: Enhance the popup cookies dialog when first visiting a moodle website |
| 7 | + * |
| 8 | + * @package theme_boost_union |
| 9 | + * @copyright 2024 The American University in Cairo |
| 10 | + * @author Heba Amer <[email protected]> |
| 11 | + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| 12 | + */ |
| 13 | + |
| 14 | +.eupopup-container.eupopup-container-bottom { |
| 15 | + flex-direction: column; |
| 16 | + justify-content: center; |
| 17 | + background-color: #fff; |
| 18 | + border-radius: 10px; |
| 19 | + box-shadow: 4px 4px 12px 2000px rgba(0,0,0,.56); |
| 20 | + position: absolute; |
| 21 | + top: 50%; |
| 22 | + left: 50%; |
| 23 | + width: 320px; |
| 24 | + height: 330px; |
| 25 | + margin: -270px 0 0 -160px; |
| 26 | + padding: 50px 20px |
| 27 | +} |
| 28 | + |
| 29 | +@media (min-width: 576px) { |
| 30 | + .eupopup-container.eupopup-container-bottom { |
| 31 | + width:450px; |
| 32 | + height: 330px; |
| 33 | + margin: -270px 0 0 -220px |
| 34 | + } |
| 35 | +} |
| 36 | + |
| 37 | +@media (min-width: 768px) { |
| 38 | + .eupopup-container.eupopup-container-bottom { |
| 39 | + width:650px; |
| 40 | + height: 300px; |
| 41 | + margin: -135px 0 0 -320px |
| 42 | + } |
| 43 | +} |
| 44 | + |
| 45 | +.eupopup-container.eupopup-container-bottom .eupopup-body { |
| 46 | + color: #343a40; |
| 47 | + font-size: 1.2rem; |
| 48 | + line-height: 1.5rem |
| 49 | +} |
| 50 | + |
| 51 | +.eupopup-container.eupopup-container-bottom .eupopup-body a { |
| 52 | + color: #8eaf3e; |
| 53 | + text-decoration: none; |
| 54 | + font-weight: 700; |
| 55 | + line-height: 2.5rem |
| 56 | +} |
| 57 | + |
| 58 | +.eupopup-container.eupopup-container-bottom .eupopup-body a:hover { |
| 59 | + text-decoration: underline |
| 60 | +} |
| 61 | + |
| 62 | +.eupopup-container.eupopup-container-bottom .eupopup-buttons { |
| 63 | + margin-top: 2rem |
| 64 | +} |
| 65 | + |
| 66 | +.eupopup-container.eupopup-container-bottom .eupopup-buttons .eupopup-button_1 { |
| 67 | + background-color: #ff7f00; |
| 68 | + color: #fff; |
| 69 | + font-size: 1.2rem; |
| 70 | + font-weight: 600; |
| 71 | + padding: .75rem 1.5rem 1rem 1.5rem; |
| 72 | + border-radius: .5rem; |
| 73 | + display: inline-block; |
| 74 | + text-align: center; |
| 75 | + transition: filter 0.15s ease-in-out |
| 76 | +} |
| 77 | + |
| 78 | +.eupopup-container.eupopup-container-bottom .eupopup-buttons .eupopup-button_1:hover { |
| 79 | + text-decoration: none; |
| 80 | + filter: brightness(85%) |
| 81 | +} |
| 82 | + |
| 83 | +.eupopup-container.eupopup-container-bottom .eupopup-closebutton { |
| 84 | + font-weight: 500; |
| 85 | + color: #343a40; |
| 86 | + opacity: .8; |
| 87 | + font-size: 35px; |
| 88 | + padding: 10px 20px |
| 89 | +} |
| 90 | + |
| 91 | +.eupopup-container.eupopup-container-bottom .eupopup-closebutton:hover { |
| 92 | + color: #343a40 |
| 93 | +} |
0 commit comments