Serveral style changes including the border of albums/photos
This commit is contained in:
parent
a5adb4f0bd
commit
d21a8c6500
BIN
dist/main.css
vendored
BIN
dist/main.css
vendored
Binary file not shown.
BIN
dist/main.js
vendored
BIN
dist/main.js
vendored
Binary file not shown.
BIN
dist/view.js
vendored
BIN
dist/view.js
vendored
Binary file not shown.
@ -4,18 +4,18 @@
|
|||||||
|
|
||||||
#content {
|
#content {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
padding: 50px 0px 33px 0px;
|
padding: 50px 0 33px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: calc(100% - 90px);
|
min-height: calc(100% - 83px);
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Photo ------------------------------------------------*/
|
/* Albums and Photos ------------------------------------------------*/
|
||||||
.photo {
|
.album,
|
||||||
|
.photo {
|
||||||
float: left;
|
float: left;
|
||||||
display: inline-block;
|
width: 202px;
|
||||||
width: 206px;
|
height: 202px;
|
||||||
height: 206px;
|
|
||||||
margin: 30px 0 0 30px;
|
margin: 30px 0 0 30px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
@ -24,74 +24,52 @@
|
|||||||
width: 200px;
|
width: 200px;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
background-color: #222;
|
background-color: #222;
|
||||||
border-radius: 2px;
|
box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
|
||||||
border: 2px solid #ccc;
|
border: 1px solid rgba(255, 255, 255, .5);
|
||||||
|
transition: opacity .3s ease-out, transform .3s ease-out, border-color .3s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover img,
|
&:hover img,
|
||||||
&.active img {
|
&.active img {
|
||||||
box-shadow: 0 0 5px #005ecc;
|
border-color: #2293EC;
|
||||||
}
|
|
||||||
|
|
||||||
&:active {
|
|
||||||
transition-duration: .1s;
|
|
||||||
transform: scale(.98);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Album ------------------------------------------------*/
|
/* Album ------------------------------------------------*/
|
||||||
.album {
|
.album {
|
||||||
float: left;
|
img:first-child,
|
||||||
display: inline-block;
|
img:nth-child(2) {
|
||||||
width: 204px;
|
transform: rotate(0) translateY(0) translateX(0);
|
||||||
height: 204px;
|
opacity: 0;
|
||||||
margin: 30px 0px 0px 30px;
|
|
||||||
cursor: pointer;
|
|
||||||
|
|
||||||
img {
|
|
||||||
position: absolute;
|
|
||||||
width: 200px;
|
|
||||||
height: 200px;
|
|
||||||
background-color: #222;
|
|
||||||
border-radius: 2px;
|
|
||||||
border: 2px solid #bbb;
|
|
||||||
|
|
||||||
&:first-child,
|
|
||||||
&:nth-child(2) {
|
|
||||||
transform: rotate(0) translateY(0) translateX(0);
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover img:first-child {
|
&:hover img:nth-child(1),
|
||||||
transform: rotate(-2deg) translateY(10px) translateX(-12px);
|
&:hover img:nth-child(2) { opacity: 1; }
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover img:nth-child(2) {
|
&:hover img:nth-child(1) { transform: rotate(-2deg) translateY(10px) translateX(-12px); }
|
||||||
transform: rotate(5deg) translateY(-8px) translateX(12px);
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover img,
|
&:hover img:nth-child(2) { transform: rotate(5deg) translateY(-8px) translateX(12px); }
|
||||||
&.active img {
|
}
|
||||||
box-shadow: 0 0 3px #2293EC;
|
|
||||||
}
|
/* Photo ------------------------------------------------*/
|
||||||
|
.photo:active {
|
||||||
|
transition-duration: .1s;
|
||||||
|
transform: scale(.98);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Album/Photo Overlay ------------------------------------------------*/
|
/* Album/Photo Overlay ------------------------------------------------*/
|
||||||
.album .overlay,
|
.album .overlay,
|
||||||
.photo .overlay {
|
.photo .overlay {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
margin: 0 1px;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 200px;
|
background: rgba(0, 0, 0, .6);
|
||||||
margin: 2px;
|
bottom: 1px;
|
||||||
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.5) 80%, rgba(0,0,0,0.9) 100%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// No overlay for empty albums
|
// No overlay for empty albums
|
||||||
.album img[data-type^='nonretina'] + .overlay {
|
.album img[data-type^='nonretina'] + .overlay {
|
||||||
background: rgba(0, 0, 0, 0.2);
|
background: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.photo .overlay {
|
.photo .overlay {
|
||||||
@ -107,7 +85,7 @@
|
|||||||
.photo .overlay h1 {
|
.photo .overlay h1 {
|
||||||
min-height: 19px;
|
min-height: 19px;
|
||||||
width: 185px;
|
width: 185px;
|
||||||
margin: 152px 0 3px 15px;
|
margin: 12px 0 5px 15px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -116,19 +94,13 @@
|
|||||||
|
|
||||||
.album .overlay a,
|
.album .overlay a,
|
||||||
.photo .overlay a {
|
.photo .overlay a {
|
||||||
|
display: block;
|
||||||
|
margin: 0 0 12px 15px;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
color: #aaa;
|
color: #bbb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.album .overlay a {
|
.photo .overlay a span { margin: 0 6px 0 0; }
|
||||||
margin-left: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.photo .overlay a {
|
|
||||||
margin: 155px 0 5px 15px;
|
|
||||||
|
|
||||||
span { margin: 0 5px 0 0; }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Badges ------------------------------------------------*/
|
/* Badges ------------------------------------------------*/
|
||||||
.album .badge,
|
.album .badge,
|
||||||
@ -159,14 +131,16 @@
|
|||||||
.divider {
|
.divider {
|
||||||
float: left;
|
float: left;
|
||||||
margin: 50px 0 0;
|
margin: 50px 0 0;
|
||||||
padding: 10px 0;
|
padding: 10px 0 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
background: rgba(0, 0, 0, .15);
|
border-top: 1px solid rgba(255, 255, 255, .02);
|
||||||
|
box-shadow: 0 -1px 0 0 rgba(0, 0, 0, .2);
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
margin-top: 0;
|
margin-top: 10px;
|
||||||
border-top: none;
|
border-top: 0;
|
||||||
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
@ -175,6 +149,7 @@
|
|||||||
color: rgba(255, 255, 255, .6);
|
color: rgba(255, 255, 255, .6);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, .1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,7 +164,7 @@
|
|||||||
margin-left: -90px;
|
margin-left: -90px;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
color: rgba(15, 15, 15, 1);
|
color: rgba(15, 15, 15, 1);
|
||||||
text-shadow: 0px 1px 0px rgba(255, 255, 255, .01);
|
text-shadow: 0 1px 0 rgba(255, 255, 255, .01);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
transition: none;
|
transition: none;
|
||||||
|
|
||||||
&:hover { background: linear-gradient(to bottom, #2293EC, darken(#2293EC, 2%)); }
|
&:hover { background: linear-gradient(to bottom, #2293EC, darken(#2293EC, 5%)); }
|
||||||
}
|
}
|
||||||
|
|
||||||
tr td .albumCover {
|
tr td .albumCover {
|
||||||
@ -48,7 +48,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
margin: -2px 0 -1px -2px;
|
margin: -2px 0 -1px -2px;
|
||||||
padding: 5px 7px 6px 7px;
|
padding: 5px 7px 6px 7px;
|
||||||
background-color: #444;
|
background-color: #333;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border: 1px solid rgba(0, 0, 0, .4);
|
border: 1px solid rgba(0, 0, 0, .4);
|
||||||
box-shadow: 0px 1px 0px rgba(255, 255, 255, .05);
|
box-shadow: 0px 1px 0px rgba(255, 255, 255, .05);
|
||||||
|
Loading…
Reference in New Issue
Block a user