123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- /**
- * @copyright 2014 by Tobias Reich
- */
- #content {
- position: absolute;
- padding: 50px 0px 33px 0px;
- width: 100%;
- min-height: calc(100% - 90px);
- -webkit-overflow-scrolling: touch;
- }
- /* Photo ------------------------------------------------*/
- .photo {
- float: left;
- display: inline-block;
- width: 206px;
- height: 206px;
- margin: 30px 0 0 30px;
- cursor: pointer;
- img {
- position: absolute;
- width: 200px;
- height: 200px;
- background-color: #222;
- border-radius: 2px;
- border: 2px solid #ccc;
- }
- &:hover img,
- &.active img {
- box-shadow: 0 0 5px #005ecc;
- }
- &:active {
- transition-duration: .1s;
- transform: scale(.98);
- }
- }
- /* Album ------------------------------------------------*/
- .album {
- float: left;
- display: inline-block;
- width: 204px;
- height: 204px;
- 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 {
- transform: rotate(-2deg) translateY(10px) translateX(-12px);
- opacity: 1;
- }
- &:hover img:nth-child(2) {
- transform: rotate(5deg) translateY(-8px) translateX(12px);
- opacity: 1;
- }
- &:hover img,
- &.active img {
- box-shadow: 0 0 3px #2293EC;
- }
- }
- /* Album/Photo Overlay ------------------------------------------------*/
- .album .overlay,
- .photo .overlay {
- position: absolute;
- width: 200px;
- height: 200px;
- margin: 2px;
- 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
- .album img[data-type^='nonretina'] + .overlay {
- background: rgba(0, 0, 0, 0.2);
- }
- .photo .overlay {
- opacity: 0;
- }
- .photo:hover .overlay,
- .photo.active .overlay {
- opacity: 1;
- }
- .album .overlay h1,
- .photo .overlay h1 {
- min-height: 19px;
- width: 185px;
- margin: 152px 0 3px 15px;
- color: #fff;
- font-size: 16px;
- font-weight: bold;
- overflow: hidden;
- }
- .album .overlay a,
- .photo .overlay a {
- font-size: 11px;
- color: #aaa;
- }
- .album .overlay a {
- margin-left: 15px;
- }
- .photo .overlay a {
- margin: 155px 0 5px 15px;
- span { margin: 0 5px 0 0; }
- }
- /* Badges ------------------------------------------------*/
- .album .badge,
- .photo .badge {
- position: absolute;
- margin: -1px 0 0 12px;
- padding: 12px 7px 3px 7px;
- box-shadow: 0 0 2px rgba(0, 0, 0, .6);
- background: #d02a32;
- border-radius: 0 0 5px 5px;
- border: 1px solid #fff;
- border-top: none;
- color: #fff;
- font-size: 24px;
- text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
- opacity: .9;
- &:nth-child(2n) { margin-left: 57px; }
- .iconic {
- fill: #fff;
- width: 21px;
- filter: drop-shadow( 0 -1px 0 rgba(0, 0, 0, .1) );
- }
- }
- /* Divider ------------------------------------------------*/
- .divider {
- float: left;
- margin: 50px 0 0;
- padding: 10px 0;
- width: 100%;
- opacity: 0;
- background: rgba(0, 0, 0, .15);
- &:first-child {
- margin-top: 0;
- border-top: none;
- }
- h1 {
- float: left;
- margin: 0 0 0 30px;
- color: rgba(255, 255, 255, .6);
- font-size: 14px;
- font-weight: bold;
- }
- }
- /* No Content ------------------------------------------------*/
- .no_content {
- position: absolute;
- top: 50%;
- left: 50%;
- height: 160px;
- width: 180px;
- margin-top: -60px;
- margin-left: -90px;
- padding-top: 20px;
- color: rgba(15, 15, 15, 1);
- text-shadow: 0px 1px 0px rgba(255, 255, 255, .01);
- text-align: center;
- .icon {
- font-size: 80px;
- }
- p {
- font-size: 18px;
- font-weight: bold;
- }
- }
|