buttons: subtle 3d on state
This commit is contained in:
parent
a21079b630
commit
bd47f96cf0
4 changed files with 44 additions and 15 deletions
|
|
@ -103,9 +103,16 @@ body {
|
|||
z-index: 0;
|
||||
background:var(--color-fg);
|
||||
color: var(--color-custom);
|
||||
&:after {
|
||||
// opacity:0.3;
|
||||
}
|
||||
&:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top:0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
opacity: 0.35;
|
||||
background: radial-gradient( ellipse at center, transparent, var(--color-bg));
|
||||
}
|
||||
}
|
||||
}
|
||||
.parent + li a {
|
||||
|
|
|
|||
|
|
@ -96,18 +96,19 @@
|
|||
&.on {
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
background: var(--color-fg);
|
||||
color: var(--color-custom);
|
||||
background: var(--color-fg);
|
||||
&:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top:0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
opacity: 0.35;
|
||||
background: radial-gradient( ellipse at center, transparent, var(--color-bg));
|
||||
}
|
||||
}
|
||||
&:before {
|
||||
// content:"";
|
||||
position: absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
box-shadow: 0 0 0 1rem;
|
||||
color:var(--color-bg);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,17 @@
|
|||
.toggle {
|
||||
&.active {
|
||||
background-color: var(--color-fg);
|
||||
box-shadow: 0 0 10rem 0 var(--color-track) inset;
|
||||
&:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top:0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
opacity: 0.35;
|
||||
background: radial-gradient( ellipse at center, transparent, var(--color-bg));
|
||||
}
|
||||
}
|
||||
&.on .light:before {
|
||||
opacity: 0.3;
|
||||
|
|
|
|||
|
|
@ -59,11 +59,21 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
box-shadow: 0 0 0 1rem var(--color-light) inset!important;
|
||||
box-shadow: 0 0 0 1rem var(--color-light) inset;
|
||||
|
||||
&.on {
|
||||
background: var(--color-fg);
|
||||
color: var(--color-custom);
|
||||
&:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top:0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
opacity: 0.35;
|
||||
background: radial-gradient( ellipse at center, transparent, var(--color-bg));
|
||||
}
|
||||
}
|
||||
&:first-child {
|
||||
// border-top:0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue