buttons: on/off css unified
This commit is contained in:
parent
0ee19c0bf1
commit
feca2500d1
3 changed files with 13 additions and 33 deletions
|
|
@ -55,7 +55,7 @@
|
|||
|
||||
}
|
||||
.actions {
|
||||
padding:1rem;
|
||||
padding:0.5rem;
|
||||
background:var(--color-bg);
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
|
|
@ -66,6 +66,8 @@
|
|||
box-shadow: 0 0 0 1rem var(--color-light) inset;
|
||||
padding: 10rem;
|
||||
position: relative;
|
||||
margin: 0.5rem;
|
||||
|
||||
&.disabled {
|
||||
color:var(--color-text-fade);
|
||||
}
|
||||
|
|
@ -82,23 +84,23 @@
|
|||
|
||||
}
|
||||
a {
|
||||
flex: 4 1 33%;
|
||||
flex: 4 1 32%;
|
||||
padding:10rem;
|
||||
display: block;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
color:var(--color-text);
|
||||
overflow: visible;
|
||||
margin: 0.5rem;
|
||||
|
||||
&.on {
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
&:after {
|
||||
opacity:.3;
|
||||
}
|
||||
background: var(--color-fg);
|
||||
color: var(--color-custom);
|
||||
}
|
||||
&:before {
|
||||
content:"";
|
||||
// content:"";
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
|
|
@ -107,17 +109,5 @@
|
|||
box-shadow: 0 0 0 1rem;
|
||||
color:var(--color-bg);
|
||||
}
|
||||
&:after {
|
||||
content:"";
|
||||
background:var(--color-accent);
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
opacity: 0;
|
||||
transition: opacity .2s;
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,6 +61,10 @@
|
|||
justify-content: center;
|
||||
box-shadow: 0 0 0 1rem var(--color-light) inset!important;
|
||||
|
||||
&.on {
|
||||
background: var(--color-fg);
|
||||
color: var(--color-custom);
|
||||
}
|
||||
&:first-child {
|
||||
// border-top:0;
|
||||
}
|
||||
|
|
@ -69,20 +73,6 @@
|
|||
margin-bottom:0;
|
||||
}
|
||||
|
||||
&:before {
|
||||
content:"";
|
||||
position: absolute;
|
||||
left:0;
|
||||
top:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background: var(--color-custom);
|
||||
opacity: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
&.on:before {
|
||||
opacity: .3;
|
||||
}
|
||||
i {
|
||||
width: auto;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@
|
|||
&:before {
|
||||
content:"";
|
||||
flex:1;
|
||||
background: var(--color-custom);
|
||||
opacity: 0;
|
||||
box-shadow: 0 0 0 1rem var(--color-custom) inset;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue