Skip to content

Instantly share code, notes, and snippets.

@coma
Created February 12, 2014 09:50
Show Gist options
  • Save coma/8952668 to your computer and use it in GitHub Desktop.
Save coma/8952668 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.3)
// Compass (v1.0.0.alpha.18)
// ----
@charset 'UTF-8';
@import "compass/css3";
@import url(http://fonts.googleapis.com/css?family=Inder);
body {
font-family: Inder, Arial, Helvetica, sans-serif;
background-color: #F0F2F5;
}
div.picker {
width: 20rem;
color: #34495e;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border-radius: 4px;
overflow: hidden;
@include box-shadow(0 -4px 0 rgba(0, 0, 0, 0.15) inset, 0 4px 0 rgba(0, 0, 0, 0.12));
* {
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
*:focus {
-webkit-tap-highlight-color: rgba(0,0,0,0);
outline: none;
}
a, span {
color: #A4AEB9;
}
a {
text-decoration: none;
cursor: pointer;
}
div:after {
content: "";
display: block;
clear: both;
}
div.header {
position: relative;
font-size: 1.5em;
height: 2em;
line-height: 2em;
border-bottom: 4px solid #5BA0D0;
background-color: #4FC1E9;
a {
display: block;
position: absolute;
top: 0;
bottom: 0;
text-align: center;
color: #fff;
&.next, &.prev {
width: 2em;
overflow: hidden;
&:after {
content: "";
display: block;
position: absolute;
width: 0;
height: 0;
top: .5em;
border: .5em solid transparent;
}
}
&.next {
right: 0;
&:after {
left: 1em;
border-left-color: #fff;
}
}
&.prev {
left: 0;
&:after {
border-right-color: #fff;
}
}
&.current {
right: 2em;
left: 2em;
}
}
}
div.body {
position: relative;
height: 15rem;
color: #A4AEB9;
background-color: #fff;
.current {
color: #fff;
background-color: #4FC1E9;
}
span {
background-color: #eee;
}
div.week {
color: #4FC1E9;
background-color: #F6F8FA;
span {
line-height: 3em;
width: (100% / 7);
background-color: transparent;
}
}
div.month {
a, span {
line-height: 2em;
width: (100% / 7);
}
}
a, span {
@include box-sizing(border-box);
display: block;
float: left;
text-align: center;
&.prev, &.next {
color: #ccc;
}
}
[data-year], [data-month] {
width: 25%;
line-height: 5em;
}
}
&.top div.header a.current {
cursor: default;
pointer-events: none;
}
}
@import url(http://fonts.googleapis.com/css?family=Inder);
body {
font-family: Inder, Arial, Helvetica, sans-serif;
background-color: #F0F2F5;
}
div.picker {
width: 20rem;
color: #34495e;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border-radius: 4px;
overflow: hidden;
-moz-box-shadow: 0 -4px 0 rgba(0, 0, 0, 0.15) inset, 0 4px 0 rgba(0, 0, 0, 0.12);
-webkit-box-shadow: 0 -4px 0 rgba(0, 0, 0, 0.15) inset, 0 4px 0 rgba(0, 0, 0, 0.12);
box-shadow: 0 -4px 0 rgba(0, 0, 0, 0.15) inset, 0 4px 0 rgba(0, 0, 0, 0.12);
}
div.picker * {
-webkit-tap-highlight-color: transparent;
}
div.picker *:focus {
-webkit-tap-highlight-color: transparent;
outline: none;
}
div.picker a, div.picker span {
color: #A4AEB9;
}
div.picker a {
text-decoration: none;
cursor: pointer;
}
div.picker div:after {
content: "";
display: block;
clear: both;
}
div.picker div.header {
position: relative;
font-size: 1.5em;
height: 2em;
line-height: 2em;
border-bottom: 4px solid #5BA0D0;
background-color: #4FC1E9;
}
div.picker div.header a {
display: block;
position: absolute;
top: 0;
bottom: 0;
text-align: center;
color: #fff;
}
div.picker div.header a.next, div.picker div.header a.prev {
width: 2em;
overflow: hidden;
}
div.picker div.header a.next:after, div.picker div.header a.prev:after {
content: "";
display: block;
position: absolute;
width: 0;
height: 0;
top: .5em;
border: .5em solid transparent;
}
div.picker div.header a.next {
right: 0;
}
div.picker div.header a.next:after {
left: 1em;
border-left-color: #fff;
}
div.picker div.header a.prev {
left: 0;
}
div.picker div.header a.prev:after {
border-right-color: #fff;
}
div.picker div.header a.current {
right: 2em;
left: 2em;
}
div.picker div.body {
position: relative;
height: 15rem;
color: #A4AEB9;
background-color: #fff;
}
div.picker div.body .current {
color: #fff;
background-color: #4FC1E9;
}
div.picker div.body span {
background-color: #eee;
}
div.picker div.body div.week {
color: #4FC1E9;
background-color: #F6F8FA;
}
div.picker div.body div.week span {
line-height: 3em;
width: 14.28571%;
background-color: transparent;
}
div.picker div.body div.month a, div.picker div.body div.month span {
line-height: 2em;
width: 14.28571%;
}
div.picker div.body a, div.picker div.body span {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: block;
float: left;
text-align: center;
}
div.picker div.body a.prev, div.picker div.body a.next, div.picker div.body span.prev, div.picker div.body span.next {
color: #ccc;
}
div.picker div.body [data-year], div.picker div.body [data-month] {
width: 25%;
line-height: 5em;
}
div.picker.top div.header a.current {
cursor: default;
pointer-events: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment