CSS Calendar Icons

PUG
.calendar
  .calendar-header OCT
  .calendar-body
    .today 1
    .days
      ul.days-pink
        li
        li
        li
        li
      ul.days-blue
        li
        li
        li
        li
      ul.days-blue
        li
        li
        li
        li
      ul.days-blue
        li
        li
        li
        li
      ul.days-blue
        li
        li
        li
        li
CSS
.calendar{
  width: 200px;   
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.calendar-header{
  height: 50px;  
  line-height: 50px;
  font-size: 30px;
  letter-spacing: 2px;
  background: #eb5776;
  color: #FFF;
  text-align: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: inset -10px 0px #ce3f63;
}

.calendar-body{
  height: 150px;
  background: #ebeef2;
  display: flex;
  align-items: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: inset -10px 0px #d5dadc;
}

.calendar-body .today{
  width: 70px;
  height: 70px;
  border-radius: 100%;
  font-size: 35px;
  margin-left: 10px;
  background: #eb5776;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-body .days{
  width: 120px;
  text-align: center;
}
 
.days .days-blue li{
  display: inline-block;
  width: 11px;
  height: 6px;
  border-radius: 5px;
  background: #5e9eeb;
  margin: 0px 2px;
}

.days .days-pink li{
  display: inline-block;
  width: 11px;
  height: 6px;
  border-radius: 5px;
  background: #eb5776;
  margin: 0px 2px;
}

DEMO

View Demo
503 Views
69940cookie-checkCSS Calendar Icons

Leave a Reply

Your email address will not be published. Required fields are marked *