Skip to content

Commit

Permalink
feat(annotations): hide page steppers on small-medium widths
Browse files Browse the repository at this point in the history
  • Loading branch information
boxithai committed Jun 14, 2022
1 parent 4385fbc commit b34ba96
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/viewers/controls/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ $bp-controls-outline: inset 0 0 0 1px fade-out($bdl-gray-20, .5), 0 1px 2px fade
$bp-controls-radius-inner: 4px;
$bp-controls-radius-outer: 6px;
$bp-controls-size-default: 44px;
$bp-controls-size-large: 56px;
$bp-controls-size-small: 32px;
$bp-controls-spacing: 6px;

Expand Down
15 changes: 15 additions & 0 deletions src/lib/viewers/doc/_docBase.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import '~box-ui-elements/es/styles/variables';
@import '../../boxuiVariables';
@import '../controls/styles';
@import './annotations';
@import './mixins';
@import './theme';
Expand Down Expand Up @@ -201,6 +202,20 @@ $thumbnail-sidebar-width: 191px; // Extra pixel to account for sidebar border
}
}

@include breakpoint($medium-screen) {
.bp-PageControls-button {
display: none;
}

.bp-PageControlsForm-button-label {
min-width: $bp-controls-size-large;
}

input[type='number'].bp-PageControlsForm-input {
width: $bp-controls-size-large;
}
}

.bp-theme-dark {
.bp {
.bp-thumbnails-container {
Expand Down

0 comments on commit b34ba96

Please sign in to comment.