font: make font-size in widgets relative to ensure percent css font-sizes apply correctly

This commit is contained in:
jean-emmanuel 2017-08-24 22:36:36 +02:00
parent 1874d62fda
commit 69ecac1656
11 changed files with 26 additions and 39 deletions

View file

@ -5,6 +5,8 @@
- bug fixes
- buttons: changing background with css works as expected
- fader: hidden input in horizontal + compact mode
- widgets
- `css` font-sizes apply correctly to all children (better use percents)
## 0.19.3

View file

@ -79,7 +79,7 @@ body {
position:relative;
box-shadow: 0 0 0 1rem var(--color-light) inset;
letter-spacing: 1rem;
font-size: 12rem;
font-size: 109%;
span {
display:block;
width:100%;

View file

@ -63,7 +63,7 @@
flex: 1 1 100%;
background: var(--color-fg);
box-shadow: 0 0 0 1rem var(--color-light) inset;
padding: 10rem;
padding: 13rem 10rem;
position: relative;
margin: 0.5rem;
&.disabled {
@ -83,7 +83,7 @@
}
a {
flex: 4 1 32%;
padding:10rem;
padding:13rem 10rem;
display: block;
text-align: center;
position: relative;

View file

@ -40,22 +40,18 @@ html{
}
body {
line-height:17rem;
color: var(--color-text);
white-space:nowrap;
opacity:1;
cursor: default;
font-family: 'Roboto', sans-serif;
font-size:11rem;
line-height:100%;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 1rem;
i {
font-size: 12rem!important;
}
}
.btn {
background: var(--color-raised);
display: block;
@ -144,7 +140,7 @@ body {
}
}
.header {
padding:20rem 20rem 18rem;
padding:22rem 20rem 20rem;
white-space: nowrap;
text-overflow: ellipsis;
flex-grow: 0;
@ -179,9 +175,9 @@ body {
}
a {
display: block;
padding-right:35rem;
overflow: hidden;
padding-top:15rem;
padding:17rem;
padding-right:39rem;
position: relative;
white-space: nowrap;
text-overflow: ellipsis;
@ -195,7 +191,7 @@ body {
position: absolute;
right:0rem;
top:0rem;
padding:15rem;
padding:17rem;
color:var(--color-text-fader);
z-index: 1;
&:hover {
@ -292,12 +288,13 @@ body {
z-index: 2;
box-shadow: none;
box-shadow: 0 0 0 1rem var(--color-light) inset;
padding: 16rem 15rem 14rem;
#title {
text-transform: uppercase;
letter-spacing: 1rem;
font-size: 12rem;
line-height: 16rem;
line-height: 12rem;
}
#version {
@ -459,11 +456,13 @@ body {
}
.popup-title {
position: relative;
padding:15rem;
background:var(--color-raised);
border-bottom: 1rem solid var(--color-bg);
box-shadow: 0 0 0 1rem var(--color-light) inset;
height:46rem;
display: flex;
padding:0 15rem;
align-items: center;
&.closable {
padding-right: 50rem;
@ -498,6 +497,7 @@ body {
background:var(--color-fg);
box-shadow: 0 0 0 1rem var(--color-light) inset;
text-transform: none;
position: relative;
}
}
}

View file

@ -115,7 +115,7 @@
width:30rem;
display: block;
text-align: center;
font-size:10rem;
font-size:90%;
line-height: 12rem;
left:15rem;
top:-5.5rem;

View file

@ -21,7 +21,7 @@
padding:1rem;
border: 1rem solid var(--color-bg);
background: var(--color-track);
font-size: 12rem;
font-size: 109%;
input {

View file

@ -44,20 +44,6 @@
}
}
.pips {
position: absolute;
bottom: 0;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
pointer-events: none;
div {
padding: 0 8%;
font-size: 11rem;
color: var(--color-text-fade);
}
}
}
.encoder-container {

View file

@ -151,7 +151,7 @@
.multixy-container {
> .pad {
text-align: center;
font-size: 12rem;
font-size: 109%;
> .wrapper {

View file

@ -203,7 +203,7 @@
position: absolute;
width: auto;
height: auto;
top:45rem;
top:-1rem;
left:-1rem;
right:0rem;
bottom:0rem;
@ -211,6 +211,9 @@
}
.popup-title {
z-index: 1;
.closer {
color:var(--color-custom)
}
}
}
}

View file

@ -189,8 +189,8 @@
appearance:none;
background: var(--color-raised);
color:inherit;
font-size: 12rem!important;
line-height: 12rem;
font-size: 109%!important;
line-height: 120%!important;
text-transform: none;
}
&:after{
@ -201,7 +201,7 @@
right:0;
top:50%;
margin-top:-11rem;
font-size: 20rem;
font-size: 180%;
height: 20rem;
line-height: 20rem;
pointer-events: none;

View file

@ -62,10 +62,6 @@
align-items: center;
z-index: 2;
color:var(--color-text);
i {
position: relative;
top:1rem;
}
}