2015-07-18 16:33:31 +02:00
|
|
|
/**
|
2017-01-11 16:24:33 +01:00
|
|
|
* Copyright JS Foundation and other contributors, http://js.foundation
|
2015-07-18 16:33:31 +02:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
2017-05-10 16:49:12 +02:00
|
|
|
.red-ui-popover {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
width: auto;
|
|
|
|
padding: 10px;
|
|
|
|
height: auto;
|
2018-10-03 15:02:07 +02:00
|
|
|
background: $popover-background;
|
|
|
|
color: $popover-color;
|
|
|
|
border-radius: 4px;
|
2017-05-10 16:49:12 +02:00
|
|
|
z-index: 1000;
|
2019-05-09 20:22:40 +02:00
|
|
|
font-family: $primary-font;
|
2017-05-10 16:49:12 +02:00
|
|
|
font-size: 14px;
|
|
|
|
line-height: 1.4em;
|
|
|
|
@include component-shadow;
|
2018-10-03 15:02:07 +02:00
|
|
|
border-color: $popover-background;
|
2017-05-10 16:49:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.red-ui-popover:after, .red-ui-popover:before {
|
|
|
|
border: solid transparent;
|
|
|
|
content: " ";
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
.red-ui-popover.red-ui-popover-right:after, .red-ui-popover.red-ui-popover-right:before {
|
2018-05-23 11:25:10 +02:00
|
|
|
top: 50%;
|
2017-05-10 16:49:12 +02:00
|
|
|
right: 100%;
|
|
|
|
}
|
|
|
|
.red-ui-popover.red-ui-popover-left:after, .red-ui-popover.red-ui-popover-left:before {
|
2018-05-23 11:25:10 +02:00
|
|
|
top: 50%;
|
2017-05-10 16:49:12 +02:00
|
|
|
left: 100%;
|
|
|
|
}
|
|
|
|
|
2018-05-23 11:25:10 +02:00
|
|
|
.red-ui-popover.red-ui-popover-bottom:after, .red-ui-popover.red-ui-popover-bottom:before {
|
|
|
|
bottom: 100%;
|
|
|
|
left: 50%;
|
|
|
|
}
|
2017-05-10 16:49:12 +02:00
|
|
|
|
2018-10-03 15:02:07 +02:00
|
|
|
.red-ui-popover.red-ui-popover-top:after, .red-ui-popover.red-ui-popover-top:before {
|
|
|
|
top: 100%;
|
|
|
|
left: 50%;
|
|
|
|
}
|
|
|
|
|
2017-05-10 16:49:12 +02:00
|
|
|
.red-ui-popover.red-ui-popover-right:after {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-color: transparent;
|
2018-10-03 15:02:07 +02:00
|
|
|
border-right-color: $popover-background;
|
2017-05-10 16:49:12 +02:00
|
|
|
border-width: 10px;
|
|
|
|
margin-top: -10px;
|
|
|
|
}
|
|
|
|
.red-ui-popover.red-ui-popover-right:before {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-color: transparent;
|
2018-10-03 15:02:07 +02:00
|
|
|
border-right-color: $popover-background;
|
2017-05-10 16:49:12 +02:00
|
|
|
border-width: 11px;
|
|
|
|
margin-top: -11px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.red-ui-popover.red-ui-popover-left:after {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-color: transparent;
|
2018-10-03 15:02:07 +02:00
|
|
|
border-left-color: $popover-background;
|
2017-05-10 16:49:12 +02:00
|
|
|
border-width: 10px;
|
|
|
|
margin-top: -10px;
|
|
|
|
}
|
|
|
|
.red-ui-popover.red-ui-popover-left:before {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-color: transparent;
|
2018-10-03 15:02:07 +02:00
|
|
|
border-left-color: $popover-background;
|
2017-05-10 16:49:12 +02:00
|
|
|
border-width: 11px;
|
|
|
|
margin-top: -11px;
|
|
|
|
}
|
|
|
|
|
2018-05-23 11:25:10 +02:00
|
|
|
|
|
|
|
.red-ui-popover.red-ui-popover-bottom:after {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-color: transparent;
|
2018-10-03 15:02:07 +02:00
|
|
|
border-bottom-color: $popover-background;
|
2018-05-23 11:25:10 +02:00
|
|
|
border-width: 10px;
|
|
|
|
margin-left: -10px;
|
|
|
|
}
|
|
|
|
.red-ui-popover.red-ui-popover-bottom:before {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-color: transparent;
|
2018-10-03 15:02:07 +02:00
|
|
|
border-bottom-color: $popover-background;
|
|
|
|
border-width: 11px;
|
|
|
|
margin-left: -11px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.red-ui-popover.red-ui-popover-top:after {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-color: transparent;
|
2018-10-03 15:02:07 +02:00
|
|
|
border-top-color: $popover-background;
|
|
|
|
border-width: 10px;
|
|
|
|
margin-left: -10px;
|
|
|
|
}
|
|
|
|
.red-ui-popover.red-ui-popover-top:before {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-color: transparent;
|
2018-10-03 15:02:07 +02:00
|
|
|
border-top-color: $popover-background;
|
2018-05-23 11:25:10 +02:00
|
|
|
border-width: 11px;
|
|
|
|
margin-left: -11px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-10-03 15:02:07 +02:00
|
|
|
|
2017-05-10 16:49:12 +02:00
|
|
|
.red-ui-popover-size-small {
|
2018-10-03 15:02:07 +02:00
|
|
|
font-size: 12px;
|
|
|
|
padding: 5px 7px;
|
|
|
|
line-height: 1.8em;
|
2017-05-10 16:49:12 +02:00
|
|
|
|
2018-10-03 15:02:07 +02:00
|
|
|
&.red-ui-popover-right:after, &.red-ui-popover-left:after {
|
|
|
|
border-width: 7px;
|
|
|
|
margin-top: -7px;
|
2017-05-10 16:49:12 +02:00
|
|
|
}
|
2018-10-03 15:02:07 +02:00
|
|
|
&.red-ui-popover-right:before, &.red-ui-popover-left:before {
|
|
|
|
border-width: 8px;
|
|
|
|
margin-top: -8px;
|
2017-05-10 16:49:12 +02:00
|
|
|
}
|
|
|
|
|
2018-10-03 15:02:07 +02:00
|
|
|
&.red-ui-popover-bottom:after, &.red-ui-popover-top:after {
|
|
|
|
border-width: 7px;
|
|
|
|
margin-left: -7px;
|
2017-05-10 16:49:12 +02:00
|
|
|
}
|
2018-10-03 15:02:07 +02:00
|
|
|
&.red-ui-popover-bottom:before, &.red-ui-popover-top:before {
|
|
|
|
border-width: 8px;
|
|
|
|
margin-left: -8px;
|
2018-05-23 11:25:10 +02:00
|
|
|
}
|
2018-10-03 15:02:07 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.red-ui-popover-key {
|
2018-10-05 18:56:42 +02:00
|
|
|
font-size: 11px;
|
2019-05-09 20:22:40 +02:00
|
|
|
font-family: $monospace-font;
|
2018-10-05 18:56:42 +02:00
|
|
|
margin-left: 3px;
|
2019-05-15 14:54:29 +02:00
|
|
|
border: 1px solid $popover-color;
|
2018-10-03 15:02:07 +02:00
|
|
|
border-radius:3px;
|
2018-10-05 18:56:42 +02:00
|
|
|
padding: 1px 2px;
|
2017-05-10 16:49:12 +02:00
|
|
|
}
|
2018-11-12 18:04:22 +01:00
|
|
|
|
2019-05-17 11:42:43 +02:00
|
|
|
.red-ui-popover a.red-ui-button,
|
|
|
|
.red-ui-popover button.red-ui-button {
|
2020-05-06 17:12:07 +02:00
|
|
|
&:not(.primary) {
|
|
|
|
border-color: $popover-button-border-color;
|
|
|
|
background: $popover-background;
|
|
|
|
color: $popover-color !important;
|
|
|
|
}
|
|
|
|
&:not(.primary):not(.disabled):not(.ui-button-disabled):hover {
|
|
|
|
border-color: $popover-button-border-color-hover;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-11-12 18:04:22 +01:00
|
|
|
&.primary {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-color: $popover-button-border-color;
|
2018-11-12 18:04:22 +01:00
|
|
|
}
|
2019-05-15 14:54:29 +02:00
|
|
|
&.primary:not(.disabled):not(.ui-button-disabled):hover {
|
|
|
|
border-color: $popover-button-border-color-hover;
|
2018-11-12 18:04:22 +01:00
|
|
|
}
|
|
|
|
}
|
2018-11-13 23:36:56 +01:00
|
|
|
.red-ui-popover code {
|
|
|
|
border: none;
|
|
|
|
background: none;
|
2019-05-15 14:54:29 +02:00
|
|
|
color: $tertiary-text-color;
|
2018-11-13 23:36:56 +01:00
|
|
|
}
|
2019-08-12 16:01:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
.red-ui-popover-panel {
|
|
|
|
@include component-shadow;
|
|
|
|
font-family: $primary-font;
|
|
|
|
font-size: $primary-font-size;
|
|
|
|
position: absolute;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border: 1px solid $primary-border-color;
|
|
|
|
background: $secondary-background;
|
|
|
|
z-index: 2000;
|
|
|
|
}
|