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. color: #ddd;
  7. font-family: "Lucida Grande", "Lucida Sans Unicode", "liberation sans", sans-serif;
  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:not([multiple]) {
  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. color: #ddd;
  25. font-family: inherit;
  26. font-size: 12px;
  27. font-weight: bold;
  28. line-height: normal;
  29. }
  30. #drupal-off-canvas .visually-hidden {
  31. width: 0;
  32. height: 0;
  33. letter-spacing: -2em;
  34. opacity: 0;
  35. }
  36. #drupal-off-canvas .description,
  37. #drupal-off-canvas .form-item .description,
  38. #drupal-off-canvas .details-description {
  39. margin-top: 5px;
  40. color: #ddd;
  41. font-family: inherit;
  42. font-size: 12px;
  43. font-style: normal;
  44. }
  45. #drupal-off-canvas .form-item {
  46. margin-top: 10px;
  47. margin-bottom: 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. display: block;
  63. box-sizing: border-box;
  64. max-width: 100%;
  65. margin: 5px 0 0 0;
  66. padding: 6px;
  67. color: #333;
  68. border-width: 1px;
  69. border-radius: 2px;
  70. font-family: inherit;
  71. font-size: 14px;
  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. color: #595959;
  87. border-color: #333;
  88. background-color: #eee;
  89. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.125);
  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. background-color: #fff;
  104. box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.125), 0 0 8px #40b6ff;
  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. width: 100%;
  112. margin-bottom: 5px;
  113. }
  114. #drupal-off-canvas .form-actions {
  115. margin: 10px 0;
  116. text-align: center;
  117. }
  118. #drupal-off-canvas .ui-autocomplete {
  119. position: absolute;
  120. top: 0;
  121. left: 0;
  122. cursor: default;
  123. background-color: white;
  124. }
  125. #drupal-off-canvas .ui-autocomplete li {
  126. display: block;
  127. }
  128. #drupal-off-canvas .ui-autocomplete li a {
  129. padding: 5px;
  130. cursor: pointer;
  131. color: #595959 !important;
  132. }