iOS: set flex-basis to 100% instead of 0% for expanding widgets to workaround safari flex bug (issue #78)

This commit is contained in:
jean-emmanuel 2017-08-30 12:56:28 +02:00
parent 3dce8e48ed
commit 25b75f739a
12 changed files with 23 additions and 22 deletions

View file

@ -64,7 +64,7 @@
}
.input {
background: var(--color-bg);
flex:1;
flex: 1 1 100%;
padding:5rem;
border-top:1rem solid var(--color-fg);
border-radius: 0;
@ -157,7 +157,7 @@
.select-wrapper {
position: relative;
margin: 2rem;
flex:1;
flex: 1 1 100%;
&:after{
content:"\f107";
font-family: FontAwesome;

View file

@ -54,7 +54,7 @@ body {
li {
display:block;
min-width:0;
flex: 1;
flex: 1 1 100%;
cursor:pointer;
height:100%;
margin-right: 1rem;

View file

@ -42,7 +42,7 @@
box-shadow: 0 0 0 1rem var(--color-light) inset;
background: var(--color-fg);
padding: 8rem;
flex:1;
flex: 1 1 100%;
li {
display: block;
margin-bottom: 8rem;

View file

@ -123,6 +123,7 @@ body {
border-top:2rem solid var(--color-bg);
text-transform: none;
font-weight: 500;
flex: 1 1 100%;
a {
&:focus {
&:after {

View file

@ -43,7 +43,7 @@
.wrapper {
overflow: hidden;
flex:1;
flex: 1 1 100%;
max-height: 100%;
width: 100%;
position: relative;
@ -202,7 +202,7 @@
.wrapper {
border: 1rem solid var(--color-bg);
> canvas {
flex:1;
flex: 1 1 100%;
background: var(--color-track);
order:1;
}

View file

@ -9,7 +9,7 @@
.widget {
.input {
display: flex;
flex:1;
flex: 1 1 100%;
background:transparent;
color:var(--color-text-fade);
padding:4rem 5rem;

View file

@ -31,7 +31,7 @@
.wrapper {
overflow: hidden;
flex:1;
flex: 1 1 100%;
max-height: 100%;
width: 100%;
position: relative;
@ -63,7 +63,7 @@
.wrapper {
overflow: hidden;
flex:1;
flex: 1 1 100%;
max-height: 100%;
width: 100%;
position: relative;

View file

@ -12,7 +12,7 @@
}
.matrix {
flex:1;
flex: 1 1 100%;
overflow: auto;
// background: var(--color-bg);
display: flex;
@ -62,7 +62,7 @@
> .fader {
height: auto;
flex: 1;
flex: 1 1 100%;
}
}

View file

@ -62,7 +62,7 @@
}
> .tabs-wrapper {
flex:1;
flex: 1 1 100%;
min-height:0;
> .tab-container {
// width: 100%;

View file

@ -5,7 +5,7 @@
.led {
display: flex;
flex-direction: row;
flex:1;
flex: 1 1 100%;
background: var(--color-track);
border:1rem solid var(--color-bg);
--opacity: 0;
@ -31,7 +31,7 @@
.plot {
display: flex;
flex-direction: row;
flex:1;
flex: 1 1 100%;
position: relative;
background: var(--color-track);
border:1rem solid var(--color-bg);
@ -58,7 +58,7 @@
flex-shrink: 0;
padding:1rem;
.text {
flex: 1;
flex: 1 1 100%;
height:35rem;
padding: 10rem;
justify-content: center;

View file

@ -18,7 +18,7 @@
display: flex;
flex-direction:column;
align-items: stretch;
flex:1;
flex: 1 1 100%;
z-index: 1;
background:var(--color-bg);
border: 1rem solid var(--color-bg);
@ -32,7 +32,7 @@
flex-direction: column;
border-top:0;
border-right:1rem solid var(--color-bg);
flex:1;
flex: 1 1 100%;
height:auto;
margin-bottom:0;
&:last-child {
@ -46,7 +46,7 @@
padding:6rem;
color:var(--color-text);
width:100%;
flex:1;
flex: 1 1 100%;
position: relative;
// border-top: 1rem solid var(--color-bg);
margin-bottom:1rem;
@ -113,7 +113,7 @@
.crossfader-container {
.switcher {
flex:1;
flex: 1 1 100%;
width:auto;
display:flex;
border: 1rem solid var(--color-bg);
@ -175,7 +175,7 @@
}
}
.select {
flex:1;
flex: 1 1 100%;
position: relative;
overflow: hidden;
cursor: pointer;

View file

@ -9,14 +9,14 @@
.toggle {
cursor: pointer;
flex:1;
flex: 1 1 100%;
display: flex;
border-radius: inherit!important;
&:before {
content:"";
flex:1;
flex: 1 1 100%;
opacity: 1;
box-shadow: 0 0 0 1rem var(--color-light) inset,
0 1rem 0 0 var(--color-light) inset;