Template:Card/styles.css: Difference between revisions
From WikiMSK
No edit summary |
No edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 16: | Line 16: | ||
padding:1.2em; | padding:1.2em; | ||
border-radius:0; | border-radius:0; | ||
} | |||
.card{ | |||
height:100%; | |||
} | } | ||
Line 25: | Line 29: | ||
font-size: 0.875rem; | font-size: 0.875rem; | ||
font-weight: 600; | font-weight: 600; | ||
line-height: 2rem; | |||
} | |||
.card-image{ | |||
margin-top:1em; | |||
} | } | ||
Line 38: | Line 47: | ||
.card-container .card-image a img { | .card-container .card-image a img { | ||
transition: transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1.0); | transition: transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1.0); | ||
width:100%; | |||
height:100%; | |||
} | } | ||
Line 45: | Line 56: | ||
margin-bottom: 0.8rem; | margin-bottom: 0.8rem; | ||
line-height: 1.2; | line-height: 1.2; | ||
font-size: 1. | font-size: 1.125rem; | ||
font-weight: 600; | font-weight: 600; | ||
margin: -1.1rem -1.1rem 1em -1.1rem; | margin: -1.1rem -1.1rem 1em -1.1rem; | ||
color: ghostwhite; | color: ghostwhite; | ||
text-align:center; | text-align:center; | ||
padding:0. | padding:0.25rem; | ||
min-height:2.5rem; | |||
} | } | ||
Line 92: | Line 104: | ||
.card-caption { | .card-caption { | ||
margin-top: 1rem; | margin-top: 1rem; | ||
} | |||
.card-title { | |||
display: flex; | |||
justify-content: space-evenly; | |||
align-items: center; | |||
} | |||
.card-text li { | |||
line-height: 1.875; | |||
} | } |
Latest revision as of 06:53, 3 April 2022
.card-container{
margin: 0.5rem 0rem;
}
.card-container .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;
box-sizing: border-box;
border: 1px solid #eaecf0;
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;
border-radius:0;
}
.card{
height:100%;
}
.card-container .card:hover {
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.0475), 0 6px 6px rgba(0, 0, 0, 0.0575);
}
.card-container .card-caption {
font-size: 0.875rem;
font-weight: 600;
line-height: 2rem;
}
.card-image{
margin-top:1em;
}
.card-container .card-image a {
display: flex;
justify-content: center;
overflow: hidden;
background: none !important;
max-width: 400px;
margin: 0 auto;
}
.card-container .card-image a img {
transition: transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1.0);
width:100%;
height:100%;
}
.card-container .card .card-title {
position:relative;
margin-top: 0;
margin-bottom: 0.8rem;
line-height: 1.2;
font-size: 1.125rem;
font-weight: 600;
margin: -1.1rem -1.1rem 1em -1.1rem;
color: ghostwhite;
text-align:center;
padding:0.25rem;
min-height:2.5rem;
}
.card-container .card ol,
.card-container .card ul {
margin: 0;
padding-left: 1.6rem;
}
.card-container .card-button {
background: #72777d;
color: white;
transition: background 0.2s ease,opacity 0.2s ease;
padding: 0.6rem;
display: block;
text-align: center;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
margin: 0rem -1.1rem -1.2em -1.1rem;
}
.card-container .card-button:hover {
opacity: .8;
}
.card-container .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;
}
.card-caption {
margin-top: 1rem;
}
.card-title {
display: flex;
justify-content: space-evenly;
align-items: center;
}
.card-text li {
line-height: 1.875;
}