From 81766f0a8f74a35b4299bcb777386171b2d99b67 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Thu, 24 Jan 2019 18:48:37 +0100 Subject: [PATCH] more responsive top navigation --- .../components/TopNavigationAccount/index.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/views/Wallet/components/TopNavigationAccount/index.js b/src/views/Wallet/components/TopNavigationAccount/index.js index 5f9ae7cc..862ca5e3 100644 --- a/src/views/Wallet/components/TopNavigationAccount/index.js +++ b/src/views/Wallet/components/TopNavigationAccount/index.js @@ -2,7 +2,7 @@ import styled from 'styled-components'; import React from 'react'; -import { FONT_SIZE, FONT_WEIGHT } from 'config/variables'; +import { FONT_SIZE, FONT_WEIGHT, SCREEN_SIZE } from 'config/variables'; import { NavLink } from 'react-router-dom'; import { connect } from 'react-redux'; import colors from 'config/colors'; @@ -24,6 +24,11 @@ const Wrapper = styled.div` padding: 0px 30px 0 35px; overflow-y: hidden; overflow-x: auto; + + @media screen and (max-width: ${SCREEN_SIZE.SM}) { + justify-content: space-between; + padding: 0px 16px; + } `; const StyledNavLink = styled(NavLink)` @@ -34,6 +39,15 @@ const StyledNavLink = styled(NavLink)` padding: 20px 35px; white-space: nowrap; + @media screen and (max-width: ${SCREEN_SIZE.SM}) { + padding: 20px 10px; + } + + @media screen and (max-width: ${SCREEN_SIZE.XS}) { + font-size: ${FONT_SIZE.BASE}; + padding: 20px 10px; + } + &.active, &:hover { transition: all 0.3s ease-in-out;