[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 @import "../../variables"; 2 @import "../../../../../../vendor/joomla-custom-elements/css/joomla-alert"; 3 4 // The following is a restyle for the system alerts 5 6 #system-message-container joomla-alert { 7 position: relative; 8 display: flex; 9 width: 100%; 10 min-width: 16rem; 11 padding: 0; 12 margin-bottom: 1rem; 13 color: var(--alert-accent-color, var(--template-bg-dark)); 14 background-color: var(--alert-bg-color, var(--white)); 15 border: 1px solid var(--alert-accent-color, var(--template-bg-dark)); 16 border-radius: .25rem; 17 transition: opacity .15s linear; 18 19 .alert-heading { 20 display: flex; 21 flex-direction: column; 22 justify-content: center; 23 padding: .8rem; 24 color: var(--white); 25 background: var(--alert-accent-color, var(--template-bg-dark)); 26 align-content: center; 27 28 .message::before, 29 .success::before { 30 display: inline-block; 31 width: 1em; 32 height: 1em; 33 content: ""; 34 background-image: url('data:image/svg+xml;utf8,<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255, 255, 255, .95)" d="M1299 813l-422 422q-19 19-45 19t-45-19l-294-294q-19-19-19-45t19-45l102-102q19-19 45-19t45 19l147 147 275-275q19-19 45-19t45 19l102 102q19 19 19 45t-19 45zm141 83q0-148-73-273t-198-198-273-73-273 73-198 198-73 273 73 273 198 198 273 73 273-73 198-198 73-273zm224 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/></svg>'); 35 background-size: 100%; 36 } 37 38 .notice::before, 39 .info::before { 40 display: inline-block; 41 width: 1em; 42 height: 1em; 43 content: ""; 44 background-image: url('data:image/svg+xml;utf8,<svg width="1792" height="1792" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255, 255, 255, .95)" d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"/></svg>'); 45 background-size: 100%; 46 } 47 48 .warning::before { 49 display: inline-block; 50 width: 1em; 51 height: 1em; 52 content: ""; 53 background-image: url('data:image/svg+xml;utf8,<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255, 255, 255, .95)" d="M1024 1375v-190q0-14-9.5-23.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 23.5v190q0 14 9.5 23.5t22.5 9.5h192q13 0 22.5-9.5t9.5-23.5zm-2-374l18-459q0-12-10-19-13-11-24-11h-220q-11 0-24 11-10 7-10 21l17 457q0 10 10 16.5t24 6.5h185q14 0 23.5-6.5t10.5-16.5zm-14-934l768 1408q35 63-2 126-17 29-46.5 46t-63.5 17h-1536q-34 0-63.5-17t-46.5-46q-37-63-2-126l768-1408q17-31 47-49t65-18 65 18 47 49z"/></svg>'); 54 background-size: 100%; 55 } 56 57 .error::before, 58 .danger::before { 59 display: inline-block; 60 width: 1em; 61 height: 1em; 62 content: ""; 63 background-image: url('data:image/svg+xml;utf8,<svg width="1792" height="1792" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255, 255, 255, .95)" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z"/></svg>'); 64 background-size: 100%; 65 } 66 } 67 68 .alert-wrapper { 69 width: 100%; 70 } 71 72 .alert-link { 73 color: var(--template-link-color); 74 text-decoration: underline; 75 } 76 77 &[type="success"], 78 &[type="message"] { 79 --alert-accent-color: #{$state-success-text}; 80 --alert-bg-color: #{$state-success-bg}; 81 } 82 83 &[type="info"], 84 &[type="notice"] { 85 --alert-accent-color: #{$state-info-text}; 86 --alert-bg-color: #{$state-info-bg}; 87 } 88 89 &[type="warning"] { 90 .joomla-alert--close { 91 color: #{$state-warning-text}; 92 } 93 94 color: #{$state-warning-text}; 95 --alert-accent-color: #{$warning}; 96 --alert-bg-color: #{$state-warning-bg}; 97 } 98 99 &[type="error"], 100 &[type="danger"] { 101 --alert-accent-color: #{$state-danger-text}; 102 --alert-bg-color: #{$state-danger-bg}; 103 } 104 105 .joomla-alert--close, 106 .joomla-alert-button--close { 107 position: absolute; 108 top: 0; 109 inset-inline-end: 0; 110 padding: .75rem .8rem; 111 font-size: 2rem; 112 line-height: 1rem; 113 color: var(--alert-accent-color); 114 background: none; 115 border: 0; 116 opacity: 1; 117 118 &:hover, 119 &:focus { 120 text-decoration: none; 121 cursor: pointer; 122 opacity: .75; 123 } 124 } 125 126 div { 127 font-size: 1rem; 128 .alert-message { 129 padding: .15rem .3rem; 130 padding-inline-end: 2rem; 131 margin: .5rem; 132 } 133 134 .alert-message:not(:first-of-type) { 135 border-top: 1px solid var(--alert-accent-color); 136 } 137 } 138 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |