Skip to content

Commit

Permalink
feat(annotations): hide page steppers on small-medium widths (#1450)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Thai <ithai@box.com>
  • Loading branch information
ivanthai and boxithai authored Jul 1, 2022
1 parent 9d35e22 commit fb500bd
Show file tree
Hide file tree
Showing 3 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
7 changes: 7 additions & 0 deletions src/lib/viewers/controls/page/PageControls.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import '~box-ui-elements/es/styles/variables';
@import '../styles';

.bp-PageControls {
Expand All @@ -9,3 +10,9 @@
@include bp-Control($width: $bp-controls-size-small);
@include bp-Control--expand;
}

@include breakpoint($medium-screen) {
.bp-PageControls-button {
display: none;
}
}
8 changes: 8 additions & 0 deletions src/lib/viewers/controls/page/PageControlsForm.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import '~box-ui-elements/es/styles/variables';
@import '../styles';

.bp-PageControlsForm {
Expand Down Expand Up @@ -42,3 +43,10 @@
.bp-PageControlsForm-button-label {
@include bp-ControlLabel;
}

@include breakpoint($medium-screen) {
.bp-PageControlsForm-input,
.bp-PageControlsForm-button-label {
min-width: $bp-controls-size-large;
}
}

0 comments on commit fb500bd

Please sign in to comment.