widgets: enhance css border-radius support

This commit is contained in:
jean-emmanuel 2017-08-26 12:00:25 +02:00
parent 9f89bc2122
commit b9930a6b58
7 changed files with 25 additions and 4 deletions

View file

@ -29,6 +29,16 @@
}
}
> .label + div {
border-top-left-radius:0;
border-top-right-radius:0;
border-bottom-right-radius:inherit;
border-bottom-left-radius:inherit;
}
&.nolabel > .label + div {
border-radius: inherit;
}
.label {
text-overflow:ellipsis;
overflow:hidden;

View file

@ -49,6 +49,7 @@
position: relative;
display: flex;
justify-content: center;
border-radius: inherit;
> * {
pointer-events: none;

View file

@ -32,7 +32,7 @@
padding:0;
background: transparent;
color:var(--color-accent);
border-radius: 0;
border-radius: inherit;
-webkit-appearance:none;
text-align:inherit;
vertical-align: top;

View file

@ -112,6 +112,17 @@
.matrix {
position: relative;
overflow: hidden;
> .widget {
border-radius: 0!important;
&.white:first-child {
border-top-left-radius:inherit!important;
border-bottom-left-radius:inherit!important;
}
&.white:last-child {
border-top-right-radius:inherit!important;
border-bottom-right-radius:inherit!important;
}
}
.white {
--color-raised: var(--color-white-key);
.toggle:before {

View file

@ -233,6 +233,7 @@
> .toggle:after {
color:var(--color-custom);
}
border-radius: 0!important; // border radius breaks it smoehow
}
}

View file

@ -8,7 +8,6 @@
flex:1;
background: var(--color-track);
border:1rem solid var(--color-bg);
border-radius: inherit;
--opacity: 0;
&:after {
content:"";

View file

@ -11,7 +11,7 @@
cursor: pointer;
flex:1;
display: flex;
border-radius: inherit;
border-radius: inherit!important;
&:before {
@ -61,7 +61,6 @@
justify-content: center;
align-items: center;
z-index: 2;
}
&.on > .label {