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.css 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. .ui.input textarea,
  2. .ui.form textarea,
  3. .ui.form input:not([type]),
  4. .ui.form input[type="date"],
  5. .ui.form input[type="datetime-local"],
  6. .ui.form input[type="email"],
  7. .ui.form input[type="number"],
  8. .ui.form input[type="password"],
  9. .ui.form input[type="search"],
  10. .ui.form input[type="tel"],
  11. .ui.form input[type="time"],
  12. .ui.form input[type="text"],
  13. .ui.form input[type="file"],
  14. .ui.form input[type="url"] {
  15. transition: none;
  16. }
  17. input,
  18. textarea,
  19. .ui.input > input,
  20. .ui.form input:not([type]),
  21. .ui.form select,
  22. .ui.form textarea,
  23. .ui.form input[type="date"],
  24. .ui.form input[type="datetime-local"],
  25. .ui.form input[type="email"],
  26. .ui.form input[type="file"],
  27. .ui.form input[type="number"],
  28. .ui.form input[type="password"],
  29. .ui.form input[type="search"],
  30. .ui.form input[type="tel"],
  31. .ui.form input[type="text"],
  32. .ui.form input[type="time"],
  33. .ui.form input[type="url"],
  34. .ui.selection.dropdown {
  35. background: var(--color-input-background);
  36. border-color: var(--color-input-border);
  37. color: var(--color-input-text);
  38. }
  39. /* fix fomantic small dropdown having inconsistent padding with input */
  40. .ui.small.selection.dropdown {
  41. padding: .67857143em 1.6em .67857143em 1em;
  42. }
  43. input:hover,
  44. textarea:hover,
  45. .ui.input input:hover,
  46. .ui.form input:not([type]):hover,
  47. .ui.form select:hover,
  48. .ui.form textarea:hover,
  49. .ui.form input[type="date"]:hover,
  50. .ui.form input[type="datetime-local"]:hover,
  51. .ui.form input[type="email"]:hover,
  52. .ui.form input[type="file"]:hover,
  53. .ui.form input[type="number"]:hover,
  54. .ui.form input[type="password"]:hover,
  55. .ui.form input[type="search"]:hover,
  56. .ui.form input[type="tel"]:hover,
  57. .ui.form input[type="text"]:hover,
  58. .ui.form input[type="time"]:hover,
  59. .ui.form input[type="url"]:hover,
  60. .ui.selection.dropdown:hover {
  61. background: var(--color-input-background);
  62. border-color: var(--color-input-border-hover);
  63. color: var(--color-input-text);
  64. }
  65. input:focus,
  66. textarea:focus,
  67. .ui.input input:focus,
  68. .ui.form input:not([type]):focus,
  69. .ui.form select:focus,
  70. .ui.form textarea:focus,
  71. .ui.form input[type="date"]:focus,
  72. .ui.form input[type="datetime-local"]:focus,
  73. .ui.form input[type="email"]:focus,
  74. .ui.form input[type="file"]:focus,
  75. .ui.form input[type="number"]:focus,
  76. .ui.form input[type="password"]:focus,
  77. .ui.form input[type="search"]:focus,
  78. .ui.form input[type="tel"]:focus,
  79. .ui.form input[type="text"]:focus,
  80. .ui.form input[type="time"]:focus,
  81. .ui.form input[type="url"]:focus,
  82. .ui.selection.dropdown:focus {
  83. background: var(--color-input-background);
  84. border-color: var(--color-primary);
  85. color: var(--color-input-text);
  86. }
  87. .ui.form .field > label,
  88. .ui.form .inline.fields > label,
  89. .ui.form .inline.fields .field > label,
  90. .ui.form .inline.fields .field > p,
  91. .ui.form .inline.field > label,
  92. .ui.form .inline.field > p {
  93. color: var(--color-text);
  94. }
  95. .ui.form .required.fields:not(.grouped) > .field > label::after,
  96. .ui.form .required.fields.grouped > label::after,
  97. .ui.form .required.field > label::after,
  98. .ui.form label.required::after {
  99. color: var(--color-red);
  100. }
  101. .ui.input {
  102. color: var(--color-input-text);
  103. }
  104. /* match <select> padding to <input> */
  105. .ui.form select {
  106. padding: 0.67857143em 1em;
  107. }
  108. .form .help {
  109. color: var(--color-secondary-dark-5);
  110. padding-bottom: 0.6em;
  111. display: inline-block;
  112. }
  113. #create-page-form form {
  114. margin: auto;
  115. }
  116. #create-page-form form .ui.message {
  117. text-align: center;
  118. }
  119. @media (min-width: 768px) {
  120. #create-page-form form {
  121. width: 800px !important;
  122. }
  123. #create-page-form form .header {
  124. padding-left: 280px !important;
  125. }
  126. #create-page-form form .inline.field > label {
  127. text-align: right;
  128. width: 250px !important;
  129. word-wrap: break-word;
  130. }
  131. #create-page-form form .help {
  132. margin-left: 265px !important;
  133. }
  134. #create-page-form form .optional .title {
  135. margin-left: 250px !important;
  136. }
  137. #create-page-form form .inline.field > input,
  138. #create-page-form form .inline.field > textarea {
  139. width: 50%;
  140. }
  141. }
  142. @media (max-width: 767.98px) {
  143. #create-page-form form .optional .title {
  144. margin-left: 15px;
  145. }
  146. #create-page-form form .inline.field > label {
  147. display: block;
  148. }
  149. }
  150. .m-captcha-style {
  151. width: 100%;
  152. height: 5em;
  153. vertical-align: middle;
  154. display: inline-block;
  155. }
  156. @media (min-width: 768px) {
  157. .g-recaptcha-style,
  158. .h-captcha-style {
  159. margin: 0 auto !important;
  160. width: 304px;
  161. padding-left: 30px;
  162. }
  163. .g-recaptcha-style iframe,
  164. .h-captcha-style iframe {
  165. border-radius: var(--border-radius) !important;
  166. width: 302px !important;
  167. height: 76px !important;
  168. }
  169. .m-captcha-style {
  170. width: 50%;
  171. }
  172. }
  173. @media (max-height: 575px) {
  174. #rc-imageselect,
  175. .g-recaptcha-style,
  176. .h-captcha-style {
  177. transform: scale(0.77);
  178. transform-origin: 0 0;
  179. }
  180. }
  181. .user.forgot.password form,
  182. .user.reset.password form,
  183. .user.signup form {
  184. margin: auto;
  185. width: 700px !important;
  186. }
  187. .user.activate form .ui.message,
  188. .user.forgot.password form .ui.message,
  189. .user.reset.password form .ui.message,
  190. .user.link-account form .ui.message,
  191. .user.signin form .ui.message,
  192. .user.signup form .ui.message {
  193. text-align: center;
  194. }
  195. @media (min-width: 768px) {
  196. .user.activate form,
  197. .user.forgot.password form,
  198. .user.reset.password form,
  199. .user.link-account form,
  200. .user.signin form,
  201. .user.signup form {
  202. width: 800px !important;
  203. }
  204. .user.activate form .header,
  205. .user.forgot.password form .header,
  206. .user.reset.password form .header,
  207. .user.link-account form .header,
  208. .user.signin form .header,
  209. .user.signup form .header {
  210. padding-left: 280px !important;
  211. }
  212. .user.activate form .inline.field > label {
  213. text-align: right;
  214. width: 250px !important;
  215. word-wrap: break-word;
  216. }
  217. .user.activate form .help,
  218. .user.forgot.password form .help,
  219. .user.reset.password form .help,
  220. .user.link-account form .help,
  221. .user.signin form .help,
  222. .user.signup form .help {
  223. margin-left: 265px !important;
  224. }
  225. .user.activate form .optional .title,
  226. .user.forgot.password form .optional .title,
  227. .user.reset.password form .optional .title,
  228. .user.link-account form .optional .title,
  229. .user.signin form .optional .title,
  230. .user.signup form .optional .title {
  231. margin-left: 250px !important;
  232. }
  233. }
  234. @media (max-width: 767.98px) {
  235. .user.activate form .optional .title,
  236. .user.forgot.password form .optional .title,
  237. .user.reset.password form .optional .title,
  238. .user.link-account form .optional .title,
  239. .user.signin form .optional .title,
  240. .user.signup form .optional .title {
  241. margin-left: 15px;
  242. }
  243. .user.activate form .inline.field > label,
  244. .user.forgot.password form .inline.field > label,
  245. .user.reset.password form .inline.field > label,
  246. .user.link-account form .inline.field > label,
  247. .user.signin form .inline.field > label,
  248. .user.signup form .inline.field > label {
  249. display: block;
  250. }
  251. }
  252. .user.activate form .header,
  253. .user.forgot.password form .header,
  254. .user.reset.password form .header,
  255. .user.link-account form .header,
  256. .user.signin form .header,
  257. .user.signup form .header {
  258. padding-left: 0 !important;
  259. text-align: center;
  260. }
  261. .user.activate form .inline.field > label,
  262. .user.forgot.password form .inline.field > label,
  263. .user.reset.password form .inline.field > label,
  264. .user.link-account form .inline.field > label,
  265. .user.signin form .inline.field > label,
  266. .user.signup form .inline.field > label {
  267. width: 200px;
  268. }
  269. @media (max-width: 767.98px) {
  270. .user.activate form .inline.field > label,
  271. .user.forgot.password form .inline.field > label,
  272. .user.reset.password form .inline.field > label,
  273. .user.link-account form .inline.field > label,
  274. .user.signin form .inline.field > label,
  275. .user.signup form .inline.field > label {
  276. width: 100% !important;
  277. }
  278. }
  279. .user.activate form input[type="number"],
  280. .user.forgot.password form input[type="number"],
  281. .user.reset.password form input[type="number"],
  282. .user.link-account form input[type="number"],
  283. .user.signin form input[type="number"],
  284. .user.signup form input[type="number"] {
  285. -moz-appearance: textfield;
  286. }
  287. .user.activate form input::-webkit-outer-spin-button,
  288. .user.forgot.password form input::-webkit-outer-spin-button,
  289. .user.reset.password form input::-webkit-outer-spin-button,
  290. .user.link-account form input::-webkit-outer-spin-button,
  291. .user.signin form input::-webkit-outer-spin-button,
  292. .user.signup form input::-webkit-outer-spin-button,
  293. .user.activate form input::-webkit-inner-spin-button,
  294. .user.forgot.password form input::-webkit-inner-spin-button,
  295. .user.reset.password form input::-webkit-inner-spin-button,
  296. .user.link-account form input::-webkit-inner-spin-button,
  297. .user.signin form input::-webkit-inner-spin-button,
  298. .user.signup form input::-webkit-inner-spin-button {
  299. -webkit-appearance: none;
  300. margin: 0;
  301. }
  302. .repository.new.repo form,
  303. .repository.new.migrate form,
  304. .repository.new.fork form {
  305. margin: auto;
  306. }
  307. .repository.new.repo form .ui.message,
  308. .repository.new.migrate form .ui.message,
  309. .repository.new.fork form .ui.message {
  310. text-align: center;
  311. }
  312. @media (min-width: 768px) {
  313. .repository.new.repo form,
  314. .repository.new.migrate form,
  315. .repository.new.fork form {
  316. width: 800px !important;
  317. }
  318. .repository.new.repo form .header,
  319. .repository.new.migrate form .header,
  320. .repository.new.fork form .header {
  321. padding-left: 280px !important;
  322. }
  323. .repository.new.repo form .inline.field > label,
  324. .repository.new.migrate form .inline.field > label,
  325. .repository.new.fork form .inline.field > label {
  326. text-align: right;
  327. width: 250px !important;
  328. word-wrap: break-word;
  329. }
  330. .repository.new.repo form .help,
  331. .repository.new.migrate form .help,
  332. .repository.new.fork form .help {
  333. margin-left: 265px !important;
  334. }
  335. .repository.new.repo form .optional .title,
  336. .repository.new.migrate form .optional .title,
  337. .repository.new.fork form .optional .title {
  338. margin-left: 250px !important;
  339. }
  340. .repository.new.repo form .inline.field > input,
  341. .repository.new.migrate form .inline.field > input,
  342. .repository.new.fork form .inline.field > input,
  343. .repository.new.repo form .inline.field > textarea,
  344. .repository.new.migrate form .inline.field > textarea,
  345. .repository.new.fork form .inline.field > textarea {
  346. width: 50%;
  347. }
  348. }
  349. @media (max-width: 767.98px) {
  350. .repository.new.repo form .optional .title,
  351. .repository.new.migrate form .optional .title,
  352. .repository.new.fork form .optional .title {
  353. margin-left: 15px;
  354. }
  355. .repository.new.repo form .inline.field > label,
  356. .repository.new.migrate form .inline.field > label,
  357. .repository.new.fork form .inline.field > label {
  358. display: block;
  359. }
  360. }
  361. .repository.new.repo form .dropdown .text,
  362. .repository.new.migrate form .dropdown .text,
  363. .repository.new.fork form .dropdown .text {
  364. margin-right: 0 !important;
  365. }
  366. .repository.new.repo form .header,
  367. .repository.new.migrate form .header,
  368. .repository.new.fork form .header {
  369. padding-left: 0 !important;
  370. text-align: center;
  371. }
  372. .repository.new.repo form .selection.dropdown,
  373. .repository.new.migrate form .selection.dropdown,
  374. .repository.new.fork form .selection.dropdown,
  375. .repository.new.fork form .field a {
  376. vertical-align: middle;
  377. width: 50% !important;
  378. }
  379. @media (max-width: 767.98px) {
  380. .repository.new.repo form label,
  381. .repository.new.migrate form label,
  382. .repository.new.fork form label,
  383. .repository.new.repo form .inline.field > input,
  384. .repository.new.migrate form .inline.field > input,
  385. .repository.new.fork form .inline.field > input,
  386. .repository.new.fork form .field a,
  387. .repository.new.repo form .selection.dropdown,
  388. .repository.new.migrate form .selection.dropdown,
  389. .repository.new.fork form .selection.dropdown {
  390. width: 100% !important;
  391. }
  392. .repository.new.repo form .field button,
  393. .repository.new.migrate form .field button,
  394. .repository.new.fork form .field button,
  395. .repository.new.repo form .field a,
  396. .repository.new.migrate form .field a {
  397. margin-bottom: 1em;
  398. width: 100%;
  399. }
  400. }
  401. @media (min-width: 768px) {
  402. .repository.new.repo .ui.form #auto-init {
  403. margin-left: 265px !important;
  404. }
  405. }
  406. .repository.new.repo .ui.form .selection.dropdown:not(.owner) {
  407. width: 50% !important;
  408. }
  409. @media (max-width: 767.98px) {
  410. .repository.new.repo .ui.form .selection.dropdown:not(.owner) {
  411. width: 100% !important;
  412. }
  413. }
  414. .ui.form .field > .selection.dropdown {
  415. min-width: 14em; /* matches the default min width */
  416. }
  417. .new.webhook form .help {
  418. margin-left: 25px;
  419. }
  420. .new.webhook .events.fields .column {
  421. padding-left: 40px;
  422. }
  423. .githook textarea {
  424. font-family: var(--fonts-monospace);
  425. }
  426. @media (max-width: 767.98px) {
  427. .new.org .ui.form .field button,
  428. .new.org .ui.form .field a {
  429. margin-bottom: 1em;
  430. width: 100%;
  431. }
  432. .new.org .ui.form .field input {
  433. width: 100% !important;
  434. }
  435. }