mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-22 14:42:23 +03:00
Fixed responsive display for mobile devices.
This commit is contained in:
parent
9918631c0f
commit
7cdccf1d27
3 changed files with 245 additions and 205 deletions
|
@ -1,91 +1,91 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#35A768">
|
||||
<title><?php echo $message_title ?></title>
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// INCLUDE CSS FILES
|
||||
// ------------------------------------------------------------ ?>
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="<?php echo $this->config->item('base_url'); ?>/assets/ext/bootstrap/css/bootstrap.css">
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="<?php echo $this->config->item('base_url'); ?>/assets/css/frontend.css">
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// SET PAGE FAVICON
|
||||
// ------------------------------------------------------------ ?>
|
||||
<link rel="icon" type="image/x-icon"
|
||||
href="<?php echo $this->config->item('base_url'); ?>/assets/img/favicon.ico">
|
||||
|
||||
<link rel="icon" sizes="192x192"
|
||||
href="<?php echo $this->config->item('base_url'); ?>/assets/img/logo.png">
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// CUSTOM PAGE JS
|
||||
// ------------------------------------------------------------ ?>
|
||||
<script type="text/javascript">
|
||||
var EALang = <?php echo json_encode($this->lang->language); ?>;
|
||||
</script>
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// INCLUDE JS FILES
|
||||
// ------------------------------------------------------------ ?>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/ext/jquery/jquery.min.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/ext/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/ext/datejs/date.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/js/general_functions.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="main" class="container">
|
||||
<div class="wrapper row">
|
||||
|
||||
<div id="message-frame" class="frame-container
|
||||
col-xs-12
|
||||
col-sm-offset-1 col-sm-10
|
||||
col-md-offset-2 col-md-8
|
||||
col-lg-offset-2 col-lg-8">
|
||||
|
||||
<div class="col-xs-12 col-sm-2">
|
||||
<img id="message-icon" src="<?php echo $message_icon; ?>" />
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<?php
|
||||
|
||||
echo '<h3>' . $message_title . '</h3>';
|
||||
echo '<p>' . $message_text . '</p>';
|
||||
|
||||
// Display exceptions (if any).
|
||||
if (isset($exceptions)) {
|
||||
echo '<div style="margin: 10px">';
|
||||
echo '<h4>Unexpected Errors</h4>';
|
||||
foreach($exceptions as $exception) {
|
||||
echo exceptionToHtml($exception);
|
||||
}
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#35A768">
|
||||
<title><?php echo $message_title ?></title>
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// INCLUDE CSS FILES
|
||||
// ------------------------------------------------------------ ?>
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="<?php echo $this->config->item('base_url'); ?>/assets/ext/bootstrap/css/bootstrap.css">
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="<?php echo $this->config->item('base_url'); ?>/assets/css/frontend.css">
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// SET PAGE FAVICON
|
||||
// ------------------------------------------------------------ ?>
|
||||
<link rel="icon" type="image/x-icon"
|
||||
href="<?php echo $this->config->item('base_url'); ?>/assets/img/favicon.ico">
|
||||
|
||||
<link rel="icon" sizes="192x192"
|
||||
href="<?php echo $this->config->item('base_url'); ?>/assets/img/logo.png">
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// CUSTOM PAGE JS
|
||||
// ------------------------------------------------------------ ?>
|
||||
<script type="text/javascript">
|
||||
var EALang = <?php echo json_encode($this->lang->language); ?>;
|
||||
</script>
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// INCLUDE JS FILES
|
||||
// ------------------------------------------------------------ ?>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/ext/jquery/jquery.min.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/ext/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/ext/datejs/date.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/js/general_functions.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="main" class="container">
|
||||
<div class="wrapper row">
|
||||
|
||||
<div id="message-frame" class="frame-container
|
||||
col-xs-12
|
||||
col-sm-offset-1 col-sm-10
|
||||
col-md-offset-2 col-md-8
|
||||
col-lg-offset-2 col-lg-8">
|
||||
|
||||
<div class="col-xs-12 col-sm-2">
|
||||
<img id="message-icon" src="<?php echo $message_icon; ?>" />
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
<?php
|
||||
|
||||
echo '<h3>' . $message_title . '</h3>';
|
||||
echo '<p>' . $message_text . '</p>';
|
||||
|
||||
// Display exceptions (if any).
|
||||
if (isset($exceptions)) {
|
||||
echo '<div style="margin: 10px">';
|
||||
echo '<h4>Unexpected Errors</h4>';
|
||||
foreach($exceptions as $exception) {
|
||||
echo exceptionToHtml($exception);
|
||||
}
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,113 +1,118 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#35A768">
|
||||
<title><?php echo $this->lang->line('page_not_found') . ' - ' . $company_name; ?></title>
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// INCLUDE CSS FILES
|
||||
// ------------------------------------------------------------ ?>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
href="<?php echo $this->config->item('base_url'); ?>/assets/ext/bootstrap/css/bootstrap.min.css">
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// SET PAGE FAVICON
|
||||
// ------------------------------------------------------------ ?>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/x-icon"
|
||||
href="<?php echo $this->config->item('base_url'); ?>/assets/img/favicon.ico">
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// CUSTOM PAGE JS
|
||||
// ------------------------------------------------------------ ?>
|
||||
<script type="text/javascript">
|
||||
var EALang = <?php echo json_encode($this->lang->language); ?>;
|
||||
</script>
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// INCLUDE JS FILES
|
||||
// ------------------------------------------------------------ ?>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/ext/jquery/jquery.min.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/ext/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/ext/datejs/date.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/js/general_functions.js"></script>
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// CUSTOM PAGE CSS
|
||||
// ------------------------------------------------------------ ?>
|
||||
<style>
|
||||
body {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
background-color: #CAEDF3;
|
||||
}
|
||||
|
||||
#message-frame {
|
||||
width: 630px;
|
||||
margin: auto;
|
||||
background: #FFF;
|
||||
border: 1px solid #DDDADA;
|
||||
padding: 70px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
@media(max-width: 640px) {
|
||||
#message-frame {
|
||||
width: 100%;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="message-frame" class="frame-container">
|
||||
<h3><?php echo $this->lang->line('page_not_found')
|
||||
. ' - ' . $this->lang->line('error') . ' 404' ?></h3>
|
||||
<p>
|
||||
<?php echo $this->lang->line('page_not_found_message'); ?>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
|
||||
<a href="<?php echo $this->config->item('base_url'); ?>" class="btn btn-primary btn-large">
|
||||
<span class="glyphicon glyphicon-calendar"></span>
|
||||
<?php echo $this->lang->line('book_appointment_title'); ?>
|
||||
</a>
|
||||
|
||||
<a href="<?php echo $this->config->item('base_url'); ?>/index.php/backend" class="btn btn-danger btn-large">
|
||||
<span class="glyphicon glyphicon-wrench"></span>
|
||||
<?php echo $this->lang->line('backend_section'); ?>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#35A768">
|
||||
<title><?php echo $this->lang->line('page_not_found') . ' - ' . $company_name; ?></title>
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// INCLUDE CSS FILES
|
||||
// ------------------------------------------------------------ ?>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
href="<?php echo $this->config->item('base_url'); ?>/assets/ext/bootstrap/css/bootstrap.min.css">
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// SET PAGE FAVICON
|
||||
// ------------------------------------------------------------ ?>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/x-icon"
|
||||
href="<?php echo $this->config->item('base_url'); ?>/assets/img/favicon.ico">
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// CUSTOM PAGE JS
|
||||
// ------------------------------------------------------------ ?>
|
||||
<script type="text/javascript">
|
||||
var EALang = <?php echo json_encode($this->lang->language); ?>;
|
||||
</script>
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// INCLUDE JS FILES
|
||||
// ------------------------------------------------------------ ?>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/ext/jquery/jquery.min.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/ext/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/ext/datejs/date.js"></script>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="<?php echo $this->config->item('base_url'); ?>/assets/js/general_functions.js"></script>
|
||||
|
||||
<?php
|
||||
// ------------------------------------------------------------
|
||||
// CUSTOM PAGE CSS
|
||||
// ------------------------------------------------------------ ?>
|
||||
<style>
|
||||
body {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
background-color: #CAEDF3;
|
||||
}
|
||||
|
||||
#message-frame {
|
||||
width: 630px;
|
||||
margin: auto;
|
||||
background: #FFF;
|
||||
border: 1px solid #DDDADA;
|
||||
padding: 70px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
@media(max-width: 640px) {
|
||||
body {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#message-frame {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="message-frame" class="frame-container">
|
||||
<h3><?php echo $this->lang->line('page_not_found')
|
||||
. ' - ' . $this->lang->line('error') . ' 404' ?></h3>
|
||||
<p>
|
||||
<?php echo $this->lang->line('page_not_found_message'); ?>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
|
||||
<a href="<?php echo $this->config->item('base_url'); ?>" class="btn btn-primary btn-large">
|
||||
<span class="glyphicon glyphicon-calendar"></span>
|
||||
<?php echo $this->lang->line('book_appointment_title'); ?>
|
||||
</a>
|
||||
|
||||
<a href="<?php echo $this->config->item('base_url'); ?>/index.php/backend" class="btn btn-danger btn-large">
|
||||
<span class="glyphicon glyphicon-wrench"></span>
|
||||
<?php echo $this->lang->line('backend_section'); ?>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -257,7 +257,7 @@ body {
|
|||
#main {
|
||||
min-height: 100%;
|
||||
display: block; /* reset display */
|
||||
padding: 0;
|
||||
padding: 5vw;
|
||||
}
|
||||
|
||||
#main .wrapper {
|
||||
|
@ -303,6 +303,9 @@ body {
|
|||
|
||||
#book-appointment-wizard .wizard-frame .command-buttons #button-next-1 {
|
||||
width: 100%;
|
||||
max-width: 300px;
|
||||
margin: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#book-appointment-wizard .wizard-frame #select-date {
|
||||
|
@ -381,3 +384,35 @@ body {
|
|||
font-size: 1.2em;
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width:480px) {
|
||||
body {
|
||||
background-color: #FAFAFA;
|
||||
}
|
||||
|
||||
#main {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#main .wrapper {
|
||||
width: 100vw;
|
||||
margin: 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#book-appointment-wizard {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
#book-appointment-wizard .captcha-title {
|
||||
margin: 7px 0 10px 0
|
||||
}
|
||||
|
||||
#book-appointment-wizard .captcha-image {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#book-appointment-wizard #frame-footer {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue