Commit 71322689 by Jeffrey Phillips Committed by GitHub

Merge pull request #28 from dtaylor113/master

Added ui-select.less, bumped version
parents 61cf8f44 91d29897
{
"name": "origin-web-common",
"version": "0.0.10",
"version": "0.0.11",
"main": [
"dist/origin-web-common.js",
"dist/origin-web-common.css"
......
......@@ -212,3 +212,65 @@ ul.messenger-theme-flat .messenger-message.alert-info .messenger-message-inner:b
display: inline-block;
background-color: transparent;
}
/* Fix some styles with the angular-ui-select bootstrap theme that isn't right when combined with all of our styles */
.ui-select-bootstrap {
/* Fixes ui-select's input box extending to 100% page width if the page has been resized after page-load
* https://github.com/angular-ui/ui-select/issues/1678
*/
}
.ui-select-bootstrap .ui-select-choices-row > span {
border-color: transparent;
border-style: solid;
border-width: 1px 0;
line-height: 1.66666667;
padding: 1px 10px;
}
.ui-select-bootstrap .ui-select-choices-row > span:hover,
.ui-select-bootstrap .ui-select-choices-row > span:focus {
background-color: #def3ff;
border-color: #bee1f4;
color: #4d5258;
}
.ui-select-bootstrap .ui-select-choices-row.active > span {
background-color: #0088ce !important;
border-color: #0088ce !important;
color: #fff;
}
.ui-select-bootstrap .ui-select-choices-row.active .text-muted {
color: #f5f5f5;
}
.ui-select-bootstrap .ui-select-choices-row-inner {
min-height: 24px;
cursor: pointer;
}
.ui-select-bootstrap .ui-select-choices-group-label:empty {
padding: 0;
}
.ui-select-bootstrap .ui-select-match-text,
.ui-select-bootstrap .ui-select-placeholder {
font-weight: normal;
padding-right: 20px;
}
.ui-select-bootstrap .ui-select-match-text span {
display: block;
text-overflow: ellipsis;
}
.ui-select-bootstrap .ui-select-match-text span span {
display: inline;
}
.ui-select-bootstrap .ui-select-placeholder {
display: block;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
}
.ui-select-bootstrap .ui-select-toggle > .caret {
font-size: 11px;
font-style: normal;
right: 6px;
top: 10px;
pointer-events: none;
}
.ui-select-bootstrap .ui-select-search {
width: 100% !important;
}
{
"author": "Red Hat",
"name": "origin-web-common",
"version": "0.0.10",
"version": "0.0.11",
"license": "Apache-2.0",
"description": "Library of common services and components for OpenShift Web Console.",
"homepage": "https://github.com/openshift/origin-web-common.git",
......
/* Fix some styles with the angular-ui-select bootstrap theme that isn't right when combined with all of our styles */
.ui-select-bootstrap {
.ui-select-choices-row {
> span {
border-color: transparent;
border-style: solid;
border-width: 1px 0;
line-height: @line-height-base;
padding: 1px 10px;
&:hover,
&:focus {
background-color: @dropdown-link-hover-bg;
border-color: @dropdown-link-hover-border-color;
color: @dropdown-link-hover-color;
}
}
&.active {
> span {
background-color: @dropdown-link-active-bg !important;
border-color: @dropdown-link-active-border-color !important;
color: @dropdown-link-active-color;
}
.text-muted {
color: #f5f5f5;
}
}
}
.ui-select-choices-row-inner {
min-height: 24px;
cursor: pointer;
}
.ui-select-choices-group-label:empty {
// Prevent extra space above the first choice when the group label is empty.
padding: 0;
}
.ui-select-match-text, .ui-select-placeholder {
font-weight: normal;
padding-right: 20px;
}
.ui-select-match-text span {
display: block;
text-overflow: ellipsis;
span {
display: inline;
}
}
.ui-select-placeholder {
display: block;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
}
.ui-select-toggle > .caret {
font-size: (@font-size-base - 1);
font-style: normal;
right: 6px;
top: 10px;
// Workaround for https://github.com/angular-ui/ui-select/issues/224
// A runtime error occurs when you click exactly on the down caret for some
// selects, such as the strategy type select in the deployment config editor.
pointer-events: none;
}
/* Fixes ui-select's input box extending to 100% page width if the page has been resized after page-load
* https://github.com/angular-ui/ui-select/issues/1678
*/
.ui-select-search {
width: 100% !important;
}
}
......@@ -12,3 +12,4 @@
@import "_core.less";
@import "_messages.less";
@import "_ui-select.less";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment