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.

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