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.

370 lines
7.0 KiB

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