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.

_form.less 7.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. input,
  2. textarea,
  3. .ui.input > input,
  4. .ui.form input:not([type]),
  5. .ui.form select,
  6. .ui.form textarea,
  7. .ui.form input[type="date"],
  8. .ui.form input[type="datetime-local"],
  9. .ui.form input[type="email"],
  10. .ui.form input[type="file"],
  11. .ui.form input[type="number"],
  12. .ui.form input[type="password"],
  13. .ui.form input[type="search"],
  14. .ui.form input[type="tel"],
  15. .ui.form input[type="text"],
  16. .ui.form input[type="time"],
  17. .ui.form input[type="url"],
  18. .ui.selection.dropdown,
  19. .ui.checkbox label::before,
  20. .ui.checkbox input:checked ~ label::before,
  21. .ui.checkbox input:not([type=radio]):indeterminate ~ label::before {
  22. background: var(--color-input-background);
  23. border-color: var(--color-input-border);
  24. color: var(--color-input-text);
  25. }
  26. input:hover,
  27. textarea:hover,
  28. .ui.input input:hover,
  29. .ui.form input:not([type]):hover,
  30. .ui.form select:hover,
  31. .ui.form textarea:hover,
  32. .ui.form input[type="date"]:hover,
  33. .ui.form input[type="datetime-local"]:hover,
  34. .ui.form input[type="email"]:hover,
  35. .ui.form input[type="file"]:hover,
  36. .ui.form input[type="number"]:hover,
  37. .ui.form input[type="password"]:hover,
  38. .ui.form input[type="search"]:hover,
  39. .ui.form input[type="tel"]:hover,
  40. .ui.form input[type="text"]:hover,
  41. .ui.form input[type="time"]:hover,
  42. .ui.form input[type="url"]:hover,
  43. .ui.selection.dropdown:hover,
  44. .ui.checkbox label:hover::before,
  45. .ui.checkbox label:active::before,
  46. .ui.radio.checkbox label::after,
  47. .ui.radio.checkbox input:focus ~ label::before,
  48. .ui.radio.checkbox input:checked ~ label::before {
  49. background: var(--color-input-background);
  50. border-color: var(--color-input-border-hover);
  51. color: var(--color-input-text);
  52. }
  53. input:focus,
  54. textarea:focus,
  55. .ui.input input:focus,
  56. .ui.form input:not([type]):focus,
  57. .ui.form select:focus,
  58. .ui.form textarea:focus,
  59. .ui.form input[type="date"]:focus,
  60. .ui.form input[type="datetime-local"]:focus,
  61. .ui.form input[type="email"]:focus,
  62. .ui.form input[type="file"]:focus,
  63. .ui.form input[type="number"]:focus,
  64. .ui.form input[type="password"]:focus,
  65. .ui.form input[type="search"]:focus,
  66. .ui.form input[type="tel"]:focus,
  67. .ui.form input[type="text"]:focus,
  68. .ui.form input[type="time"]:focus,
  69. .ui.form input[type="url"]:focus,
  70. .ui.selection.dropdown:focus,
  71. .ui.checkbox input:focus ~ label::before,
  72. .ui.checkbox input:not([type="radio"]):indeterminate:focus ~ label::before,
  73. .ui.checkbox input:checked:focus ~ label::before,
  74. .ui.radio.checkbox input:focus:checked ~ label::before {
  75. background: var(--color-input-background);
  76. border-color: var(--color-primary);
  77. color: var(--color-input-text);
  78. }
  79. .ui.form .field > label,
  80. .ui.form .inline.fields > label,
  81. .ui.form .inline.fields .field > label,
  82. .ui.form .inline.fields .field > p,
  83. .ui.form .inline.field > label,
  84. .ui.form .inline.field > p,
  85. .ui.checkbox label,
  86. .ui.checkbox + label,
  87. .ui.checkbox label:hover,
  88. .ui.checkbox + label:hover,
  89. .ui.checkbox input:focus ~ label,
  90. .ui.checkbox input:active ~ label {
  91. color: var(--color-text);
  92. }
  93. .ui.input,
  94. .ui.checkbox input:focus ~ label::after,
  95. .ui.checkbox input:checked ~ label::after,
  96. .ui.checkbox label:active::after,
  97. .ui.checkbox input:not([type=radio]):indeterminate ~ label::after,
  98. .ui.checkbox input:not([type=radio]):indeterminate:focus ~ label::after,
  99. .ui.checkbox input:checked:focus ~ label::after,
  100. .ui.disabled.checkbox label,
  101. .ui.checkbox input[disabled] ~ label {
  102. color: var(--color-input-text);
  103. }
  104. .ui.radio.checkbox input:focus ~ label::after,
  105. .ui.radio.checkbox input:checked ~ label::after,
  106. .ui.radio.checkbox input:focus:checked ~ label::after {
  107. background: var(--color-input-text);
  108. }
  109. .ui.toggle.checkbox label::before {
  110. background: var(--color-input-background);
  111. }
  112. .ui.toggle.checkbox label,
  113. .ui.toggle.checkbox input:checked ~ label,
  114. .ui.toggle.checkbox input:focus:checked ~ label {
  115. color: var(--color-text) !important;
  116. }
  117. .ui.toggle.checkbox input:checked ~ label::before,
  118. .ui.toggle.checkbox input:focus:checked ~ label::before {
  119. background: var(--color-primary) !important;
  120. }
  121. /* match <select> padding to <input> */
  122. .ui.form select {
  123. padding: .67857143em 1em;
  124. }
  125. .form {
  126. .help {
  127. color: #999999;
  128. padding-top: .6em;
  129. padding-bottom: .6em;
  130. display: inline-block;
  131. }
  132. }
  133. @create-page-form-input-padding: 250px !important;
  134. #create-page-form {
  135. form {
  136. margin: auto;
  137. .ui.message {
  138. text-align: center;
  139. }
  140. @media @mediaMdAndUp {
  141. width: 800px !important;
  142. .header {
  143. padding-left: @create-page-form-input-padding+30px;
  144. }
  145. .inline.field > label {
  146. text-align: right;
  147. width: @create-page-form-input-padding;
  148. word-wrap: break-word;
  149. }
  150. .help {
  151. margin-left: @create-page-form-input-padding+15px;
  152. }
  153. .optional .title {
  154. margin-left: @create-page-form-input-padding;
  155. }
  156. input,
  157. textarea {
  158. width: 50% !important;
  159. }
  160. }
  161. @media @mediaSm {
  162. .optional .title {
  163. margin-left: 15px;
  164. }
  165. .inline.field > label {
  166. display: block;
  167. }
  168. }
  169. }
  170. }
  171. .signin {
  172. .oauth2 {
  173. div {
  174. display: inline-block;
  175. p {
  176. margin: 10px 5px 0 0;
  177. float: left;
  178. }
  179. }
  180. a {
  181. margin-right: 3px;
  182. &:last-child {
  183. margin-right: 0;
  184. }
  185. }
  186. img {
  187. width: 32px;
  188. height: 32px;
  189. &.openidConnect {
  190. width: auto;
  191. }
  192. }
  193. }
  194. }
  195. @media @mediaMdAndUp {
  196. .g-recaptcha,
  197. .h-captcha {
  198. margin: 0 auto !important;
  199. width: 304px;
  200. padding-left: 30px;
  201. }
  202. }
  203. @media (max-height: 575px) {
  204. #rc-imageselect,
  205. .g-recaptcha,
  206. .h-captcha {
  207. transform: scale(.77);
  208. transform-origin: 0 0;
  209. }
  210. }
  211. .user.activate,
  212. .user.forgot.password,
  213. .user.reset.password,
  214. .user.link-account,
  215. .user.signin,
  216. .user.signup {
  217. @input-padding: 200px;
  218. #create-page-form();
  219. form {
  220. width: 700px !important;
  221. .header {
  222. padding-left: 0 !important;
  223. text-align: center;
  224. }
  225. .inline.field > label {
  226. width: @input-padding;
  227. }
  228. .inline.field > label,
  229. input {
  230. @media @mediaSm {
  231. width: 100% !important;
  232. }
  233. }
  234. input[type=number] {
  235. -moz-appearance: textfield;
  236. }
  237. input::-webkit-outer-spin-button,
  238. input::-webkit-inner-spin-button {
  239. -webkit-appearance: none;
  240. margin: 0;
  241. }
  242. }
  243. }
  244. .repository {
  245. &.new.repo,
  246. &.new.migrate,
  247. &.new.fork {
  248. #create-page-form();
  249. form {
  250. .dropdown .text {
  251. margin-right: 0 !important;
  252. }
  253. .header {
  254. padding-left: 0 !important;
  255. text-align: center;
  256. }
  257. .selection.dropdown {
  258. vertical-align: middle;
  259. width: 50% !important;
  260. }
  261. @media @mediaSm {
  262. label,
  263. input,
  264. .selection.dropdown {
  265. width: 100% !important;
  266. }
  267. .field button,
  268. .field a {
  269. margin-bottom: 1em;
  270. width: 100%;
  271. }
  272. }
  273. }
  274. }
  275. &.new.repo {
  276. .ui.form {
  277. @media @mediaMdAndUp {
  278. #auto-init {
  279. margin-left: @create-page-form-input-padding+15px;
  280. }
  281. }
  282. .selection.dropdown:not(.owner) {
  283. width: 50% !important;
  284. @media @mediaSm {
  285. width: 100% !important;
  286. }
  287. }
  288. }
  289. }
  290. }
  291. .new.webhook {
  292. form {
  293. .help {
  294. margin-left: 25px;
  295. }
  296. }
  297. .events.fields {
  298. .column {
  299. padding-left: 40px;
  300. }
  301. }
  302. }
  303. .githook {
  304. textarea {
  305. font-family: var(--fonts-monospace);
  306. }
  307. }
  308. .new.org .ui.form {
  309. @media @mediaSm {
  310. .field button,
  311. .field a {
  312. margin-bottom: 1em;
  313. width: 100%;
  314. }
  315. .field input {
  316. width: 100% !important;
  317. }
  318. }
  319. }