Skip to content

Instantly share code, notes, and snippets.

@JamesDullaghan
Created October 1, 2013 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamesDullaghan/6786666 to your computer and use it in GitHub Desktop.
Save JamesDullaghan/6786666 to your computer and use it in GitHub Desktop.
calendar helper scss
.month {
font-family: 'ProximaCond';
background: $primary-color;
font-size: 28px;
letter-spacing: 2px;
text-align: center;
padding: 10px 0;
margin-bottom: 0;
color: #fff;
a {
color: darken(#fff, 5%);
&:hover {
color: darken(#fff, 3%);
transition: 0.8s ease-in-out;
}
}
}
[role="main"] {
padding: 0;
}
.calendar {
background-color: white;
min-height: 260px;
box-shadow: 0px 1px 9px rgba(0, 0, 0, 0.2);
ul {
list-style-type: none;
li {
position: relative;
display: inline-block;
float: left;
width: 14%;
height: 40px;
text-align: center;
line-height: 40px;
zoom: 1;
*display: inline;
&:hover {
background-color: $secondary-color;
}
}
}
}
.day-row {
color: $primary-color;
text-transform: uppercase;
font-weight: bold;
font-size: 1em;
}
.day {
&:hover {
background-color: white !important;
}
}
.today {
background-color: $primary-color;
color: white;
transition: 0.8s ease-in;
&:hover {
color: #555;
transition: 0.8s ease-out;
}
}
.week-row {
color: #555;
font-size: 0.9em;
}
.not-month {
color: #bababa;
}
.overlay {
position: absolute;
top: 8px;
height: 7px;
width: 7px;
border-radius: 14px;
background-color: $primary-color;
}
@media only screen and (min-width: 768px) {
[role="main"] {
overflow: hidden;
padding: 15px;
background: white;
}
.calendar {
ul {
list-style-type: none;
li {
position: relative;
display: inline-block;
float: left;
width: 14%;
height: 70px;
text-align: center;
line-height: 70px;
zoom: 1;
*display: inline;
&:hover {
background-color: lighten($secondary-color, 15%);
}
}
}
}
.day-row {
color: $primary-color;
text-transform: uppercase;
font-weight: bold;
font-size: 1em;
}
.day {
&:hover {
background-color: white !important;
}
}
.today {
background-color: $primary-color;
color: white;
&:hover {
color: #555;
transition: 0.8s ease-in-out;
}
}
.week-row {
color: #555;
font-size: 0.9em;
}
.not-month {
color: #bababa;
}
.overlay {
position: absolute;
top: 8px;
height: 7px;
width: 7px;
border-radius: 14px;
background-color: $primary-color;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment