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#51 from jim-deriv/Jim/82833/create-a-re…
…usable-platform-app-container-2 Jim/82833/create a reusable platform app container 2
- Loading branch information
Showing
18 changed files
with
528 additions
and
59 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
23 changes: 15 additions & 8 deletions
23
packages/appstore/src/components/containers/trading-app-card-actions.tsx
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
34 changes: 26 additions & 8 deletions
34
packages/appstore/src/components/main-title-bar/account-type-dropdown.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,23 +1,41 @@ | ||
.account-type-dropdown { | ||
padding: 2px 8px 2px 2px; | ||
border-radius: 4px; | ||
&--parent { | ||
padding: 0; | ||
border: none; | ||
} | ||
font-size: 1.4rem; | ||
font-weight: 700; | ||
line-height: 2rem; | ||
text-transform: capitalize; | ||
border: 1px solid; | ||
border: 2px solid; | ||
|
||
&:focus { | ||
&:focus, | ||
&:hover { | ||
outline: none; | ||
} | ||
|
||
&--real { | ||
border-color: var(--status-info); | ||
&--real, | ||
&--real:focus, | ||
&--real:hover { | ||
border: 2px solid var(--status-info); | ||
color: var(--status-info); | ||
} | ||
|
||
&--demo { | ||
border-color: var(--status-success); | ||
&--demo, | ||
&--demo:focus, | ||
&--demo:hover { | ||
border: 2px solid var(--status-success); | ||
color: var(--status-success); | ||
} | ||
} | ||
.dc-dropdown { | ||
&-container { | ||
min-width: 8rem; | ||
width: 8rem; | ||
} | ||
&__display { | ||
&-text { | ||
color: currentColor; | ||
} | ||
} | ||
} |
28 changes: 13 additions & 15 deletions
28
packages/appstore/src/components/main-title-bar/account-type-dropdown.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import TradeButton from './trade-button'; | ||
import './trade-button.scss'; | ||
|
||
export default TradeButton; |
6 changes: 6 additions & 0 deletions
6
packages/appstore/src/components/trade-button/trade-button.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.trade-button { | ||
width: 100%; | ||
margin: 0.5rem 0; | ||
padding: 0; | ||
display: flex; | ||
} |
Oops, something went wrong.