content.css 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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: rgba(0, 0, 0, .6);
  114. opacity: 0;
  115. }
  116. .photo:hover .overlay,
  117. .photo.active .overlay {
  118. opacity: 1;
  119. }
  120. .album .overlay h1,
  121. .photo .overlay h1 {
  122. min-height: 19px;
  123. width: 190px;
  124. margin: 153px 0px 3px 15px;
  125. color: #fff;
  126. font-size: 16px;
  127. font-weight: bold;
  128. overflow: hidden;
  129. }
  130. .album .overlay a,
  131. .photo .overlay a {
  132. font-size: 11px;
  133. color: #aaa;
  134. }
  135. .album .overlay a {
  136. margin-left: 15px;
  137. }
  138. .photo .overlay a {
  139. margin: 155px 0px 5px 15px;
  140. }
  141. /* Badges ------------------------------------------------*/
  142. .album .badge,
  143. .photo .badge {
  144. position: absolute;
  145. margin-top: -1px;
  146. margin-left: 12px;
  147. padding: 12px 7px 3px 7px;
  148. box-shadow: 0px 0px 3px #000;
  149. border-radius: 0px 0px 3px 3px;
  150. border: 1px solid #fff;
  151. border-top: none;
  152. color: #fff;
  153. font-size: 24px;
  154. text-shadow: 0px 1px 0px #000;
  155. opacity: .9;
  156. }
  157. .album .badge.icon-star,
  158. .photo .badge.icon-star {
  159. padding: 12px 8px 3px 8px;
  160. }
  161. .album .badge.icon-share,
  162. .photo .badge.icon-share {
  163. padding: 12px 6px 3px 8px;
  164. }
  165. .album .badge::after,
  166. .photo .badge::after {
  167. content: "";
  168. position: absolute;
  169. margin-top: -12px;
  170. margin-left: -26px;
  171. width: 38px;
  172. height: 5px;
  173. background: -moz-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%); /* FF3.6+ */
  174. background: -webkit-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */
  175. background: -ms-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%); /* IE10+ */
  176. background: linear-gradient(top, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%); /* W3C */
  177. opacity: .4;
  178. }
  179. .album .badge.icon-star::after,
  180. .photo .badge.icon-star::after {
  181. margin-left: -29px;
  182. }
  183. .album .badge.icon-share::after,
  184. .photo .badge.icon-share::after {
  185. margin-left: -31px;
  186. }
  187. .album .badge.icon-reorder::after {
  188. margin-left: -30px;
  189. }
  190. .album .badge:nth-child(2n),
  191. .photo .badge:nth-child(2n) {
  192. margin-left: 57px;
  193. }
  194. .album .badge.red,
  195. .photo .badge.red {
  196. background: #d64b4b;
  197. background: -webkit-linear-gradient(top, #d64b4b, #ab2c2c);
  198. background: -moz-linear-gradient(top, #d64b4b, #ab2c2c);
  199. background: -ms-linear-gradient(top, #d64b4b, #ab2c2c);
  200. }
  201. .album .badge.blue,
  202. .photo .badge.blue {
  203. background: #d64b4b;
  204. background: -webkit-linear-gradient(top, #347cd6, #2945ab);
  205. background: -moz-linear-gradient(top, #347cd6, #2945ab);
  206. background: -ms-linear-gradient(top, #347cd6, #2945ab);
  207. }
  208. /* Divider ------------------------------------------------*/
  209. .divider {
  210. float: left;
  211. width: 100%;
  212. margin-top: 50px;
  213. opacity: 0;
  214. border-top: 1px solid #2E2E2E;
  215. box-shadow: 0px -1px 0px #151515;
  216. }
  217. .divider:first-child {
  218. margin-top: 0px;
  219. border-top: none;
  220. }
  221. .divider h1 {
  222. float: left;
  223. margin: 20px 0px 0px 30px;
  224. color: #fff;
  225. font-size: 14px;
  226. font-weight: bold;
  227. text-shadow: 0px -1px 0px #000;
  228. }
  229. /* No Content ------------------------------------------------*/
  230. .no_content {
  231. position: absolute;
  232. top: 50%;
  233. left: 50%;
  234. height: 160px;
  235. width: 180px;
  236. margin-top: -80px;
  237. margin-left: -90px;
  238. padding-top: 20px;
  239. color: rgba(20, 20, 20, 1);
  240. text-shadow: 0px 1px 0px rgba(255, 255, 255, .05);
  241. text-align: center;
  242. }
  243. .no_content .icon {
  244. font-size: 120px;
  245. }
  246. .no_content p {
  247. font-size: 18px;
  248. }