Skip to content

Commit

Permalink
refactor(inpageNavigation): adjust to volto theming
Browse files Browse the repository at this point in the history
  • Loading branch information
tarantilis committed Mar 1, 2022
1 parent 1d978a9 commit 62f74ea
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
7 changes: 4 additions & 3 deletions src/ui/InpageNavigation/InpageNavigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ class InpageNavigation extends Component {
role="none"
className={this.state.removeClass}
>
<div className="eea navigation mobile tablet only">
<div className="mobile tablet only">
<Icon name="chevron up" />
</div>
<div className="eea navigation tablet or lower hidden">
<Icon name="chevron up" /> top
<div className="tablet or lower hidden">
<Icon name="chevron up" />
<span>Top</span>
</div>
</div>
</Container>
Expand Down
1 change: 1 addition & 0 deletions theme/themes/eea/extras/inpageNavigation.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
right: @computerNavRight;
width: @computerNavWidth;
height: @computerNavHeight;
font-size: @computerNavFontSize;
}
}

16 changes: 11 additions & 5 deletions theme/themes/eea/extras/inpageNavigation.variables
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
Inpage Navigation
*******************************/

@tabletNavWidth : 2.813rem;
@tabletNavHeight : 2.813rem;
@computerNavWidth : 3.438rem;
@computerNavHeight : 3.438rem;
@navBottom : 1.875rem;
@mobileNavRight : @mobilePadding;
@tabletNavRight : @tabletPadding;
@computerNavRight : @computerPadding;
@navBackground : @darkCerulean;
@navColor : @white;
@navFontWeight : @bold;
@navFontWeight : @bold;

/* Inpage navigation size */
@tabletNavWidth : 2.25rem;
@tabletNavHeight : 2.25rem;
@computerNavWidth : 3.563rem;
@computerNavHeight : 3.563rem;

/* Font Sizes */
@tabletNavIconFontSize: 1.313rem;
@computerNavFontSize : 14px;

0 comments on commit 62f74ea

Please sign in to comment.