css: buttons border radius inheritance, + clean

This commit is contained in:
jean-emmanuel 2017-07-11 16:21:03 +02:00
parent 0215c7ae08
commit 2b31f4e8d0
2 changed files with 4 additions and 13 deletions

View file

@ -86,18 +86,6 @@ body {
-webkit-mask: linear-gradient(to left, rgba(0, 0, 0, 0), #000000 10rem) no-repeat;
}
}
a:after {
content:"";
background:var(--color-custom);
position: absolute;
bottom:0;
left:0;
right:0;
top:0;
opacity: 0;
transition: opacity .2s;
z-index: -1;
}
&.on a, .sidepanel-open {
position: relative;
z-index: 0;

View file

@ -11,6 +11,7 @@
cursor: pointer;
flex:1;
display: flex;
border-radius: inherit;
.light {
@ -19,6 +20,7 @@
display: flex;
box-shadow: 0 0 0 1rem var(--color-light) inset;
pointer-events: none;
border-radius: inherit;
&:after {
content:"";
@ -32,6 +34,7 @@
background: var(--color-track);
box-shadow: 0 0 0 1rem var(--color-light), 0 0 0 1rem var(--color-bg) inset;
z-index: 1;
border-radius: inherit;
}
&:before {
@ -39,11 +42,11 @@
flex:1;
opacity: 0;
box-shadow: 0 0 0 1rem var(--color-custom) inset;
border-radius: inherit;
}
}
&.on {
// background: var(--color-fg);
.light:after {
background: var(--color-custom);