OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/assets/stylesheets/content/_modal.lsg

111 lines
3.5 KiB

# Modals
## Modals: Standard style
```
<div class="modal-container">
<div class="op-modal--modal-header">
<a class="op-modal--modal-close-button">
<i class="icon-close" title="Close popup"></i>
</a>
</div>
<div class="modal-content">
<h3>Modal Headline</h3>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper
</div>
</div><br /><br />
<h3>Export</h3>
<ul class="export-options">
<li>
<a>
9 years ago
<i class="icon-export-atom icon-big"></i>
<span class="export-label">ATOM</span>
</a>
</li>
<li>
<a>
<i class="icon-export-vnd-ms-excel icon-big"></i>
<span class="export-label">XLS</span>
</a>
</li>
<li>
<a>
<i class="icon-export-vnd-ms-excel-descr icon-big"></i>
<span class="export-label">XLS with description</span>
</a>
</li>
<li>
<a>
9 years ago
<i class="icon-export-pdf icon-big"></i>
<span class="export-label">PDF</span>
</a>
</li>
<li>
<a>
9 years ago
<i class="icon-export-pdf-descr icon-big"></i>
<span class="export-label">PDF with description</span>
</a>
</li>
<li>
<a>
9 years ago
<i class="icon-export-csv icon-big"></i>
<span class="export-label">CSV</span>
</a>
</li>
</ul>
```
## Modals: Highlighted and with footer
```
<div class="op-modal--modal-container -highlight">
<div class="op-modal--modal-header">
<h2>Welcome to OpenProject</h2>
<a class="op-modal--modal-close-button" title="Close popup">
<i class="icon-close"></i>
</a>
</div>
<div class="op-modal--modal-body">
<b>Please select your language</b>
<fieldset class="form--fieldset">
<div class="form--field">
<label class="form--label" title="Language" for="user_language">Language</label>
<span class="form--field-container">
<span class="form--select-container -slim">
<select class="form--select">
<option value="de">Deutsch</option>
<option selected="selected" value="en">English</option>
<option value="fr">Français</option>
</select>
</span>
</span>
</div>
</fieldset>
</div>
<div class="op-modal--modal-footer">
<button name="button" type="submit" class="button -highlight">Save</button>
</div>
</div>
```
## Modals: Danger zone highlighting
```
<div class="op-modal--modal-container -highlight -danger-zone">
<div class="op-modal--modal-header">
<h3 class="icon-context icon-warning">Confirm deletion of Work Package</h3>
<a class="op-modal--modal-close-button" title="Close popup">
<i class="icon-close"></i>
</a>
</div>
<div class="op-modal--modal-body">
<p>Are you sure you want to delete the following work package?<p>
<p> ... </p>
</div>
<div class="op-modal--modal-footer">
<button name="button" type="submit" class="button -danger">Continue</button>
<button name="button" type="submit" class="button">Cancel</button>
</div>
</div>
```