{% extends 'layout.twig' %} {% set title %}Piwik UI demo{% endset %} {% block head %} {{ parent() }} {% endblock %} {% block root %}
This page is intended to show all the UI components and styles available to use in Piwik.
All HTML should be in a container:
.container-fluid
: this container is fluid and will take 100% of the width.container
: this container has a max-width that adapts to the screen sizeRead more about Bootstrap's containers.
Bootstrap's grid system allows to organize the content in columns, all the while staying responsive for smaller screens.
Read more about Bootstrap's grid system.
This is a paragraph, and this is a link.
Another paragraph, lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Left aligned text.
Center aligned text.
Right aligned text.
<p class="text-left">Left aligned text.</p> <p class="text-center">Center aligned text.</p> <p class="text-right">Right aligned text.</p>
<ul> <li>...</li> </ul>
<a class="btn" href="#">Link</a> <input type="button" class="btn" value="Input"> <input type="submit" value="Submit"> <button type="submit">Button</button>
<button class="btn btn-lg">Large button</button> <a class="btn btn-lg" href="#">Large button</a>
<a class="btn btn-block" href="#">Block button</a> <a class="btn btn-lg btn-block" href="#">Large block button</a>
<a class="btn btn-link" href="#">Flat button</a>
<a class="btn btn-flat" href="#">Flat button</a> <a class="btn btn-flat" href="#"><span class="icon-add"></span></a> <a class="btn btn-flat btn-lg" href="#">Flat button</a> <a class="btn btn-flat btn-lg" href="#"><span class="icon-add"></span></a>
<div class="alert alert-info">...</div> <div class="alert alert-success">...</div> <div class="alert alert-warning">...</div> <div class="alert alert-danger">...</div>
Read more about Bootstrap's alerts.
<form action="#"> <div class="form-group"> <label for="username"> Username </label> <input type="text" id="username" placeholder="Some text here..."/> </div> <div class="form-group"> <label for="email"> Email </label> <div class="form-help"> Here is more information. </div> <input type="email" id="email" placeholder="Some email here..."/> </div> <div class="form-group"> <label> Report to load by default </label> <div class="form-help"> This is a help text that can be used to describe the field. This help text may extend over several lines. </div> <label class="radio"> <input type="radio" name="defaultReport" value="today"> Today </label> <label class="radio"> <input type="radio" name="defaultReport" value="yesterday"> Yesterday </label> <label class="radio"> <input type="radio" name="defaultReport" value="week"> Previous 30 days (not including today) </label> </div> <div class="form-group"> <label for="language"> Language </label> <select id="language"> <option>English</option> </select> </div> <div class="form-group"> <label for="description"> Description </label> <textarea id="description" rows="5"></textarea> </div> <input type="submit" value="Submit"> </form>
<div class="form-group"> <label for="foo"> Input with a text addon </label> <div class="input-group"> <input type="text" id="foo" value="180"/> <span class="input-group-addon">days</span> </div> </div>
You can put code in a text using the code
tag.
You can put code in a text using the <code>code</code> tag.
Or you can display a code block:
<!-- Piwik --> <script type="text/javascript"> </script> <!-- End Piwik Code -->
First Name | Last Name | Username |
---|---|---|
Mark | Otto | @mdo |
Jacob | Thornton | @fat |
Larry | the Bird |
<table>...</table>
<span class="icon-ok"></span>