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.

330 lines
7.0 KiB

11 years ago
11 years ago
  1. /*******************************
  2. UI Items (Views)
  3. *******************************/
  4. /*--------------
  5. Sizing
  6. ---------------*/
  7. .ui.items > .item {
  8. float: left;
  9. display: block;
  10. width: 100%;
  11. margin: 0%;
  12. font-size: 1em;
  13. -webkit-box-sizing: border-box;
  14. -moz-box-sizing: border-box;
  15. -ms-box-sizing: border-box;
  16. box-sizing: border-box;
  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. .ui.two.items {
  28. margin-left: -1%;
  29. margin-right: -1%;
  30. }
  31. .ui.two.items > .item {
  32. width: 48%;
  33. margin-left: 1%;
  34. margin-right: 1%;
  35. }
  36. .ui.two.items > .item:nth-child(2n+1) {
  37. clear: left;
  38. }
  39. .ui.three.items {
  40. margin-left: -1%;
  41. margin-right: -1%;
  42. }
  43. .ui.three.items > .item {
  44. width: 31.333%;
  45. margin-left: 1%;
  46. margin-right: 1%;
  47. }
  48. .ui.three.items > .item:nth-child(3n+1) {
  49. clear: left;
  50. }
  51. .ui.four.items {
  52. margin-left: -0.5%;
  53. margin-right: -0.5%;
  54. }
  55. .ui.four.items > .item {
  56. width: 24%;
  57. margin-left: 0.5%;
  58. margin-right: 0.5%;
  59. }
  60. .ui.four.items > .item:nth-child(4n+1) {
  61. clear: left;
  62. }
  63. .ui.five.items {
  64. margin-left: -0.5%;
  65. margin-right: -0.5%;
  66. }
  67. .ui.five.items > .item {
  68. width: 19%;
  69. margin-left: 0.5%;
  70. margin-right: 0.5%;
  71. }
  72. .ui.five.items > .item:nth-child(5n+1) {
  73. clear: left;
  74. }
  75. .ui.six.items {
  76. margin-left: -0.5%;
  77. margin-right: -0.5%;
  78. }
  79. .ui.six.items > .item {
  80. width: 15.66%;
  81. margin-left: 0.5%;
  82. margin-right: 0.5%;
  83. }
  84. .ui.six.items > .item:nth-child(6n+1) {
  85. clear: left;
  86. }
  87. .ui.seven.items {
  88. margin-left: -0.5%;
  89. margin-right: -0.5%;
  90. }
  91. .ui.seven.items > .item {
  92. width: 13.28%;
  93. margin-left: 0.5%;
  94. margin-right: 0.5%;
  95. font-size: 11px;
  96. }
  97. .ui.seven.items > .item:nth-child(7n+1) {
  98. clear: left;
  99. }
  100. .ui.eight.items {
  101. margin-left: -0.25%;
  102. margin-right: -0.25%;
  103. }
  104. .ui.eight.items > .item {
  105. width: 12.0%;
  106. margin-left: 0.25%;
  107. margin-right: 0.25%;
  108. font-size: 11px;
  109. }
  110. .ui.eight.items > .item:nth-child(8n+1) {
  111. clear: left;
  112. }
  113. .ui.nine.items {
  114. margin-left: -0.25%;
  115. margin-right: -0.25%;
  116. }
  117. .ui.nine.items > .item {
  118. width: 10.61%;
  119. margin-left: 0.25%;
  120. margin-right: 0.25%;
  121. font-size: 10px;
  122. }
  123. .ui.nine.items > .item:nth-child(9n+1) {
  124. clear: left;
  125. }
  126. .ui.ten.items {
  127. margin-left: -0.2%;
  128. margin-right: -0.2%;
  129. }
  130. .ui.ten.items > .item {
  131. width: 9.6%;
  132. margin-left: 0.2%;
  133. margin-right: 0.2%;
  134. font-size: 10px;
  135. }
  136. .ui.ten.items > .item:nth-child(10n+1) {
  137. clear: left;
  138. }
  139. .ui.eleven.items {
  140. margin-left: -0.2%;
  141. margin-right: -0.2%;
  142. }
  143. .ui.eleven.items > .item {
  144. width: 8.69%;
  145. margin-left: 0.2%;
  146. margin-right: 0.2%;
  147. font-size: 9px;
  148. }
  149. .ui.eleven.items > .item:nth-child(11n+1) {
  150. clear: left;
  151. }
  152. .ui.twelve.items {
  153. margin-left: -0.1%;
  154. margin-right: -0.1%;
  155. }
  156. .ui.twelve.items > .item {
  157. width: 8.1333%;
  158. margin-left: 0.1%;
  159. margin-right: 0.1%;
  160. font-size: 9px;
  161. }
  162. .ui.twelve.items > .item:nth-child(12n+1) {
  163. clear: left;
  164. }
  165. /*******************************
  166. Items
  167. *******************************/
  168. .ui.items {
  169. margin-top: 15px;
  170. margin-bottom: 15px;
  171. padding: 0px;
  172. }
  173. .ui.items > .item,
  174. .ui.items > .item > .image,
  175. .ui.items > .item > .image .overlay,
  176. .ui.items > .item > .content,
  177. .ui.items > .item > .extra {
  178. -webkit-box-sizing: border-box;
  179. -moz-box-sizing: border-box;
  180. -ms-box-sizing: border-box;
  181. box-sizing: border-box;
  182. }
  183. .ui.items > .item {
  184. display: block;
  185. position: relative;
  186. margin: 0.5em 0em;
  187. min-height: 3em;
  188. background-color: #FFFFFF;
  189. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  190. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  191. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  192. -moz-border-radius: 0.33em;
  193. -webkit-border-radius: 0.33em;
  194. border-radius: 0.33em;
  195. padding: 0.5em;
  196. }
  197. .ui.items > .item > .image {
  198. background-color: rgba(0, 0, 0, 0.05);
  199. display: table-cell;
  200. -webkit-box-sizing: border-box;
  201. -moz-box-sizing: border-box;
  202. -ms-box-sizing: border-box;
  203. box-sizing: border-box;
  204. }
  205. .ui.items > .item > .image > a,
  206. .ui.items > .item > .image > img {
  207. position: relative;
  208. display: block;
  209. width: 100%;
  210. overflow: hidden;
  211. -webkit-border-radius: 3px;
  212. -moz-border-radius: 3px;
  213. border-radius: 3px;
  214. }
  215. .ui.items > .item > .image > a:after {
  216. position: absolute;
  217. display: block;
  218. content: '';
  219. z-index: 2;
  220. top: 0px;
  221. left: 0px;
  222. width: 100%;
  223. height: 100%;
  224. -webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2) inset;
  225. -moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2) inset;
  226. box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2) inset;
  227. }
  228. .ui.items > .item > .image > .overlay {
  229. position: absolute;
  230. bottom: 0px;
  231. left: 0px;
  232. background: transparent -webkit-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  233. background: transparent -moz-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  234. background: transparent -o-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  235. background: transparent -ms-linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  236. background: transparent linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  237. padding: 3% 2.5%;
  238. width: 100%;
  239. font-size: 1em;
  240. font-weight: bold;
  241. color: #FFFFFF;
  242. text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.6);
  243. }
  244. .ui.items > .item > .image > .overlay i {
  245. font-size: 1.3em;
  246. font-weight: bold;
  247. }
  248. /* Content */
  249. .ui.items > .item > .content {
  250. padding: 4% 1% 6%;
  251. color: #888888;
  252. }
  253. .ui.items > .item > .content > .name,
  254. .ui.items > .item > .content > .title {
  255. display: block;
  256. margin-bottom: 0.3em;
  257. font-size: 1.25em;
  258. font-weight: bold;
  259. }
  260. .ui.items > .item > .content p {
  261. line-height: 1.33;
  262. margin: 0% 0% 5%;
  263. }
  264. .ui.items > .item > .content :last-child {
  265. margin-bottom: 0%;
  266. }
  267. /* Optional Content */
  268. .ui.items > .item > .extra {
  269. color: #C6C7C9;
  270. padding: 0% 1% 1%;
  271. }
  272. .ui.items > .item > .extra img {
  273. display: inline-block;
  274. vertical-align: middle;
  275. }
  276. .ui.items > .item .avatar {
  277. display: inline-block;
  278. width: 5.5%;
  279. min-width: 15px;
  280. margin-right: 0.2em;
  281. vertical-align: middle;
  282. }
  283. /*******************************
  284. Table Items
  285. *******************************/
  286. .ui.horizontal.items > .item,
  287. .ui.items > .horizontal.item {
  288. display: table;
  289. }
  290. /* prevents reflow bug in chrome by targeting webkit browser */
  291. @media screen and (-webkit-min-device-pixel-ratio: 0) {
  292. .ui.items > .item {
  293. display: block;
  294. }
  295. }
  296. .ui.horizontal.items > .item > .image .ui.items > .horizontal.item > .image {
  297. display: table-cell;
  298. width: 50%;
  299. }
  300. .ui.horizontal.items > .item > .image + .content,
  301. .ui.items > .horizontal.item > .image + .content {
  302. width: 50%;
  303. display: table-cell;
  304. }
  305. .ui.horizontal.items > .item > .content,
  306. .ui.items > .horizontal.item > .content {
  307. padding: 1% 1.7% 11% 3%;
  308. vertical-align: top;
  309. }
  310. .ui.horizontal.items > .item > .extra,
  311. .ui.items > .horizontal.item > .extra {
  312. position: absolute;
  313. padding: 0%;
  314. bottom: 7%;
  315. left: 3%;
  316. width: 94%;
  317. }
  318. .ui.horizontal.items > .item > .image + .content + .extra,
  319. .ui.items > .horizontal.item > .image + .content + .extra {
  320. bottom: 7%;
  321. left: 53%;
  322. width: 44%;
  323. }
  324. .ui.horizontal.items > .item .avatar,
  325. .ui.items > .horizontal.item .avatar {
  326. width: 11.5%;
  327. }
  328. .ui.items > .item .avatar {
  329. max-width: 25px;
  330. }