Best Practices
No edit summary
Tags: Reverted 2017 source edit
(Undo revision 22193 by Edgar (talk))
Tags: Undo Reverted
Line 3: Line 3:
<style>
<style>


  .contentHeader {
    .bestpractices-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
 
.mw-parser-output > *:first-child {
    display: none;
}
 
.header3 {
    padding: 2rem 5em;
}
 
.contentHeader {
     padding: 5em;
     padding: 5em;
    text-align: center;
}
}


.heading {
.heading {
     font-size: 2.25em;
     font-size: 2.25em;
    font-weight: 700;
    text-transform: uppercase;
    color: #182933;
}
}


.grid-container {
.grid-container {
     display: flex;
     display: grid;
     flex-wrap: wrap;
     padding: 0 5em;
     justify-content: center;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 20px;
     gap: 20px;
     padding: 0 5em;
     grid-auto-rows: minmax(100px, auto);
}
}


.bestpractices-card {
.bestpractices-card {
     flex: 1 1 calc(50% - 20px); /* Two cards per row, minus the gap */
     display: flex;
     max-width: calc(50% - 20px);
    justify-content: center;
    align-items: center;
     height: 100px;
    border-radius: 10px;
     background: rgba(226, 245, 250, 0.70);
     background: rgba(226, 245, 250, 0.70);
     border-radius: 10px;
     padding: 10px;
    padding: 20px;
     text-align: center;
     text-align: center;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bestpractices-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.bestpractices-card span {
    color: #1A50AD;
    font-size: 20px;
    font-weight: 700;
}
}


Line 47: Line 47:
     .contentHeader {
     .contentHeader {
         padding: 2em 1em;
         padding: 2em 1em;
        max-width: none;
     }
     }


Line 53: Line 54:
     }
     }


.grid-container {
.header3 {
         padding: 0 2em;
         padding: 2rem 1em;
     }
     }


.bestpractices-card {
.bestpractices-card {
         flex: 1 1 100%; /* Single card per row on mobile */
         height: auto;
         max-width: 100%;
         padding: 20px;
     }
     }



Revision as of 07:33, 1 August 2024

Best practices
BEST PRACTICES
Suggestions and ideas on how to creatively use MDriven tools.