@import "tailwindcss/base"; @import "tailwindcss/components"; @import "tailwindcss/utilities"; /* This file is for your main application CSS */ .calendar-wrapper { display: flex; position: absolute; width: 80vw; flex-wrap: wrap; left: 10%; top: 400px; } /* Taken from https://codepen.io/alvarotrigo/pen/xxYVrmK */ .calendar { display: inline-grid; justify-content: center; align-items: center; background: #fff; padding: 20px; margin: 40px; border-radius: 5px; box-shadow: 0px 40px 30px -20px rgba(0, 0, 0, 0.3); .month { display: flex; justify-content: center; align-items: center; font-size: 20px; margin-bottom: 20px; font-weight: 300; .year { font-weight: 600; margin-left: 10px; } } .days { display: grid; justify-content: center; align-items: center; grid-template-columns: repeat(7, 1fr); color: #999; font-weight: 600; margin-bottom: 15px; span { width: 50px; justify-self: center; align-self: center; text-align: center; } } .dates { display: grid; grid-template-columns: repeat(7, 1fr); button { cursor: pointer; outline: 0; border: 0; font-size: 16px; justify-self: center; align-self: center; width: 50px; height: 50px; border-radius: 50px; margin: 2px; transition-duration: .2s; &.today { box-shadow: inset 0px 0px 0px 2px #0a3d62; } &:first-child { grid-column: 3; } &:hover { background: #eee; } &:focus { background: #0a3d62; color: #fff; font-weight: 600; } } } }