Skip to content

Commit f43fdad

Browse files
committed
iphone optimized
1 parent 185649b commit f43fdad

File tree

3 files changed

+117
-47
lines changed

3 files changed

+117
-47
lines changed

css/cuppa-datepicker-styles.css

Lines changed: 115 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,119 @@ body{
471471
padding: 13px 10px 7px 0px;
472472
font-size: 28px;
473473
}
474+
.angular-range-slider {
475+
display: inline-block;
476+
position: relative;
477+
height: 4px;
478+
width: 80%;
479+
margin: 10px auto 25px auto;
480+
vertical-align: middle; }
481+
.angular-range-slider div {
482+
white-space: nowrap;
483+
position: absolute; }
484+
.angular-range-slider div.bar {
485+
width: 100%;
486+
height: 100%;
487+
border-radius: 10px;
488+
background: #ccc;
489+
overflow: hidden; }
490+
.angular-range-slider div.bar .selection {
491+
width: 0;
492+
height: 100%;
493+
background: #4285f4; }
494+
.angular-range-slider div.handle {
495+
cursor: pointer;
496+
width: 25px;
497+
height: 25px;
498+
top: -10px;
499+
background: #fff;
500+
box-shadow: 0px 0px 5px #ccc;
501+
z-index: 2;
502+
border-radius: 100%; }
503+
.angular-range-slider div.handle.active {
504+
background-color: #fff; }
505+
.angular-range-slider div.bubble {
506+
display: none;
507+
cursor: default;
508+
top: -32px;
509+
padding: 1px 3px 1px 3px;
510+
font-size: 0.7em;
511+
font-family: sans-serif; }
512+
.angular-range-slider div.bubble.active {
513+
display: inline-block; }
514+
.angular-range-slider div.bubble.limit {
515+
color: #777; }
516+
517+
@media (min-width: 365px) and (max-width: 767px){
518+
.wc-date-row{
519+
font-size: 96px;
520+
}
521+
.timepicker-true .wc-date-row {
522+
width: 54%;
523+
padding: 20px 5px 10px;
524+
}
525+
.timepicker-true .wc-my-sec {
526+
padding: 33px 2px 10px;
527+
width: 46%;
528+
}
529+
.timepicker-true .wc-time-sec {
530+
width: 100%;
531+
padding: 0px 0px 15px 0px;
532+
}
533+
.timepicker-true .wc-time-sec > .time {
534+
width: 35%;
535+
float: none;
536+
margin: 0px auto;
537+
font-size: 42px;
538+
}
539+
.timepicker-true .wc-month-row {
540+
font-size: 42px;
541+
padding: 5px 0px 5px 5px;
542+
}
543+
.timepicker-true .wc-year-row {
544+
font-size: 24px;
545+
padding: 15px 0px 0px 5px;
546+
}
547+
.timepicker-true .timestate{
548+
font-size: 22px;
549+
font-weight: 100;
550+
}
551+
.months-view, .years-view{
552+
top: 297px;
553+
}
554+
.banner-true > .time-view{
555+
top: 240px;
556+
}
557+
.time-view .time{
558+
font-size: 62px;
559+
}
560+
.cuppa-btn-group{
561+
font-size: 22px;
562+
font-weight: 300;
563+
}
564+
.angular-range-slider{
565+
height: 5px;
566+
margin: 20px auto 25px auto;
567+
}
568+
.angular-range-slider div.handle{
569+
width: 45px;
570+
height: 45px;
571+
top: -20px;
572+
font-size: 26px;
573+
}
574+
.time-view-btn{
575+
padding: 25px 0px;
576+
}
577+
.button-sm {
578+
width: 80%;
579+
padding: 10px;
580+
font-size: 16px;
581+
}
582+
.cuppa-btn-group > .button{
583+
padding: 5px 15px !important;
584+
}
585+
586+
}
474587
@media (min-width: 768px) {
475588
.wc-date-popover{
476589
width: 250px;
@@ -590,7 +703,7 @@ body{
590703
}
591704
.time-view h5{
592705
text-align: left;
593-
max-width: 200px;
706+
width: 80%;
594707
margin: 0px auto;
595708
padding: 5px 0px;
596709
font-weight: 400;
@@ -644,47 +757,4 @@ body{
644757
left: 60px;
645758
box-shadow: 0px 0px 5px #ccc;
646759
cursor: pointer;
647-
}
648-
649-
.angular-range-slider {
650-
display: inline-block;
651-
position: relative;
652-
height: 4px;
653-
width: 80%;
654-
margin: 10px auto 25px auto;
655-
vertical-align: middle; }
656-
.angular-range-slider div {
657-
white-space: nowrap;
658-
position: absolute; }
659-
.angular-range-slider div.bar {
660-
width: 100%;
661-
height: 100%;
662-
border-radius: 10px;
663-
background: #ccc;
664-
overflow: hidden; }
665-
.angular-range-slider div.bar .selection {
666-
width: 0;
667-
height: 100%;
668-
background: #4285f4; }
669-
.angular-range-slider div.handle {
670-
cursor: pointer;
671-
width: 25px;
672-
height: 25px;
673-
top: -10px;
674-
background: #fff;
675-
box-shadow: 0px 0px 5px #ccc;
676-
z-index: 2;
677-
border-radius: 100%; }
678-
.angular-range-slider div.handle.active {
679-
background-color: #fff; }
680-
.angular-range-slider div.bubble {
681-
display: none;
682-
cursor: default;
683-
top: -32px;
684-
padding: 1px 3px 1px 3px;
685-
font-size: 0.7em;
686-
font-family: sans-serif; }
687-
.angular-range-slider div.bubble.active {
688-
display: inline-block; }
689-
.angular-range-slider div.bubble.limit {
690-
color: #777; }
760+
}

js/datepicker-directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ angular.module("cuppaDatepickerDirective",[])
123123
highlight="left"
124124
ng-model="minValue"
125125
on-change="onMinUpdate(val)"></div>
126-
<div>
126+
<div class="time-view-btn">
127127
<button class="button button-sm" ng-click="setTimeView()">Set Time</button>
128128
</div>
129129
</div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-cuppa-datepicker",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Angular datetimepicker directive using angularJS 1. Responsive datepicker for web and mobile.",
55
"scripts": {
66
"start": "node app.js"

0 commit comments

Comments
 (0)