Skip to content

Commit

Permalink
More specific CSS selector for .ticker class
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax authored and sisou committed Mar 10, 2022
1 parent ab647b7 commit 6d525b4
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions src/components/swap/SwapModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ export default defineComponent({
}
.amount-input.has-value {
&.positive-value ::v-deep form{
&.positive-value ::v-deep form {
.nq-input {
color: var(--nimiq-green);
--border-color: rgba(33,188,165,0.3); /* Based on Nimiq Green */
Expand Down Expand Up @@ -1435,26 +1435,33 @@ export default defineComponent({
}
}
.amount-input,
.new-balances .amount {
.swap-modal {
--size: var(--h2-size);
font-size: var(--size);
font-weight: bold;
::v-deep .ticker {
// Sometimes this class gets lower priority than the ticker's native class, so we need to force these styles
font-size: inherit !important;
line-height: 1 !important;
margin-left: 0.5rem !important;
}
.nq-green & {
color: var(--nimiq-green);
& ::v-deep .amount-input {
font-size: var(--size);
font-weight: bold;
.ticker {
line-height: 1;
margin-left: 0.5rem;
font-size: var(--size);
}
}
.nq-blue & {
color: var(--nimiq-blue);
.new-balances ::v-deep .amount {
font-size: var(--size);
font-weight: bold;
.nq-green & {
color: var(--nimiq-green);
}
.nq-blue & {
color: var(--nimiq-blue);
}
}
}
.new-balances .fiat-amount {
Expand Down

0 comments on commit 6d525b4

Please sign in to comment.