Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Misc styling #2157

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/kits/Overlay/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
}

h3 {
font-family: InterBold, sans-serif;
font-family: InterSemiBold, sans-serif;
margin: 2rem 0.5rem 1rem;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/kits/Structure/PageTitle/Wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const PageTitleWrapper = styled.header`
}

h1 {
font-size: 1.75rem;
font-size: 2rem;
font-family: Unbounded, sans-serif;
font-weight: 700;
position: relative;
Expand All @@ -61,7 +61,7 @@ export const PageTitleWrapper = styled.header`

@media (max-width: ${PageWidthMediumThreshold}px) {
left: -1rem;
transform: scale(0.75);
transform: scale(0.85);
}

transition: all var(--transition-duration);
Expand Down
13 changes: 8 additions & 5 deletions src/library/Graphs/PayoutBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ export const PayoutBar = ({
? colors.transparent[mode]
: colors.secondary[mode];

// Bar border radius
const borderRadius = 4;

const data = {
labels: graphPayouts.map((item: AnySubscan) => {
const dateObj = format(fromUnixTime(item.block_timestamp), 'do MMM', {
Expand All @@ -104,7 +107,7 @@ export const PayoutBar = ({
borderColor: colorPayouts,
backgroundColor: colorPayouts,
pointRadius: 0,
borderRadius: 3,
borderRadius,
},
{
order: 2,
Expand All @@ -113,7 +116,7 @@ export const PayoutBar = ({
borderColor: colorPoolClaims,
backgroundColor: colorPoolClaims,
pointRadius: 0,
borderRadius: 3,
borderRadius,
},
{
order: 3,
Expand All @@ -122,16 +125,16 @@ export const PayoutBar = ({
borderColor: colorPayouts,
backgroundColor: colors.pending[mode],
pointRadius: 0,
borderRadius: 3,
borderRadius,
},
],
};

const options = {
responsive: true,
maintainAspectRatio: false,
barPercentage: 0.4,
maxBarThickness: 13,
barPercentage: 0.5,
maxBarThickness: 15,
scales: {
x: {
stacked: true,
Expand Down
5 changes: 3 additions & 2 deletions src/library/StatBoxList/Wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const StatBoxWrapper = styled(motion.div)`
box-shadow: var(--card-shadow);
}
display: flex;
border-radius: 0.95rem;
border-radius: 0.6rem;
margin-right: 1.25rem;
padding: 0.9rem 0rem;
max-height: 5.25rem;
Expand All @@ -63,7 +63,8 @@ export const StatBoxWrapper = styled(motion.div)`
}

h4 {
font-family: Inter, sans-serif;
color: var(--text-color-secondary);
font-family: InterSemiBold, sans-serif;
flex: 1;
display: flex;
flex-flow: row wrap;
Expand Down
6 changes: 3 additions & 3 deletions src/theme/fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
@font-face {
font-family: InterBold;
font-style: normal;
font-weight: 800;
src: url('./fonts/Inter800.woff2') format('woff2');
font-weight: 900;
src: url('./fonts/Inter900.woff2') format('woff2');
}

@font-face {
font-family: Unbounded;
font-style: normal;
font-weight: 800;
font-weight: 900;
src: url('./fonts/Unbounded.woff2') format('woff2');
}
Binary file added src/theme/fonts/Inter900.woff2
Binary file not shown.
Loading