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.

250 lines
4.8 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
  1. .form {
  2. .help {
  3. color: #999999;
  4. padding-top: 0.6em;
  5. padding-bottom: 0.6em;
  6. display: inline-block;
  7. }
  8. }
  9. .ui.attached.header {
  10. background: #f0f0f0;
  11. .right {
  12. margin-top: -5px;
  13. .button {
  14. padding: 8px 10px;
  15. font-weight: normal;
  16. }
  17. }
  18. }
  19. @create-page-form-input-padding: 250px !important;
  20. #create-page-form {
  21. form {
  22. margin: auto;
  23. .ui.message {
  24. text-align: center;
  25. }
  26. @media only screen and (min-width: 768px) {
  27. width: 800px !important;
  28. .header {
  29. padding-left: @create-page-form-input-padding+30px;
  30. }
  31. .inline.field > label {
  32. text-align: right;
  33. width: @create-page-form-input-padding;
  34. word-wrap: break-word;
  35. }
  36. .help {
  37. margin-left: @create-page-form-input-padding+15px;
  38. }
  39. .optional .title {
  40. margin-left: @create-page-form-input-padding;
  41. }
  42. input,
  43. textarea {
  44. width: 50% !important;
  45. }
  46. }
  47. @media only screen and (max-width: 767px) {
  48. .optional .title {
  49. margin-left: 15px;
  50. }
  51. .inline.field > label {
  52. display: block;
  53. }
  54. }
  55. }
  56. }
  57. .signin {
  58. .oauth2 {
  59. div {
  60. display: inline-block;
  61. p {
  62. margin: 10px 5px 0 0;
  63. float: left;
  64. }
  65. }
  66. a {
  67. margin-right: 3px;
  68. &:last-child {
  69. margin-right: 0;
  70. }
  71. }
  72. img {
  73. width: 32px;
  74. height: 32px;
  75. &.openidConnect {
  76. width: auto;
  77. }
  78. }
  79. }
  80. }
  81. @media only screen and (min-width: 768px) {
  82. .g-recaptcha {
  83. margin: 0 auto !important;
  84. width: 304px;
  85. padding-left: 30px;
  86. }
  87. }
  88. @media screen and (max-height: 575px) {
  89. #rc-imageselect,
  90. .g-recaptcha {
  91. transform: scale(0.77);
  92. transform-origin: 0 0;
  93. }
  94. }
  95. .user.activate,
  96. .user.forgot.password,
  97. .user.reset.password,
  98. .user.signin,
  99. .user.signup {
  100. @input-padding: 200px;
  101. #create-page-form;
  102. form {
  103. width: 700px !important;
  104. .header {
  105. padding-left: 0 !important;
  106. text-align: center;
  107. }
  108. .inline.field > label {
  109. width: @input-padding;
  110. }
  111. .inline.field > label,
  112. input {
  113. @media only screen and (max-width: 768px) {
  114. width: 100% !important;
  115. }
  116. }
  117. input[type=number] {
  118. -moz-appearance: textfield;
  119. }
  120. input::-webkit-outer-spin-button,
  121. input::-webkit-inner-spin-button {
  122. -webkit-appearance: none;
  123. margin: 0;
  124. }
  125. }
  126. }
  127. .repository {
  128. &.new.repo,
  129. &.new.migrate,
  130. &.new.fork {
  131. #create-page-form;
  132. form {
  133. .dropdown {
  134. .dropdown.icon {
  135. margin-top: -7px !important;
  136. padding-bottom: 5px;
  137. }
  138. .text {
  139. margin-right: 0 !important;
  140. i {
  141. margin-right: 0 !important;
  142. }
  143. }
  144. }
  145. .header {
  146. padding-left: 0 !important;
  147. text-align: center;
  148. }
  149. @media only screen and (max-width: 768px) {
  150. label,
  151. input,
  152. .selection.dropdown {
  153. width: 100% !important;
  154. }
  155. .field button,
  156. .field a {
  157. margin-bottom: 1em;
  158. width: 100%;
  159. }
  160. }
  161. }
  162. }
  163. &.new.repo {
  164. .ui.form {
  165. @media only screen and (min-width: 768px) {
  166. #auto-init {
  167. margin-left: @create-page-form-input-padding+15px;
  168. }
  169. }
  170. .selection.dropdown:not(.owner) {
  171. width: 50% !important;
  172. @media only screen and (max-width: 768px) {
  173. width: 100% !important;
  174. }
  175. }
  176. }
  177. }
  178. }
  179. .new.webhook {
  180. form {
  181. .help {
  182. margin-left: 25px;
  183. }
  184. }
  185. .events.fields {
  186. .column {
  187. padding-left: 40px;
  188. }
  189. }
  190. }
  191. .githook {
  192. textarea {
  193. font-family: @monospaced-fonts, monospace;
  194. }
  195. }
  196. .new.org .ui.form {
  197. @media only screen and (max-width: 768px) {
  198. .field button,
  199. .field a {
  200. margin-bottom: 1em;
  201. width: 100%;
  202. }
  203. .field input {
  204. width: 100% !important;
  205. }
  206. }
  207. }