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.

681 lines
12 KiB

  1. /*
  2. * # Semantic Item View
  3. * http://github.com/semantic-org/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. -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: right;
  121. color: rgba(0, 0, 0, 0.35);
  122. }
  123. .ui.items .item > .content > .meta + .name {
  124. float: left;
  125. }
  126. /*--------------
  127. Labels
  128. ---------------*/
  129. /*-----star----- */
  130. /* hover */
  131. .ui.items .item .star.label:hover::after {
  132. border-right-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-right-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-right-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-right-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. left: 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-right: 0.25em;
  189. vertical-align: middle;
  190. width: 2em;
  191. }
  192. .ui.items .item .extra .left {
  193. float: left;
  194. }
  195. .ui.items .item .extra .right {
  196. float: right;
  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(n+1):hover {
  211. border-bottom-color: #6ECFF5 !important;
  212. }
  213. .ui.items .item:nth-of-type(n+2):hover {
  214. border-bottom-color: #5C6166 !important;
  215. }
  216. .ui.items .item:nth-of-type(n+3):hover {
  217. border-bottom-color: #A1CF64 !important;
  218. }
  219. .ui.items .item:nth-of-type(n+4):hover {
  220. border-bottom-color: #D95C5C !important;
  221. }
  222. .ui.items .item:nth-of-type(n+5):hover {
  223. border-bottom-color: #564F8A !important;
  224. }
  225. .ui.items .item:nth-of-type(n+6):hover {
  226. border-bottom-color: #00B5AD !important;
  227. }
  228. /*******************************
  229. Variations
  230. *******************************/
  231. /*--------------
  232. Connected
  233. ---------------*/
  234. .ui.connected.items {
  235. display: table;
  236. width: 100%;
  237. margin-left: 0em !important;
  238. margin-right: 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 0em 0.33em;
  265. }
  266. .ui.connected.items > .row:last-child > .item:last-child,
  267. .ui.connected.items > .item:last-child {
  268. border-radius: 0em 0em 0.33em 0em;
  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-left: 2%;
  279. padding-right: 2%;
  280. }
  281. .ui.two.connected.items > .row > .item,
  282. .ui.two.connected.items > .item {
  283. width: 50%;
  284. padding-left: 1%;
  285. padding-right: 1%;
  286. }
  287. .ui.three.connected.items > .row > .item,
  288. .ui.three.connected.items > .item {
  289. width: 33.333%;
  290. padding-left: 1%;
  291. padding-right: 1%;
  292. }
  293. .ui.four.connected.items > .row > .item,
  294. .ui.four.connected.items > .item {
  295. width: 25%;
  296. padding-left: 0.5%;
  297. padding-right: 0.5%;
  298. }
  299. .ui.five.connected.items > .row > .item,
  300. .ui.five.connected.items > .item {
  301. width: 20%;
  302. padding-left: 0.5%;
  303. padding-right: 0.5%;
  304. }
  305. .ui.six.connected.items > .row > .item,
  306. .ui.six.connected.items > .item {
  307. width: 16.66%;
  308. padding-left: 0.5%;
  309. padding-right: 0.5%;
  310. }
  311. .ui.seven.connected.items > .row > .item,
  312. .ui.seven.connected.items > .item {
  313. width: 14.28%;
  314. padding-left: 0.5%;
  315. padding-right: 0.5%;
  316. }
  317. .ui.eight.connected.items > .row > .item,
  318. .ui.eight.connected.items > .item {
  319. width: 12.5%;
  320. padding-left: 0.25%;
  321. padding-right: 0.25%;
  322. }
  323. .ui.nine.connected.items > .row > .item,
  324. .ui.nine.connected.items > .item {
  325. width: 11.11%;
  326. padding-left: 0.25%;
  327. padding-right: 0.25%;
  328. }
  329. .ui.ten.connected.items > .row > .item,
  330. .ui.ten.connected.items > .item {
  331. width: 10%;
  332. padding-left: 0.2%;
  333. padding-right: 0.2%;
  334. }
  335. .ui.eleven.connected.items > .row > .item,
  336. .ui.eleven.connected.items > .item {
  337. width: 9.09%;
  338. padding-left: 0.2%;
  339. padding-right: 0.2%;
  340. }
  341. .ui.twelve.connected.items > .row > .item,
  342. .ui.twelve.connected.items > .item {
  343. width: 8.3333%;
  344. padding-left: 0.1%;
  345. padding-right: 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 .ui.items > .horizontal.item > .image {
  370. display: table-cell;
  371. width: 50%;
  372. }
  373. .ui.horizontal.items > .item > .image + .content,
  374. .ui.items > .horizontal.item > .image + .content {
  375. width: 50%;
  376. display: table-cell;
  377. }
  378. .ui.horizontal.items > .item > .content,
  379. .ui.items > .horizontal.item > .content {
  380. padding: 1% 1.7% 11% 3%;
  381. vertical-align: top;
  382. }
  383. .ui.horizontal.items > .item > .meta,
  384. .ui.items > .horizontal.item > .meta {
  385. position: absolute;
  386. padding: 0%;
  387. bottom: 7%;
  388. left: 3%;
  389. width: 94%;
  390. }
  391. .ui.horizontal.items > .item > .image + .content + .meta,
  392. .ui.items > .horizontal.item > .image + .content + .meta {
  393. bottom: 7%;
  394. left: 53%;
  395. width: 44%;
  396. }
  397. .ui.horizontal.items > .item .avatar,
  398. .ui.items > .horizontal.item .avatar {
  399. width: 11.5%;
  400. }
  401. .ui.items > .item .avatar {
  402. max-width: 25px;
  403. }
  404. /*--------------
  405. Item Count
  406. ---------------*/
  407. .ui.one.items {
  408. margin-left: -2%;
  409. margin-right: -2%;
  410. }
  411. .ui.one.items > .item {
  412. width: 100%;
  413. margin-left: 2%;
  414. margin-right: 2%;
  415. }
  416. .ui.two.items {
  417. margin-left: -1%;
  418. margin-right: -1%;
  419. }
  420. .ui.two.items > .item {
  421. width: 48%;
  422. margin-left: 1%;
  423. margin-right: 1%;
  424. }
  425. .ui.two.items > .item:nth-child(2n+1) {
  426. clear: left;
  427. }
  428. .ui.three.items {
  429. margin-left: -1%;
  430. margin-right: -1%;
  431. }
  432. .ui.three.items > .item {
  433. width: 31.333%;
  434. margin-left: 1%;
  435. margin-right: 1%;
  436. }
  437. .ui.three.items > .item:nth-child(3n+1) {
  438. clear: left;
  439. }
  440. .ui.four.items {
  441. margin-left: -0.5%;
  442. margin-right: -0.5%;
  443. }
  444. .ui.four.items > .item {
  445. width: 24%;
  446. margin-left: 0.5%;
  447. margin-right: 0.5%;
  448. }
  449. .ui.four.items > .item:nth-child(4n+1) {
  450. clear: left;
  451. }
  452. .ui.five.items {
  453. margin-left: -0.5%;
  454. margin-right: -0.5%;
  455. }
  456. .ui.five.items > .item {
  457. width: 19%;
  458. margin-left: 0.5%;
  459. margin-right: 0.5%;
  460. }
  461. .ui.five.items > .item:nth-child(5n+1) {
  462. clear: left;
  463. }
  464. .ui.six.items {
  465. margin-left: -0.5%;
  466. margin-right: -0.5%;
  467. }
  468. .ui.six.items > .item {
  469. width: 15.66%;
  470. margin-left: 0.5%;
  471. margin-right: 0.5%;
  472. }
  473. .ui.six.items > .item:nth-child(6n+1) {
  474. clear: left;
  475. }
  476. .ui.seven.items {
  477. margin-left: -0.5%;
  478. margin-right: -0.5%;
  479. }
  480. .ui.seven.items > .item {
  481. width: 13.28%;
  482. margin-left: 0.5%;
  483. margin-right: 0.5%;
  484. font-size: 11px;
  485. }
  486. .ui.seven.items > .item:nth-child(7n+1) {
  487. clear: left;
  488. }
  489. .ui.eight.items {
  490. margin-left: -0.25%;
  491. margin-right: -0.25%;
  492. }
  493. .ui.eight.items > .item {
  494. width: 12.0%;
  495. margin-left: 0.25%;
  496. margin-right: 0.25%;
  497. font-size: 11px;
  498. }
  499. .ui.eight.items > .item:nth-child(8n+1) {
  500. clear: left;
  501. }
  502. .ui.nine.items {
  503. margin-left: -0.25%;
  504. margin-right: -0.25%;
  505. }
  506. .ui.nine.items > .item {
  507. width: 10.61%;
  508. margin-left: 0.25%;
  509. margin-right: 0.25%;
  510. font-size: 10px;
  511. }
  512. .ui.nine.items > .item:nth-child(9n+1) {
  513. clear: left;
  514. }
  515. .ui.ten.items {
  516. margin-left: -0.2%;
  517. margin-right: -0.2%;
  518. }
  519. .ui.ten.items > .item {
  520. width: 9.6%;
  521. margin-left: 0.2%;
  522. margin-right: 0.2%;
  523. font-size: 10px;
  524. }
  525. .ui.ten.items > .item:nth-child(10n+1) {
  526. clear: left;
  527. }
  528. .ui.eleven.items {
  529. margin-left: -0.2%;
  530. margin-right: -0.2%;
  531. }
  532. .ui.eleven.items > .item {
  533. width: 8.69%;
  534. margin-left: 0.2%;
  535. margin-right: 0.2%;
  536. font-size: 9px;
  537. }
  538. .ui.eleven.items > .item:nth-child(11n+1) {
  539. clear: left;
  540. }
  541. .ui.twelve.items {
  542. margin-left: -0.1%;
  543. margin-right: -0.1%;
  544. }
  545. .ui.twelve.items > .item {
  546. width: 8.1333%;
  547. margin-left: 0.1%;
  548. margin-right: 0.1%;
  549. font-size: 9px;
  550. }
  551. .ui.twelve.items > .item:nth-child(12n+1) {
  552. clear: left;
  553. }