Skip to content

Commit a3263b4

Browse files
authored
adding arrows styling (vlio20#114)
1 parent ba4ff77 commit a3263b4

File tree

4 files changed

+28
-19
lines changed

4 files changed

+28
-19
lines changed

src/app/calendar-nav/calendar-nav.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class="dp-calendar-nav-left"
44
[hidden]="!showLeftNav"
55
[disabled]="leftNavDisabled"
6-
(click)="leftNavClicked()"> <
6+
(click)="leftNavClicked()">
77
</button>
88
<span class="dp-nav-header" [hidden]="isLabelClickable">{{label}}</span>
99
<button type="button"
@@ -16,6 +16,6 @@
1616
class="dp-calendar-nav-right"
1717
[hidden]="!showRightNav"
1818
[disabled]="rightNavDisabled"
19-
(click)="rightNavClicked()"> &gt;
19+
(click)="rightNavClicked()">
2020
</button>
2121
</div>

src/app/calendar-nav/calendar-nav.component.less

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,20 @@
2121
top: 50%;
2222
transform: translateY(-50%);
2323
cursor: pointer;
24+
.arrow(45deg);
25+
26+
&::before {
27+
top: 1px;
28+
}
2429
}
2530

2631
.dp-calendar-nav-left {
27-
left: 0;
32+
.arrow(-135deg);
33+
left: 5px;
2834
}
2935

3036
.dp-calendar-nav-right {
31-
right: 0;
37+
right: 5px;
3238
}
3339

3440
.dp-nav-header {
@@ -72,4 +78,4 @@
7278
}
7379
}
7480
}
75-
}
81+
}

src/app/common/styles/variables.less

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,18 @@
55
@c-primary: #106CC8;
66
@c-light-gray: #E0E0E0;
77

8-
@basic-height: 30px;
8+
@basic-height: 30px;
9+
10+
.arrow(@deg) {
11+
&::before {
12+
position: relative;
13+
content: '';
14+
display: inline-block;
15+
height: 8px;
16+
width: 8px;
17+
vertical-align: baseline;
18+
border-style: solid;
19+
border-width: 2px 2px 0 0;
20+
transform: rotate(@deg);
21+
}
22+
}

src/app/time-select/time-select.component.less

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
margin: 0 auto;
1515
vertical-align: middle;
1616
font-size: inherit;
17-
letter-spacing: 1.3px;
17+
letter-spacing: 1px;
1818
}
1919

2020
.dp-time-select-control-up, .dp-time-select-control-down {
@@ -24,18 +24,7 @@
2424
height: 24px;
2525
margin: 3px auto;
2626
cursor: pointer;
27-
28-
&::before {
29-
position: relative;
30-
content: '';
31-
display: inline-block;
32-
height: 8px;
33-
width: 8px;
34-
left: -1px;
35-
vertical-align: baseline;
36-
border-style: solid;
37-
border-width: 2px 2px 0 0;
38-
}
27+
.arrow(0deg)
3928
}
4029

4130
.dp-time-select-control-up::before {

0 commit comments

Comments
 (0)