mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
5.5 KiB
5.5 KiB
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.
Cursors
Our CSS framework provides different classes to manipulate the cursor, which are missing in Bootstrap.
+----------------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+
| CSS Class | Effect | Example |
+======================+========================================================+===========================================================================================================+
| `cursor-default` | System default curser | <img src="/_static/images/development/aa-framework/css/cursor-default.png" alt="Cursor: Default"> |
+----------------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+
| `cursor-pointer` | Pointer, like it looks like for links and form buttons | <img src="/_static/images/development/aa-framework/css/cursor-pointer.png" alt="Cursor: Pointer"> |
+----------------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+
| `cursor-wait` | Wait animation | <img src="/_static/images/development/aa-framework/css/cursor-wait.png" alt="Cursor: Wait"> |
+----------------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+
| `cursor-text` | Text selection cursor | <img src="/_static/images/development/aa-framework/css/cursor-text.png" alt="Cursor: Text"> |
+----------------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+
| `cursor-move` | 4-arrow-shaped cursor | <img src="/_static/images/development/aa-framework/css/cursor-move.png" alt="Cursor: Move"> |
+----------------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+
| `cursor-help` | Cursor with a little question mark | <img src="/_static/images/development/aa-framework/css/cursor-help.png" alt="Cursor: Help"> |
+----------------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+
| `cursor-not-allowed` | Not Allowed sign | <img src="/_static/images/development/aa-framework/css/cursor-not-allowed.png" alt="Cursor: Not Allowed"> |
+----------------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+
| `cursor-inherit` | Inherited from its parent element | |
+----------------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+
| `cursor-zoom-in` | Zoom in symbol | <img src="/_static/images/development/aa-framework/css/cursor-zoom-in.png" alt="Cursor: Zoom In"> |
+----------------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+
| `cursor-zoom-out` | Zoom out symbol | <img src="/_static/images/development/aa-framework/css/cursor-zoom-out.png" alt="Cursor: Zoom Out"> |
+----------------------+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+
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
<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>