mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix positioning & styling of arrows
This commit is contained in:
parent
2d5a61f5b6
commit
e78ee69c04
2 changed files with 13 additions and 3 deletions
|
@ -10,15 +10,14 @@ define [
|
||||||
$scope.placement = 'left'
|
$scope.placement = 'left'
|
||||||
popover.offset({
|
popover.offset({
|
||||||
top: top,
|
top: top,
|
||||||
left: left - popover.width() - 11 # Width of arrow
|
left: left - popover.width()
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
$scope.placement = 'right'
|
$scope.placement = 'right'
|
||||||
angular.element('.onboarding__autocompile').offset({
|
angular.element('.onboarding__autocompile').offset({
|
||||||
top: top,
|
top: top,
|
||||||
left: left + recompileBtn.width() + 11 # Width of arrow
|
left: left + recompileBtn.width()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
$scope.dismiss = () ->
|
$scope.dismiss = () ->
|
||||||
$scope.onboarding.autoCompile = 'dismissed'
|
$scope.onboarding.autoCompile = 'dismissed'
|
|
@ -106,10 +106,21 @@ a.feat-onboard-dismiss {
|
||||||
|
|
||||||
.arrow {
|
.arrow {
|
||||||
top: 17px !important;
|
top: 17px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.right > .arrow {
|
||||||
left: -10px !important;
|
left: -10px !important;
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
border-right-color: #f7f7f7 !important;
|
border-right-color: #f7f7f7 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.left > .arrow {
|
||||||
|
right: -10px !important;
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
border-left-color: #f7f7f7 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue