_content.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. /**
  2. * @copyright 2014 by Tobias Reich
  3. */
  4. #content {
  5. position: absolute;
  6. padding: 50px 0px 33px 0px;
  7. width: 100%;
  8. min-height: calc(100% - 90px);
  9. -webkit-overflow-scrolling: touch;
  10. }
  11. /* Photo ------------------------------------------------*/
  12. .photo {
  13. float: left;
  14. display: inline-block;
  15. width: 206px;
  16. height: 206px;
  17. margin: 30px 0 0 30px;
  18. cursor: pointer;
  19. img {
  20. position: absolute;
  21. width: 200px;
  22. height: 200px;
  23. background-color: #222;
  24. border-radius: 2px;
  25. border: 2px solid #ccc;
  26. }
  27. &:hover img,
  28. &.active img {
  29. box-shadow: 0 0 5px #005ecc;
  30. }
  31. &:active {
  32. transition-duration: .1s;
  33. transform: scale(.98);
  34. }
  35. }
  36. /* Album ------------------------------------------------*/
  37. .album {
  38. float: left;
  39. display: inline-block;
  40. width: 204px;
  41. height: 204px;
  42. margin: 30px 0px 0px 30px;
  43. cursor: pointer;
  44. img {
  45. position: absolute;
  46. width: 200px;
  47. height: 200px;
  48. background-color: #222;
  49. border-radius: 2px;
  50. border: 2px solid #bbb;
  51. &:first-child,
  52. &:nth-child(2) {
  53. transform: rotate(0) translateY(0) translateX(0);
  54. opacity: 0;
  55. }
  56. }
  57. &:hover img:first-child {
  58. transform: rotate(-2deg) translateY(10px) translateX(-12px);
  59. opacity: 1;
  60. }
  61. &:hover img:nth-child(2) {
  62. transform: rotate(5deg) translateY(-8px) translateX(12px);
  63. opacity: 1;
  64. }
  65. &:hover img,
  66. &.active img {
  67. box-shadow: 0 0 3px #2293EC;
  68. }
  69. }
  70. /* Album/Photo Overlay ------------------------------------------------*/
  71. .album .overlay,
  72. .photo .overlay {
  73. position: absolute;
  74. width: 200px;
  75. height: 200px;
  76. margin: 2px;
  77. 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%);
  78. }
  79. // No overlay for empty albums
  80. .album img[data-type^='nonretina'] + .overlay {
  81. background: rgba(0, 0, 0, 0.2);
  82. }
  83. .photo .overlay {
  84. opacity: 0;
  85. }
  86. .photo:hover .overlay,
  87. .photo.active .overlay {
  88. opacity: 1;
  89. }
  90. .album .overlay h1,
  91. .photo .overlay h1 {
  92. min-height: 19px;
  93. width: 185px;
  94. margin: 152px 0 3px 15px;
  95. color: #fff;
  96. font-size: 16px;
  97. font-weight: bold;
  98. overflow: hidden;
  99. }
  100. .album .overlay a,
  101. .photo .overlay a {
  102. font-size: 11px;
  103. color: #aaa;
  104. }
  105. .album .overlay a {
  106. margin-left: 15px;
  107. }
  108. .photo .overlay a {
  109. margin: 155px 0 5px 15px;
  110. span { margin: 0 5px 0 0; }
  111. }
  112. /* Badges ------------------------------------------------*/
  113. .album .badge,
  114. .photo .badge {
  115. position: absolute;
  116. margin: -1px 0 0 12px;
  117. padding: 12px 7px 3px 7px;
  118. box-shadow: 0 0 2px rgba(0, 0, 0, .6);
  119. background: #d02a32;
  120. border-radius: 0 0 5px 5px;
  121. border: 1px solid #fff;
  122. border-top: none;
  123. color: #fff;
  124. font-size: 24px;
  125. text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
  126. opacity: .9;
  127. &:nth-child(2n) { margin-left: 57px; }
  128. .iconic {
  129. fill: #fff;
  130. width: 21px;
  131. filter: drop-shadow( 0 -1px 0 rgba(0, 0, 0, .1) );
  132. }
  133. }
  134. /* Divider ------------------------------------------------*/
  135. .divider {
  136. float: left;
  137. margin: 50px 0 0;
  138. padding: 10px 0;
  139. width: 100%;
  140. opacity: 0;
  141. background: rgba(0, 0, 0, .15);
  142. &:first-child {
  143. margin-top: 0;
  144. border-top: none;
  145. }
  146. h1 {
  147. float: left;
  148. margin: 0 0 0 30px;
  149. color: rgba(255, 255, 255, .6);
  150. font-size: 14px;
  151. font-weight: bold;
  152. }
  153. }
  154. /* No Content ------------------------------------------------*/
  155. .no_content {
  156. position: absolute;
  157. top: 50%;
  158. left: 50%;
  159. height: 160px;
  160. width: 180px;
  161. margin-top: -60px;
  162. margin-left: -90px;
  163. padding-top: 20px;
  164. color: rgba(15, 15, 15, 1);
  165. text-shadow: 0px 1px 0px rgba(255, 255, 255, .01);
  166. text-align: center;
  167. .icon {
  168. font-size: 80px;
  169. }
  170. p {
  171. font-size: 18px;
  172. font-weight: bold;
  173. }
  174. }