horizon/openstack_dashboard/static/dashboard/scss/components/_dropdowns.scss
Diana Whitten 03ede4ce5e Modals should inherit from the theme
* Fullscreen Modals have been removed
  These weren't working properly anyways, and the styling is very
  unpleasant: https://i.imgur.com/QfvGli7.png

* Added two more modal sizes: xs and xl, and added all modals sizes
  to the theme preview page.  Also updated the theme preview page
  to use fa-close instead of 'x'.

* Cleaned up Spinner css to use modal sizes properly.  Themability
  of spinner to come later.

* Confirmation Modal JavaScript was cleaned up, and contents turned
  into an easier to digest client side template. Themability of
  client side templates show cased in 'material' design.

* 'material' confirmation dialog was altered to show how themes can
  make use of overriding client-side templates.

* Moved the Bootstrap helper variables into its own file.

* Added helper variables for various modal calculations.

Change-Id: I599ad2ffcf3034a24a19bc87e6ebed3eab079f45
2016-06-21 15:54:00 -07:00

86 lines
2.0 KiB
SCSS

/* Dropdown Actions */
/* Unfortunately, we want to style a button in a dropdown
the same way that we style an anchor. This isn't possible
in the current Bootstrap:
https://github.com/twbs/bootstrap/issues/10248
*/
/* Specificity required */
.dropdown-menu > li > .btn {
border: none;
box-shadow: none;
border-radius: 0;
margin: 0; // prevent the form-inline styles from messing with margin
padding: $bs-dropdown-item-padding-vertical $bs-dropdown-item-padding-horizontal;
white-space: nowrap; // prevent links from breaking onto new lines
min-width: 100%;
text-align: left;
background: transparent;
display: block;
clear: both;
font-weight: normal;
line-height: $line-height-base;
&:hover,
&:focus {
text-decoration: none;
}
&.disabled,
&[disabled] {
cursor: not-allowed;
pointer-events: none; // Future-proof disabling of clicks
@include opacity(.65);
@include box-shadow(none);
}
&.btn-primary {
color: $brand-primary;
}
&.btn-danger {
color: $brand-danger;
}
&.btn-warning {
color: $brand-warning;
}
&.btn-info {
color: $brand-info;
}
@include dropdown-button('default', $dropdown-link-color, $dropdown-link-hover-bg);
@include dropdown-button('primary', $btn-primary-bg, $btn-primary-bg, $btn-primary-color);
@include dropdown-button('info', $btn-info-bg, $btn-info-bg, $btn-info-color);
@include dropdown-button('warning', $btn-warning-bg, $btn-warning-bg, $btn-warning-color);
@include dropdown-button('danger', $btn-danger-bg, $btn-danger-bg, $btn-danger-color);
}
.table_search .themable-select,
.table_actions_menu {
display: inline-block;
position: relative;
}
.table_actions {
float: right;
@extend .form-inline;
}
.table_search,
.table_filter {
display: inline-block;
}
// Push the table filter padding over to compensate for that little magnifying glass icon
.table_search {
input[type="text"] {
padding-right: $input-height-base;
}
}
td.actions_column {
width: 1px; // Slight hack to make sure the column shrinks to the button width
}