fixed styles
gitea/salix/dev This commit has test failures Details
gitea/salix/test This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-10-01 10:35:27 +02:00
parent d96f67254f
commit 26be791cf0
7 changed files with 51 additions and 36 deletions

View File

@ -3,6 +3,7 @@
body {
background-color: $color-bg;
overflow: auto;
height: 100%
}
vn-app {
height: inherit;

View File

@ -14,3 +14,4 @@ import './summary.scss';
import './descriptor.scss';
import './list.scss';
import './modal-form.scss';
import './photo-list.scss';

View File

@ -0,0 +1,38 @@
@import "./variables";
.photo-list {
justify-content: center;
align-items: flex-start;
align-content: flex-start;
flex-wrap: wrap;
.photo {
box-sizing: border-box;
transition: all 0.5s;
padding: $pad-small;
position: relative;
opacity: 0.7;
width: 28em;
.image {
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),
0 3px 1px -2px rgba(0,0,0,.2),
0 1px 5px 0 rgba(0,0,0,.12);
overflow: hidden;
cursor: zoom-in;
height: 100%;
img {
max-width: 100%
}
}
.actions {
position: absolute;
right: 1em;
top: 1em
}
}
.photo:hover {
opacity: 1
}
}

View File

@ -6,9 +6,8 @@
</vn-crud-model>
<vn-horizontal class="photo-list" vn-droppable="true" on-drop="$ctrl.onDrop(event)">
<section class="photo" ng-repeat="photo in $ctrl.photos">
<section class="image">
<img alt="" on-error-src
ng-src="/api/dms/{{::photo.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}"
<section class="image mdl-shadow--2dp" on-error-src
ng-style="{'background': 'url(/api/dms/' + photo.dmsFk + '/downloadFile?access_token=' + $ctrl.accessToken + ')'}"
zoom-image="/api/dms/{{::photo.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}">
</section>
<section class="actions">

View File

@ -10,6 +10,7 @@ vn-claim-dms-index {
.photo {
width: 32em;
height: 18em;
}
}

View File

@ -83,9 +83,8 @@
<h4 translate>Photos</h4>
<vn-horizontal class="photo-list">
<section class="photo" ng-repeat="photo in photos">
<section class="image">
<img alt="" on-error-src
ng-src="/api/dms/{{::photo.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}"
<section class="image" on-error-src
ng-style="{'background': 'url(/api/dms/' + photo.dmsFk + '/downloadFile?access_token=' + $ctrl.accessToken + ')'}"
zoom-image="/api/dms/{{::photo.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}">
</section>
</section>

View File

@ -1,36 +1,12 @@
@import "./variables";
.photo-list {
justify-content: center;
align-items: flex-start;
align-content: flex-start;
flex-wrap: wrap;
vn-claim-summary {
.photo {
box-sizing: border-box;
padding: $pad-small;
position: relative;
opacity: 0.7;
transition: all 0.5s;
width: 28em;
.image {
border: 2px solid $color-bg-dark;
border-radius: 0.2em;
overflow: hidden;
img, video {
max-width: 100%
}
}
.actions {
position: absolute;
right: 1em;
top: 1em
}
height: 15.5em;
}
.photo:hover {
opacity: 1
.photo .image {
border: 2px solid $color-bg-dark;
border-radius: 0.2em;
}
}