horizon/openstack_dashboard/static/dashboard/scss/_mixins.scss
Diana Whitten 9e506d1005 Many dropdown actions are white text on white background
A recent CSS change has made many of the table actions (both row and
table) invisible, as they are white text on a white background.

This change was caused by two separate reviews merging around the
same time that had adverse affects on each other.

Closes-bug: #1572213

Change-Id: I78a12c4ed435fe22db0845b428b7229a6882e4f0
2016-04-20 15:13:34 +00:00

44 lines
893 B
SCSS

/* This file contains any custom SCSS mixins that can be shared */
/* For more information on the benefits of Sass mixins and the @mixin syntax,
* check out http://www.sass-lang.com/guide#topic-6
*/
@mixin input-placeholder {
&::-webkit-input-placeholder {
@content;
}
&:-moz-placeholder { /* Firefox 18- */
@content;
}
&::-moz-placeholder { /* Firefox 19+ */
@content;
}
&:-ms-input-placeholder {
@content;
}
}
@mixin horizontal-center {
float: none;
margin: 0 auto;
}
@mixin vertical-center {
display: inline-block;
vertical-align: middle;
}
// Mixin for the dropdown button styling of the table action rows
@mixin dropdown-button($class, $color, $hover-bg, $hover-color: $color) {
&.btn-#{$class} {
color: $color;
&:focus,
&.active,
&:active,
&:hover {
color: $hover-color;
background: $hover-bg;
}
}
}