content.css 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. /**
  2. * @name content.css
  3. * @author Tobias Reich
  4. * @copyright 2014 by Tobias Reich
  5. */
  6. #content::before {
  7. content: "";
  8. position: absolute;
  9. left: 0px;
  10. width: 100%;
  11. height: 20px;
  12. background-image: -webkit-linear-gradient(top, #262626, #222);
  13. background-image: -moz-linear-gradient(top, #262626, #222);
  14. background-image: -ms-linear-gradient(top, #262626, #222);
  15. background-image: linear-gradient(top, #262626, #222);
  16. border-top: 1px solid #333;
  17. }
  18. /* Modes ------------------------------------------------*/
  19. #content.view::before {
  20. display: none;
  21. }
  22. #content {
  23. position: absolute;
  24. padding: 50px 0px 33px 0px;
  25. width: 100%;
  26. -webkit-overflow-scrolling: touch;
  27. }
  28. /* Photo ------------------------------------------------*/
  29. .photo {
  30. float: left;
  31. display: inline-block;
  32. width: 206px;
  33. height: 206px;
  34. margin: 30px 0px 0px 30px;
  35. cursor: pointer;
  36. }
  37. .photo img {
  38. position: absolute;
  39. width: 200px;
  40. height: 200px;
  41. background-color: #222;
  42. border-radius: 2px;
  43. border: 2px solid #ccc;
  44. }
  45. .photo:hover img,
  46. .photo.active img {
  47. box-shadow: 0px 0px 5px #005ecc;
  48. }
  49. .photo:active {
  50. -webkit-transition-duration: .1s;
  51. -webkit-transform: scale(.98);
  52. -moz-transition-duration: .1s;
  53. -moz-transform: scale(.98);
  54. transition-duration: .1s;
  55. transform: scale(.98);
  56. }
  57. /* Album ------------------------------------------------*/
  58. .album {
  59. float: left;
  60. display: inline-block;
  61. width: 204px;
  62. height: 204px;
  63. margin: 30px 0px 0px 30px;
  64. cursor: pointer;
  65. }
  66. .album img:first-child,
  67. .album img:nth-child(2) {
  68. -webkit-transform: rotate(0deg) translateY(0px) translateX(0px);
  69. -moz-transform: rotate(0deg) translateY(0px) translateX(0px);
  70. transform: rotate(0deg) translateY(0px) translateX(0px);
  71. opacity: 0;
  72. }
  73. .album:hover img:first-child {
  74. -webkit-transform: rotate(-2deg) translateY(10px) translateX(-12px);
  75. -moz-transform: rotate(-2deg) translateY(10px) translateX(-12px);
  76. transform: rotate(-2deg) translateY(10px) translateX(-12px);
  77. opacity: 1;
  78. }
  79. .album:hover img:nth-child(2) {
  80. -webkit-transform: rotate(5deg) translateY(-8px) translateX(12px);
  81. -moz-transform: rotate(5deg) translateY(-8px) translateX(12px);
  82. transform: rotate(5deg) translateY(-8px) translateX(12px);
  83. opacity: 1;
  84. }
  85. .album img {
  86. position: absolute;
  87. width: 200px;
  88. height: 200px;
  89. background-color: #222;
  90. border-radius: 2px;
  91. border: 2px solid #ccc;
  92. }
  93. .album:hover img,
  94. .album.active img {
  95. box-shadow: 0px 0px 5px #005ecc;
  96. }
  97. /* Album/Photo Overlay ------------------------------------------------*/
  98. .album .overlay,
  99. .photo .overlay {
  100. position: absolute;
  101. width: 200px;
  102. height: 200px;
  103. margin: 2px;
  104. }
  105. .album .overlay {
  106. background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0.9) 100%); /* FF3.6+ */
  107. background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 20%,rgba(0,0,0,0.9) 100%); /* Chrome10+,Safari5.1+ */
  108. background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 20%,rgba(0,0,0,0.9) 100%); /* IE10+ */
  109. background: linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 20%,rgba(0,0,0,0.9) 100%); /* W3C */
  110. }
  111. .photo .overlay {
  112. background: rgba(0, 0, 0, .6);
  113. opacity: 0;
  114. }
  115. .photo:hover .overlay,
  116. .photo.active .overlay {
  117. opacity: 1;
  118. }
  119. .album .overlay h1,
  120. .photo .overlay h1 {
  121. min-height: 19px;
  122. width: 190px;
  123. margin: 153px 0px 3px 15px;
  124. color: #fff;
  125. font-size: 16px;
  126. font-weight: bold;
  127. overflow: hidden;
  128. }
  129. .album .overlay a,
  130. .photo .overlay a {
  131. font-size: 11px;
  132. color: #aaa;
  133. }
  134. .album .overlay a {
  135. margin-left: 15px;
  136. }
  137. .photo .overlay a {
  138. margin: 155px 0px 5px 15px;
  139. }
  140. /* Badges ------------------------------------------------*/
  141. .album .badge,
  142. .photo .badge {
  143. position: absolute;
  144. margin-top: -1px;
  145. margin-left: 12px;
  146. padding: 12px 7px 3px 7px;
  147. box-shadow: 0px 0px 3px #000;
  148. border-radius: 0px 0px 3px 3px;
  149. border: 1px solid #fff;
  150. border-top: none;
  151. color: #fff;
  152. font-size: 24px;
  153. text-shadow: 0px 1px 0px #000;
  154. opacity: .9;
  155. }
  156. .album .badge.icon-star,
  157. .photo .badge.icon-star {
  158. padding: 12px 8px 3px 8px;
  159. }
  160. .album .badge.icon-share,
  161. .photo .badge.icon-share {
  162. padding: 12px 6px 3px 8px;
  163. }
  164. .album .badge::after,
  165. .photo .badge::after {
  166. content: "";
  167. position: absolute;
  168. margin-top: -12px;
  169. margin-left: -26px;
  170. width: 38px;
  171. height: 5px;
  172. background: -moz-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%); /* FF3.6+ */
  173. background: -webkit-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */
  174. background: -ms-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%); /* IE10+ */
  175. background: linear-gradient(top, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%); /* W3C */
  176. opacity: .4;
  177. }
  178. .album .badge.icon-star::after,
  179. .photo .badge.icon-star::after {
  180. margin-left: -29px;
  181. }
  182. .album .badge.icon-share::after,
  183. .photo .badge.icon-share::after {
  184. margin-left: -31px;
  185. }
  186. .album .badge.icon-reorder::after {
  187. margin-left: -30px;
  188. }
  189. .album .badge:nth-child(2n),
  190. .photo .badge:nth-child(2n) {
  191. margin-left: 57px;
  192. }
  193. .album .badge.red,
  194. .photo .badge.red {
  195. background: #d64b4b;
  196. background: -webkit-linear-gradient(top, #d64b4b, #ab2c2c);
  197. background: -moz-linear-gradient(top, #d64b4b, #ab2c2c);
  198. background: -ms-linear-gradient(top, #d64b4b, #ab2c2c);
  199. }
  200. .album .badge.blue,
  201. .photo .badge.blue {
  202. background: #d64b4b;
  203. background: -webkit-linear-gradient(top, #347cd6, #2945ab);
  204. background: -moz-linear-gradient(top, #347cd6, #2945ab);
  205. background: -ms-linear-gradient(top, #347cd6, #2945ab);
  206. }
  207. /* Divider ------------------------------------------------*/
  208. .divider {
  209. float: left;
  210. width: 100%;
  211. margin-top: 50px;
  212. opacity: 0;
  213. border-top: 1px solid #2E2E2E;
  214. box-shadow: 0px -1px 0px #151515;
  215. }
  216. .divider:first-child {
  217. margin-top: 0px;
  218. border-top: none;
  219. }
  220. .divider h1 {
  221. float: left;
  222. margin: 20px 0px 0px 30px;
  223. color: #fff;
  224. font-size: 14px;
  225. font-weight: bold;
  226. text-shadow: 0px -1px 0px #000;
  227. }
  228. /* No Content ------------------------------------------------*/
  229. .no_content {
  230. position: absolute;
  231. top: 50%;
  232. left: 50%;
  233. height: 160px;
  234. width: 180px;
  235. margin-top: -80px;
  236. margin-left: -90px;
  237. padding-top: 20px;
  238. color: rgba(20, 20, 20, 1);
  239. text-shadow: 0px 1px 0px rgba(255, 255, 255, .05);
  240. text-align: center;
  241. }
  242. .no_content .icon {
  243. font-size: 120px;
  244. }
  245. .no_content p {
  246. font-size: 18px;
  247. }