Cosmetic : menu animation, color gradient when underlining menu
This commit is contained in:
parent
238450c43d
commit
f5b2ee5206
1 changed files with 63 additions and 10 deletions
|
|
@ -638,6 +638,9 @@ td.selectedcell{
|
||||||
min-width: 0px;
|
min-width: 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
div.menu2 {
|
||||||
|
margin-top:2px;
|
||||||
|
}
|
||||||
.menu2 td.mtitle ,.menu2 td.selectedcell{
|
.menu2 td.mtitle ,.menu2 td.selectedcell{
|
||||||
/*! border-radius: 0px; */
|
/*! border-radius: 0px; */
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
@ -3617,7 +3620,7 @@ margin:1px;
|
||||||
width: 1.5rem;
|
width: 1.5rem;
|
||||||
height: 1.5rem;
|
height: 1.5rem;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
animation: turn-color 6s linear 0s infinite forwards;
|
animation: turn-color 6s linear 0s infinite;
|
||||||
position: relative;
|
position: relative;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
top: 10px;
|
top: 10px;
|
||||||
|
|
@ -3627,15 +3630,15 @@ margin:1px;
|
||||||
}
|
}
|
||||||
.loading_msg:nth-child(2) {
|
.loading_msg:nth-child(2) {
|
||||||
background:blue;
|
background:blue;
|
||||||
animation: turn-color2 6s linear 0s infinite forwards;
|
animation: turn-color2 6s linear 0s infinite ;
|
||||||
}
|
}
|
||||||
.loading_msg:nth-child(3) {
|
.loading_msg:nth-child(3) {
|
||||||
background:red;
|
background:red;
|
||||||
animation: turn-color3 6s linear 0s infinite forwards;
|
animation: turn-color3 6s linear 0s infinite ;
|
||||||
}
|
}
|
||||||
.loading_msg:nth-child(4) {
|
.loading_msg:nth-child(4) {
|
||||||
background:navy;
|
background:navy;
|
||||||
animation: turn-color2 6s linear 0s infinite forwards;
|
animation: turn-color2 6s linear 0s infinite ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes turn-color{
|
@keyframes turn-color{
|
||||||
|
|
@ -3943,10 +3946,9 @@ h2.h-section {
|
||||||
content:'';
|
content:'';
|
||||||
left:0;
|
left:0;
|
||||||
bottom:0;
|
bottom:0;
|
||||||
right:0;
|
right:0;3 position:absolute;
|
||||||
position:absolute;
|
|
||||||
height:var(--border-size);
|
height:var(--border-size);
|
||||||
background-color:lightblue;
|
background-color:red;
|
||||||
transform:scaleX(0);
|
transform:scaleX(0);
|
||||||
transition:transform 150ms ease-in-out;
|
transition:transform 150ms ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
@ -3959,7 +3961,8 @@ h2.h-section {
|
||||||
|
|
||||||
.nav-item.li-active.nav-item-underline::before {
|
.nav-item.li-active.nav-item-underline::before {
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
background-color: #d03100;
|
background-color: #d03100;
|
||||||
|
background-image: linear-gradient(to bottom,darkred,red);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -3973,11 +3976,14 @@ h2.h-section {
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
background-color:darkorange;
|
background-color:darkorange;
|
||||||
|
background-color:orange;
|
||||||
height: var(--border-size);
|
height: var(--border-size);
|
||||||
|
background-image: linear-gradient(to bottom,orangered,orange);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-level3 .nav-link.active::after {
|
.nav-level3 .nav-link.active::after {
|
||||||
background-color:yellow;
|
background-color:yellow;
|
||||||
|
background-image: linear-gradient(to bottom,yellow,white);
|
||||||
}
|
}
|
||||||
/***
|
/***
|
||||||
* Animate menu
|
* Animate menu
|
||||||
|
|
@ -3996,7 +4002,7 @@ h2.h-section {
|
||||||
right:0;
|
right:0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
height:var(--border-size);
|
height:var(--border-size);
|
||||||
background-color:var(--underline-menu);
|
/*background-color:var(--underline-menu);*/
|
||||||
transform:scaleX(0) scaleY(0);
|
transform:scaleX(0) scaleY(0);
|
||||||
transition:transform 300ms ease-in-out;
|
transition:transform 300ms ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
@ -4004,7 +4010,7 @@ h2.h-section {
|
||||||
.nav-item.nav-item-underline:hover::before,
|
.nav-item.nav-item-underline:hover::before,
|
||||||
.nav-item.nav-item-underline:focus::before
|
.nav-item.nav-item-underline:focus::before
|
||||||
{
|
{
|
||||||
transform:scaleX(1) scaleY(1.2);
|
transform:scaleX(1) scaleY(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item.li-active.nav-item-underline::before {
|
.nav-item.li-active.nav-item-underline::before {
|
||||||
|
|
@ -4131,3 +4137,50 @@ h2.h-section {
|
||||||
gap: 5rem;
|
gap: 5rem;
|
||||||
display:flex;flex-direction: row;
|
display:flex;flex-direction: row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
.menu2 .nav-item.nav-item-underline:hover::before,.menu2 .nav-item.nav-item-underline:focus::before {
|
||||||
|
transform: scaleX(1) scaleY(1);
|
||||||
|
background-image: linear-gradient(to right,orangered,orange);
|
||||||
|
}
|
||||||
|
.menu2 .nav-item.nav-item-underline::before {
|
||||||
|
content:'';
|
||||||
|
left:0;
|
||||||
|
bottom:0;
|
||||||
|
right:0;
|
||||||
|
position:absolute;
|
||||||
|
height:var(--border-size);
|
||||||
|
background-image: linear-gradient(to bottom,orangered,orange);
|
||||||
|
transform:scaleX(0) scaleY(0);
|
||||||
|
transition:transform 300ms ease-in-out;
|
||||||
|
}
|
||||||
|
.topmenu .nav-item.nav-item-underline:hover::before,.topmenu .nav-item.nav-item-underline:focus::before {
|
||||||
|
transform: scaleX(1) scaleY(1);
|
||||||
|
background-image: linear-gradient(to right,darkred,red);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.menu3 .nav-item.nav-item-underline:hover::before,.menu3 .nav-item.nav-item-underline:focus::before {
|
||||||
|
transform: scaleX(1) scaleY(1);
|
||||||
|
background-image: linear-gradient(to right,yellow,white);
|
||||||
|
}
|
||||||
|
|
||||||
|
.topmenu .nav-item.nav-item-underline:hover::before,.topmenu .nav-item.nav-item-underline:focus::before {
|
||||||
|
transform: scaleX(1) scaleY(1);
|
||||||
|
background-image: linear-gradient(to right,darkred,red);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*.topmenu .nav-item.nav-item-underline::before {
|
||||||
|
content:'';
|
||||||
|
left:0;
|
||||||
|
bottom:0;
|
||||||
|
right:0;
|
||||||
|
position:absolute;
|
||||||
|
height:var(--border-size);
|
||||||
|
background-image: linear-gradient(to bottom,darkred,red);
|
||||||
|
transform:scaleX(0) scaleY(0);
|
||||||
|
transition:transform 300ms ease-in-out;
|
||||||
|
}*/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue