grid-colorをtransition
This commit is contained in:
parent
f311499ca2
commit
75b16d5bce
@ -6,6 +6,10 @@
|
|||||||
syntax: "<color>";
|
syntax: "<color>";
|
||||||
inherits: true;
|
inherits: true;
|
||||||
}
|
}
|
||||||
|
@property --grid-color {
|
||||||
|
syntax: "<color>";
|
||||||
|
inherits: true;
|
||||||
|
}
|
||||||
|
|
||||||
/* theme color */
|
/* theme color */
|
||||||
body, body.light {
|
body, body.light {
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
& header {
|
& header {
|
||||||
background-color: var(--theme-color);
|
background-color: var(--theme-color);
|
||||||
height: 100%;
|
height: 100%;
|
||||||
transition: height .4s, transform .4s background-color 1s;
|
transition: height .4s, transform .4s, background-color 1s;
|
||||||
&.hide {
|
&.hide {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
@media(width<1000px) {
|
@media(width<1000px) {
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: var(--grid-color);
|
background-color: var(--grid-color);
|
||||||
|
transition: background-color 1s;
|
||||||
&:hover {
|
&:hover {
|
||||||
img {
|
img {
|
||||||
transform: scale(1.03);
|
transform: scale(1.03);
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
font-family: "Source Code Pro", "Monaco", "Consolas", monospace;
|
font-family: "Source Code Pro", "Monaco", "Consolas", monospace;
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
background-color: var(--theme-color);
|
background-color: var(--theme-color);
|
||||||
|
transition: background-color 1s;
|
||||||
color: white;
|
color: white;
|
||||||
|
|
||||||
& a {
|
& a {
|
||||||
|
@ -120,6 +120,7 @@
|
|||||||
}
|
}
|
||||||
& #side>* {
|
& #side>* {
|
||||||
background-color: var(--grid-color);
|
background-color: var(--grid-color);
|
||||||
|
transition: background-color 1s;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
box-shadow: 0 0 6px #1111;
|
box-shadow: 0 0 6px #1111;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
Loading…
Reference in New Issue
Block a user