Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ export class ExpandFromRightAnimationStrategy extends TransitioningAnimationStra

Velocity.animate(el, {
opacity: 1,
right: 20,
width: Constants.Styles.clipperUiWidth
right: 20
}, {
complete: () => {
// The first transition is reversed; once it is done, do the normal transitions
Expand All @@ -58,8 +57,7 @@ export class ExpandFromRightAnimationStrategy extends TransitioningAnimationStra
this.animationTimeoutId = setTimeout(() => {
Velocity.animate(el, {
opacity: 0,
right: 0,
width: 0
right: 0
}, {
complete: () => {
resolve();
Expand Down
28 changes: 27 additions & 1 deletion src/styles/clipper.less
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@
position: fixed;
top: @ClipperUITopRightOffset;
right: @ClipperUITopRightOffset;
width: 100px;
// width: 100px;
width: 25%;
max-width: @ClipperUIWidth;
height: 70%;
max-height: 470px;
overflow: scroll;
background: @OneNotePurpleTransparent;
border-radius: @ClipperBorderRadius;
box-shadow: @ClipperBoxShadow;
Expand All @@ -144,6 +149,27 @@
-o-user-select: none;
user-select: none;

::-webkit-scrollbar, ::-webkit-scrollbar-thumb:vertical, ::-webkit-scrollbar-thumb:horizontal {
-webkit-border-radius: @ClipperBorderRadius;
border-radius: @ClipperBorderRadius;
}

::-webkit-scrollbar {
// Corresponds to the vertical and horizontal scrollbars respectively
width: 10px;
height: 10px;
}

// The pointy ends of the scrollbar's bar
::-webkit-scrollbar-thumb:vertical, ::-webkit-scrollbar-thumb:horizontal {
background: @ClipperScrollbarDark;
-moz-background-clip: padding-box;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border: 2px solid rgba(0, 0, 0, 0);
min-height: 10px;
}

#optionLabel {
margin: 5px;
}
Expand Down
3 changes: 2 additions & 1 deletion src/styles/previewStyles.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@

#previewInnerWrapper {
position: fixed;
width: @OneNotePageWidth;
width: 70%;
max-width: @OneNotePageWidth;
top: @ClipperUITopRightOffset;
bottom: @ClipperUITopRightOffset;
right: @ClipperUIWidth + @ClipperUITopRightOffset + @ClipperUITopRightOffset;
Expand Down