Skip to content

Commit eba889e

Browse files
committed
Renamed calendar-toggle header to a more appropriate edit-popover header in datetime-input directive.
1 parent e4029a3 commit eba889e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/datetime-input.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,15 @@
7171
border: 1px solid #aaa;
7272
box-sizing: border-box;
7373
}
74-
75-
76-
/**
77-
* Calendar
78-
*/
79-
.datetime-input.datetime .calendar-toggle {
74+
.datetime-input.datetime .edit-popover .header {
8075
width: 100%;
8176
color: #777;
8277
font-size: 1.5em;
8378
line-height: 2em;
8479
cursor: pointer;
8580
transition: background-color 0.25s ease-out;
8681
}
87-
.datetime-input.datetime .calendar-toggle::before {
82+
.datetime-input.datetime .edit-popover .header::before {
8883
content: "";
8984
display: block;
9085
position: absolute;
@@ -104,10 +99,15 @@
10499
-webkit-transform: rotate(-45deg);
105100
transition: background-color 0.25s ease-out;
106101
}
107-
.datetime-input.datetime .calendar-toggle:hover,
108-
.datetime-input.datetime .calendar-toggle:hover::before {
102+
.datetime-input.datetime .edit-popover .header:hover,
103+
.datetime-input.datetime .edit-popover .header:hover::before {
109104
background-color: #ddd;
110105
}
106+
107+
108+
/**
109+
* Calendar
110+
*/
111111
.datetime-input.datetime .calendar .calendar-header {
112112
cursor: default;
113113
background-color: #fff;

src/datetime-input.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="time">{{ datetime.format('HH : mm : ss') }}</div>
77
</div>
88
<div class="edit-popover" ng-show="!!selected">
9-
<div class="calendar-toggle"
9+
<div class="header"
1010
ng-click="calendar_active = !calendar_active">
1111
{{ selected.format('DD MMMM YYYY') }}
1212
</div>

0 commit comments

Comments
 (0)