Jump to content

User:Stevium/common.css: Difference between revisions

From The Petit Planet Wiki
Created User:Stevium/common.css
 
No edit summary
Line 4: Line 4:
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     gap: 0.5rem;
     gap: 0.5rem
}
}


Line 15: Line 15:
     border-radius: 8px;
     border-radius: 8px;
     width: 7rem;
     width: 7rem;
     height: 8.5rem;
     height: 8.5rem
}
}


Line 21: Line 21:
     text-align: center;
     text-align: center;
     background: var(--theme-accent-color);
     background: var(--theme-accent-color);
    border: 1px solid var(--theme-border-color);
     border-radius: 6px;
     border-radius: 6px;
     padding: 0 0.25rem;
     padding: 0 0.25rem;
    width: 5.5rem;
}
}


Line 29: Line 31:
     .mp-card-text {
     .mp-card-text {
         background: var(--theme-accent-color);
         background: var(--theme-accent-color);
     }  
     }
}
}


.mp-card-text a {
.mp-card-text a {
     color: var(--page-text-color);
     color: var(--page-text-color);
    .skin-theme-clientpref-night & {
        color: var(--page-background-color);
    }
     &:hover {
     &:hover {
         text-decoration: none;
         text-decoration: none;
        color: var(--page-text-color);
     }
     }
}
}
Line 43: Line 47:
     justify-self: center;
     justify-self: center;
     width: 6rem;
     width: 6rem;
     height: 6rem;
     height: 6rem
}
}

Revision as of 14:56, 12 November 2025

.mp-card-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem
}

.mp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--theme-color-1);
    border: 1px solid var(--theme-border-color);
    border-radius: 8px;
    width: 7rem;
    height: 8.5rem
}

.mp-card-text {
    text-align: center;
    background: var(--theme-accent-color);
    border: 1px solid var(--theme-border-color);
    border-radius: 6px;
    padding: 0 0.25rem;
    width: 5.5rem;
}

.mp-card:hover {
    background: var(--theme-color-3);
    .mp-card-text {
        background: var(--theme-accent-color);
    }
}

.mp-card-text a {
    color: var(--page-text-color);
    .skin-theme-clientpref-night & {
        color: var(--page-background-color);
    }
    &:hover {
        text-decoration: none;
    }
}

.mp-card-icon img {
    justify-self: center;
    width: 6rem;
    height: 6rem
}