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.

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