| 1 |
/** |
| 2 |
* All of the CSS for your block editor functionality should be |
| 3 |
* included in this file. |
| 4 |
*/ |
| 5 |
/** |
| 6 |
* Environment for all styles (variables, additions, etc). |
| 7 |
*/ |
| 8 |
/*--------------------------------------------------------------*/ |
| 9 |
/*--------------------------------------------------------------*/ |
| 10 |
.cnvs-block-alert { |
| 11 |
--cnvs-alert-background: #f8f9fa; |
| 12 |
--cnvs-alert-padding: 0.5rem 1rem; |
| 13 |
--cnvs-alert-font-size: 0.875rem; |
| 14 |
--cnvs-alert-margin-bottom: 1rem; |
| 15 |
--cnvs-alert-border-left: 2px solid transparent; |
| 16 |
} |
| 17 |
|
| 18 |
/*--------------------------------------------------------------*/ |
| 19 |
.cnvs-block-alert { |
| 20 |
position: relative; |
| 21 |
padding: var(--cnvs-alert-padding); |
| 22 |
background: var(--cnvs-alert-background); |
| 23 |
font-size: var(--cnvs-alert-font-size); |
| 24 |
margin-bottom: var(--cnvs-alert-margin-bottom); |
| 25 |
border-left: var(--cnvs-alert-border-left); |
| 26 |
} |
| 27 |
|
| 28 |
.cnvs-block-alert.cnvs-block-alert-dismissible { |
| 29 |
padding-right: 4rem; |
| 30 |
} |
| 31 |
|
| 32 |
.cnvs-block-alert.cnvs-block-alert-dismissible button.cnvs-close { |
| 33 |
position: absolute; |
| 34 |
top: 0; |
| 35 |
right: 0; |
| 36 |
height: 100%; |
| 37 |
padding: 0 1rem; |
| 38 |
color: inherit; |
| 39 |
} |
| 40 |
|
| 41 |
.cnvs-block-alert .cnvs-block-alert-inner h1, .cnvs-block-alert .cnvs-block-alert-inner h2, .cnvs-block-alert .cnvs-block-alert-inner h3, .cnvs-block-alert .cnvs-block-alert-inner h4, .cnvs-block-alert .cnvs-block-alert-inner h5, .cnvs-block-alert .cnvs-block-alert-inner h6 { |
| 42 |
margin-bottom: 1rem; |
| 43 |
} |
| 44 |
|
| 45 |
.cnvs-block-alert .cnvs-block-alert-inner > * { |
| 46 |
margin-top: 0.5rem; |
| 47 |
margin-bottom: 0.5rem; |
| 48 |
} |
| 49 |
|
| 50 |
.cnvs-block-alert .cnvs-block-alert-inner > *:first-child:last-child { |
| 51 |
margin-top: 0; |
| 52 |
margin-bottom: 0; |
| 53 |
} |
| 54 |
|
| 55 |
.is-style-cnvs-block-alert-primary { |
| 56 |
border-left-color: #007bff; |
| 57 |
} |
| 58 |
|
| 59 |
.is-style-cnvs-block-alert-secondary { |
| 60 |
border-left-color: #6c757d; |
| 61 |
} |
| 62 |
|
| 63 |
.is-style-cnvs-block-alert-success { |
| 64 |
border-left-color: #28a745; |
| 65 |
} |
| 66 |
|
| 67 |
.is-style-cnvs-block-alert-info { |
| 68 |
border-left-color: #17a2b8; |
| 69 |
} |
| 70 |
|
| 71 |
.is-style-cnvs-block-alert-warning { |
| 72 |
border-left-color: #ffc107; |
| 73 |
} |
| 74 |
|
| 75 |
.is-style-cnvs-block-alert-danger { |
| 76 |
border-left-color: #dc3545; |
| 77 |
} |
| 78 |
|
| 79 |
.is-style-cnvs-block-alert-light { |
| 80 |
border-left-color: #f8f9fa; |
| 81 |
} |
| 82 |
|
| 83 |
.is-style-cnvs-block-alert-dark { |
| 84 |
border-left-color: #343a40; |
| 85 |
} |
| 86 |
|