Use flewbox for content

pull/331/head
Tobias Reich 9 years ago
parent a5279fc42f
commit 06fba792b2

2
dist/main.css vendored

File diff suppressed because one or more lines are too long

2
dist/main.js vendored

File diff suppressed because one or more lines are too long

2
dist/view.js vendored

File diff suppressed because one or more lines are too long

@ -26,7 +26,7 @@ build.divider = function(title) {
var html = ''; var html = '';
html = ` html = `
<div class='divider fadeIn'> <div class='divider'>
<h1>${ title }</h1> <h1>${ title }</h1>
</div> </div>
` `

@ -4,7 +4,8 @@
#content { #content {
position: absolute; display: flex;
flex-wrap: wrap;
padding: 50px 0 33px; padding: 50px 0 33px;
width: 100%; width: 100%;
min-height: calc(100% - 83px); min-height: calc(100% - 83px);
@ -47,7 +48,7 @@
&.contentZoomOut .divider { &.contentZoomOut .divider {
animation-name: fadeOut; animation-name: fadeOut;
animation-duration: .3s; animation-duration: .2s;
animation-fill-mode: forwards; animation-fill-mode: forwards;
animation-timing-function: $timing; animation-timing-function: $timing;
} }
@ -55,7 +56,6 @@
/* Albums and Photos ------------------------------------------------*/ /* Albums and Photos ------------------------------------------------*/
.album, .album,
.photo { .photo {
float: left;
position: relative; position: relative;
width: 202px; width: 202px;
height: 202px; height: 202px;
@ -181,7 +181,6 @@
/* Divider ------------------------------------------------*/ /* Divider ------------------------------------------------*/
.divider { .divider {
float: left;
margin: 50px 0 0; margin: 50px 0 0;
padding: 10px 0 0; padding: 10px 0 0;
width: 100%; width: 100%;
@ -196,7 +195,6 @@
} }
h1 { h1 {
float: left;
margin: 0 0 0 30px; margin: 0 0 0 30px;
color: white(.6); color: white(.6);
font-size: 14px; font-size: 14px;

@ -6,6 +6,8 @@
position: fixed; position: fixed;
display: none; display: none;
top: 0;
left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: rgba(10, 10, 10, .98); background-color: rgba(10, 10, 10, .98);

Loading…
Cancel
Save