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.

640 lines
12 KiB

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