Calendar Front End Test

by omni5cience

HTML

<meta name="viewport" content="width=device-width, user-scalable=false;">
<div class="grid">
	<header class="clearfix">
		<div class="day"><span>S</span></div>
		<div class="day"><span>M</span></div>
		<div class="day"><span>T</span></div>
		<div class="day"><span>W</span></div>
		<div class="day"><span>T</span></div>
		<div class="day"><span>F</span></div>
		<div class="day"><span>S</span></div>
	</header>
	<section class="clearfix">
		<div class="day"><span>1</span></div>
		<div class="day"><span>2</span></div>
		<div class="day"><span>3</span></div>
		<div class="day"><span>4</span></div>
		<div class="day events">
            <span>5</span>
            <div class="event-number">99 events</div>
			<div class="event-bullet">&bull;</div>
        </div>
		<div class="day"><span>6</span></div>
		<div class="day"><span>7</span></div>
	</section>
	<section class="clearfix">
		<div class="day"><span>8</span></div>
		<div class="day events">
            <span>9</span>
            <div class="event-number">1 event</div>
			<div class="event-bullet">&bull;</div>
        </div>
		<div class="day"><span>10</span></div>
		<div class="day"><span>11</span></div>
		<div class="day"><span>12</span></div>
		<div class="day"><span>13</span></div>
		<div class="day"><span>14</span></div>
	</section>
	<section class="clearfix">
		<div class="day"><span>15</span></div>
		<div class="day"><span>16</span></div>
		<div class="day events">
            <span>17</span>
            <div class="event-number">3 events</div>
			<div class="event-bullet">&bull;</div>
        </div>
		<div class="day"><span>18</span></div>
		<div class="day"><span>19</span></div>
		<div class="day"><span>20</span></div>
		<div class="day"><span>21</span></div>
	</section>
	<section class="clearfix">
		<div class="day"><span>22</span></div>
		<div class="day events">
            <span>23</span>
            <div class="event-number">88 events</div>
			<div class="event-bullet">&bull;</div>
        </div>
		<div...

SCSS

* {
    //margin: 0;
    box-sizing: border-box;
}
body {
    font-family: "Helvetica Neue";
    font-weight: 200;
    background-color: #ddd;
}
.grid {
    padding: 0.5em;
    max-width: 968px;
    min-width: 300px;
    //position: relative;
    margin: 0 auto;
    background-color: white;
}
$width = 2px;
.grid header {
    width: 100%;
    font-weight: 400;
    margin-bottom: 4px;
    .day {
        background-color: #333;
        color: #ddd;
        //outline: 2px solid white;
    }
}
.grid section, .grid header {
    margin: 0 0 0.5%;
    padding: 0;
}
/*.grid header::nth-child(odd) {
    margin-right: 5px;
}*/
.day {
    background-color: #ebebeb;
    //background-color: #e6e6e6;
    //display: inline-block;
    float: left;
    width: 18px;
    width: 13.8571%;
    //width: calc('14.2857% - #{$width}');
    //width: calc('(100% - #{6 * $width}) / 7');
    padding: 1.8em 0 2em;
    margin: 0;
    text-align: center;
    //border-bottom: 2px solid white;
    position: relative;
    //margin-right: $width;
    margin-right: 0.5%;
    &:last-child {
        margin-right: 0;
    }
}
.events {
    //padding: 1.25em 0;
    //color: #278ed3;
    font-weight: 400;
}
.event-number {
    position: absolute;
    left: 0;
    right: 0;
    line-height: 0.5;
}
.event-bullet {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    line-height: 0.5;
}
.day.events div {
    //text-decoration: underline;
}
section .day {
    //outline-right: 2px solid white;
    //outline: 2px solid white;
}

.grid .day:empty {
    border: none;
    background-color: rgba(0,0,0,0);
    //outline: none;
}

.clearfix{
    *zoom:1;
}
.clearfix:before,.clearfix:after{
    display:table;
    content:" ";
    //line-height:0;
}
.clearfix:after{
    clear:both;
}

@media all and (max-width: 600px) {
    .events .event-number {
        display: none;
    }
    .events .event-bullet {
        display: block;
    }
    .days {
        padding: 1.8em 0;
    }
    body {
       ...