Improve CSS layout

This commit is contained in:
Frederic Guillot
2017-11-10 11:56:01 -08:00
parent 455b909e48
commit 38a4271643
9 changed files with 41 additions and 31 deletions

View File

@@ -1,12 +1,15 @@
<?php if (! empty($links)): ?> <?php if (! empty($links)): ?>
<table class="table-striped table-scrolling"> <table class="table-striped table-scrolling">
<tr> <thead>
<th class="column-15"><?= t('Type') ?></th> <tr>
<th><?= t('Title') ?></th> <th class="column-15"><?= t('Type') ?></th>
<th class="column-10"><?= t('Dependency') ?></th> <th><?= t('Title') ?></th>
<th class="column-15"><?= t('Creator') ?></th> <th class="column-10"><?= t('Dependency') ?></th>
<th class="column-15"><?= t('Date') ?></th> <th class="column-15"><?= t('Creator') ?></th>
</tr> <th class="column-15"><?= t('Date') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($links as $link): ?> <?php foreach ($links as $link): ?>
<tr> <tr>
<td> <td>
@@ -39,5 +42,6 @@
</td> </td>
</tr> </tr>
<?php endforeach ?> <?php endforeach ?>
</tbody>
</table> </table>
<?php endif ?> <?php endif ?>

File diff suppressed because one or more lines are too long

View File

@@ -145,6 +145,10 @@ ul.form-errors li
.form-login .form-login
max-width: 350px max-width: 350px
margin: 5% auto 0 margin: 5% auto 0
@include xs-device
margin-left: 5px
li li
margin-left: 25px margin-left: 25px
line-height: 25px line-height: 25px

View File

@@ -5,7 +5,7 @@ header
display: flex display: flex
flex-wrap: wrap flex-wrap: wrap
padding: 5px 10px padding: 5px 10px
margin-bottom: 10px margin-bottom: 5px
border-bottom: 1px solid #dedede border-bottom: 1px solid #dedede
background-color: #fbfbfb background-color: #fbfbfb

View File

@@ -1,3 +0,0 @@
#main
padding-left: 10px
padding-right: 10px

View File

@@ -30,3 +30,7 @@ hr
height: 0 height: 0
border-top: 1px solid rgba(0, 0, 0, 0.1) border-top: 1px solid rgba(0, 0, 0, 0.1)
border-bottom: 1px solid rgba(255, 255, 255, 0.3) border-bottom: 1px solid rgba(255, 255, 255, 0.3)
.page
margin-left: 10px
margin-right: 10px

View File

@@ -2,23 +2,28 @@
@import mixins @import mixins
.sidebar-container .sidebar-container
@include grid(100) height: 100%
display: flex
flex-flow: row
@include sm-device
flex-flow: wrap
.sidebar-content .sidebar-content
padding-left: 10px padding-left: 10px
@include grid_width(82/100) flex: 1 100%
@include xs-device
@include grid_width(1) @include sm-device
padding-left: 0 padding-left: 0
order: 1
.sidebar .sidebar
max-width: 240px width: 230px
min-width: 190px
@include grid_width(18/100) @include sm-device
@include xs-device flex: 1 auto
@include grid_width(1) order: 2
max-width: 99%
min-width: 0
h2 h2
margin-top: 0 margin-top: 0
> ul > ul

View File

@@ -12,18 +12,15 @@
.task-summary-container .task-summary-container
border: 2px solid #000 border: 2px solid #000
border-radius: 8px border-radius: 8px
padding: 15px padding: 10px
.task-summary-columns .task-summary-columns
display: -webkit-flex
display: flex display: flex
-webkit-flex-direction: row flex-flow: row
flex-direction: row
-webkit-justify-content: space-between
justify-content: space-between justify-content: space-between
@include xs-device @include sm-device
display: block flex-flow: column
.task-summary-column .task-summary-column
color: color('primary') color: color('primary')

View File

@@ -19,7 +19,6 @@
@import pagination @import pagination
@import header @import header
@import logo @import logo
@import main
@import page_header @import page_header
@import sidebar @import sidebar
@import avatar @import avatar