Skip to content

Commit dc2e6e3

Browse files
committed
frontend: improve responsive styling of buttons
- changed button border-width to be reponsive and scale with the ui - fixed send/recieve button, should scale - fixed responsive button height
1 parent 0e12044 commit dc2e6e3

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

frontends/web/src/components/forms/button.module.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
border-color: transparent;
55
border-radius: 2px;
66
border-style: solid;
7-
border-width: 1px;
7+
border-width: var(--border-width);
88
cursor: default;
99
display: inline-flex;
1010
flex-direction: row;
1111
font-family: var(--font-family);
1212
font-size: var(--size-default);
1313
font-weight: 400;
1414
justify-content: center;
15+
min-height: var(--button-height);
1516
min-width: 100px;
16-
height: 50px;
1717
outline: none;
1818
padding: 0 var(--space-default);
1919
position: relative;
@@ -87,7 +87,6 @@
8787
border-color: transparent;
8888
color: var(--color-blue);
8989
display: inline-block;
90-
height: 50px;
9190
min-width: 0;
9291
}
9392

frontends/web/src/routes/account/account.module.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,13 @@
3535
width: 17px;
3636
}
3737

38-
.button {
39-
height: 37px;
40-
}
41-
4238
@media (max-width: 768px) {
4339
.accountHeader {
4440
padding: 0 var(--space-half);
4541
}
4642

4743
.button {
48-
height: 50px;
44+
min-height: var(--button-height);
4945
}
5046
}
5147

@@ -58,7 +54,7 @@
5854
}
5955

6056
.actionsContainer {
61-
--size-default: 14px;
57+
--size-default: 1.4rem;
6258
display: flex;
6359
flex-grow: 1;
6460
flex-shrink: 0;

frontends/web/src/style/variables.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@
106106

107107
/* bottom navigation */
108108
--bottom-navigation-height: calc(min(7rem, 90px) + env(safe-area-inset-bottom, 0));
109+
110+
/* form elements */
111+
--border-width: 0.1rem;
112+
--button-height: min(5rem, 70px);
109113
}
110114

111115
:root,

0 commit comments

Comments
 (0)