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.

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