diff --git a/application/config/theme.php b/application/config/theme.php new file mode 100644 index 000000000..d0bc13a15 --- /dev/null +++ b/application/config/theme.php @@ -0,0 +1,12 @@ +_ci_view_paths = array_merge(array(realpath('templates/flatly').DIRECTORY_SEPARATOR => 1), $this->_ci_view_paths); + include APPPATH.'config/theme.php'; + + // add other first view path if exist + if(!empty($config['theme_name']) && file_exists('templates/'.$config['theme_name'].'/views')) + $this->_ci_view_paths = array_merge(array('templates/'.$config['theme_name'].'/views'.DIRECTORY_SEPARATOR => 1), $this->_ci_view_paths); return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return)); } diff --git a/templates/flatly/css/style.css b/templates/flatly/css/style.css index 9beb4cb8a..bfa76fa3a 100644 --- a/templates/flatly/css/style.css +++ b/templates/flatly/css/style.css @@ -1,18 +1,44 @@ /* additional styles placed here */ -body { - padding-top: 60px; +html, body { + height: 100%; } +body { + /*padding-top: 80px;*/ +} +.wrapper { + min-height: 100%; + margin-bottom: -75px; +} + .navbar { min-height: 40px; + border-radius: 0; } .navbar-brand { - padding: 10px 15px; - height: 41px; + padding: 22px 15px; + height: 40px; } + +.topbar { + color: #eee; + font-size: 12px; + background: #182735; + padding: 5px; +} +.navbar-default .navbar-nav > .active > a, +.navbar-default .navbar-nav > .active > a:hover, +.navbar-default .navbar-nav > .active > a:focus { + color: #2C3E50; + background-color: #FFFFFF; +} + table.tablesorter { border: 0; } +table.tablesorter tbody td { + padding: 8px; +} table.tablesorter tbody td.over { background-color: #F5F5F5; } @@ -58,10 +84,77 @@ table.tablesorter thead tr th, table.tablesorter tfoot tr th { #new_button { bottom: 5px; } +#new_button > a { + border-width: 2px; + padding: 6px 9px; + font-size: 13px; + line-height: 1.5; + border-radius: 3px; + color: #ffffff; + background-color: #2c3e50; + border-color: #2c3e50; + display: inline-block; + margin-bottom: 0; + font-weight: normal; + text-align: center; + vertical-align: middle; + -ms-touch-action: manipulation; + touch-action: manipulation; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +#new_button > a > .big_button { + float: none !important; + position: static; + width: auto; + height: auto; + background: none; +} +#new_button > a > .big_button > span { + position: static; + font-size: 13px; + font-weight: normal; +} + +#home_module_list { + padding: 20px 0; + text-align: center; +} +.module_item { + min-width: 105px; + display: inline-block; + text-align: center; + margin-bottom: 3px; + border: 1px solid #ddd; +} +.module_item a { + display: block; +} +.navbar .menu-icon { + text-align: center; + font-size: 11px; +} +.navbar .menu-icon img { + width: 24px; +} +#feedback_bar { + top: 64px; +} +#footer { + height: 35px; + margin: 40px 0 0 0; + background: white; + padding: 10px +} @media (min-width: 768px){ .navbar-nav > li > a { - padding-top: 10px; - padding-bottom: 10px; + padding: 10px 10px 9px; } } \ No newline at end of file diff --git a/templates/flatly/partial/footer.php b/templates/flatly/partial/footer.php deleted file mode 100644 index 4ac111daa..000000000 --- a/templates/flatly/partial/footer.php +++ /dev/null @@ -1,8 +0,0 @@ - - - -
-