The backend styling is structured in a mobile-first way.

This commit is contained in:
Alex Tselegidis 2020-08-31 20:11:02 +03:00
parent 4b69cf1797
commit 1af5dc0774
3 changed files with 171 additions and 135 deletions

View file

@ -40,17 +40,17 @@
}); });
</script> </script>
<div id="calendar-page" class="container-fluid"> <div class="container-fluid" id="calendar-page">
<div id="calendar-toolbar"> <div class="row" id="calendar-toolbar">
<div id="calendar-filter" class="col-12 col-md-5"> <div id="calendar-filter" class="col-12 col-sm-5">
<div class="form-group calendar-filter-items"> <div class="form-group calendar-filter-items">
<label for="select-filter-item" class="mr-3"><?= lang('display_calendar') ?></label> <select id="select-filter-item" class="form-control col"
<select id="select-filter-item" class="form-control col" title="<?= lang('select_filter_item_hint') ?>"> title="<?= lang('select_filter_item_hint') ?>">
</select> </select>
</div> </div>
</div> </div>
<div id="calendar-actions" class="col-12 col-md-7"> <div id="calendar-actions" class="col-12 col-sm-7">
<?php if (($role_slug == DB_SLUG_ADMIN || $role_slug == DB_SLUG_PROVIDER) <?php if (($role_slug == DB_SLUG_ADMIN || $role_slug == DB_SLUG_PROVIDER)
&& config('google_sync_feature') == TRUE): ?> && config('google_sync_feature') == TRUE): ?>
<button id="google-sync" class="btn btn-primary" <button id="google-sync" class="btn btn-primary"

View file

@ -35,7 +35,7 @@
<nav id="header" class="navbar navbar-expand-md navbar-dark"> <nav id="header" class="navbar navbar-expand-md navbar-dark">
<div id="header-logo" class="navbar-brand"> <div id="header-logo" class="navbar-brand">
<img src="<?= base_url('assets/img/logo.png') ?>"> <img src="<?= base_url('assets/img/logo.png') ?>">
<span><?= $company_name ?></span> <span>EASY!APPOINTMENTS</span>
</div> </div>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#header-menu" <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#header-menu"

View file

@ -24,54 +24,69 @@ root {
background-color: #429a82; background-color: #429a82;
box-shadow: none; box-shadow: none;
border-radius: 0; border-radius: 0;
margin-bottom: 15px; padding: 0;
} }
#header #header-logo { #header #header-logo {
padding: 6px; padding: 5px;
} }
#header #header-logo img { #header #header-logo img {
float: left; float: left;
width: 50px; width: 45px;
height: 50px; height: 45px;
margin-right: 10px; margin-right: 10px;
} }
#header #header-logo span { #header #header-logo span {
float: left; float: left;
font-size: 16px; font-size: 14px;
font-weight: bold;
color: white; color: white;
margin-top: 14px; margin-top: 12px;
font-weight: lighter; }
#header .navbar-toggler {
margin-right: 5px;
} }
#header .nav-link { #header .nav-link {
color: white; color: white;
padding: 20px 10px;
font-weight: lighter;
} }
#header #header-menu .nav-item { #header #header-menu .nav-item {
position: relative; min-width: 100px;
text-align: center;
} }
#header #header-menu .nav-item::after { #header #header-menu .nav-item:hover {
content: ''; background: #3a8873;
position: absolute;
width: 0;
height: 3px;
display: block;
right: 0;
background: white;
transition: width .2s ease;
} }
#header #header-menu .nav-item:hover:not(.active)::after, #header #header-menu .nav-item.active {
#header #header-menu .active::after { background: #2e6a5b;
width: 90%;
left: 5px;
background: white;
} }
/*#header #header-menu .nav-item::after {*/
/* content: '';*/
/* position: absolute;*/
/* width: 0;*/
/* height: 3px;*/
/* display: block;*/
/* right: 0;*/
/* background: white;*/
/* transition: width .2s ease;*/
/*}*/
/*#header #header-menu .nav-item:hover:not(.active)::after,*/
/*#header #header-menu .active::after {*/
/* width: 90%;*/
/* left: 5px;*/
/* background: white;*/
/*}*/
#footer { #footer {
background-color: #F7F7F7; background-color: #F7F7F7;
border-top: 1px solid #DDD; border-top: 1px solid #DDD;
@ -129,8 +144,8 @@ root {
#loading { #loading {
position: fixed; position: fixed;
top: 0px; top: 0;
left: 0px; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: 999999; z-index: 999999;
@ -272,37 +287,21 @@ body legend {
-------------------------------------------------------------------- */ -------------------------------------------------------------------- */
#calendar-page #calendar-toolbar { #calendar-page #calendar-toolbar {
border-bottom: 1px solid #D6D6D6; margin-bottom: 15px;
border-radius: 3px;
background: #3A3A3A;
padding: 5px;
margin: 0 0 15px;
color: white; color: white;
background: #353535;
padding: 15px 0;
} }
#calendar-page #calendar-filter .form-group { #calendar-page #calendar-filter .form-group {
margin: 5px 0; margin-bottom: 0;
} }
#calendar-page .calendar-filter-items { #calendar-page #calendar-filter .form-control {
display: flex;
align-items: center;
}
#calendar-page #calendar-filter label {
float: left;
display: inline-block;
margin: 0 10px 0 0;
margin-right: 7px;
font-size: 18px;
font-weight: lighter;
}
#calendar-page #calendar-filter select {
background-color: #FFF; background-color: #FFF;
padding: 0 10px; padding: 0 10px;
background-position-x: 95%; background-position-x: 95%;
min-width: 240px; margin-bottom: 5px;
} }
#calendar-page #calendar-filter select:disabled { #calendar-page #calendar-filter select:disabled {
@ -310,22 +309,25 @@ body legend {
cursor: auto; cursor: auto;
} }
#calendar-page #calendar-actions { #calendar-page #calendar-actions .btn {
text-align: right; width: 100%;
margin-bottom: 5px;
} }
#calendar-actions > .btn-group { #calendar-page #calendar-actions > .btn-group {
width: 100%;
}
#calendar-page #calendar-actions > .btn-group .btn {
width: auto; width: auto;
} }
@media all and (max-width: 470px) { #calendar-page #calendar-actions > .btn-group .btn:not(.dropdown-toggle) {
#calendar-actions > .btn-group { text-align: right;
width: 100%;
}
} }
#calendar-page #calendar-actions > .btn { #calendar-page #calendar-actions > .btn-group .btn.dropdown-toggle {
margin: 5px 0; text-align: left;
} }
#calendar-page #calendar { #calendar-page #calendar {
@ -338,7 +340,7 @@ body legend {
} }
#calendar-page #calendar .fc-toolbar.fc-header-toolbar .fc-center { #calendar-page #calendar .fc-toolbar.fc-header-toolbar .fc-center {
margin-top: 0; margin-top: 0;
} }
#calendar-page #calendar .fc-unavailable { #calendar-page #calendar .fc-unavailable {
@ -347,7 +349,7 @@ body legend {
border-radius: 0; border-radius: 0;
font-weight: bold; font-weight: bold;
color: #333; color: #333;
text-shadow: 0px 1px 0px #E6E6E6; text-shadow: 0 1px 0 #E6E6E6;
opacity: 0.7; opacity: 0.7;
} }
@ -378,7 +380,7 @@ body legend {
#calendar .fc-header-title h2 { #calendar .fc-header-title h2 {
font-size: 16px; font-size: 16px;
margin: 0px; margin: 0;
line-height: 26px; line-height: 26px;
} }
@ -548,6 +550,39 @@ body .form-horizontal .controls {
} }
@media (min-width: 768px) {
#calendar-page #calendar-actions {
text-align: right;
}
#calendar-page #calendar-filter .form-group .form-control {
max-width: 300px;
margin-bottom: 0;
}
#calendar-page #calendar-actions .btn {
width: auto;
margin-bottom: 0;
}
#calendar-page #calendar-actions > .btn-group {
width: auto;
}
#calendar-page #calendar-actions > .btn-group .btn {
width: auto;
}
#calendar-page #calendar-actions > .btn-group .btn:not(.dropdown-toggle) {
text-align: center;
}
#calendar-page #calendar-actions > .btn-group .btn.dropdown-toggle {
text-align: center;
}
}
/* BACKEND CUSTOMERS PAGE /* BACKEND CUSTOMERS PAGE
-------------------------------------------------------------------- */ -------------------------------------------------------------------- */
@ -610,7 +645,7 @@ body .form-horizontal .controls {
} }
#services-page #service-duration { #services-page #service-duration {
margin: 0px; margin: 0;
} }
#services-page .record-details h3 a { #services-page .record-details h3 a {
@ -735,7 +770,7 @@ body .form-horizontal .controls {
#users-page .editable form, #users-page .editable form,
#users-page .editable select, #users-page .editable select,
#users-page .editable input { #users-page .editable input {
margin: 0px; margin: 0;
} }
#users-page #providers .record-details h3 a { #users-page #providers .record-details h3 a {
@ -859,85 +894,86 @@ body .form-horizontal .controls {
margin-left: 12px; margin-left: 12px;
} }
@media (max-width: 1200px) { /*@media (max-width: 1200px) {*/
#header #header-menu .menu-item { /* #header #header-menu .menu-item {*/
min-width: 100px; /* min-width: 100px;*/
} /* }*/
} /*}*/
@media (max-width: 1000px) { /*@media (max-width: 1000px) {*/
#header #header-menu .nav-item:hover:not(.active)::after, /* #header #header-menu .nav-item:hover:not(.active)::after,*/
#header #header-menu .active::after { /* #header #header-menu .active::after {*/
width: 100%; /* width: 100%;*/
left: 0; /* left: 0;*/
background: white; /* background: white;*/
} /* position: relative;*/
} /* }*/
/*}*/
@media (max-width: 860px) { /*@media (max-width: 860px) {*/
#header #header-menu .menu-item { /* #header #header-menu .menu-item {*/
min-width: 85px; /* min-width: 85px;*/
} /* }*/
#footer #footer-user-display-name { /* #footer #footer-user-display-name {*/
text-align: left; /* text-align: left;*/
} /* }*/
#calendar-page #calendar-filter label { /* #calendar-page #calendar-filter label {*/
margin-bottom: 5px; /* margin-bottom: 5px;*/
} /* }*/
#calendar-page .calendar-filter-items { /* #calendar-page .calendar-filter-items {*/
display: block; /* display: block;*/
width: 100%; /* width: 100%;*/
} /* }*/
} /*}*/
@media (max-width: 768px) { /*@media (max-width: 768px) {*/
#calendar-page #calendar-actions { /* #calendar-page #calendar-actions {*/
text-align: left; /* text-align: left;*/
} /* }*/
} /*}*/
@media (max-width: 468px) { /*@media (max-width: 468px) {*/
#calendar-page #calendar .fc-toolbar.fc-header-toolbar .fc-center { /* #calendar-page #calendar .fc-toolbar.fc-header-toolbar .fc-center {*/
margin-top: 1rem; /* margin-top: 1rem;*/
} /* }*/
#calendar-page .fc-header td { /* #calendar-page .fc-header td {*/
display: block; /* display: block;*/
width: 70vw; /* width: 70vw;*/
float: left; /* float: left;*/
margin: 10px auto; /* margin: 10px auto;*/
text-align: left; /* text-align: left;*/
} /* }*/
#calendar-page #calendar-actions .btn { /* #calendar-page #calendar-actions .btn {*/
width: 100%; /* width: 100%;*/
margin: 5px 0; /* margin: 5px 0;*/
} /* }*/
.ui-dialog { /* .ui-dialog {*/
margin: 0 12px; /* margin: 0 12px;*/
} /* }*/
#calendar-page #calendar-filter select { /* #calendar-page #calendar-filter select {*/
min-width: auto; /* min-width: auto;*/
} /* }*/
#users-page #providers .switch-view { /* #users-page #providers .switch-view {*/
margin: 20px 0; /* margin: 20px 0;*/
width: 100%; /* width: 100%;*/
} /* }*/
#users-page #providers .switch-view strong { /* #users-page #providers .switch-view strong {*/
display: block; /* display: block;*/
width: 100%; /* width: 100%;*/
text-align: center; /* text-align: center;*/
margin: 16px 0; /* margin: 16px 0;*/
} /* }*/
#users-page #providers .switch-view div { /* #users-page #providers .switch-view div {*/
width: 48%; /* width: 48%;*/
} /* }*/
} /*}*/