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.

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