mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 04:20:17 +02:00
[CHANGE] Docs updated
This commit is contained in:
parent
24b6c19aca
commit
e81450baf3
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
|
||||
Bootstrap alert levels "Success", "Info", "Warning" and "Danger".
|
||||
|
||||

|
||||
|
||||
### 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
|
||||
<div class="aa-callout aa-callout-success">
|
||||
<p>
|
||||
@ -71,3 +85,35 @@ Bootstrap alert levels "Success", "Info", "Warning" and "Danger".
|
||||
</p>
|
||||
</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 aa-callout-warning">
|
||||
<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