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.

568 lines
12 KiB

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