Main.css: Difference between revisions

From AAClassic
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
}
}


.tile-halves {
.tile {
     display: flex;
     background: #f9f3eb;
    flex-flow: row wrap;
     border: 1px solid #cabe9b;
     border: 1px solid #000000;
     box-shadow: @box-shadow;
     box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
    padding: 1.5em 2em 1em;
  }
    max-width: 40em;


.tile-row {
    h2 {
    display: flex;
    font-size: 1.4em;
     flex-flow: row wrap;
        font-weight: bold;
     margin-bottom: 1em;
        border: none;
}
        margin: 0 0 .4em;
}
 
    // reduce spacing when byline and heading appear together
    // (which should be the only way bylines appear)
     .byline + h2 {
        margin-top: -0.5em;
     }
 
    &.dark {
        color: white;
        background: shuttle-gray;
        border: none;
 
        h2 {
            color: white;
        }


.tile-top {
        a {
    width: 100%;
            color: #ccc;
    padding: 1.3rem 1.5rem 0.6rem;
        }
}


.tile-top.tile-image {
        .byline {
    display: flex;
            color: #FFFFFFCC;
    align-items: center;
        }
   
    overflow: hidden;
    padding: 0;
    height: 13vw;
    max-height: 12em;
    transition: 0.4s ease-out;
}


.tile-bottom {
     }
     background: #FAFAFA;
    border-top: 1px solid #000000;
    width: 100%;
    padding: 1rem 1.5rem 0.6rem;
}


.tile-bottom.link-button {
    align-self: flex-end;
    padding: 0;
}
}


.mainpage-contents .tile-halves {
    flex: 1;
}


.mainpage-contents {
.mainpage-contents {

Revision as of 11:12, 31 May 2024

.mw-body h1, .mw-body-content h1, .mw-body-content h2, .mw-body-content h3, .mw-body-content h4, .mw-body-content h5, .mw-body-content h6 {

   font-family: 'PT Serif', 'Palatino', 'Georgia', serif;

}

.mw-page-title-main {

 font-family: Philosopher,sans-serif

}

.tile {

   background: #f9f3eb;
   border: 1px solid #cabe9b;
   box-shadow: @box-shadow;
   padding: 1.5em 2em 1em;
   max-width: 40em;
   h2 {
   	font-size: 1.4em;
       font-weight: bold;
       border: none;
       margin: 0 0 .4em;

}

   // reduce spacing when byline and heading appear together
   // (which should be the only way bylines appear)
   .byline + h2 {
       margin-top: -0.5em;
   }
   &.dark {
       color: white;
       background: shuttle-gray;
       border: none;
       h2 {
           color: white;
       }
       a {
           color: #ccc;
       }
       .byline {
           color: #FFFFFFCC;
       }
   }

}


.mainpage-contents { grid-area: content; grid-template-columns: repeat(6, 1fr);

   .tile-halves {
       flex: 1;
   }
   .tile-top {
       position: relative; // needed for ribbon
   }
   h2 {
       margin: 0;
       padding: 0;
   }
   .tile-bottom.link-button a {
   	padding: 0.75em 0.2em; // prevent grid gap misalignment
   }

}