Template:Card/styles.css: Difference between revisions
From WikiMSK
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
.card:hover { | .card:hover { | ||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.0475), 0 6px 6px rgba(0, 0, 0, 0.0575); | 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; | |||
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 .card-title { | |||
margin-top: 0; | |||
margin-bottom: 0.8rem; | |||
line-height: 1.2; | |||
font-size: 1.25rem; | |||
color: #222222; | |||
font-family: 'Titillium Web', 'Univia Pro', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif; | |||
font-weight: 600; | |||
} | |||
.card ol, | |||
.card ul { | |||
margin: 0; | |||
padding-left: 1.6rem; | |||
} | |||
.card-button { | |||
background: #72777d; | |||
transition: opacity 0.2s ease; | |||
} | |||
.card-button:hover { | |||
opacity: .8; | |||
} | |||
.card-button a { | |||
padding: 0.6rem; | |||
display: block; | |||
text-align: center; | |||
font-size: 0.875rem; | |||
letter-spacing: .25px; | |||
font-weight: 600; | |||
/* Cancel out a styles */ | |||
background: none !important; | |||
color: white; | |||
transition: background 0.2s ease, | |||
color 0.2s ease; | |||
} | } |
Revision as of 08:13, 1 May 2021
.card {
margin: 0 0.2rem 0.4rem 0.2rem;
min-width: 240px;
max-width: 100%;
display: flex;
font-size: 0.875rem;
flex-grow: 1;
flex-direction: column;
justify-content: space-between;
box-sizing: border-box;
border: 1px solid #eaecf0;
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;
padding:1.2em;
}
.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;
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 .card-title {
margin-top: 0;
margin-bottom: 0.8rem;
line-height: 1.2;
font-size: 1.25rem;
color: #222222;
font-family: 'Titillium Web', 'Univia Pro', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
font-weight: 600;
}
.card ol,
.card ul {
margin: 0;
padding-left: 1.6rem;
}
.card-button {
background: #72777d;
transition: opacity 0.2s ease;
}
.card-button:hover {
opacity: .8;
}
.card-button a {
padding: 0.6rem;
display: block;
text-align: center;
font-size: 0.875rem;
letter-spacing: .25px;
font-weight: 600;
/* Cancel out a styles */
background: none !important;
color: white;
transition: background 0.2s ease,
color 0.2s ease;
}