Skip to content

Commit 9d08158

Browse files
committed
Improve button font size scaling
1 parent c7f72da commit 9d08158

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/App.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import StatusBar from './components/StatusBar.vue';
1818
-moz-osx-font-smoothing: grayscale;
1919
text-align: center;
2020
color: ghostwhite;
21-
font-size: 2vw;
21+
font-size: 4vmin;
2222
height: 100%;
2323
width: 100%;
2424
padding: 0.5vh 0.5vw;
@@ -27,7 +27,7 @@ import StatusBar from './components/StatusBar.vue';
2727
2828
display: flex;
2929
flex-direction: column;
30-
flex-wrap: wrap;
30+
flex-wrap: nowrap;
3131
justify-content: space-between;
3232
align-items: stretch;
3333
align-content: stretch;
@@ -39,12 +39,11 @@ import StatusBar from './components/StatusBar.vue';
3939
4040
.button{
4141
display: inline-block;
42-
padding: 6px 20px;
4342
margin: 0;
4443
cursor: pointer;
4544
border: 1px solid #bbb;
46-
overflow: visible;
47-
font-size: 2vw;
45+
overflow: hidden;
46+
font-size: 4vmin;
4847
text-decoration: none;
4948
white-space: nowrap;
5049
color: #555;

0 commit comments

Comments
 (0)