[UPD] Update styles and minor cleanup

This commit is contained in:
Pablo
2019-01-30 17:12:51 +01:00
parent a753302439
commit dfad04fdf5
3 changed files with 90 additions and 58 deletions

View File

@@ -226,100 +226,112 @@ input#bookings_search {
/** POPOVER **/ /** POPOVER **/
.popover-content { .popover-content {
font-family: Garuda, sans-serif; font-family: Garuda, sans-serif;
font-size: 12px; font-size: 12px;
padding: 0px; padding: 0px;
} }
.popover h1, .h1, h2, .h2, h3, .h3 { .popover .h3, .popover h3 {
margin-top: 2px; margin-top: 2px;
margin-bottom: 0px; margin-bottom: 2px;
} }
.popover { .popover {
max-width: 400px; max-width: 400px;
border-radius: 0px; border-radius: 0px;
padding: 0px; padding: 0px;
} }
.popover .container { .popover .container {
max-width: 100%; max-width: 100%;
} }
.popover .container p { .popover .container p {
margin-top: 2px; margin-top: 2px;
margin-bottom: 0px; margin-bottom: 0px;
} }
.popover .container p.email { .popover .container p.email {
word-wrap: break-word; word-wrap: break-word;
} }
.popover .container p.board { .popover .container p.board {
margin-top: 0px; margin-top: 0px;
} }
.popover header { .popover header {
font-size: 1.2em; font-size: 1.2em;
} }
.fa-2_5x { .fa-2_5x {
font-size: 2.5em; font-size: 2.5em;
} }
.fa-text-inside { .fa-text-inside {
font-family: Garuda, sans-serif; font-family: Garuda, sans-serif;
font-size: 14px; font-size: 14px;
} }
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { .popover .col-sm-2, .popover .col-sm-4, .popover .col-sm-6, .popover .col-sm-12 {
padding-top: 3px; padding-top: 3px;
padding-bottom: 3px; padding-bottom: 3px;
} }
/* custom styles for popover info */ /* custom styles for popover info */
.circle { .popover .circle {
height:35px; height:35px;
min-width:35px; min-width:35px;
line-height:35px; line-height:35px;
border-radius:50px; border-radius:50px;
text-align:center; text-align:center;
color:#fff; color:#fff;
background:#777; background:#777;
margin-right: .65em; margin-right: .65em;
padding: 0 5px; padding: 0 5px;
} }
.bg-gray-lighter { .popover .bg-gray-lighter {
background-color: #ddd; background-color: #ddd;
color: #777;
} }
.popover .text-gray-dark {
color: #777;
}
/* Spacing in Bootstrap v4.0 */ /* Spacing in Bootstrap v4.0 */
.mt-3 { .mt-3 {
margin-top: 3px; margin-top: 3px;
} }
.mt-5 { .mt-5 {
margin-top: 5px; margin-top: 5px;
} }
.mt-10 { .mt-10 {
margin-top: 10px !important; margin-top: 10px !important;
} }
.mt-25 { .mt-25 {
margin-top: 25px; margin-top: 25px;
} }
.mr-5 { .mr-5 {
margin-right: 5px; margin-right: 5px;
} }
.mx-15 { .mx-15 {
margin-left: 15px; margin-left: 15px;
margin-right: 15px; margin-right: 15px;
} }
.mx-25 { .mx-25 {
margin-left: 25px; margin-left: 25px;
margin-right: 25px; margin-right: 25px;
}
.px-0 {
padding-left: 0px;
padding-right: 0px;
} }
.py-5 { .py-5 {
padding-top: 5px; padding-top: 5px;
padding-bottom: 5px; padding-bottom: 5px;
} }
.pb-3 { .pb-3 {
padding-bottom: 3px; padding-bottom: 3px;
} }
.pb-10 { .pb-10 {
padding-bottom: 10px; padding-bottom: 10px;
}
.pl-5 {
padding-left: 5px;
} }
.pr-0 { .pr-0 {
padding-right: 0px; padding-right: 0px;
} }
/* WARNING: The .row-eq-height class uses CSS3's flexbox layout mode, /* WARNING: The .row-eq-height class uses CSS3's flexbox layout mode,
@@ -345,6 +357,25 @@ div.diagonal {
left: 40%; left: 40%;
bottom: 0; bottom: 0;
} }
div.triangle-right {
overflow: hidden;
color: white;
background-color: #7c7bad;
}
.triangle-right:before {
content: "";
position: absolute;
border: 25px solid #ddd;
height: 0;
width: 100%;
left: 47%;
top: 0;
bottom: 0;
margin: auto;
border-left-color: transparent;
}
div.on-top { div.on-top {
position: inherit; position: inherit;
} }

View File

@@ -2496,7 +2496,6 @@ HotelCalendar.prototype = {
$('.hcal-reservation').removeClass("marked-as-having-a-popover"); $('.hcal-reservation').removeClass("marked-as-having-a-popover");
} else { } else {
// FIXME: Prevent multiple clicks in a row // FIXME: Prevent multiple clicks in a row
debugger;
this._cellSelection.start = this._cellSelection.current = ev.target; this._cellSelection.start = this._cellSelection.current = ev.target;
this._cellSelection.end = false; this._cellSelection.end = false;
this._updateCellSelection(); this._updateCellSelection();

View File

@@ -118,7 +118,7 @@
<p class="email"><t t-esc="email"/></p> <p class="email"><t t-esc="email"/></p>
</div> </div>
<div class="col-sm-6 bg-gray-lighter"> <div class="col-sm-6 bg-gray-lighter">
<i class="fa fa-hotel fa-2_5x fa-pull-left mt-5"/> <i class="fa fa-hotel fa-2_5x fa-pull-left mt-5 text-gray-dark"/>
<header class="mt-5"><t t-esc="room_type_name"/></header> <header class="mt-5"><t t-esc="room_type_name"/></header>
<p><t t-esc="board_service_name"/></p> <p><t t-esc="board_service_name"/></p>
@@ -168,15 +168,17 @@
<t t-name="HotelCalendar.TooltipReservation.Dates"> <t t-name="HotelCalendar.TooltipReservation.Dates">
<div class="row row-eq-height mt-3"> <div class="row row-eq-height mt-3">
<div class="col-sm-6 bg-primary py-5"> <div class="col-sm-12 triangle-right">
<i class="fa fa-sign-in fa-2x fa-pull-left"/> <div class="col-sm-6 px-0">
<h3><t t-esc="checkin"/></h3> <i class="fa fa-sign-in fa-2x fa-pull-left py-5"/>
<p><t t-esc="checkin_day_of_week"/> <t t-esc="arrival_hour"/></p> <h3><t t-esc="checkin"/></h3>
</div> <p><t t-esc="checkin_day_of_week"/> <t t-esc="arrival_hour"/></p>
<div class="col-sm-6 bg-gray-lighter d-sm-2 py-5"> </div>
<i class="fa fa-sign-out fa-2x fa-pull-left"/> <div class="col-sm-6 text-gray-dark">
<h3><t t-esc="checkout"/></h3> <i class="fa fa-sign-out fa-2x fa-pull-left pl-5 py-5"/>
<p><t t-esc="checkout_day_of_week"/> <t t-esc="departure_hour"/></p> <h3><t t-esc="checkout"/></h3>
<p><t t-esc="checkout_day_of_week"/> <t t-esc="departure_hour"/></p>
</div>
</div> </div>
</div> </div>
</t> </t>