Template:Card/styles.css: Difference between revisions

From WikiMSK
No edit summary
No edit summary
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
.card {
.card-container{
margin: 0.5rem 0rem;
}
.card-container .card {
     margin: 0 0.2rem 0.4rem 0.2rem;
     margin: 0 0.2rem 0.4rem 0.2rem;
     min-width: 240px;
     min-width: 240px;
Line 7: Line 10:
     flex-grow: 1;
     flex-grow: 1;
     flex-direction: column;
     flex-direction: column;
    justify-content: space-between;
     box-sizing: border-box;
     box-sizing: border-box;
     border: 1px solid #eaecf0;
     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);
     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;
     transition: box-shadow 0.2s ease;
     padding:1.2em;
     padding:1.2em;
    border-radius:0;
}
.card{
height:100%;
}
}


.card:hover {
.card-container .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 {
.card-container .card-caption {
     font-size: 0.875rem;
     font-size: 0.875rem;
     font-weight: 600;
     font-weight: 600;
    line-height: 2rem;
}
}


.card-image a {
.card-image{
margin-top:1em;
}
 
.card-container .card-image a {
     display: flex;
     display: flex;
     justify-content: center;
     justify-content: center;
     overflow: hidden;
     overflow: hidden;
     background: none !important;
     background: none !important;
    max-width: 400px;
    margin: 0 auto;
}
}


.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%;
}
}


.card:hover .card-image a img {
.card-container .card .card-title {
     transform: scale(1.1);
     position:relative;
}
 
.card .card-title {
     margin-top: 0;
     margin-top: 0;
     margin-bottom: 0.8rem;
     margin-bottom: 0.8rem;
     line-height: 1.2;
     line-height: 1.2;
     font-size: 1.25rem;
     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;
background: #3498db;
color: ghostwhite;
color: ghostwhite;
text-align:center;
text-align:center;
padding:0.5rem;
padding:0.25rem;
min-height:2.5rem;
}
}


.card ol,
.card-container .card ol,
.card ul {
.card-container .card ul {
     margin: 0;
     margin: 0;
     padding-left: 1.6rem;
     padding-left: 1.6rem;
}
}


.card-button {
.card-container .card-button {
     background: #72777d;
     background: #72777d;
     transition: opacity 0.2s ease;
    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-button:hover {
.card-container .card-button:hover {
     opacity: .8;
     opacity: .8;
}
}


.card-button a {
.card-container .card-button a {
     padding: 0.6rem;
     padding: 0.6rem;
     display: block;
     display: block;
Line 80: Line 100:
     transition: background 0.2s ease,
     transition: background 0.2s ease,
         color 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;
}
}

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;
}