_content.scss 3.7 KB

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