gallery layout udpate

This commit is contained in:
tmshv committed 2016-02-21 22:31:57 +03:00
1 parent 17a7a669fe
commit 243082db75
2 files changed
+36 -45

No files matched your search

+24 -25
View File
@@ -1,35 +1,34 @@
.gallery-block { @import "variables";
margin: 2em 0 0;
display: block; //.gallery-block {
// margin: 2em 0 0;
// display: block;
//}
.album-collection{
} }
.gallery-period{ .album-collection__body{
margin-bottom: 2em; display: flex;
justify-content: space-between;
flex-wrap: wrap;
align-items: flex-start;
& > div{ margin-bottom: $double-margin;
margin: 1.5em 0 0; }
display: flex;
justify-content: center; .album-collection__title{
flex-wrap: wrap;
align-items: flex-start;
}
p.period{
text-align: center;
font-size: 1.5em;
font-weight: bold;
}
} }
.gallery-album { .gallery-album {
margin: 0 1em 2em; width: calc(33% - #{$single-margin});
margin-bottom: $single-margin;
h3{
margin: 0 0 0.35em;
}
img { img {
max-width: 100%; width: 100%;
max-width: 500px;
} }
} }
@@ -120,7 +119,7 @@
} }
} }
@media screen and (max-width: 31.25em) { @media screen and (max-width: $mobile-width) {
.album-block { .album-block {
width: 100%; width: 100%;
margin: 1em auto 2em; margin: 1em auto 2em;
@@ -157,7 +156,7 @@
} }
} }
@media screen and (min-width: 31.25em) and (max-width: 59.99999em){ @media screen and (min-width: $mobile-width) and (max-width: $desktop-width){
.album-block { .album-block {
.album-info{ .album-info{
width: 100%; width: 100%;
+12 -20
View File
@@ -1,22 +1,14 @@
<div class="gallery-block" ng-controller="GalleryPageController"> <div class="content content_wide" ng-controller="GalleryPageController">
<div class="album-collection" ng-repeat="period in years">
<div class="gallery-period" ng-repeat="period in years"> <h2 class="album-collection__title">{{period.year}}</h2>
<p class="period">{{period.year}}</p> <div class="album-collection__body">
<div><div class="gallery-album" ng-repeat="album in period.albums"> <div class="gallery-album" ng-repeat="album in period.albums">
<h3><a href="{{album.url}}">{{album.title}}</a></h3> <h3><a href="{{album.url}}">{{album.title}}</a></h3>
<a href="{{album.url}}" class="invisible"> <a href="{{album.url}}" class="invisible">
<img ng-src="{{album.preview_url}}" alt=""/> <img ng-src="{{album.preview_url}}" alt="{{album.title}}"/>
</a> </a>
<p>{{album.course}}</p> <p>{{album.course}}</p>
</div></div> </div>
</div>
</div> </div>
<!--<div class="gallery-album" ng-repeat="album in albums">-->
<!--<h3><a href="{{album.url}}">{{album.title}}</a></h3>-->
<!--<a href="{{album.url}}" class="invisible">-->
<!--<img ng-src="{{album.preview_url}}" alt=""/>-->
<!--</a>-->
<!--<p>{{album.course}}</p>-->
<!--</div>-->
</div> </div>