off-canvas.form.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /**
  2. * @file
  3. * Visual styling for forms in the off-canvas dialog.
  4. */
  5. #drupal-off-canvas form {
  6. font-family: "Lucida Grande", 'Lucida Sans Unicode', 'liberation sans', sans-serif;
  7. color: #ddd;
  8. }
  9. #drupal-off-canvas input[type="checkbox"] {
  10. -webkit-appearance: checkbox;
  11. }
  12. #drupal-off-canvas input[type="radio"] {
  13. -webkit-appearance: radio;
  14. }
  15. #drupal-off-canvas select {
  16. -webkit-appearance: menulist;
  17. -moz-appearance: menulist;
  18. }
  19. #drupal-off-canvas option {
  20. display: block;
  21. font-family: "Lucida Grande", 'Lucida Sans Unicode', 'liberation sans', sans-serif;
  22. }
  23. #drupal-off-canvas label {
  24. line-height: normal;
  25. font-family: inherit;
  26. font-size: 12px;
  27. font-weight: bold;
  28. color: #ddd;
  29. }
  30. #drupal-off-canvas .visually-hidden {
  31. opacity: 0;
  32. height: 0;
  33. width: 0;
  34. letter-spacing: -2em;
  35. }
  36. #drupal-off-canvas .description,
  37. #drupal-off-canvas .form-item .description,
  38. #drupal-off-canvas .details-description {
  39. color: #ddd;
  40. margin-top: 5px;
  41. font-family: inherit;
  42. font-size: 12px;
  43. font-style: normal;
  44. }
  45. #drupal-off-canvas .form-item {
  46. margin-bottom: 10px;
  47. margin-top: 10px;
  48. }
  49. /* Set size and position for all inputs. */
  50. #drupal-off-canvas .form-select,
  51. #drupal-off-canvas .form-text,
  52. #drupal-off-canvas .form-tel,
  53. #drupal-off-canvas .form-email,
  54. #drupal-off-canvas .form-url,
  55. #drupal-off-canvas .form-search,
  56. #drupal-off-canvas .form-number,
  57. #drupal-off-canvas .form-color,
  58. #drupal-off-canvas .form-file,
  59. #drupal-off-canvas .form-textarea,
  60. #drupal-off-canvas .form-date,
  61. #drupal-off-canvas .form-time {
  62. box-sizing: border-box;
  63. max-width: 100%;
  64. padding: 6px;
  65. margin: 5px 0 0 0;
  66. border-width: 1px;
  67. border-radius: 2px;
  68. display: block;
  69. font-family: inherit;
  70. font-size: 14px;
  71. color: #333;
  72. line-height: 16px;
  73. }
  74. /* Reduce contrast for fields against dark background. */
  75. #drupal-off-canvas .form-text,
  76. #drupal-off-canvas .form-tel,
  77. #drupal-off-canvas .form-email,
  78. #drupal-off-canvas .form-url,
  79. #drupal-off-canvas .form-search,
  80. #drupal-off-canvas .form-number,
  81. #drupal-off-canvas .form-color,
  82. #drupal-off-canvas .form-file,
  83. #drupal-off-canvas .form-textarea,
  84. #drupal-off-canvas .form-date,
  85. #drupal-off-canvas .form-time {
  86. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.125);
  87. background-color: #eee;
  88. border-color: #333;
  89. color: #595959;
  90. }
  91. #drupal-off-canvas .form-text:focus,
  92. #drupal-off-canvas .form-tel:focus,
  93. #drupal-off-canvas .form-email:focus,
  94. #drupal-off-canvas .form-url:focus,
  95. #drupal-off-canvas .form-search:focus,
  96. #drupal-off-canvas .form-number:focus,
  97. #drupal-off-canvas .form-color:focus,
  98. #drupal-off-canvas .form-file:focus,
  99. #drupal-off-canvas .form-textarea:focus,
  100. #drupal-off-canvas .form-date:focus,
  101. #drupal-off-canvas .form-time:focus {
  102. border-color: #40b6ff;
  103. box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.125), 0 0 8px #40b6ff;
  104. background-color: #fff;
  105. }
  106. #drupal-off-canvas td .form-item,
  107. #drupal-off-canvas td .form-select {
  108. margin: 0;
  109. }
  110. #drupal-off-canvas .form-file {
  111. margin-bottom: 5px;
  112. width: 100%;
  113. }
  114. #drupal-off-canvas .form-actions {
  115. text-align: center;
  116. margin: 10px 0;
  117. }
  118. #drupal-off-canvas .ui-autocomplete {
  119. background-color: white;
  120. position: absolute;
  121. top: 0;
  122. left: 0;
  123. cursor: default;
  124. }
  125. #drupal-off-canvas .ui-autocomplete li {
  126. display: block;
  127. }
  128. #drupal-off-canvas .ui-autocomplete li a {
  129. color: #595959 !important;
  130. cursor: pointer;
  131. padding: 5px;
  132. }