Skip to content

Commit

Permalink
fix: better mobile styles
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala committed Jun 29, 2018
1 parent 1eacbc5 commit 6001277
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 7 deletions.
10 changes: 10 additions & 0 deletions src/components/Header/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,13 @@
.ui.header.tiny {
font-size: 12px;
}

@media (max-width: 768px) {
.ui.header.huge {
font-size: 44px;
}

.ui.header.large {
font-size: 32px;
}
}
7 changes: 7 additions & 0 deletions src/components/Logo/Logo.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@
background-image: url('../../assets/logo.svg');
background-size: contain;
}

@media (max-width: 768px) {
.dcl.logo {
width: 36px;
height: 36px;
}
}
28 changes: 21 additions & 7 deletions src/components/Navbar/Navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

.dcl.navbar-logo {
cursor: pointer;
width: 48px;
height: 48px;
}

.dcl.account-wrapper {
Expand Down Expand Up @@ -54,12 +56,6 @@
background-position: 17px 16px;
}

.dcl.navbar-back .icon.chevron {
position: absolute;
top: 16px;
left: 12px;
}

.dcl.navbar .ui.menu .item {
color: var(--secondary-text);
border-radius: var(--radius);
Expand Down Expand Up @@ -94,7 +90,25 @@

@media (max-width: 768px) {
.dcl.navbar {
padding: 0px 24px;
height: var(--navbar-height-mobile);
padding: 0px 16px;
margin-bottom: 24px;
}

.dcl.navbar-logo {
cursor: pointer;
width: 36px;
height: 36px;
}

.dcl.navbar .dcl.account-wrapper {
transform: scale(0.889);
}

.dcl.navbar-back {
width: 36px;
height: 36px;
background-position: 13px 12px;
background-size: 22%;
}
}
1 change: 1 addition & 0 deletions src/themes/base-theme.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
:root {
/* sizes */
--navbar-height: 94px;
--navbar-height-mobile: 68px;

/* fonts */
--font-print: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6001277

Please sign in to comment.