Improve responsive css
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<section id="main">
|
<section id="main">
|
||||||
<div class="page-header">
|
<div class="page-header page-header-mobile">
|
||||||
<ul>
|
<ul>
|
||||||
<?php if ($this->userSession->isAdmin()): ?>
|
<?php if ($this->userSession->isAdmin()): ?>
|
||||||
<li><i class="fa fa-plus fa-fw"></i><?= $this->a(t('New project'), 'project', 'create') ?></li>
|
<li><i class="fa fa-plus fa-fw"></i><?= $this->a(t('New project'), 'project', 'create') ?></li>
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
<?= $this->formSelect('category_id', $categories, array(), array(), array('data-placeholder="'.t('Filter by category').'"'), 'apply-filters chosen-select') ?>
|
<?= $this->formSelect('category_id', $categories, array(), array(), array('data-placeholder="'.t('Filter by category').'"'), 'apply-filters chosen-select') ?>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<select id="more-filters" multiple data-placeholder="<?= t('More filters') ?>" class="apply-filters chosen-select">
|
<select id="more-filters" multiple data-placeholder="<?= t('More filters') ?>" class="apply-filters chosen-select hide-mobile">
|
||||||
<option value=""></option>
|
<option value=""></option>
|
||||||
<option value="filter-due-date"><?= t('Filter by due date') ?></option>
|
<option value="filter-due-date"><?= t('Filter by due date') ?></option>
|
||||||
<option value="filter-recent"><?= t('Filter recently updated') ?></option>
|
<option value="filter-recent"><?= t('Filter recently updated') ?></option>
|
||||||
|
|||||||
@@ -722,6 +722,14 @@ nav .active a {
|
|||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 640px) {
|
||||||
|
|
||||||
|
.page-header-mobile li {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
/* board filters */
|
/* board filters */
|
||||||
.board-filters {
|
.board-filters {
|
||||||
font-size: 0.95em;
|
font-size: 0.95em;
|
||||||
@@ -1370,9 +1378,20 @@ span.task-board-date-overdue {
|
|||||||
line-height: 1.8em;
|
line-height: 1.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 1024px) {
|
||||||
|
.sidebar {
|
||||||
|
width: 25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-content {
|
||||||
|
margin-left: 30%;
|
||||||
|
width: 70%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 767px) {
|
@media only screen and (max-width: 767px) {
|
||||||
.sidebar {
|
.sidebar {
|
||||||
width: 96.5%;
|
width: 95%;
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1439,6 +1458,14 @@ span.task-board-date-overdue {
|
|||||||
height: 18px;
|
height: 18px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 640px) {
|
||||||
|
|
||||||
|
.hide-mobile {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.dropdown {
|
.dropdown {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,3 +93,11 @@ nav .active a {
|
|||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 640px) {
|
||||||
|
|
||||||
|
.page-header-mobile li {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -55,3 +55,11 @@
|
|||||||
height: 18px;
|
height: 18px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 640px) {
|
||||||
|
|
||||||
|
.hide-mobile {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,9 +27,20 @@
|
|||||||
line-height: 1.8em;
|
line-height: 1.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 1024px) {
|
||||||
|
.sidebar {
|
||||||
|
width: 25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-content {
|
||||||
|
margin-left: 30%;
|
||||||
|
width: 70%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 767px) {
|
@media only screen and (max-width: 767px) {
|
||||||
.sidebar {
|
.sidebar {
|
||||||
width: 96.5%;
|
width: 95%;
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -22,7 +22,7 @@ Kanboard.Dashboard = (function() {
|
|||||||
$("#dashboard-" + $(this).data("toggle")).toggle();
|
$("#dashboard-" + $(this).data("toggle")).toggle();
|
||||||
hideColumns();
|
hideColumns();
|
||||||
|
|
||||||
var sections = ["projects", "tasks", "subtasks", "activities"];
|
var sections = ["projects", "tasks", "subtasks", "activities", "calendar"];
|
||||||
var state = {};
|
var state = {};
|
||||||
|
|
||||||
for (var i = 0; i < sections.length; i++) {
|
for (var i = 0; i < sections.length; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user