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>";
inherits: true;
}
@property --grid-color {
syntax: "<color>";
inherits: true;
}
/* theme color */
body, body.light {

View File

@ -77,7 +77,7 @@
& header {
background-color: var(--theme-color);
height: 100%;
transition: height .4s, transform .4s background-color 1s;
transition: height .4s, transform .4s, background-color 1s;
&.hide {
height: 40px;
@media(width<1000px) {

View File

@ -34,6 +34,7 @@
flex-direction: column;
position: relative;
background-color: var(--grid-color);
transition: background-color 1s;
&:hover {
img {
transform: scale(1.03);

View File

@ -33,6 +33,7 @@
font-family: "Source Code Pro", "Monaco", "Consolas", monospace;
height: fit-content;
background-color: var(--theme-color);
transition: background-color 1s;
color: white;
& a {

View File

@ -120,6 +120,7 @@
}
& #side>* {
background-color: var(--grid-color);
transition: background-color 1s;
border-radius: 8px;
box-shadow: 0 0 6px #1111;
overflow: hidden;