Template:MainPage/Vector/styles.css
Jump to navigation
Jump to search
.mainpage-body {
width: 100%;
margin: 1.2rem -0.2rem 0 -0.2rem;
display: flex;
flex-direction: column;
}
.mainpage-row {
display: flex;
width: 100%;
flex-wrap: wrap;
}
.card {
margin: 0 0.2rem 0.4rem 0.2rem;
display: flex;
flex-grow: 1;
flex-direction: column;
justify-content: space-between;
box-sizing: border-box;
border: 1px solid #eaecf0;
border-radius: 8px;
overflow: hidden;
background-color: white;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.06);
transition: box-shadow 0.2s ease;
}
.card:hover {
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.0475), 0 6px 6px rgba(0, 0, 0, 0.0575);
}
.card-caption {
font-size: 0.875rem;
font-weight: 600;
}
.card-image a {
display: flex;
height: 100%;
justify-content: center;
overflow: hidden;
background: none !important;
}
.card-image a img {
transition: transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}
.card:hover .card-image a img {
transform: scale(1.1);
}
.card h3 {
margin-top: 0;
line-height: 1.2;
font-weight: 600;
}
.card .byline {
margin: 0 0 0.2rem 0;
color: #72777d;
font-size: 0.825rem;
}
.card .numdata {
margin-top: 0.8rem;
}
.card p {
font-size: 0.875rem;
}
.card-text {
padding: 1.2rem;
}
.card-button {
background: #72777d;
transition: background 0.2s ease,
opacity 0.2s ease;
}
.card-button:hover {
opacity: .8;
}
.card-button a {
padding: 0.6rem;
display: block;
background: none!important;
color: white;
text-align: center;
font-size: 0.875rem;
font-weight: 600;
}
.card-link ul {
margin: 0;
padding: 1.2rem 1.2rem 1.2rem 2.8rem;
font-size: 0.875rem;
}
@media only screen and (max-width: 720px) {
.mainpage-row {
width: auto;
margin: 0 -20px;
padding: 0 20px;
overflow: auto;
flex-wrap: nowrap;
}
}