Template

Card2/styles.css

From Dogcraft Wiki

No edit summary
No edit summary
Line 17: Line 17:


div.wiki-card > a:nth-child(1) {
div.wiki-card > a:nth-child(1) {
     padding: 10px 25px 0;
     height: 80px;
}
 
div.wiki-card > a:nth-child(1) > img {
    height: 100%;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
filter: saturate(75%) brightness(87%);
}
}


Line 25: Line 32:
   width: 100%;
   width: 100%;
   text-align: center;
   text-align: center;
}
div.wiki-card:hover > a:nth-child(1) > img,
div.wiki-card:focus > a:nth-child(1) > img{
filter: saturate(100%) brightness(100%);
}
}


Line 30: Line 42:
div.wiki-card > a:nth-child(2):focus {
div.wiki-card > a:nth-child(2):focus {
   text-decoration: none;
   text-decoration: none;
}
div.wiki-card > a:nth-child(1),
div.wiki-card > a:nth-child(1) > img {
    width: 70px;
    height: 70px;
}
}

Revision as of 21:43, 28 June 2023

div.wiki-card {
    display: flex; 
    flex-direction: column; 
    font-weight: 600; 
    background: #ffffff; 
    border-radius:5px;  
    box-shadow: 0 2px 3px rgba(85, 85, 85, 0.1), 0 0 0 1px rgba(85, 85, 85, 0.1);
    width: 120px;
    height: 120px;
    transition: box-shadow 0.2s ease-in-out;
}

div.wiki-card:hover,
div.wiki-card:focus{
    box-shadow: 0 2px 3px rgba(85, 85, 85, 0.25), 0 0 10px rgba(85, 85, 85, 0.25);
}

div.wiki-card > a:nth-child(1) {
    height: 80px;
}

div.wiki-card > a:nth-child(1) > img {
    height: 100%;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
	filter: saturate(75%) brightness(87%);
}

div.wiki-card > a:nth-child(2) {
   padding: 10px 0;
   line-height: 20px;
   width: 100%;
   text-align: center;
}

div.wiki-card:hover > a:nth-child(1) > img,
div.wiki-card:focus > a:nth-child(1) > img{
	filter: saturate(100%) brightness(100%);
}

div.wiki-card > a:nth-child(2):hover,
div.wiki-card > a:nth-child(2):focus {
   text-decoration: none;
}
This page was last modified on 28 June 2023, at 21:43. (16 months ago)
Background Valentine's Day Event 2024 by TheWhiteTigerNL