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.

552 lines
11 KiB

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