|
@import "nib" |
|
|
|
title-background = rgb(0, 121, 107) |
|
title-colour = rgb(225,225,225) |
|
content-background = rgb(0, 150, 136) |
|
content-main-colour = rgb(225,225,225) |
|
content-secondary-colour = rgb(138,207,200) |
|
background-colour = rgb(255, 255, 255) |
|
text-colour = rgb(32,32,32) |
|
unselectable-text-colour = rgb(115,115,115) |
|
today-text-colour = rgb(0, 150, 136) |
|
selected-text-colour = background-colour |
|
selected-background-colour = rgb(0, 150, 136) |
|
hover-text-colour = darken(selected-text-colour, 10%) |
|
hover-background-colour = lighten(selected-background-colour, 10%) |
|
button-text-colour = rgb(0, 150, 136) |
|
clock-background-colour = rgb(236,239,241) |
|
|
|
content-height = 27.3rem |
|
|
|
clock-radius = 75 |
|
|
|
.time-date |
|
font-size: 16px |
|
overflow: hidden |
|
border: none |
|
max-width: 600px |
|
& > .display |
|
position: relative |
|
width: 47% |
|
height: 100% |
|
cursor: pointer |
|
& > .title |
|
background-color: title-background |
|
color: title-colour |
|
line-height: 3.2rem |
|
& > .content |
|
position: absolute |
|
left: 0px |
|
right: 0px |
|
bottom: 0px |
|
top: 3.2rem |
|
padding: 3rem |
|
font-size: 2rem |
|
background-color: content-background |
|
color: content-main-colour |
|
& > .super-title |
|
text-transform: uppercase |
|
& > .main-title |
|
font-size: 8rem |
|
& > small |
|
font-size: 1.5rem |
|
margin-left: 0.5rem |
|
& > .sub-title |
|
color: content-secondary-colour |
|
& > .control |
|
width: 53% |
|
overflow-x: hidden |
|
position: relative |
|
& > .full-title |
|
display: none |
|
background-color: title-background |
|
color: title-colour |
|
line-height: 3.2rem |
|
& > .slider |
|
position: absolute !important |
|
width: 200% |
|
transition: left 0.6s ease-in-out |
|
& > .date-control, & > .time-control, & > .switch-control |
|
float: left |
|
height: content-height |
|
& > .date-control, & > .time-control |
|
width: 45% |
|
& > .switch-control |
|
width: 10% |
|
cursor: pointer |
|
& > i.fa |
|
margin-top: 12.65rem |
|
&:first-child |
|
margin-right 1rem |
|
&:last-child |
|
margin-left 1rem |
|
& > .date-control |
|
& > .title |
|
font-weight: 500 |
|
line-height: 3.2rem |
|
& > span |
|
cursor: pointer |
|
position: relative |
|
&:hover |
|
text-decoration: underline |
|
& > select |
|
position: absolute |
|
top: 0px |
|
bottom: 0px |
|
left: 0px |
|
right: 0px |
|
opacity: 0 |
|
& > input |
|
border: none |
|
width: 5.6rem |
|
& > .headers |
|
margin-top: -1rem |
|
font-weight: 500 |
|
font-size: 1.3rem |
|
padding-left: 2rem |
|
color: unselectable-text-colour |
|
& > .day-cell |
|
cursor: default |
|
& .day-cell |
|
float: left |
|
width: 3.6rem |
|
height: 3.6rem |
|
padding-top: 1rem |
|
cursor: pointer |
|
border-radius: 4rem |
|
& > .days |
|
font-size: 1.3rem |
|
padding-left: 2rem |
|
width: (3.6 * 7.7)rem |
|
& .day-cell |
|
&.today |
|
color: today-text-colour |
|
&.selected |
|
color: selected-text-colour |
|
background-color: selected-background-colour |
|
&:hover, &:active |
|
color: hover-text-colour |
|
background-color: hover-background-colour |
|
& > .time-control |
|
position: relative |
|
& > .time-inputs |
|
bottom: 50% |
|
margin-bottom: -5.6rem |
|
text-align: center |
|
position: absolute |
|
left: 0 |
|
right: 0 |
|
& > a |
|
font-size: 4rem |
|
line-height: 1rem |
|
width: 11rem |
|
margin: 0 1.1rem |
|
position: absolute |
|
&.hours |
|
left: 1rem |
|
right: 50% |
|
margin-right: 4rem |
|
&.minutes |
|
margin-left: 1.2rem |
|
right: 1rem |
|
left: 50% |
|
&.up |
|
top: -3rem |
|
&.down |
|
bottom: -4rem |
|
& > input |
|
border: none |
|
border-bottom: 1px solid black |
|
text-align: right |
|
font-size: 8rem |
|
line-height: 4rem |
|
width: 11rem |
|
margin: 0 1rem |
|
& > .buttons |
|
position: absolute |
|
bottom: 0px |
|
left: 8px |
|
right: 8px |
|
height: 5rem |
|
& > span |
|
float: left; |
|
& > label |
|
position: absolute |
|
left: 50% |
|
margin-left: -3rem |
|
font-weight: normal |
|
font-size: 1.3rem |
|
& > input |
|
bottom: 50% |
|
margin-bottom: -1.4rem |
|
margin-left: -3rem |
|
border: none |
|
border-bottom: 1px solid black |
|
text-align: center |
|
position: absolute |
|
left: 50% |
|
& > button |
|
border-radius: 100% |
|
width: 5rem |
|
height: 5rem |
|
margin-top: -1rem |
|
& > .clock |
|
position: relative |
|
width: 100% |
|
padding-left: 50% |
|
padding-top: 3rem |
|
& > .clock-face |
|
position: relative |
|
margin-left: -(clock-radius)px |
|
margin-top: 1.5rem |
|
&:before |
|
content: " " |
|
background-color: clock-background-colour |
|
position: absolute |
|
top: -20px |
|
left: -20px |
|
height: ((2 * clock-radius) + 38)px |
|
width: ((2 * clock-radius) + 38)px |
|
border-radius: (((2 * clock-radius) + 38) / 2)px |
|
& > .center |
|
position: absolute |
|
width: 4px |
|
height: 4px |
|
background-color: text-colour |
|
border-radius: 2px |
|
z-index: 3 |
|
left: (clock-radius - 1)px |
|
top: (clock-radius - 2)px |
|
& > .hand |
|
position: absolute |
|
height: 4rem |
|
width: 4rem |
|
margin-left: -2rem |
|
margin-top: -2rem |
|
padding: 1rem |
|
text-align: center |
|
border-radius: 8rem |
|
cursor: pointer |
|
color: today-text-colour |
|
z-index: 2 |
|
&:hover, &:active, &:hover:before, &:active:before |
|
color: hover-text-colour |
|
background-color: hover-background-colour |
|
&.selected, &.selected:before |
|
color: selected-text-colour |
|
background-color: selected-background-colour |
|
for num in 1 2 3 4 5 6 7 8 9 10 11 12 |
|
&:nth-child({num+1}) |
|
left: (clock-radius + clock-radius * sin(PI * 2 * (num/12)))px |
|
top: (clock-radius - clock-radius * cos(PI * 2 * (num/12)))px |
|
&:before |
|
content: " " |
|
position: absolute |
|
left: 2rem |
|
top: 2rem |
|
height: (clock-radius)px |
|
width: 2px |
|
z-index: -1 |
|
transform-origin: center top |
|
transform: rotate((num / 12 * 360)deg) |
|
&.date-mode > .control > .slider |
|
left: 0% |
|
&.time-mode |
|
& > .display > .content |
|
padding-top: 5.4rem |
|
& > .control > .slider |
|
left: -100% |
|
&.date-only > .control > .slider |
|
& > .switch-control, & > .time-control |
|
display: none |
|
& > .date-control |
|
width: 50% |
|
padding-left: 1.4rem |
|
&.time-only |
|
& > .display > .content |
|
top: 0px |
|
padding-top: 8.2rem |
|
& > .control > .slider |
|
& > .switch-control, & > .date-control |
|
display: none |
|
& > .time-control |
|
width: 50% |
|
& > .display, & > .control |
|
height: content-height |
|
float: left |
|
text-align: center |
|
& > .buttons |
|
clear: both |
|
padding: 1rem |
|
text-align: right |
|
& button, & .button |
|
color: button-text-colour !important |
|
font-weight: bold |
|
text-decoration: underline |
|
cursor: pointer |
|
&:hover, &:active |
|
color: hover-text-colour !important |
|
background-color: hover-background-colour |
|
&.active |
|
color: selected-text-colour !important |
|
background-color: selected-background-colour |
|
&.full-mode |
|
& > .display |
|
display: none |
|
& > .control |
|
width: 100% |
|
height: 30.5rem |
|
& > .full-title |
|
display: block |
|
& > .slider |
|
float: none |
|
width: 100% |
|
& > .time-control, & > .date-control |
|
width: 50% |
|
& > .switch-control |
|
display: none |
|
& > .buttons |
|
background-color: selected-background-colour |
|
& > button |
|
/* Invert colours for bottom bar */ |
|
color: selected-text-colour !important |