Template:MainPage/HighlightedBiography/styles.css

From WikiVita
Jump to navigation Jump to search
/* ==========================
WikiVita Highlighted Biographies
========================== */

.wv-highlight-box {
width: 100%;
background: #fff;
border: 1px solid #d7e3f0;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Header */

.wv-highlight-header {
background: #d7e6f6;
color: #000;
text-align: center;
font-size: 1.2rem;
font-weight: 700;
padding: 10px 18px;
border-bottom: 1px solid #d7e3f0;
}

/* Content */

.wv-highlight-content {
padding: 20px 24px;
}

/* Biography Item */

.wv-highlight-item {
display: flex;
gap: 18px;
align-items: flex-start;

padding-bottom: 20px;
margin-bottom: 20px;
border-bottom: 1px solid #e8edf4;

color: #333;
line-height: 1.7;

}

.wv-highlight-item:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}

/* Image */

.wv-highlight-image {
flex-shrink: 0;
}

.wv-highlight-image img {
width: 80px;
height: 80px;
border-radius: 50%;
border: 2px solid #d7e3f0;
}

/* Text Area */

.wv-highlight-details {
flex: 1;
}

/* Biography Name */

.wv-highlight-item b {
display: block;
margin-bottom: 6px;
font-size: 1.08rem;
font-weight: 700;
}

.wv-highlight-item b a {
color: #0645ad;
text-decoration: none;
}

.wv-highlight-item b a:visited {
color: #0b0080;
}

.wv-highlight-item b a:hover {
text-decoration: underline;
}

/* Read More */

.wv-highlight-link {
margin-top: 8px;
font-size: 0.9rem;
font-weight: 600;
}

.wv-highlight-link a {
color: #1565c0;
text-decoration: none;
}

.wv-highlight-link a:hover {
text-decoration: underline;
}

/* ==========================
Mobile
========================== */

@media screen and (max-width: 768px) {

.wv-highlight-header {
    font-size: 1.15rem;
    padding: 10px 16px;
}

.wv-highlight-content {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 16px;
}

.wv-highlight-item {
    display: block;

    flex: 0 0 85%;
    min-width: 85%;

    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 12px;

    padding: 16px;
    margin-bottom: 0;

    text-align: center;
}

.wv-highlight-image {
    margin-bottom: 12px;
}

.wv-highlight-image img {
    width: 64px;
    height: 64px;
}

.wv-highlight-item b {
    font-size: 1rem;
    margin-bottom: 8px;
}

.wv-highlight-link {
    font-size: 0.88rem;
}

}