+
{icon &&
}
diff --git a/packages/frontend/src/components/total/ValueBlock.scss b/packages/frontend/src/components/total/ValueBlock.scss
index 4a07a5426..85934980e 100644
--- a/packages/frontend/src/components/total/ValueBlock.scss
+++ b/packages/frontend/src/components/total/ValueBlock.scss
@@ -2,101 +2,113 @@
@import '../../styles/variables.scss';
.ValueBlock {
- position: relative;
- display: flex;
- align-items: center;
- padding-left: 44px;
+ position: relative;
+ display: flex;
+ align-items: center;
+ padding-left: 44px;
+ &::before {
+ content: '';
+ display: block;
+ position: absolute;
+ left: 0;
+ top: 50%;
+ transform: translateY(-50%);
+ width: 28px;
+ height: 28px;
+ }
+
+ &--Blocks {
&::before {
- content: '';
- display: block;
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 28px;
- height: 28px;
+ background: url('/images/icons/block.svg') no-repeat center;
+ background-size: contain;
}
+ }
- &--Blocks {
- &::before {
- background: url("/images/icons/transactions.svg") no-repeat center;
- background-size: contain;
- }
+ &--Transactions {
+ &::before {
+ background: url('/images/icons/transactions.svg') no-repeat center;
+ background-size: contain;
}
+ }
- &--Transactions {
- &::before {
- background: url('/images/icons/block.svg') no-repeat center;
- background-size: contain;
- }
+ &--Timer {
+ &::before {
+ background: url('/images/icons/timer.svg') no-repeat center;
+ background-size: contain;
}
+ }
- &--Timer {
- &::before {
- background: url('/images/icons/timer.svg') no-repeat center;
- background-size: contain;
- }
+ &--Epoch {
+ &::before {
+ background: url('/images/icons/timer.svg') no-repeat center;
+ background-size: contain;
}
+ }
- &--Epoch {
- &::before {
- background: url('/images/icons/timer.svg') no-repeat center;
- background-size: contain;
- }
+ &--Sandglass {
+ &::before {
+ background: url('/images/icons/sandglass.svg') no-repeat center;
+ background-size: contain;
}
+ }
- &--Sandglass {
- &::before {
- background: url('/images/icons/sandglass.svg') no-repeat center;
- background-size: contain;
- }
+ &--Nodes {
+ &::before {
+ background: url('/images/icons/nodes.svg') no-repeat center;
+ background-size: contain;
}
+ }
- &--Nodes {
- &::before {
- background: url('/images/icons/nodes.svg') no-repeat center;
- background-size: contain;
- }
+ &--Coins {
+ &::before {
+ background: url('/images/icons/coins.svg') no-repeat center;
+ background-size: contain;
}
+ }
- &--Coins {
- &::before {
- background: url('/images/icons/coins.svg') no-repeat center;
- background-size: contain;
- }
+ &--StarCheck {
+ &::before {
+ background: url('/images/icons/star-check.svg') no-repeat center;
+ background-size: contain;
}
+ }
- &--StarCheck {
- &::before {
- background: url('/images/icons/star-check.svg') no-repeat center;
- background-size: contain;
- }
+ &--Christmas.ValueBlock {
+ &--Blocks {
+ &::before {
+ background: url('/images/icons/block-present.svg') no-repeat center;
+ background-size: contain;
+ width: 30px;
+ height: 30px;
+ margin: -1px;
+ }
}
+ }
+
+ &__Title {
+ color: var(--chakra-colors-brand-deep);
+ font-size: 1rem;
+ margin-right: 10px;
+ white-space: nowrap;
+ }
- &__Title {
- color: var(--chakra-colors-brand-deep);
- font-size: 1rem;
- margin-right: 10px;
- white-space: nowrap;
+ &__Value {
+ font-size: 1.125rem;
+
+ &--Loading {
+ @include mixins.LoadingLine;
+
+ opacity: .5;
+ border-radius: 5px;
+ animation-delay: 100ms;
}
-
- &__Value {
- font-size: 1.125rem;
-
- &--Loading {
- @include mixins.LoadingLine;
-
- opacity: .5;
- border-radius: 5px;
- animation-delay: 100ms;
- }
-
- &--Elipsed {
- max-width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
+
+ &--Elipsed {
+ max-width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
+ }
}
\ No newline at end of file
diff --git a/packages/frontend/src/components/transactions/TransactionsListItem.scss b/packages/frontend/src/components/transactions/TransactionsListItem.scss
index 01b39b86f..7a84ffc7c 100644
--- a/packages/frontend/src/components/transactions/TransactionsListItem.scss
+++ b/packages/frontend/src/components/transactions/TransactionsListItem.scss
@@ -79,6 +79,7 @@
.Identifier,
.TransactionsListItem__AliasContainer,
.Identifier__Avatar,
+ img,
a {
display: block !important;
}
diff --git a/packages/frontend/src/components/validators/ValidatorCard.js b/packages/frontend/src/components/validators/ValidatorCard.js
index c5600e227..73f3f1db4 100644
--- a/packages/frontend/src/components/validators/ValidatorCard.js
+++ b/packages/frontend/src/components/validators/ValidatorCard.js
@@ -15,7 +15,9 @@ export default function ValidatorCard ({ validator, rate, className }) {
lightness={50}
saturation={50}
width={88}
- height={88}/>
+ height={88}
+ hat={'christmas'}
+ />
: 'n/a'
}
diff --git a/packages/frontend/src/styles/components/Table.scss b/packages/frontend/src/styles/components/Table.scss
index 46454e2b0..d36a87be9 100644
--- a/packages/frontend/src/styles/components/Table.scss
+++ b/packages/frontend/src/styles/components/Table.scss
@@ -47,6 +47,8 @@
&__Avatar {
margin-left: 8px;
+ width: 32px;
+ height: 32px;
}
&__SortDirection {
diff --git a/packages/frontend/src/styles/mixins.scss b/packages/frontend/src/styles/mixins.scss
index 34cfc3e66..4fc2fa975 100644
--- a/packages/frontend/src/styles/mixins.scss
+++ b/packages/frontend/src/styles/mixins.scss
@@ -1,5 +1,10 @@
@import './variables.scss';
+@mixin AvatarSize() {
+ height: 24px;
+ width: 24px;
+}
+
@mixin DefListItem($clickable: true) {
display: flex;
width: 100%;
@@ -41,9 +46,9 @@
}
&__Avatar {
+ @include AvatarSize;
+ flex-shrink: 0;
margin-right: 12px;
- height: 28px;
- width: 28px;
}
&__NotActiveText {