1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/packages/node_modules/@node-red/editor-client/src/sass/popover.scss

162 lines
4.0 KiB
SCSS
Raw Normal View History

2015-07-18 16:33:31 +02: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.
**/
.red-ui-popover {
display: none;
position: absolute;
width: auto;
padding: 10px;
height: auto;
background: $popover-background;
color: $popover-color;
border-radius: 4px;
z-index: 1000;
font-size: 14px;
line-height: 1.4em;
@include component-shadow;
border-color: $popover-background;
}
.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%;
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%;
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%;
}
.red-ui-popover.red-ui-popover-top:after, .red-ui-popover.red-ui-popover-top:before {
top: 100%;
left: 50%;
}
.red-ui-popover.red-ui-popover-right:after {
border-color: rgba(136, 183, 213, 0);
border-right-color: $popover-background;
border-width: 10px;
margin-top: -10px;
}
.red-ui-popover.red-ui-popover-right:before {
border-color: rgba(194, 225, 245, 0);
border-right-color: $popover-background;
border-width: 11px;
margin-top: -11px;
}
.red-ui-popover.red-ui-popover-left:after {
border-color: rgba(136, 183, 213, 0);
border-left-color: $popover-background;
border-width: 10px;
margin-top: -10px;
}
.red-ui-popover.red-ui-popover-left:before {
border-color: rgba(194, 225, 245, 0);
border-left-color: $popover-background;
border-width: 11px;
margin-top: -11px;
}
2018-05-23 11:25:10 +02:00
.red-ui-popover.red-ui-popover-bottom:after {
border-color: rgba(136, 183, 213, 0);
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 {
border-color: rgba(194, 225, 245, 0);
border-bottom-color: $popover-background;
border-width: 11px;
margin-left: -11px;
}
.red-ui-popover.red-ui-popover-top:after {
border-color: rgba(136, 183, 213, 0);
border-top-color: $popover-background;
border-width: 10px;
margin-left: -10px;
}
.red-ui-popover.red-ui-popover-top:before {
border-color: rgba(194, 225, 245, 0);
border-top-color: $popover-background;
2018-05-23 11:25:10 +02:00
border-width: 11px;
margin-left: -11px;
}
.red-ui-popover-size-small {
font-size: 12px;
padding: 5px 7px;
line-height: 1.8em;
&.red-ui-popover-right:after, &.red-ui-popover-left:after {
border-width: 7px;
margin-top: -7px;
}
&.red-ui-popover-right:before, &.red-ui-popover-left:before {
border-width: 8px;
margin-top: -8px;
}
&.red-ui-popover-bottom:after, &.red-ui-popover-top:after {
border-width: 7px;
margin-left: -7px;
}
&.red-ui-popover-bottom:before, &.red-ui-popover-top:before {
border-width: 8px;
margin-left: -8px;
2018-05-23 11:25:10 +02:00
}
}
.red-ui-popover-key {
2018-10-05 18:56:42 +02:00
font-size: 11px;
font-family: monospace;
2018-10-05 18:56:42 +02:00
margin-left: 3px;
border: 1px solid #999;
border-radius:3px;
2018-10-05 18:56:42 +02:00
padding: 1px 2px;
}
.red-ui-popover .editor-button {
&:not(.primary) {
color: #444 !important;
border-color: rgba(0,0,0,0);
}
&.primary {
border-color: #bbb;
}
&.primary:hover {
border-color: #666 !important;
}
}