content.css 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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: 185px;
  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. .photo .overlay a span {
  146. margin: 0px 5px 0px 0px;
  147. }
  148. /* Badges ------------------------------------------------*/
  149. .album .badge,
  150. .photo .badge {
  151. position: absolute;
  152. margin-top: -1px;
  153. margin-left: 12px;
  154. padding: 12px 7px 3px 7px;
  155. box-shadow: 0px 0px 3px rgba(0, 0, 0, .8);
  156. border-radius: 0px 0px 3px 3px;
  157. border: 1px solid #fff;
  158. border-top: none;
  159. color: #fff;
  160. font-size: 24px;
  161. text-shadow: 0px 1px 0px rgba(0, 0, 0, .4);
  162. opacity: .9;
  163. }
  164. .album .badge.icon-star,
  165. .photo .badge.icon-star {
  166. padding: 12px 8px 3px 8px;
  167. }
  168. .album .badge.icon-share,
  169. .photo .badge.icon-share {
  170. padding: 12px 6px 3px 8px;
  171. }
  172. .album .badge.icon-time,
  173. .photo .badge.icon-time {
  174. padding: 12px 8px 3px 9px;
  175. }
  176. .album .badge::after,
  177. .photo .badge::after {
  178. content: "";
  179. position: absolute;
  180. margin-top: -12px;
  181. margin-left: -26px;
  182. width: 38px;
  183. height: 5px;
  184. background: -moz-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%); /* FF3.6+ */
  185. background: -webkit-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */
  186. background: -ms-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%); /* IE10+ */
  187. background: linear-gradient(top, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%); /* W3C */
  188. opacity: .4;
  189. }
  190. .album .badge.icon-star::after,
  191. .photo .badge.icon-star::after {
  192. margin-left: -29px;
  193. }
  194. .album .badge.icon-share::after,
  195. .photo .badge.icon-share::after {
  196. margin-left: -31px;
  197. }
  198. .album .badge.icon-time::after,
  199. .photo .badge.icon-time::after {
  200. margin-left: -29px;
  201. }
  202. .album .badge.icon-reorder::after {
  203. margin-left: -30px;
  204. }
  205. .album .badge:nth-child(2n),
  206. .photo .badge:nth-child(2n) {
  207. margin-left: 57px;
  208. }
  209. .album .badge.red,
  210. .photo .badge.red {
  211. background: #d64b4b;
  212. background: -webkit-linear-gradient(top, #d64b4b, #ab2c2c);
  213. background: -moz-linear-gradient(top, #d64b4b, #ab2c2c);
  214. background: -ms-linear-gradient(top, #d64b4b, #ab2c2c);
  215. }
  216. .album .badge.blue,
  217. .photo .badge.blue {
  218. background: #d64b4b;
  219. background: -webkit-linear-gradient(top, #347cd6, #2945ab);
  220. background: -moz-linear-gradient(top, #347cd6, #2945ab);
  221. background: -ms-linear-gradient(top, #347cd6, #2945ab);
  222. }
  223. /* Divider ------------------------------------------------*/
  224. .divider {
  225. float: left;
  226. width: 100%;
  227. margin-top: 50px;
  228. opacity: 0;
  229. border-top: 1px solid #2E2E2E;
  230. box-shadow: 0px -1px 0px #151515;
  231. }
  232. .divider:first-child {
  233. margin-top: 0px;
  234. border-top: none;
  235. }
  236. .divider h1 {
  237. float: left;
  238. margin: 20px 0px 0px 30px;
  239. color: #fff;
  240. font-size: 14px;
  241. font-weight: bold;
  242. text-shadow: 0px -1px 0px rgba(0, 0, 0, .8);
  243. }
  244. /* No Content ------------------------------------------------*/
  245. .no_content {
  246. position: absolute;
  247. top: 50%;
  248. left: 50%;
  249. height: 160px;
  250. width: 180px;
  251. margin-top: -80px;
  252. margin-left: -90px;
  253. padding-top: 20px;
  254. color: rgba(20, 20, 20, 1);
  255. text-shadow: 0px 1px 0px rgba(255, 255, 255, .05);
  256. text-align: center;
  257. }
  258. .no_content .icon {
  259. font-size: 120px;
  260. }
  261. .no_content p {
  262. font-size: 18px;
  263. }