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/_buttons.lsg

150 lines
5.7 KiB

# Buttons
## Default buttons
```
<button class="***button***"><i class="button--icon icon-watched"></i><span class="button--text">Watch</span></button>
<button class="***button***"><i class="button--icon icon-watched"></i></button>
<button class="***button***">Watch</button>
<button class="***button***" disabled>
<i class="button--icon icon-watched"></i><span class="button--text">Watch</span>
</button>
<br>
<a href="#" class="***button*** -with-icon icon-watched">Watch</a>
<a href="#" class="***button***">Click to watch</a>
<input type="submit" class="***button***" value="Submit to watch"/>
<input type="submit" class="***button***" value="Do not watch" disabled />
```
## Highlight buttons
```
<button class="button ***-highlight***"><i class="button--icon icon-checkmark"></i><span class="button--text">Apply</span></button>
<button class="button ***-highlight***"><i class="button--icon icon-checkmark"></i></button>
<button class="button ***-highlight***">Apply</button>
<button class="button ***-highlight***" disabled>
<i class="button--icon icon-checkmark"></i><span class="button--text">Apply</span>
</button>
<br>
<a href="#" class="button ***-highlight*** -with-icon icon-checkmark">Apply</a>
<a href="#" class="button ***-highlight***">Click to apply</a>
<input type="submit" class="button ***-highlight***" value="Submit to apply"/>
<input type="submit" class="button ***-highlight***" value="Do not apply" disabled />
```
## Alternative highlight buttons
```
<button class="button ***-alt-highlight***"><i class="button--icon icon-add"></i><span class="button--text">Create</span></button>
<button class="button ***-alt-highlight***"><i class="button--icon icon-add"></i></button>
<button class="button ***-alt-highlight***">Create</button>
<button class="button ***-alt-highlight***" disabled>
<i class="button--icon icon-add"></i><span class="button--text">Create</span>
</button>
<br>
<a href="#" class="button ***-alt-highlight*** -with-icon icon-add">Create</a>
<a href="#" class="button ***-alt-highlight***">Click to create</a>
<input type="submit" class="button ***-alt-highlight***" value="Submit to create"/>
<input type="submit" class="button ***-alt-highlight***" value="Do not create" disabled />
```
## Danger zone buttons
```
<button class="button ***-danger***"><i class="button--icon icon-delete"></i><span class="button--text">Delete</span></button>
```
## Active (depressed) buttons
```
<button class="button ***-active***"><i class="button--icon icon-upload"></i><span class="button--text">Connect</span></button>
<button class="button ***-active***"><i class="button--icon icon-upload"></i></button>
<button class="button ***-active***">Connect</button>
<button class="button ***-active***" disabled>
<i class="button--icon icon-upload"></i><span class="button--text">Connect</span>
</button>
<br>
<a href="#" class="button ***-active*** -with-icon icon-upload">Connect</a>
<a href="#" class="button ***-active***">Click to connect</a>
<input type="submit" class="button ***-active***" value="Submit to connect"/>
<input type="submit" class="button ***-active***" value="Do not connect" disabled />
```
## Transparent buttons
```
<button class="button ***-transparent***"><i class="button--icon icon-forums"></i><span class="button--text">Comment</span></button>
<button class="button ***-transparent***"><i class="button--icon icon-forums"></i></button>
<button class="button ***-transparent***">Comment</button>
<button class="button ***-transparent***" disabled>
<i class="button--icon icon-forums"></i><span class="button--text">Comment</span>
</button>
<br>
<a href="#" class="button ***-transparent*** -with-icon icon-forums">Comment</a>
<a href="#" class="button ***-transparent***">Click to comment</a>
<input type="submit" class="button ***-transparent***" value="Submit to comment"/>
<input type="submit" class="button ***-transparent***" value="Do not comment" disabled />
```
## Button sizes
```
<button class="button ***-tiny***"><i class="button--icon icon-star"></i></button>
<button class="button ***-tiny***"><i class="button--icon icon-star"></i><span class="button--text">Tiny</span></button>
<button class="button ***-tiny***">Tiny</button>
<button class="button ***-tiny*** -with-icon icon-star">Tiny</button>
```
```
<button class="button ***-small***"><i class="button--icon icon-star"></i></button>
<button class="button ***-small***"><i class="button--icon icon-star"></i><span class="button--text">Small</span></button>
<button class="button ***-small***">Small</button>
<button class="button ***-small*** -with-icon icon-star">Small</button>
```
```
<button class="***button***"><i class="button--icon icon-star"></i></button>
<button class="***button***"><i class="button--icon icon-star"></i><span class="button--text">Default</span></button>
<button class="***button***">Default</button>
<button class="***button*** -with-icon icon-star">Default</button>
```
```
<button class="button ***-large***"><i class="button--icon icon-star"></i></button>
<button class="button ***-large***"><i class="button--icon icon-star"></i><span class="button--text">Large</span></button>
<button class="button ***-large***">Large</button>
<button class="button ***-large*** -with-icon icon-star">Large</button>
```
## Expanded buttons
```
<button class="button ***-expand***">Expanded button</button>
<a href="#" class="button ***-expand***">Expanded button as link</a>
```
## Rounded buttons
```
<button class="button ***-round***">Rounded button</button>
<a href="#" class="button ***-round***">Rounded button as link</a>
```
## Link-like buttons
```
<button class="***button--link***">Link-like button</button>
<button class="***button--link***" disabled>Disabled link-like button</button>
```