-
Notifications
You must be signed in to change notification settings - Fork 10
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 #35 from agrim-deriv/Agrim/DAPI547/langswitcher
Agrim/dapi547/langswitcher
- Loading branch information
Showing
41 changed files
with
2,076 additions
and
2,660 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
88 changes: 44 additions & 44 deletions
88
src/components/CustomCheckbox/custom_checkbox.module.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,50 +1,50 @@ | ||
@use 'src/styles/utility' as *; | ||
|
||
.customCheckboxContainer { | ||
display: flex; | ||
justify-content: center; | ||
display: flex; | ||
justify-content: center; | ||
position: relative; | ||
min-width: rem(1.6); | ||
padding-top: rem(0.8); | ||
z-index: 0; | ||
margin-bottom: auto; | ||
@media screen and (min-width: 992px) { | ||
align-items: center; | ||
} | ||
label { | ||
cursor: pointer; | ||
margin-left: rem(1.5); | ||
} | ||
.checkboxContainer { | ||
position: relative; | ||
width: rem(1.5); | ||
height: rem(1.5); | ||
} | ||
.customCheckbox { | ||
position: absolute; | ||
background-repeat: no-repeat; | ||
display: inline-block; | ||
border: 2px solid var(--ifm-color-emphasis-500); | ||
min-width: rem(1.6); | ||
padding-top: rem(0.8); | ||
z-index: 0; | ||
margin-bottom: auto; | ||
@media screen and (min-width: 992px) { | ||
align-items: center; | ||
height: rem(1.6); | ||
border-radius: 2px; | ||
transition: background-color 0.25s, border-color 0.25s; | ||
z-index: 1; | ||
} | ||
input { | ||
// The original checkbox has to be hidden, but still be clickable | ||
// Hence, opacity 0 is used instead of visibility or display | ||
cursor: pointer; | ||
opacity: 0; | ||
z-index: 2; | ||
width: rem(1.5); | ||
height: rem(1.5); | ||
position: absolute; | ||
&:checked + .customCheckbox { | ||
background-image: url(/img/check.svg); | ||
background-position: center; | ||
background-color: var(--colors-coral500); | ||
border-color: var(--colors-coral500); | ||
} | ||
label { | ||
cursor: pointer; | ||
margin-left: rem(1.5); | ||
} | ||
.checkboxContainer { | ||
position: relative; | ||
width: rem(1.5); | ||
height: rem(1.5); | ||
} | ||
.customCheckbox { | ||
position: absolute; | ||
background-repeat: no-repeat; | ||
display: inline-block; | ||
border: 2px solid var(--ifm-color-emphasis-500); | ||
min-width: rem(1.6); | ||
height: rem(1.6); | ||
border-radius: 2px; | ||
transition: background-color 0.25s, border-color 0.25s; | ||
z-index: 1; | ||
} | ||
input { | ||
// The original checkbox has to be hidden, but still be clickable | ||
// Hence, opacity 0 is used instead of visibility or display | ||
cursor: pointer; | ||
opacity: 0; | ||
z-index: 2; | ||
width: rem(1.5); | ||
height: rem(1.5); | ||
position: absolute; | ||
&:checked + .customCheckbox { | ||
background-image: url(/img/check.svg); | ||
background-position: center; | ||
background-color: var(--colors-coral500); | ||
border-color: var(--colors-coral500); | ||
} | ||
} | ||
} | ||
} | ||
} |
40 changes: 20 additions & 20 deletions
40
...onents/CustomSelectDropdown/account-dropdown/SelectedAccount/selected_account.module.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,26 +1,26 @@ | ||
@use 'src/styles/utility' as *; | ||
|
||
.selectedAccount { | ||
display: flex; | ||
height: 100%; | ||
align-items: center; | ||
.accountInfoContainer { | ||
display: flex; | ||
height: 100%; | ||
align-items: center; | ||
.accountInfoContainer { | ||
display: flex; | ||
flex-direction: column; | ||
margin-left: rem(1); | ||
.accountType { | ||
font-size: rem(1.6); | ||
} | ||
.accountId { | ||
font-size: rem(1.2); | ||
color: var(--ifm-color-emphasis-700); | ||
} | ||
flex-direction: column; | ||
margin-left: rem(1); | ||
.accountType { | ||
font-size: rem(1.6); | ||
} | ||
div { | ||
line-height: initial; | ||
.accountId { | ||
font-size: rem(1.2); | ||
color: var(--ifm-color-emphasis-700); | ||
} | ||
img { | ||
width: rem(2.4); | ||
height: rem(2.4); | ||
} | ||
} | ||
} | ||
div { | ||
line-height: initial; | ||
} | ||
img { | ||
width: rem(2.4); | ||
height: rem(2.4); | ||
} | ||
} |
50 changes: 25 additions & 25 deletions
50
src/components/CustomSelectDropdown/custom_select_item.module.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,32 +1,32 @@ | ||
@use 'src/styles/utility' as *; | ||
|
||
.customSelectItem { | ||
display: flex; | ||
width: 100%; | ||
align-items: center; | ||
font-size: rem(1.4); | ||
transition: background-color 0.2s; | ||
border-radius: 3px; | ||
padding: rem(1); | ||
height: rem(5.2); | ||
line-height: rem(2); | ||
|
||
&:hover { | ||
cursor: pointer; | ||
background-color: var(--ifm-color-emphasis-100); | ||
} | ||
img { | ||
width: rem(3.2); | ||
height: rem(3.2); | ||
} | ||
.accountInfoContainer { | ||
display: flex; | ||
width: 100%; | ||
align-items: center; | ||
font-size: rem(1.4); | ||
transition: background-color 0.2s; | ||
border-radius: 3px; | ||
padding: rem(1); | ||
height: rem(5.2); | ||
flex-direction: column; | ||
margin-left: rem(1); | ||
line-height: rem(2); | ||
|
||
&:hover { | ||
cursor: pointer; | ||
background-color: var(--ifm-color-emphasis-100); | ||
} | ||
img { | ||
width: rem(3.2); | ||
height: rem(3.2); | ||
} | ||
.accountInfoContainer { | ||
display: flex; | ||
flex-direction: column; | ||
margin-left: rem(1); | ||
line-height: rem(2); | ||
.accountId { | ||
font-size: rem(1); | ||
color: var(--ifm-color-emphasis-600); | ||
} | ||
.accountId { | ||
font-size: rem(1); | ||
color: var(--ifm-color-emphasis-600); | ||
} | ||
} | ||
} |
30 changes: 15 additions & 15 deletions
30
src/components/NavbarSeparator/NavbarSeparator.module.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,18 +1,18 @@ | ||
@use 'src/styles/utility' as *; | ||
|
||
.separatorContainer { | ||
display: flex; | ||
height: 100%; | ||
padding: 0 rem(1.6); | ||
align-items: center; | ||
justify-content: center; | ||
.navbarSeparator { | ||
display: inline-block; | ||
height: rem(3.2); | ||
width: 1px; | ||
background-color: var(--ifm-color-emphasis-300); | ||
} | ||
@media (max-width: 1200px) { | ||
display: none; | ||
} | ||
} | ||
display: flex; | ||
height: 100%; | ||
padding: 0 rem(1.6); | ||
align-items: center; | ||
justify-content: center; | ||
.navbarSeparator { | ||
display: inline-block; | ||
height: rem(3.2); | ||
width: 1px; | ||
background-color: var(--ifm-color-emphasis-300); | ||
} | ||
@media (max-width: 1200px) { | ||
display: none; | ||
} | ||
} |
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,11 +1,11 @@ | ||
@use 'src/styles/utility' as *; | ||
|
||
.searchButton { | ||
width: rem(2.4); | ||
height: rem(2.4); | ||
background-image: url('/img/search-bold.svg'); | ||
background-repeat: no-repeat; | ||
background-size: rem(1.6) rem(1.6); | ||
background-position: center; | ||
cursor: pointer; | ||
width: rem(2.4); | ||
height: rem(2.4); | ||
background-image: url('/img/search-bold.svg'); | ||
background-repeat: no-repeat; | ||
background-size: rem(1.6) rem(1.6); | ||
background-position: center; | ||
cursor: pointer; | ||
} |
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
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
Oops, something went wrong.