mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-12-19 23:35:04 +01:00
[ADD] CSS cursor classes docs
This commit is contained in:
60
docs/development/custom/framework/css.md
Normal file
60
docs/development/custom/framework/css.md
Normal file
@@ -0,0 +1,60 @@
|
||||
# CSS Framework
|
||||
|
||||
To establish a unified style language throughout Alliance Auth and Community Apps,
|
||||
Alliance Auth is providing its own CSS framework with a couple of CSS classes.
|
||||
|
||||
## Cursor
|
||||
|
||||
Our CSS framework provides different classes to manipulate the cursor, which are
|
||||
missing in Bootstrap.
|
||||
|
||||
| CSS Class | Effect | Example |
|
||||
|----------------------|--------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `cursor-default` | System default curser |  |
|
||||
| `cursor-pointer` | Pointer, like it looks like for links and form buttons |  |
|
||||
| `cursor-wait` | Wait animation |  |
|
||||
| `cursor-text` | Text selection cursor |  |
|
||||
| `cursor-move` | 4-arraow-shaped cursor |  |
|
||||
| `cursor-help` | Cursor with a little questionmark |  |
|
||||
| `cursor-not-allowed` | Not Allowed sign |  |
|
||||
| `cursor-inherit` | Inherited from its parent element | |
|
||||
| `cursor-zoom-in` | Zoom in symbol |  |
|
||||
| `cursor-zoom-out` | Zoom out symbol |  |
|
||||
|
||||
## Callout-Boxes
|
||||
|
||||
These are similar to the Bootstrap alert/notification boxes, but not as "loud".
|
||||
|
||||
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 aa-callout-success">
|
||||
<p>
|
||||
This is a success callout-box.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="aa-callout aa-callout-info">
|
||||
<p>
|
||||
This is an info callout-box.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="aa-callout aa-callout-warning">
|
||||
<p>
|
||||
This is a warning callout-box.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="aa-callout aa-callout-danger">
|
||||
<p>
|
||||
This is a danger callout-box.
|
||||
</p>
|
||||
</div>
|
||||
```
|
||||
Reference in New Issue
Block a user