grid-colorをtransition

This commit is contained in:
moris 2024-12-16 11:36:01 +09:00
parent f311499ca2
commit 75b16d5bce
5 changed files with 8 additions and 1 deletions

View File

@ -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 {

View File

@ -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) {

View File

@ -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);

View File

@ -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 {

View File

@ -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;