mirror of
https://github.com/Karaka-Management/cssOMS.git
synced 2026-02-08 14:28:40 +00:00
fix tooltips at the potential cost of breaking portlet scrolling
This commit is contained in:
parent
00e5267e5a
commit
03c212f45e
|
|
@ -3,7 +3,7 @@
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
overflow-x: auto;
|
//overflow-x: auto; removed in order to prevent scroll bars for tooltips which are longer than the portlet (test in general settings view)
|
||||||
border-top: 3px solid var(--box-highlight);
|
border-top: 3px solid var(--box-highlight);
|
||||||
|
|
||||||
.portlet-head {
|
.portlet-head {
|
||||||
|
|
|
||||||
365
styles.css
365
styles.css
File diff suppressed because it is too large
Load Diff
53
tooltip.scss
53
tooltip.scss
|
|
@ -1,35 +1,26 @@
|
||||||
|
.tooltip {
|
||||||
|
|
||||||
.tooltip > i {
|
|
||||||
font-size: 0.85rem;
|
|
||||||
position: relative;
|
|
||||||
z-index: 2;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
color: var(--box-highlight);
|
||||||
|
font-size: .9rem;
|
||||||
|
|
||||||
&:before,
|
&:hover {
|
||||||
&:after {
|
position: relative;
|
||||||
visibility: hidden;
|
|
||||||
opacity: 0;
|
&:after, &:before {
|
||||||
pointer-events: none;
|
font-size: .9rem;
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
|
||||||
|
white-space: nowrap;
|
||||||
|
bottom: 100%;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
padding: 7px;
|
||||||
|
border-radius: 3px;
|
||||||
|
background-color: rgb(71, 71, 71);
|
||||||
|
color: #fff;
|
||||||
|
content: attr(data-tooltip);
|
||||||
|
text-align: center;
|
||||||
|
transform: translate(-50%, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:before {
|
|
||||||
white-space: nowrap;
|
|
||||||
position: absolute;
|
|
||||||
bottom: 150%;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
padding: 7px;
|
|
||||||
border-radius: 3px;
|
|
||||||
background-color: #000;
|
|
||||||
background-color: hsla(0, 0%, 20%, 0.9);
|
|
||||||
color: #fff;
|
|
||||||
content: attr(data-tooltip);
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip:hover > i:before,
|
|
||||||
.tooltip:hover > i:after {
|
|
||||||
visibility: visible;
|
|
||||||
opacity: 1;
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user