Files
agent/src/components/popover/popover.component.scss
2016-12-09 23:05:13 +01:00

137 lines
2.4 KiB
SCSS

.popover {
display: flex;
flex-direction: column;
padding: 0;
max-width: 568px;
width: 100%;
transform: translateX(-50%);
visibility: hidden;
&.display {
visibility: visible;
}
&.leftArrow {
transform: none;
.arrowCustom {
transform: none;
left: 22px;
}
}
&.rightArrow {
transform: none;
.arrowCustom {
transform: none;
right: 22px;
left: auto;
}
}
> .container-fluid {
overflow: hidden;
}
}
.arrowCustom {
position: absolute;
top: -16px;
left: 50%;
transform: translateX(-50%);
width: 41px;
height: 16px;
&:before {
content: '';
width: 0;
height: 0;
border-left: 21px solid transparent;
border-right: 21px solid transparent;
border-bottom: 17px solid rgba(0, 0, 0, 0.2);
display: block;
position: absolute;
top: -1px;
}
&:after {
content: '';
width: 0;
height: 0;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-bottom: 16px solid #f7f7f7;
display: block;
position: absolute;
top: 0;
}
}
.popover-action {
padding: 8px 14px;
margin: 0;
font-size: 14px;
background-color: #f7f7f7;
border-top: 1px solid #ebebeb;
border-radius: 0 0 5px 5px;
text-align: right;
}
.popover-title {
&.menu-tabs {
padding: 0.5rem 0.5rem 0;
display: block;
.nav-tabs {
position: relative;
top: 1px;
display: flex;
.menu-tabs--item {
display: flex;
align-items: center;
cursor: pointer;
i {
margin-right: 0.25em;
}
}
}
}
}
.popover-content {
padding: 10px 24px;
}
.popover-overlay {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
display: none;
&.display {
display: block;
}
}
.select2-item {
position: relative;
font-size: 1.5rem;
&.keymap-name--wrapper {
padding-left: 50px;
}
.layout-segment-code {
height: 2rem;
position: absolute;
left: 0;
top: 50%;
margin-top: -1rem;
}
}