You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

519 lines
10 KiB

  1. /*
  2. * # Semantic Item View
  3. * http://github.com/quirkyinc/semantic
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. * Released: April 17 2013
  11. */
  12. /*******************************
  13. Standard
  14. *******************************/
  15. /*--------------
  16. Items
  17. ---------------*/
  18. /* Force Clearing */
  19. .ui.items:after {
  20. display: block;
  21. content: ' ';
  22. height: 0px;
  23. clear: both;
  24. overflow: hidden;
  25. visibility: hidden;
  26. }
  27. /* prevents reflow bug in chrome by targeting webkit browser */
  28. @media screen and (-webkit-min-device-pixel-ratio: 0) {
  29. .ui.items > .item {
  30. display: block;
  31. }
  32. }
  33. /*--------------
  34. Item
  35. ---------------*/
  36. .ui.items .item {
  37. float: left;
  38. display: block;
  39. margin: 1em 0.5em 2.5em;
  40. padding: 0em;
  41. width: 100%;
  42. margin: 0%;
  43. font-size: 1em;
  44. line-height: 1.2;
  45. -webkit-box-sizing: border-box;
  46. -moz-box-sizing: border-box;
  47. -ms-box-sizing: border-box;
  48. box-sizing: border-box;
  49. }
  50. .ui.items .item a {
  51. cursor: pointer;
  52. }
  53. .ui.items .item > .image,
  54. .ui.items .item > .image .overlay,
  55. .ui.items .item > .content,
  56. .ui.items .item > .meta {
  57. -webkit-box-sizing: border-box;
  58. -moz-box-sizing: border-box;
  59. -ms-box-sizing: border-box;
  60. box-sizing: border-box;
  61. }
  62. .ui.items .item {
  63. display: block;
  64. position: relative;
  65. width: 316px;
  66. min-height: 375px;
  67. margin: 1em 0.5em;
  68. background-color: #FFFFFF;
  69. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  70. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  71. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  72. border-bottom: 0.2em solid rgba(0, 0, 0, 0.2);
  73. -moz-border-radius: 0.33em;
  74. -webkit-border-radius: 0.33em;
  75. border-radius: 0.33em;
  76. padding: 0.5em;
  77. }
  78. /*--------------
  79. Images
  80. ---------------*/
  81. .ui.items .item > .image {
  82. display: block;
  83. position: relative;
  84. background-color: rgba(0, 0, 0, 0.05);
  85. -webkit-box-sizing: border-box;
  86. -moz-box-sizing: border-box;
  87. -ms-box-sizing: border-box;
  88. box-sizing: border-box;
  89. }
  90. .ui.items .item > .image > img {
  91. position: relative;
  92. display: block;
  93. width: 100%;
  94. overflow: hidden;
  95. -webkit-border-radius: 0.22em;
  96. -moz-border-radius: 0.22em;
  97. border-radius: 0.22em;
  98. }
  99. /*--------------
  100. Image Labels
  101. ---------------*/
  102. .ui.items .item .label:after {
  103. position: absolute;
  104. content: "";
  105. right: 0em;
  106. top: 0em;
  107. z-index: -1;
  108. width: 0em;
  109. height: 0em;
  110. border-color: transparent #F5F5F5 transparent transparent;
  111. border-style: solid;
  112. border-width: 0em 2.75em 2.75em 0em;
  113. }
  114. .ui.items .item .label {
  115. position: absolute;
  116. top: 0em;
  117. right: 0em;
  118. z-index: 10;
  119. width: 1.4em;
  120. height: 1.5em;
  121. padding: 0.1em 0.1em 0em 0em;
  122. color: #AAAAAA;
  123. font-size: 0.9em;
  124. text-align: center;
  125. }
  126. /* Hover */
  127. .ui.items .item a.label:hover {
  128. color: #999999;
  129. }
  130. .ui.items .item a.label:hover::after {
  131. border-right-color: #EEEEEE;
  132. }
  133. /*--------------
  134. Star Label
  135. ---------------*/
  136. /* hover */
  137. .ui.items .item a.star.label:hover::after {
  138. border-right-color: #F6EFC3;
  139. }
  140. .ui.items .item a.star.label:hover .icon {
  141. color: #ac9400;
  142. }
  143. /* active */
  144. .ui.items .item a.star.label.active::after {
  145. border-right-color: #F6EFC3;
  146. }
  147. .ui.items .item a.star.label.active .icon {
  148. color: #ac9400;
  149. }
  150. /*--------------
  151. Like Label
  152. ---------------*/
  153. /* hover */
  154. .ui.items .item a.like.label:hover::after {
  155. border-right-color: #F5E1E2;
  156. }
  157. .ui.items .item a.like.label:hover .icon {
  158. color: #ef404a;
  159. }
  160. /* active */
  161. .ui.items .item a.like.label.active::after {
  162. border-right-color: #F5E1E2;
  163. }
  164. .ui.items .item a.like.label.active .icon {
  165. color: #ef404a;
  166. }
  167. /*--------------
  168. Common Labels
  169. ---------------*/
  170. .ui.items .item a.label:hover .like {
  171. color: #EF404A;
  172. }
  173. .ui.items .item a.label:hover .star {
  174. color: #928D44;
  175. }
  176. /*--------------
  177. Content
  178. ---------------*/
  179. .ui.items .item > .content {
  180. padding: 0.75em 0.5em;
  181. }
  182. .ui.items .item > .content > .name {
  183. display: block;
  184. font-size: 1.25em;
  185. font-weight: bold;
  186. margin-bottom: 0.2em;
  187. color: rgba(0, 0, 0, 0.7);
  188. }
  189. .ui.items .item > .content > .description {
  190. clear: both;
  191. margin: 0em 0em;
  192. color: rgba(0, 0, 0, 0.45);
  193. }
  194. .ui.items .item > .content > .description p {
  195. margin: 0em 0em 0.2em;
  196. }
  197. .ui.items .item > .content > .description p:last-child {
  198. margin-bottom: 0em;
  199. }
  200. /*--------------
  201. Meta
  202. ---------------*/
  203. .ui.items .item .meta {
  204. float: right;
  205. color: rgba(0, 0, 0, 0.35);
  206. }
  207. .ui.items .item > .content > .meta + .name {
  208. float: left;
  209. }
  210. /*--------------
  211. Extra
  212. ---------------*/
  213. .ui.items .item .extra {
  214. position: absolute;
  215. bottom: -2em;
  216. left: 0.5em;
  217. height: 1.5em;
  218. color: rgba(0, 0, 0, 0.25);
  219. }
  220. .ui.items .item .extra > img {
  221. display: inline-block;
  222. border-radius: 500px 500px 500px 500px;
  223. margin-right: 0.25em;
  224. vertical-align: middle;
  225. width: 2em;
  226. }
  227. .ui.items .item .extra .left {
  228. float: left;
  229. }
  230. .ui.items .item .extra .right {
  231. float: right;
  232. }
  233. /*******************************
  234. Variations
  235. *******************************/
  236. /*--------------
  237. Connected
  238. ---------------*/
  239. .ui.connected.items {
  240. display: table;
  241. width: 100%;
  242. margin-left: 0em !important;
  243. margin-right: 0em !important;
  244. }
  245. .ui.connected.items > .row > .item,
  246. .ui.connected.items > .item {
  247. float: none;
  248. display: table-cell;
  249. vertical-align: top;
  250. height: auto;
  251. border-radius: 0px;
  252. margin: 0em;
  253. width: 33.33%;
  254. border-bottom: none;
  255. }
  256. .ui.connected.items > .row {
  257. display: table-row;
  258. }
  259. .ui.connected.items > .item,
  260. .ui.connected.items > .row:last-child > .item {
  261. border-bottom: 0.2em solid rgba(0, 0, 0, 0.2);
  262. }
  263. .ui.connected.items > .row:last-child > .item:first-child,
  264. .ui.connected.items > .item:first-child {
  265. border-radius: 0em 0em 0em 0.33em;
  266. }
  267. .ui.connected.items > .row:last-child > .item:last-child,
  268. .ui.connected.items > .item:last-child {
  269. border-radius: 0em 0em 0.33em 0em;
  270. }
  271. .ui.two.connected.items > .row > .item,
  272. .ui.two.connected.items > .item {
  273. width: 50%;
  274. padding-left: 1%;
  275. padding-right: 1%;
  276. }
  277. .ui.three.connected.items > .row > .item,
  278. .ui.three.connected.items > .item {
  279. width: 33.333%;
  280. padding-left: 1%;
  281. padding-right: 1%;
  282. }
  283. .ui.four.connected.items > .row > .item,
  284. .ui.four.connected.items > .item {
  285. width: 25%;
  286. padding-left: 0.5%;
  287. padding-right: 0.5%;
  288. }
  289. .ui.five.connected.items > .row > .item,
  290. .ui.five.connected.items > .item {
  291. width: 20%;
  292. padding-left: 0.5%;
  293. padding-right: 0.5%;
  294. }
  295. .ui.six.connected.items > .row > .item,
  296. .ui.six.connected.items > .item {
  297. width: 16.66%;
  298. padding-left: 0.5%;
  299. padding-right: 0.5%;
  300. }
  301. .ui.seven.connected.items > .row > .item,
  302. .ui.seven.connected.items > .item {
  303. width: 14.28%;
  304. padding-left: 0.5%;
  305. padding-right: 0.5%;
  306. }
  307. .ui.eight.connected.items > .row > .item,
  308. .ui.eight.connected.items > .item {
  309. width: 12.5%;
  310. padding-left: 0.25%;
  311. padding-right: 0.25%;
  312. }
  313. .ui.nine.connected.items > .row > .item,
  314. .ui.nine.connected.items > .item {
  315. width: 11.11%;
  316. padding-left: 0.25%;
  317. padding-right: 0.25%;
  318. }
  319. .ui.ten.connected.items > .row > .item,
  320. .ui.ten.connected.items > .item {
  321. width: 10%;
  322. padding-left: 0.2%;
  323. padding-right: 0.2%;
  324. }
  325. .ui.eleven.connected.items > .row > .item,
  326. .ui.eleven.connected.items > .item {
  327. width: 9.09%;
  328. padding-left: 0.2%;
  329. padding-right: 0.2%;
  330. }
  331. .ui.twelve.connected.items > .row > .item,
  332. .ui.twelve.connected.items > .item {
  333. width: 8.3333%;
  334. padding-left: 0.1%;
  335. padding-right: 0.1%;
  336. }
  337. /*--------------
  338. Horizontal
  339. ---------------*/
  340. .ui.horizontal.items > .item,
  341. .ui.items > .horizontal.item {
  342. display: table;
  343. }
  344. .ui.horizontal.items > .item > .image .ui.items > .horizontal.item > .image {
  345. display: table-cell;
  346. width: 50%;
  347. }
  348. .ui.horizontal.items > .item > .image + .content,
  349. .ui.items > .horizontal.item > .image + .content {
  350. width: 50%;
  351. display: table-cell;
  352. }
  353. .ui.horizontal.items > .item > .content,
  354. .ui.items > .horizontal.item > .content {
  355. padding: 1% 1.7% 11% 3%;
  356. vertical-align: top;
  357. }
  358. .ui.horizontal.items > .item > .meta,
  359. .ui.items > .horizontal.item > .meta {
  360. position: absolute;
  361. padding: 0%;
  362. bottom: 7%;
  363. left: 3%;
  364. width: 94%;
  365. }
  366. .ui.horizontal.items > .item > .image + .content + .meta,
  367. .ui.items > .horizontal.item > .image + .content + .meta {
  368. bottom: 7%;
  369. left: 53%;
  370. width: 44%;
  371. }
  372. .ui.horizontal.items > .item .avatar,
  373. .ui.items > .horizontal.item .avatar {
  374. width: 11.5%;
  375. }
  376. .ui.items > .item .avatar {
  377. max-width: 25px;
  378. }
  379. /*--------------
  380. Item Count
  381. ---------------*/
  382. .ui.two.items {
  383. margin-left: -1%;
  384. margin-right: -1%;
  385. }
  386. .ui.two.items > .item {
  387. width: 48%;
  388. margin-left: 1%;
  389. margin-right: 1%;
  390. }
  391. .ui.two.items > .item:nth-child(2n+1) {
  392. clear: left;
  393. }
  394. .ui.three.items {
  395. margin-left: -1%;
  396. margin-right: -1%;
  397. }
  398. .ui.three.items > .item {
  399. width: 31.333%;
  400. margin-left: 1%;
  401. margin-right: 1%;
  402. }
  403. .ui.three.items > .item:nth-child(3n+1) {
  404. clear: left;
  405. }
  406. .ui.four.items {
  407. margin-left: -0.5%;
  408. margin-right: -0.5%;
  409. }
  410. .ui.four.items > .item {
  411. width: 24%;
  412. margin-left: 0.5%;
  413. margin-right: 0.5%;
  414. }
  415. .ui.four.items > .item:nth-child(4n+1) {
  416. clear: left;
  417. }
  418. .ui.five.items {
  419. margin-left: -0.5%;
  420. margin-right: -0.5%;
  421. }
  422. .ui.five.items > .item {
  423. width: 19%;
  424. margin-left: 0.5%;
  425. margin-right: 0.5%;
  426. }
  427. .ui.five.items > .item:nth-child(5n+1) {
  428. clear: left;
  429. }
  430. .ui.six.items {
  431. margin-left: -0.5%;
  432. margin-right: -0.5%;
  433. }
  434. .ui.six.items > .item {
  435. width: 15.66%;
  436. margin-left: 0.5%;
  437. margin-right: 0.5%;
  438. }
  439. .ui.six.items > .item:nth-child(6n+1) {
  440. clear: left;
  441. }
  442. .ui.seven.items {
  443. margin-left: -0.5%;
  444. margin-right: -0.5%;
  445. }
  446. .ui.seven.items > .item {
  447. width: 13.28%;
  448. margin-left: 0.5%;
  449. margin-right: 0.5%;
  450. font-size: 11px;
  451. }
  452. .ui.seven.items > .item:nth-child(7n+1) {
  453. clear: left;
  454. }
  455. .ui.eight.items {
  456. margin-left: -0.25%;
  457. margin-right: -0.25%;
  458. }
  459. .ui.eight.items > .item {
  460. width: 12.0%;
  461. margin-left: 0.25%;
  462. margin-right: 0.25%;
  463. font-size: 11px;
  464. }
  465. .ui.eight.items > .item:nth-child(8n+1) {
  466. clear: left;
  467. }
  468. .ui.nine.items {
  469. margin-left: -0.25%;
  470. margin-right: -0.25%;
  471. }
  472. .ui.nine.items > .item {
  473. width: 10.61%;
  474. margin-left: 0.25%;
  475. margin-right: 0.25%;
  476. font-size: 10px;
  477. }
  478. .ui.nine.items > .item:nth-child(9n+1) {
  479. clear: left;
  480. }
  481. .ui.ten.items {
  482. margin-left: -0.2%;
  483. margin-right: -0.2%;
  484. }
  485. .ui.ten.items > .item {
  486. width: 9.6%;
  487. margin-left: 0.2%;
  488. margin-right: 0.2%;
  489. font-size: 10px;
  490. }
  491. .ui.ten.items > .item:nth-child(10n+1) {
  492. clear: left;
  493. }
  494. .ui.eleven.items {
  495. margin-left: -0.2%;
  496. margin-right: -0.2%;
  497. }
  498. .ui.eleven.items > .item {
  499. width: 8.69%;
  500. margin-left: 0.2%;
  501. margin-right: 0.2%;
  502. font-size: 9px;
  503. }
  504. .ui.eleven.items > .item:nth-child(11n+1) {
  505. clear: left;
  506. }
  507. .ui.twelve.items {
  508. margin-left: -0.1%;
  509. margin-right: -0.1%;
  510. }
  511. .ui.twelve.items > .item {
  512. width: 8.1333%;
  513. margin-left: 0.1%;
  514. margin-right: 0.1%;
  515. font-size: 9px;
  516. }
  517. .ui.twelve.items > .item:nth-child(12n+1) {
  518. clear: left;
  519. }