content.css 6.9 KB

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