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.scss 1.6KB

3 years ago
3 years ago
3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. .form-sent {
  2. .form-control:invalid {
  3. border-color: #dc3545;
  4. padding-right: 2.25rem;
  5. background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
  6. background-repeat: no-repeat;
  7. background-position: center right calc(.375em + .1875rem);
  8. background-size: calc(.75em + .375rem) calc(.75em + .375rem);
  9. }
  10. select.form-control:invalid + .select2 .select2-selection {
  11. border-color: #dc3545;
  12. }
  13. select.form-control:invalid + .select2 .select2-selection b {
  14. border-color: #dc3545 transparent transparent transparent;
  15. }
  16. .form-check-label input:invalid ~ .checkmark {
  17. border-color: #dc3545;
  18. }
  19. }
  20. .nav-item .nav-link {
  21. position: relative;
  22. .invalid-form {
  23. display: none;
  24. position: absolute;
  25. top: -7px;
  26. right: -6px;
  27. color: #dc3545;
  28. background: #fff;
  29. border-radius: 10px;
  30. font-size: 1.2rem;
  31. }
  32. }
  33. .nav-item.has-invalid .nav-link .invalid-form {
  34. display: inline-block;
  35. z-index: 2;
  36. }
  37. legend {
  38. font-weight: bold;
  39. }
  40. .field-collection {
  41. padding-top: 15px;
  42. legend {
  43. font-weight: bold;
  44. font-size: 18px;
  45. }
  46. .field-collection-item {
  47. background-color: gainsboro;
  48. padding: 10px;
  49. position: relative;
  50. border-radius: 5px;
  51. .field-collection-delete {
  52. position: absolute;
  53. right: 0px;
  54. top: 0px;
  55. }
  56. }
  57. }
  58. .label-ticket {
  59. display: none;
  60. }
  61. #ticket_form_ticketMessages legend {
  62. display: none;
  63. }