Template:Main page/navigation/styles.css: Difference between revisions

Template page
m (1 revision imported)
(Undo revision 215 by Monoraptor (talk))
Tag: Undo
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
#home-nav .home-card__background:after {
#home-nav .home-card__background:after {
position: absolute;
position: absolute;
    pointer-events: none;
     top: 0;
     top: 0;
     right: 0;
     right: 0;
Line 12: Line 11:
     display: block;
     display: block;
     background: linear-gradient(to right,#000,transparent);
     background: linear-gradient(to right,#000,transparent);
    content: "";
}
}


#home-nav .home-card__foreground {
#home-nav .home-card__foreground {
pointer-events: none;
height: 100%;
height: 100%;
     width: 100%;
     width: 100%;

Latest revision as of 21:13, 5 March 2023

#home-nav {
	margin-top: 1rem;
}

#home-nav .home-card__background:after {
	position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    background: linear-gradient(to right,#000,transparent);
}

#home-nav .home-card__foreground {
	height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #fff;
    font-weight: 500;
}