Просмотр исходного кода

Fix positioning & styling of arrows

Alasdair Smith 9 лет назад
Родитель
Сommit
e78ee69c04

+ 2 - 3
services/web/public/coffee/ide/AutoCompileOnboardingController.coffee

@@ -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'

+ 11 - 0
services/web/public/stylesheets/app/editor/feature-onboarding.less

@@ -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;
+		}
+	}
 }
 }