Make label delete option red
This commit is contained in:
parent
72954bc7b7
commit
c07df632ec
3 changed files with 9 additions and 12 deletions
|
@ -58,8 +58,6 @@
|
|||
}
|
||||
|
||||
.member-form-control {
|
||||
@include new-style-dropdown;
|
||||
|
||||
@media (max-width: $screen-xs-max) {
|
||||
padding-bottom: 5px;
|
||||
margin-left: 0;
|
||||
|
|
|
@ -35,7 +35,12 @@
|
|||
%li
|
||||
= link_to 'Edit', edit_label_path(label)
|
||||
%li
|
||||
= link_to 'Delete', destroy_label_path(label), title: 'Delete', method: :delete, data: {confirm: 'Remove this label? Are you sure?'}
|
||||
= link_to 'Delete',
|
||||
destroy_label_path(label),
|
||||
title: 'Delete',
|
||||
method: :delete,
|
||||
data: {confirm: 'Remove this label? Are you sure?'},
|
||||
class: 'text-danger'
|
||||
|
||||
.pull-right.hidden-xs.hidden-sm.hidden-md
|
||||
= link_to_label(label, subject: subject, type: :merge_request, css_class: 'btn btn-transparent btn-action btn-link') do
|
||||
|
|
|
@ -4,15 +4,15 @@
|
|||
## How to style a bootstrap dropdown
|
||||
1. Use the HTML structure provided by the [docs][bootstrap-dropdowns]
|
||||
1. Add a specific class to the top level `.dropdown` element
|
||||
|
||||
|
||||
|
||||
|
||||
```Haml
|
||||
.dropdown.my-dropdown
|
||||
%button{ type: 'button', data: { toggle: 'dropdown' }, 'aria-haspopup': true, 'aria-expanded': false }
|
||||
%span.dropdown-toggle-text
|
||||
Toggle Dropdown
|
||||
= icon('chevron-down')
|
||||
|
||||
|
||||
%ul.dropdown-menu
|
||||
%li
|
||||
%a
|
||||
|
@ -29,10 +29,4 @@
|
|||
item!
|
||||
```
|
||||
|
||||
1. Include the mixin in CSS
|
||||
|
||||
```SCSS
|
||||
@include new-style-dropdown('.my-dropdown ');
|
||||
```
|
||||
|
||||
[bootstrap-dropdowns]: https://getbootstrap.com/docs/3.3/javascript/#dropdowns
|
||||
|
|
Loading…
Reference in a new issue