_dashboard.less 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. .dashboard {
  2. padding-top: @15;
  3. padding-bottom: @footer-margin * 2;
  4. &.feeds,
  5. &.issues {
  6. .context.user.menu {
  7. z-index: 101;
  8. min-width: 200px;
  9. .ui.header {
  10. font-size: 1rem;
  11. text-transform: none;
  12. text-align: left;
  13. }
  14. }
  15. .filter.menu {
  16. .item {
  17. text-align: left;
  18. .text {
  19. height: 16px;
  20. vertical-align: middle;
  21. &.truncate {
  22. width: 85%;
  23. }
  24. }
  25. .floating.label {
  26. top: 7px;
  27. left: 90%;
  28. width: 15%;
  29. }
  30. }
  31. // Sort
  32. .jump.item {
  33. margin: 1px;
  34. padding-right: 0;
  35. }
  36. .menu {
  37. max-height: 300px;
  38. overflow-x: auto;
  39. right: 0!important;
  40. left: auto!important;
  41. }
  42. }
  43. .ui.right .head.menu {
  44. margin-top: -5px;
  45. .item.active {
  46. color: #d9453d;
  47. }
  48. }
  49. }
  50. &.sponsor {
  51. background: #fcf8e9;
  52. center {
  53. padding: @15;
  54. div {
  55. background: #dee4ff;
  56. color: #0a0a0a;
  57. display: inline-block;
  58. padding: 2px 6px;
  59. font-weight: 500;
  60. margin-top: 10px;
  61. &:hover {
  62. background: #e5e9ff;
  63. }
  64. }
  65. }
  66. &.divider {
  67. border-top: 2px solid #ececec;
  68. font-size: 0.84em;
  69. color: #666666;
  70. }
  71. }
  72. &.no-activity {
  73. margin-top: @25 !important;
  74. }
  75. &.prompt {
  76. background-image: linear-gradient(226deg, rgba(255, 255, 255, 0) 0%, #fff), linear-gradient(70deg, #eaf5ff 0%, #f6fff8);
  77. }
  78. }
  79. .bootcamp {
  80. .alg {
  81. margin-bottom: 2em !important;
  82. }
  83. .head {
  84. padding-top: 7px !important;
  85. padding-bottom: 7px !important;
  86. }
  87. .box {
  88. background-image: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #fffefd), linear-gradient(0deg, #fff8e2 0%, #fff6db) !important;
  89. img {
  90. height: 5em;
  91. margin-bottom: -10px;
  92. margin-top: 10px;
  93. }
  94. p {
  95. font-size: 12px;
  96. }
  97. h2 {
  98. color: #b4b4b4;
  99. }
  100. }
  101. .close {
  102. padding: 5px !important;
  103. }
  104. }
  105. .card-desc {
  106. line-height: 1.5;
  107. margin-bottom: @15;
  108. }
  109. &.feeds {
  110. .news {
  111. > .ui.grid {
  112. margin-left: auto;
  113. margin-right: auto;
  114. }
  115. .ui.avatar {
  116. margin-top: 13px;
  117. }
  118. p {
  119. font-size: 16px;
  120. }
  121. .time-since {
  122. font-size: 11px;
  123. font-weight: bold;
  124. }
  125. .issue.title {
  126. line-height: 1.1em;
  127. width: 80%;
  128. }
  129. .push.news .content ul {
  130. font-size: 13px;
  131. list-style: none;
  132. padding-left: 0;
  133. img {
  134. margin-bottom: -4px;
  135. }
  136. .text.truncate {
  137. width: 60%;
  138. margin-bottom: -5px;
  139. margin-left: 3px;
  140. }
  141. }
  142. .commits-card {
  143. background-color: #f9f9f9;
  144. border: 1px solid #d1d5da;
  145. border-radius: 3px;
  146. padding: @5 16px;
  147. .sha {
  148. font-family: monospace;
  149. background: #fff2ce;
  150. padding: 1px 5px;
  151. font-size: 12px;
  152. border-radius: 3px;
  153. }
  154. }
  155. code {
  156. padding: 3px;
  157. font-size: 85%;
  158. background-color: rgba(0, 0, 0, 0.04);
  159. border-radius: 3px;
  160. word-break: break-all;
  161. }
  162. }
  163. .list {
  164. .header {
  165. .ui.label {
  166. margin-top: -4px;
  167. padding: 4px 5px;
  168. font-weight: normal;
  169. }
  170. .plus.icon {
  171. margin-top: @5;
  172. }
  173. }
  174. ul {
  175. list-style: none;
  176. margin: 0;
  177. padding-left: 0;
  178. li {
  179. &:not(:last-child) {
  180. border-bottom: 1px solid #EAEAEA;
  181. }
  182. &.private {
  183. background-color: #fcf8e9;
  184. }
  185. a {
  186. padding: 6px 1.2em;
  187. display: block;
  188. .octicon {
  189. color: #888;
  190. &.rear {
  191. font-size: @15;
  192. }
  193. }
  194. .star-num {
  195. font-size: 12px;
  196. }
  197. }
  198. }
  199. }
  200. .repo-owner-name-list {
  201. .item-name {
  202. max-width: 70%;
  203. margin-bottom: -4px;
  204. }
  205. }
  206. #collaborative-repo-list {
  207. .owner-and-repo {
  208. max-width: 80%;
  209. margin-bottom: -5px;
  210. }
  211. .owner-name {
  212. max-width: 120px;
  213. margin-bottom: -5px;
  214. }
  215. }
  216. }
  217. }
  218. .feeds {
  219. .issue {
  220. overflow-wrap: break-word !important;
  221. font-size: 13px !important;
  222. }
  223. .icons {
  224. background: #e6ebf1;
  225. padding: 7px;
  226. font-size: 15px;
  227. border-radius: 50%;
  228. height: 28px;
  229. width: 28px;
  230. margin-left: -10px;
  231. }
  232. }
  233. .ui.grid > [class*="fifteen wide"].column {
  234. text-align: left;
  235. }
  236. .home-footer {
  237. margin-top: 2em !important;
  238. img {
  239. width: 1.4em !important;
  240. margin-bottom: 6px;
  241. }
  242. span {
  243. font-size: 14px !important;
  244. }
  245. }
  246. .profile-card {
  247. width: 100% !important;
  248. font-family: monospace;
  249. &.meta {
  250. line-height: 1.8;
  251. margin-top: 18px;
  252. color: #5b5b5b !important;
  253. }
  254. &.font {
  255. font-size: @15 !important;
  256. }
  257. }
  258. // Mobile
  259. @media (max-width: 1020px) {
  260. .item.brand,
  261. .six.wide.column,
  262. .ui.five.wide.column,
  263. .home-footer {
  264. display: none !important;
  265. }
  266. .dashboard,
  267. .ui.grid > [class*="ten wide"].column,
  268. .ten.wide.column,
  269. .feeds .news .issue.title {
  270. width: 100% !important;
  271. }
  272. .ui.vertically.padded.grid.head .column{
  273. padding: 0;
  274. }
  275. .ui.grid > [class*="one wide"].column{
  276. margin-left: -38px;
  277. margin-top: 3em;
  278. position: absolute;
  279. }
  280. .feeds .news p {
  281. font-size: 1rem !important;
  282. line-height: 19px !important;
  283. }
  284. .feeds .news .push.news .content ul {
  285. font-size: 12px;
  286. }
  287. .commits-card {
  288. .sha {
  289. font-family: monospace !important;
  290. background: transparent !important;
  291. padding: 0 !important;
  292. border-radius: 0 !important;
  293. font-size: @10 !important;
  294. }
  295. }
  296. .bootcamp {
  297. display: none;
  298. }
  299. }