/* declare a 7 column grid on the table */ .inset { padding: 20px 20px 20px 20px; } #help-desk { padding: 20px 20px 20px 20px; } #calendar { width: 100%; display: grid; grid-template-columns: repeat(8, 1fr); border: 0; } #calendar tr, #calendar tbody { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(8, 1fr); width: 100%; } caption { text-align: center; grid-column: 1 / -1; font-size: 130%; font-weight: bold; padding: 10px 0; } #calendar a { color: $aggie; text-decoration: none; } #calendar .weekdays #time { background-color: white; color: $green; } #calendar .weekdays { background: $light-green; } #calendar .weekdays th { text-align: center; text-transform: uppercase; line-height: 20px; border: none !important; padding: 10px 6px; color: #fff; font-size: 13px; } #calendar td { display: flex; flex-direction: column; text-align: center; } td.time { vertical-align: bottom; text-align: center; } #calendar .open { background-color: $gold; font-weight: bold; color: $green; } #calendar .open a { color: $green; } #calendar .day { display:none; } /* ============================ Mobile Responsiveness ============================*/ @media(max-width: $on-palm) { #calendar .weekdays, #calendar .other-month { display: none; } #calendar li { height: auto !important; border: 1px solid #ededed; width: 100%; padding: 10px; margin-bottom: -1px; } #calendar, #calendar tr, #calendar tbody { grid-template-columns: 1fr; } #calendar tr { grid-column: 1 / 2; } #calendar td .day { text-align: center; padding: 4px; background: #333; color: #fff; width: 20px; border-radius: 50%; flex: 0 0 auto; align-self: flex-end; justify-content: right; display: inline; } #calendar .shift { align-self: center; justify-content: center; flex-grow: 1; } #calendar td { flex-direction: row; } }