Skip to content

Commit fb9a3ae

Browse files
committed
frontend: experimental
1 parent d4693fe commit fb9a3ae

File tree

6 files changed

+31
-24
lines changed

6 files changed

+31
-24
lines changed

frontends/web/src/components/actionable-item/actionable-item.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.container {
2-
--size-default: 1.4rem;
2+
--size-default: min(1.4rem, 24px);
33
align-items: center;
44
background-color: var(--background-secondary);
55
border: none;

frontends/web/src/components/groupedaccountselector/groupedaccountselector.module.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
}
77

88
.balanceSingleValue {
9+
margin-left: var(--space-quarter);
910
margin-right: var(--space-quarter);
1011
}
1112

@@ -26,12 +27,13 @@
2627
}
2728

2829
.select {
30+
font-size: min(var(--size-default), 24px);
2931
margin-bottom: var(--space-half);
3032
}
3133

3234
.select :global(.react-select__group-heading) {
3335
color: var(--color-default);
34-
font-size: var(--size-default);
36+
font-size: min(var(--size-default), 24px);
3537
margin: 0;
3638
padding-right: var(--space-quarter);
3739
text-transform: unset;
@@ -72,6 +74,7 @@
7274

7375
.select :global(.react-select__control) {
7476
background-color: var(--background-secondary);
77+
min-height: var(--input-height);
7578
padding: var(--space-quarter) var(--space-eight);
7679
}
7780

frontends/web/src/components/groupedaccountselector/groupedaccountselector.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ const SelectSingleValue = (props: SingleValueProps<TOption>) => {
6262
{coinCode ? <Logo coinCode={coinCode} alt={coinCode} /> : null}
6363
<span className={styles.selectLabelText}>{label}</span>
6464
{insured && <InsuredShield/>}
65-
{coinCode && balance && <span className={styles.balanceSingleValue}>{hideAmounts ? `*** ${coinCode}` : balance}</span>}
65+
{coinCode && balance && (
66+
<span className={styles.balanceSingleValue}>
67+
{hideAmounts ? `*** ${coinCode}` : balance}
68+
</span>
69+
)}
6670
</div>
6771
</components.SingleValue>
6872
</div>

frontends/web/src/components/pillbuttongroup/pillbuttongroup.module.css

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,21 @@
99
.pillbuttongroup button {
1010
appearance: none;
1111
background: var(--background-secondary);
12-
border: 0.2rem solid var(--background-secondary);
13-
border-radius: 32px;
12+
border: 0.1rem solid var(--background-secondary);
13+
border-radius: 36px;
1414
color: var(--color-default);
1515
font-size: min(var(--size-default), 18px);
1616
line-height: 1.75;
17+
margin-bottom: var(--spacing-half);
1718
}
1819

1920
.pillbuttongroup.medium button {
2021
padding: 0 12px;
2122
}
2223

2324
.pillbuttongroup.large button {
24-
font-size: calc(var(--size-default) + 1px);
25-
padding: 2px calc(var(--spacing-default) * 1.5);
25+
font-size: min(calc(var(--size-default) + 1px), 24px);
26+
padding: 2px 24px;
2627
}
2728

2829
.pillbuttongroup button:hover:not([disabled]) {
@@ -55,10 +56,3 @@
5556
border-color: var(--background-secondary);
5657
color: var(--color-disabled);
5758
}
58-
59-
@media (max-width: 768px) {
60-
.pillbuttongroup.lg button {
61-
font-size: var(--size-default);
62-
padding: 2px calc(var(--spacing-default) * 1.25);
63-
}
64-
}

frontends/web/src/components/terms/terms.module.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.disclaimerContainer {
2+
--size-default: min(1.4rem, 24px);
23
align-items: center;
34
display: flex;
45
flex-basis: 100%;
@@ -21,17 +22,17 @@
2122
margin: 0 0 var(--space-default) 0;
2223
max-width: 660px;
2324
overflow: auto;
24-
padding: var(--space-quarter) 1em 1em 1em;
25+
padding: var(--space-quarter) var(--space-half) var(--space-half) var(--space-half);
2526
}
2627

2728
.title {
28-
font-size: 1.4rem;
29+
font-size: var(--size-default);
2930
font-weight: bold;
3031
text-align: left;
3132
}
3233

3334
.disclaimer p {
34-
font-size: 1.4rem;
35+
font-size: var(--size-default);
3536
line-height: 1.5;
3637
}
3738

@@ -45,7 +46,7 @@
4546

4647
.table table {
4748
border-collapse: collapse;
48-
font-size: 1.4rem;
49+
font-size: var(--size-default);
4950
text-align: left;
5051
}
5152

@@ -64,6 +65,11 @@
6465
padding-left: 0;
6566
}
6667

68+
.table td:last-child,
69+
.table th:last-child {
70+
padding-right: 0;
71+
}
72+
6773
.nowrap {
6874
white-space: nowrap;
6975
}

frontends/web/src/style/variables.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
--size-xsmall: 1.1rem;
5959
--size-label: var(--size-small);
6060
--size-button: var(--size-default);
61-
--size-title: 3.2rem;
61+
--size-title: min(3.2rem, 36px);
6262

6363
/* wizard */
6464
--size-wizard-text: 1.6rem;
@@ -94,7 +94,7 @@
9494

9595
/* header */
9696
--header-height: 70px;
97-
--header-default-font-size: 2.4rem;
97+
--header-default-font-size: min(2.4rem, 36px);
9898

9999
/* content */
100100
--content-width: 1080px;
@@ -207,17 +207,17 @@
207207

208208
@media (max-width: 1199px) {
209209
:root {
210-
--size-title: 1.8rem;
210+
--size-title: min(1.8rem, 36px);
211211
}
212212
}
213213

214214
@media (max-width: 768px) {
215215
:root {
216-
--header-default-font-size: 2rem;
216+
--header-default-font-size: min(2rem, 36px);
217217
--size-subheader: 1.6rem;
218-
--size-title: 1.6rem;
218+
--size-title: min(1.6rem, 36px);
219219

220220
--size-wizard-text: 1.4rem;
221-
--size-default: 1.6rem;
221+
--size-default: min(1.6rem, 36px);
222222
}
223223
}

0 commit comments

Comments
 (0)