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.

556 lines
12 KiB

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