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.

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