forked from binary-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request binary-com#134 from jim-deriv/Jim/85796/currency-s…
…witcher-does-not-follow-the-design Jim/85796/currency switcher does not follow the design
- Loading branch information
Showing
4 changed files
with
73 additions
and
47 deletions.
There are no files selected for viewing
82 changes: 52 additions & 30 deletions
82
packages/appstore/src/components/containers/currency-switcher-container.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,64 @@ | ||
.currency-switcher-container { | ||
display: inline-flex; | ||
align-items: center; | ||
height: 72px; | ||
border: 1px solid var(--general-hover); | ||
border-radius: 8px; | ||
padding: 2rem 1.6rem; | ||
margin-left: auto; | ||
gap: 1.6rem; | ||
flex-shrink: 0; | ||
cursor: pointer; | ||
transition: all 0.3s ease-in-out; | ||
|
||
&--has-interaction { | ||
&:hover { | ||
box-shadow: 0 12px 16px -4px var(--shadow-menu), 0 4px 6px -2px var(--shadow-menu); | ||
.currency-switcher { | ||
&__currency { | ||
&--icon { | ||
margin-right: 1rem; | ||
} | ||
} | ||
|
||
@include mobile { | ||
width: 100%; | ||
&__button { | ||
@include desktop { | ||
margin-right: 1rem; | ||
} | ||
} | ||
|
||
&__content { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
&-container { | ||
display: inline-flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
height: 72px; | ||
border: 1px solid var(--general-hover); | ||
border-radius: 8px; | ||
padding: 2rem 1.6rem; | ||
margin-left: auto; | ||
gap: 1.6rem; | ||
flex-shrink: 0; | ||
cursor: pointer; | ||
transition: all 0.3s ease-in-out; | ||
|
||
&--text { | ||
&--none { | ||
padding-bottom: 0.5rem; | ||
font-size: var(--text-size-xs); | ||
&--has-interaction { | ||
&:hover { | ||
box-shadow: 0 12px 16px -4px var(--shadow-menu), 0 4px 6px -2px var(--shadow-menu); | ||
} | ||
} | ||
} | ||
|
||
&__arrow { | ||
@include mobile { | ||
margin-left: 1.5rem; | ||
width: 100%; | ||
} | ||
|
||
&__content { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
margin-left: 1rem; | ||
&--text { | ||
&--none { | ||
padding-bottom: 0.5rem; | ||
font-size: var(--text-size-xs); | ||
} | ||
} | ||
} | ||
|
||
&__arrow { | ||
@include mobile { | ||
margin-left: 1.5rem; | ||
} | ||
} | ||
&--left { | ||
display: inline-flex; | ||
align-items: center; | ||
} | ||
&--right { | ||
display: inline-flex; | ||
align-items: center; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters