mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-14 15:00:16 +02:00
Merge branch 'callout-box-fixes' into 'v4.x'
Different callout box sizes (through padding) See merge request allianceauth/allianceauth!1584
This commit is contained in:
commit
4aae5497bb
@ -72,9 +72,16 @@
|
|||||||
border: 1px solid var(--bs-border-color);
|
border: 1px solid var(--bs-border-color);
|
||||||
border-left-width: 0.25rem;
|
border-left-width: 0.25rem;
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
margin-bottom: 1.25rem;
|
margin-bottom: 1rem;
|
||||||
margin-top: 1.25rem;
|
padding: 1rem;
|
||||||
padding: 1.25rem;
|
}
|
||||||
|
|
||||||
|
.aa-callout.aa-callout-sm {
|
||||||
|
padding: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aa-callout.aa-callout-lg {
|
||||||
|
padding: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Last item bottom margin should be 0 */
|
/* Last item bottom margin should be 0 */
|
||||||
|
BIN
docs/_static/images/development/aa-framework/css/callout-box.png
vendored
Normal file
BIN
docs/_static/images/development/aa-framework/css/callout-box.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
BIN
docs/_static/images/development/aa-framework/css/callout-boxes-size-modifier.png
vendored
Normal file
BIN
docs/_static/images/development/aa-framework/css/callout-boxes-size-modifier.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
@ -42,10 +42,24 @@ Callout-boxes need a base-class (`.aa-callout`) and a modifier-class (e.g.:
|
|||||||
`.aa-callout-info` for an info-box). Modifier classes are available for the usual
|
`.aa-callout-info` for an info-box). Modifier classes are available for the usual
|
||||||
Bootstrap alert levels "Success", "Info", "Warning" and "Danger".
|
Bootstrap alert levels "Success", "Info", "Warning" and "Danger".
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### HTML
|
### HTML
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="aa-callout">
|
||||||
|
<p>
|
||||||
|
This is a callout-box.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
#### Alert Level Modifier Classes
|
||||||
|
|
||||||
|
The callout boxes come in four alert levels: success, info, warning and danger.
|
||||||
|
|
||||||
|
Use the modifier classes `.aa-callout-success`, `.aa-callout-info`, `.aa-callout-warning` and `.aa-callout-danger` to change the left border color of the callout box.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<div class="aa-callout aa-callout-success">
|
<div class="aa-callout aa-callout-success">
|
||||||
<p>
|
<p>
|
||||||
@ -71,3 +85,35 @@ Bootstrap alert levels "Success", "Info", "Warning" and "Danger".
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
#### Size Modifier Classes
|
||||||
|
|
||||||
|
The callout boxes come in three sizes: small, default and large.
|
||||||
|
|
||||||
|
Use the modifier classes `.aa-callout-sm` for small and `.aa-callout-lg` for large, where `.aa-callout-sm` will change the default padding form 1rem to 0.5rem and `.aa-callout-lg` will change it to 1.5rem.
|
||||||
|
|
||||||
|
These modifier classes can be combined with the alert level modifier classes.
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div class="aa-callout aa-callout-sm">
|
||||||
|
<p>
|
||||||
|
This is a small callout-box.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="aa-callout">
|
||||||
|
<p>
|
||||||
|
This is a default callout-box.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="aa-callout aa-callout-lg">
|
||||||
|
<p>
|
||||||
|
This is a large callout-box.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
Loading…
x
Reference in New Issue
Block a user