Make form columns and popover more responsive

This commit is contained in:
Frederic Guillot
2016-08-14 14:19:20 -04:00
parent c7a5f6b8ea
commit e24c37290b
6 changed files with 29 additions and 17 deletions

View File

@@ -8,7 +8,7 @@
<?php if ($paginator->isEmpty()): ?> <?php if ($paginator->isEmpty()): ?>
<p class="alert"><?= t('There is no group.') ?></p> <p class="alert"><?= t('There is no group.') ?></p>
<?php else: ?> <?php else: ?>
<table class="table-small table-fixed"> <table class="table-small table-fixed table-scrolling">
<tr> <tr>
<th class="column-5"><?= $paginator->order(t('Id'), 'id') ?></th> <th class="column-5"><?= $paginator->order(t('Id'), 'id') ?></th>
<th class="column-20"><?= $paginator->order(t('External Id'), 'external_id') ?></th> <th class="column-20"><?= $paginator->order(t('External Id'), 'external_id') ?></th>

File diff suppressed because one or more lines are too long

View File

@@ -70,6 +70,14 @@ span.select2-container
padding-top: 20px padding-top: 20px
clear: both clear: both
.form-required
color: red
padding-left: 5px
font-weight: bold
@include xs-device
display: none
input.form-error, textarea.form-error input.form-error, textarea.form-error
border: 2px solid #b94a48 border: 2px solid #b94a48
@@ -77,11 +85,6 @@ input.form-error:focus, textarea.form-error:focus
box-shadow: none box-shadow: none
border: 2px solid #b94a48 border: 2px solid #b94a48
.form-required
color: red
padding-left: 5px
font-weight: bold
.form-errors .form-errors
color: color('error') color: color('error')
list-style-type: none list-style-type: none
@@ -109,13 +112,13 @@ ul.form-errors li
display: inline display: inline
.form-columns .form-columns
display: -webkit-flex +display-flex
display: flex +flex-direction(row)
-webkit-flex-direction: row +flex-wrap
flex-direction: row +justify-content(flex-start)
.form-column .form-column
margin-right: 25px margin-right: 25px
.form-login .form-login
width: 350px width: 350px

View File

@@ -1,4 +1,5 @@
@import variables @import variables
@import mixins
#popover-container #popover-container
position: fixed position: fixed
@@ -12,13 +13,21 @@
#popover-content #popover-content
position: absolute position: absolute
width: 70% width: 75%
left: 15% left: 12%
top: 1% top: 1%
padding: 15px padding: 15px
background: #fff background: #fff
overflow: auto overflow: auto
max-height: 90% max-height: 95%
@include xs-device
left: 0
width: 100%
@include sm-device
left: 2.5%
width: 85%
.popover-form .popover-form
margin-bottom: 0 margin-bottom: 0

View File

@@ -20,8 +20,8 @@
@import sidebar @import sidebar
@import avatar @import avatar
@import file_upload @import file_upload
@import thumbnails
@import color_picker @import color_picker
@import files
@import filter_box @import filter_box
@import project @import project
@import project_overview @import project_overview