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 { body {
background-color: $color-bg; background-color: $color-bg;
overflow: auto; overflow: auto;
height: 100%
} }
vn-app { vn-app {
height: inherit; height: inherit;

View File

@ -14,3 +14,4 @@ import './summary.scss';
import './descriptor.scss'; import './descriptor.scss';
import './list.scss'; import './list.scss';
import './modal-form.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-crud-model>
<vn-horizontal class="photo-list" vn-droppable="true" on-drop="$ctrl.onDrop(event)"> <vn-horizontal class="photo-list" vn-droppable="true" on-drop="$ctrl.onDrop(event)">
<section class="photo" ng-repeat="photo in $ctrl.photos"> <section class="photo" ng-repeat="photo in $ctrl.photos">
<section class="image"> <section class="image mdl-shadow--2dp" on-error-src
<img alt="" on-error-src ng-style="{'background': 'url(/api/dms/' + photo.dmsFk + '/downloadFile?access_token=' + $ctrl.accessToken + ')'}"
ng-src="/api/dms/{{::photo.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}"
zoom-image="/api/dms/{{::photo.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}"> zoom-image="/api/dms/{{::photo.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}">
</section> </section>
<section class="actions"> <section class="actions">

View File

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

View File

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

View File

@ -1,36 +1,12 @@
@import "./variables"; @import "./variables";
.photo-list { vn-claim-summary {
justify-content: center;
align-items: flex-start;
align-content: flex-start;
flex-wrap: wrap;
.photo { .photo {
box-sizing: border-box; height: 15.5em;
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
}
} }
.photo .image {
.photo:hover { border: 2px solid $color-bg-dark;
opacity: 1 border-radius: 0.2em;
} }
} }