-
Notifications
You must be signed in to change notification settings - Fork 25
UI Elements
nfoert edited this page Jul 31, 2024
·
4 revisions
This page describes how to use all of the UI elements defined in ui.css
.
You can see all of the UI elements and how they work on different screen sizes at http://<local Cardie server>/ui
.
To use the UI elements, import the two stylesheets like this:
<link rel="stylesheet" type="text/css" href="{% static '/main/variables.css' %}">
<link rel="stylesheet" type="text/css" href="{% static '/main/ui.css' %}">
<button class="ui_button_large">Large Button <i class="ph-bold ph-arrow-circle-right"></i></button>
<button class="ui_button_grid">Grid Button <i class="ph-bold ph-arrow-fat-line-down"></i></button>
<button class="ui_button_icon"><i class="ph-bold ph-diamonds-four"></i></button>
<button class="ui_button_smallicon"><i class="ph ph-flag-banner"></i></button>
<button class="ui_button_small">Small Button</button>
<p class="ui_text_header">Header Text</p>
<p class="ui_text_header_left">Header Text Left</p>
<p class="ui_text_subheader">Subheader Text</p>
<p class="ui_text_subheader_left">Subheader Text Left</p>
<p class="ui_text_smallersubheader">Smaller Subheader Text</p>
<p class="ui_text_body">Body Text</p>
<p class="ui_text_description">Description Text</p>
<img class="ui_image_generic" style="width: 500px;" src="https://raw.githubusercontent.com/nfoert/cardie/development/repo/images/cardie.png">
<div class="ui_status_info">
<i class="ph-bold ph-info ui_status_icon"></i>
<p class="ui_status_text">Information status box</p>
</div>
<div class="ui_status_warning">
<i class="ph-bold ph-warning ui_status_icon"></i>
<p class="ui_status_text">Warning status box</p>
</div>
<div class="ui_status_critical">
<i class="ph-bold ph-warning-octagon ui_status_icon"></i>
<p class="ui_status_text">Critical status box</p>
</div>
<input type="text" class="ui_input_generic"></input>
<div class="ui_spacer"></div>
<div class="ui_separator_vertical"></div>
<div class="ui_separator_horizontal"></div>