content.css 6.8 KB

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