You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

_form.less 4.9 kB

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