Merge branch 'pr-review-panel-onboarding' of github.com:sharelatex/web-sharelatex into pr-review-panel-onboarding

This commit is contained in:
James Allen 2017-02-13 16:51:16 +01:00
commit c8baae84da
3 changed files with 27 additions and 1 deletions

View file

@ -4,6 +4,10 @@
ng-if="!state.loading && ui.showCollabFeaturesOnboarding" ng-if="!state.loading && ui.showCollabFeaturesOnboarding"
ng-cloak ng-cloak
) )
a.feat-onboard-dismiss(
href
ng-click="dismiss();"
) ×
.feat-onboard-wrapper .feat-onboard-wrapper
h1.feat-onboard-title h1.feat-onboard-title
span.feat-onboard-highlight Commenting span.feat-onboard-highlight Commenting

View file

@ -2,6 +2,8 @@ define [
"base" "base"
], (App) -> ], (App) ->
App.controller "FeatureOnboardingController", ($scope, settings) -> App.controller "FeatureOnboardingController", ($scope, settings) ->
# TODO Send event to Analytics API; handle keyboard input.
$scope.onboarding = $scope.onboarding =
innerStep: 1 innerStep: 1
nSteps: 4 nSteps: 4

View file

@ -72,4 +72,24 @@
outline: 0; outline: 0;
box-shadow: 0 0 70px 0 rgba(255, 255, 255, 0.3); box-shadow: 0 0 70px 0 rgba(255, 255, 255, 0.3);
} }
} }
a.feat-onboard-dismiss {
position: absolute;
top: 10px;
right: 10px;
width: 1em;
height: 1em;
line-height: 1em;
font-size: 2em;
color: #FFF;
opacity: 0.5;
transition: opacity .15s ease-in-out;
&:hover,
&:focus {
text-decoration: none;
color: #FFF;
opacity: 1;
}
}