Clean up result component markup
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
.month {
|
.month {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
@@ -35,23 +35,6 @@
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
text-decoration: none;
|
|
||||||
color: #0a3d62;
|
|
||||||
width: 40px;
|
|
||||||
height: 40px;
|
|
||||||
border-radius: 40px;
|
|
||||||
transition-duration: .2s;
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: #eee;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.days {
|
.days {
|
||||||
|
|||||||
@@ -5,11 +5,9 @@
|
|||||||
<%= for month <- @months do %>
|
<%= for month <- @months do %>
|
||||||
<div class="calendar">
|
<div class="calendar">
|
||||||
<div class="month">
|
<div class="month">
|
||||||
<a href="#" class="nav"><i class="fas fa-angle-left"></i></a>
|
|
||||||
<div>
|
<div>
|
||||||
<%= Calendar.strftime(month, "%B") %> <span class="year"><%= month.year %></span>
|
<%= Calendar.strftime(month, "%B") %> <span class="year"><%= month.year %></span>
|
||||||
</div>
|
</div>
|
||||||
<a href="#" class="nav"><i class="fas fa-angle-right"></i></a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="days">
|
<div class="days">
|
||||||
<span>Mon</span>
|
<span>Mon</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user