Use svg for arrows in calendar
This commit is contained in:
parent
5a314ffbec
commit
03f74e76ca
2 changed files with 27 additions and 2 deletions
|
|
@ -9,6 +9,22 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
||||||
|
.prev.button,
|
||||||
|
.next.button {
|
||||||
|
|
||||||
|
.svg-arrow {
|
||||||
|
display: block;
|
||||||
|
margin: consts.$margin calc(consts.$margin / 2);
|
||||||
|
fill: consts.$link-color;
|
||||||
|
width: 0.8rem;
|
||||||
|
height: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover .svg-arrow {
|
||||||
|
fill: consts.$link-hover-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.prev {
|
.prev {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
<div class="calendar">
|
<div class="calendar">
|
||||||
<div class="month-selector">
|
<div class="month-selector">
|
||||||
<div class="prev button">⯇</div>
|
<div class="prev button">
|
||||||
|
<svg class="svg-arrow" aria-hidden="true" viewBox="0 0 1 1">
|
||||||
|
<polygon points="0.866,0 0.866,1 0,0.5" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<span class="year"></span>
|
<span class="year"></span>
|
||||||
|
|
@ -22,7 +26,11 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="next button">⯈</div>
|
<div class="next button">
|
||||||
|
<svg class="svg-arrow" aria-hidden="true" viewBox="0 0 1 1">
|
||||||
|
<polygon points="0,0 0.866,0.5 0,1" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="weekdays">
|
<ul class="weekdays">
|
||||||
|
|
@ -49,6 +57,7 @@
|
||||||
<ul class="days">
|
<ul class="days">
|
||||||
{% for i in 0..5 %}
|
{% for i in 0..5 %}
|
||||||
{% for j in 0..7 %}
|
{% for j in 0..7 %}
|
||||||
|
{# All days of the current selected month will have the class 'current-month' #}
|
||||||
<li id="day-grid-{{i}}{{j}}">
|
<li id="day-grid-{{i}}{{j}}">
|
||||||
<div class="number"></div>
|
<div class="number"></div>
|
||||||
<div class="scheduled-recipes"></div>
|
<div class="scheduled-recipes"></div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue