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.

192 lines
3.9 KiB

Add lang specific font stacks for CJK (#6007) * Add lang specific font stacks * Force font changes Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix icons Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix octicons and icons Signed-off-by: Andrew Thornton <art27@cantab.net> * Just override the semantic ui fonts only Signed-off-by: Andrew Thornton <art27@cantab.net> * Missed the headers... override them too * Missed some more semantic ui stuff * Fix PT Sans Signed-off-by: Andrew Thornton <art27@cantab.net> * More changes Signed-off-by: Andrew Thornton <art27@cantab.net> * Squashed commit of the following: commit 7d1679e9079541359869c9e677ba7412bfcc59f3 Author: Mike L <cl.jeremy@qq.com> Date: Wed Mar 13 13:53:49 2019 +0100 Remove missed YaHei leftover from _home.less commit 0079121ea91860a323ed4e5cc1a9c0d490d9cefd Author: Mike L <cl.jeremy@qq.com> Date: Wed Mar 13 12:03:54 2019 +0100 Fix overdone fixes (inherit, :lang) commit 62c919915928ec1db4731d547e95885f91a0618d Author: Mike L <cl.jeremy@qq.com> Date: Wed Mar 13 02:29:10 2019 +0100 Fix elements w/ explicit lang (language chooser) commit b3117587aa2eb8570d60bed583a11ee5565418be Author: Mike L <cl.jeremy@qq.com> Date: Tue Mar 12 20:17:26 2019 +0100 Fix textarea also (to match body) commit 81cedf2c3012c4dd05a7680782b4a98e1b947f67 Author: Mike L <cl.jeremy@qq.com> Date: Tue Mar 12 19:41:39 2019 +0100 Revert css temporarily to fix conflict commit 80ff82797f3203cbeaf866f22e961334e137df89 Author: Mike L <cl.jeremy@qq.com> Date: Tue Mar 12 19:15:30 2019 +0100 Tweak CJK, fix Yu Gothic, more monospace inherits commit 581dceb9a869646c2c486dabb925c88c2680d70c Author: Mike L <cl.jeremy@qq.com> Date: Mon Mar 11 13:09:26 2019 +0100 Add Lato for latin extd. & cyrillic, improve CJK * update stylesheet
5 years ago
Add Octicon SVG spritemap (#10107) * Add octicon SVG sprite Signed-off-by: jolheiser <john.olheiser@gmail.com> * Static prefix Signed-off-by: jolheiser <john.olheiser@gmail.com> * SVG for all repo icons Signed-off-by: jolheiser <john.olheiser@gmail.com> * make vendor Signed-off-by: jolheiser <john.olheiser@gmail.com> * Swap out octicons Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move octicons to top of less imports Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix JS Signed-off-by: jolheiser <john.olheiser@gmail.com> * Definitely not a search/replace Signed-off-by: jolheiser <john.olheiser@gmail.com> * Missed regex Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move to more generic calls and webpack Signed-off-by: jolheiser <john.olheiser@gmail.com> * make svg -> make webpack Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove svg-sprite Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Missed a test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove svg from makefile Signed-off-by: jolheiser <john.olheiser@gmail.com> * Suggestions Signed-off-by: jolheiser <john.olheiser@gmail.com> * Attempt to fix test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert timetracking test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Swap .octicon for .svg in less Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add aria-hidden Signed-off-by: jolheiser <john.olheiser@gmail.com> * Replace mega-octicon Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix webpack globbing on Windows Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert Co-Authored-By: silverwind <me@silverwind.io> * Fix octions from upstream Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix Vue and missed JS function Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add JS helper and PWA Signed-off-by: jolheiser <john.olheiser@gmail.com> * Preload SVG Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <matti@mdranta.net>
4 years ago
  1. .dashboard {
  2. padding-top: 15px;
  3. &.feeds,
  4. &.issues {
  5. .context.user.menu {
  6. z-index: 101;
  7. min-width: 200px;
  8. .ui.header {
  9. font-size: 1rem;
  10. text-transform: none;
  11. }
  12. }
  13. .filter.menu {
  14. width: initial;
  15. .item {
  16. text-align: left;
  17. .text {
  18. height: 16px;
  19. vertical-align: middle;
  20. &.truncate {
  21. width: 75%;
  22. }
  23. }
  24. .floating.label {
  25. top: 7px;
  26. left: 90%;
  27. width: 15%;
  28. @media only screen and (max-width: 768px) {
  29. top: 10px;
  30. left: auto;
  31. width: auto;
  32. right: 13px;
  33. }
  34. }
  35. }
  36. // Sort
  37. .jump.item {
  38. margin: 1px;
  39. padding-right: 0;
  40. }
  41. .menu {
  42. max-height: 300px;
  43. overflow-x: auto;
  44. right: 0 !important;
  45. left: auto !important;
  46. }
  47. @media only screen and (max-width: 768px) {
  48. width: 100%;
  49. }
  50. }
  51. .right.stackable.menu > .item.active {
  52. color: #d9453d;
  53. }
  54. }
  55. /* Accomodate for Semantic's 1px hacks on .attached elements */
  56. .dashboard-repos {
  57. margin: 0 1px;
  58. }
  59. .dashboard-navbar {
  60. width: 100vw;
  61. padding: 0 .5rem;
  62. }
  63. }
  64. &.feeds {
  65. .news {
  66. > .ui.grid {
  67. margin-left: auto;
  68. margin-right: auto;
  69. }
  70. .ui.avatar {
  71. margin-top: 13px;
  72. }
  73. .time-since {
  74. font-size: 13px;
  75. }
  76. .issue.title {
  77. width: 80%;
  78. }
  79. .push.news .content ul {
  80. font-size: 13px;
  81. list-style: none;
  82. padding-left: 10px;
  83. img {
  84. margin-bottom: -2px;
  85. }
  86. .text.truncate {
  87. width: 80%;
  88. margin-bottom: -5px;
  89. }
  90. }
  91. .commit-id {
  92. font-family: @monospaced-fonts, monospace;
  93. }
  94. code {
  95. padding: 1px;
  96. font-size: 85%;
  97. background-color: rgba(0, 0, 0, .04);
  98. border-radius: 3px;
  99. word-break: break-all;
  100. }
  101. }
  102. .list {
  103. .header {
  104. .ui.label {
  105. margin-top: -4px;
  106. padding: 4px 5px;
  107. font-weight: normal;
  108. }
  109. .plus.icon {
  110. margin-top: 5px;
  111. }
  112. }
  113. ul {
  114. list-style: none;
  115. margin: 0;
  116. padding-left: 0;
  117. li {
  118. &:not(:last-child) {
  119. border-bottom: 1px solid #ebebeb;
  120. }
  121. &.private {
  122. background-color: #fcf8e9;
  123. }
  124. a {
  125. padding: 6px 1.2em;
  126. display: block;
  127. .svg {
  128. color: #888888;
  129. &.rear {
  130. font-size: 15px;
  131. }
  132. }
  133. .star-num {
  134. font-size: 12px;
  135. }
  136. }
  137. }
  138. }
  139. .repo-owner-name-list {
  140. .item-name {
  141. max-width: 70%;
  142. margin-bottom: -4px;
  143. }
  144. }
  145. #collaborative-repo-list {
  146. .owner-and-repo {
  147. max-width: 80%;
  148. margin-bottom: -5px;
  149. }
  150. .owner-name {
  151. max-width: 120px;
  152. margin-bottom: -5px;
  153. }
  154. }
  155. }
  156. }