Make project overview page more responsive

This commit is contained in:
Frederic Guillot
2016-08-14 13:46:46 -04:00
parent e985e27281
commit cb73946751
4 changed files with 16 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
<div class="project-overview-columns"> <div class="project-overview-columns">
<?php foreach ($project['columns'] as $column): ?> <?php foreach ($project['columns'] as $column): ?>
<div class="project-overview-column"> <div class="project-overview-column">
<strong title="<?= t('Task count') ?>"><?= $column['nb_tasks'] ?></strong><br> <strong title="<?= t('Task count') ?>"><?= $column['nb_tasks'] ?></strong>
<small><?= $this->text->e($column['title']) ?></small> <small><?= $this->text->e($column['title']) ?></small>
</div> </div>
<?php endforeach ?> <?php endforeach ?>

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,5 @@
@import variables @import variables
@import mixins
.activity-event .activity-event
margin-bottom: 15px margin-bottom: 15px
@@ -22,6 +23,8 @@
.activity-description .activity-description
color: color('medium') color: color('medium')
margin-top: 10px margin-top: 10px
@include xs-device
overflow: auto
li li
list-style-type: circle list-style-type: circle
ul ul

View File

@@ -7,13 +7,24 @@
+align-content(center) +align-content(center)
margin-bottom: 20px margin-bottom: 20px
font-size: size('large') font-size: size('large')
@include xs-device
display: block
.project-overview-column .project-overview-column
text-align: center text-align: center
margin-right: 3% margin-right: 3%
margin-top: 5px
padding: 3px 15px 3px 15px padding: 3px 15px 3px 15px
border: 1px dashed #ddd border: 1px dashed #ddd
@include xs-device
text-align: left
small small
color: color('light') color: color('light')
strong strong
color: color('medium') color: color('medium')
display: block
@include xs-device
display: inline