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.

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