Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

fix cursor jumping to the end of line on time edit #159

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
bower_components
/.project
.idea/
308 changes: 154 additions & 154 deletions dist/mdPickers.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,160 @@
-webkit-animation-name: mdp-animation-bounce;
animation-name: mdp-animation-bounce;
}
.mdp-clock {
width: 200px;
height: 200px;
border-radius: 50%;
cursor: pointer;
padding: 24px;
background: #ededed;
}
.mdp-clock .md-button {
box-shadow: none !important;
background-color: transparent;
display: block;
position: absolute;
min-height: 32px;
width: 32px;
height: 32px;
font-size: 12px;
line-height: 32px;
margin: 0;
padding: 0;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.mdp-clock .mdp-clock-container {
width: 100%;
height: 100%;
position: relative;
display: block;
}
.mdp-clock .mdp-pointer {
min-height: 0px;
width: 1px;
height: 50%;
position: absolute;
left: 0;
right: 0;
bottom: 0;
margin: 0 auto;
-webkit-transform-origin: top center;
transform-origin: top center;
z-index: 0;
pointer-events: none;
}
.mdp-clock .mdp-clock-center {
min-height: 0px;
height: 6px;
width: 6px;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
border-radius: 50%;
}
.mdp-clock .md-button.mdp-clock-selected {
position: absolute;
border-radius: 50%;
width: 8px;
height: 8px;
bottom: -8px;
left: 0px;
min-width: 0;
min-height: 0;
pointer-events: none;
}
.mdp-timepicker .mdp-clock-switch-container {
padding: 20px;
width: 309px;
}
.mdp-timepicker .mdp-timepicker-time {
padding: 15px;
}
.mdp-timepicker .mdp-timepicker-selected-time {
font-size: 3rem;
}
.mdp-timepicker:not(.portrait) .mdp-timepicker-time {
width: 138px;
}
.mdp-timepicker.portrait .mdp-timepicker-selected-time {
font-size: 4rem;
margin-right: 1.5rem;
}
mdp-time-picker md-input-container.md-has-icon {
padding-left: 40px;
}
mdp-time-picker .md-button.md-icon-button {
margin: 18px 0 0 0;
}
.mdp-timepicker-selected-time > span,
.mdp-timepicker-selected-ampm > span {
outline: 0;
opacity: 0.6;
}
.mdp-timepicker-selected-time > span:not(.active),
.mdp-timepicker-selected-ampm > span:not(.active) {
cursor: pointer;
}
.mdp-timepicker-selected-time > span.active,
.mdp-timepicker-selected-ampm > span.active {
opacity: 1;
}
.mdp-clock-deg0 {
top: 0%;
left: 50%;
}
.mdp-clock-deg30 {
top: 6.69872981%;
left: 75%;
}
.mdp-clock-deg60 {
top: 25%;
left: 93.30127019%;
}
.mdp-clock-deg90 {
top: 50%;
left: 100%;
}
.mdp-clock-deg120 {
top: 75%;
left: 93.30127019%;
}
.mdp-clock-deg150 {
top: 93.30127019%;
left: 75%;
}
.mdp-clock-deg180 {
top: 100%;
left: 50%;
}
.mdp-clock-deg210 {
top: 93.30127019%;
left: 25%;
}
.mdp-clock-deg240 {
top: 75%;
left: 6.69872981%;
}
.mdp-clock-deg270 {
top: 50%;
left: 0%;
}
.mdp-clock-deg300 {
top: 25%;
left: 6.69872981%;
}
.mdp-clock-deg330 {
top: 6.69872981%;
left: 25%;
}
.mdp-clock-deg360 {
top: 0%;
left: 50%;
}
.mdp-datepicker {
max-height: initial;
min-width: 234px;
Expand Down Expand Up @@ -264,157 +418,3 @@ mdp-calendar {
.mdp-calendar-days .mdp-day-placeholder {
margin: 0;
}
.mdp-clock {
width: 200px;
height: 200px;
border-radius: 50%;
cursor: pointer;
padding: 24px;
background: #ededed;
}
.mdp-clock .md-button {
box-shadow: none !important;
background-color: transparent;
display: block;
position: absolute;
min-height: 32px;
width: 32px;
height: 32px;
font-size: 12px;
line-height: 32px;
margin: 0;
padding: 0;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.mdp-clock .mdp-clock-container {
width: 100%;
height: 100%;
position: relative;
display: block;
}
.mdp-clock .mdp-pointer {
min-height: 0px;
width: 1px;
height: 50%;
position: absolute;
left: 0;
right: 0;
bottom: 0;
margin: 0 auto;
-webkit-transform-origin: top center;
transform-origin: top center;
z-index: 0;
pointer-events: none;
}
.mdp-clock .mdp-clock-center {
min-height: 0px;
height: 6px;
width: 6px;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
border-radius: 50%;
}
.mdp-clock .md-button.mdp-clock-selected {
position: absolute;
border-radius: 50%;
width: 8px;
height: 8px;
bottom: -8px;
left: 0px;
min-width: 0;
min-height: 0;
pointer-events: none;
}
.mdp-timepicker .mdp-clock-switch-container {
padding: 20px;
width: 309px;
}
.mdp-timepicker .mdp-timepicker-time {
padding: 15px;
}
.mdp-timepicker .mdp-timepicker-selected-time {
font-size: 3rem;
}
.mdp-timepicker:not(.portrait) .mdp-timepicker-time {
width: 138px;
}
.mdp-timepicker.portrait .mdp-timepicker-selected-time {
font-size: 4rem;
margin-right: 1.5rem;
}
mdp-time-picker md-input-container.md-has-icon {
padding-left: 40px;
}
mdp-time-picker .md-button.md-icon-button {
margin: 18px 0 0 0;
}
.mdp-timepicker-selected-time > span,
.mdp-timepicker-selected-ampm > span {
outline: 0;
opacity: 0.6;
}
.mdp-timepicker-selected-time > span:not(.active),
.mdp-timepicker-selected-ampm > span:not(.active) {
cursor: pointer;
}
.mdp-timepicker-selected-time > span.active,
.mdp-timepicker-selected-ampm > span.active {
opacity: 1;
}
.mdp-clock-deg0 {
top: 0%;
left: 50%;
}
.mdp-clock-deg30 {
top: 6.69872981%;
left: 75%;
}
.mdp-clock-deg60 {
top: 25%;
left: 93.30127019%;
}
.mdp-clock-deg90 {
top: 50%;
left: 100%;
}
.mdp-clock-deg120 {
top: 75%;
left: 93.30127019%;
}
.mdp-clock-deg150 {
top: 93.30127019%;
left: 75%;
}
.mdp-clock-deg180 {
top: 100%;
left: 50%;
}
.mdp-clock-deg210 {
top: 93.30127019%;
left: 25%;
}
.mdp-clock-deg240 {
top: 75%;
left: 6.69872981%;
}
.mdp-clock-deg270 {
top: 50%;
left: 0%;
}
.mdp-clock-deg300 {
top: 25%;
left: 6.69872981%;
}
.mdp-clock-deg330 {
top: 6.69872981%;
left: 25%;
}
.mdp-clock-deg360 {
top: 0%;
left: 50%;
}
Loading