jquery-ui-fixes.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. /* Component containers
  2. ----------------------------------*/
  3. .ui-widget-content {
  4. border: 1px solid nc-darken($color-main-background, 20%);
  5. background: $color-main-background none;
  6. color: $color-main-text;
  7. }
  8. .ui-widget-content a {
  9. color: $color-main-text;
  10. }
  11. .ui-widget-header {
  12. border: none;
  13. color: $color-main-text;
  14. background-image: none;
  15. }
  16. .ui-widget-header a {
  17. color: $color-main-text;
  18. }
  19. /* Interaction states
  20. ----------------------------------*/
  21. .ui-state-default,
  22. .ui-widget-content .ui-state-default,
  23. .ui-widget-header .ui-state-default {
  24. border: 1px solid nc-darken($color-main-background, 20%);
  25. background: $color-main-background none;
  26. font-weight: bold;
  27. color: #555;
  28. }
  29. .ui-state-default a,
  30. .ui-state-default a:link,
  31. .ui-state-default a:visited {
  32. color: #555;
  33. }
  34. .ui-state-hover,
  35. .ui-widget-content .ui-state-hover,
  36. .ui-widget-header .ui-state-hover,
  37. .ui-state-focus,
  38. .ui-widget-content .ui-state-focus,
  39. .ui-widget-header .ui-state-focus {
  40. border: 1px solid #ddd;
  41. background: $color-main-background none;
  42. font-weight: bold;
  43. color: $color-main-text;
  44. }
  45. .ui-state-hover a,
  46. .ui-state-hover a:hover,
  47. .ui-state-hover a:link,
  48. .ui-state-hover a:visited {
  49. color: $color-main-text;
  50. }
  51. .ui-state-active,
  52. .ui-widget-content .ui-state-active,
  53. .ui-widget-header .ui-state-active {
  54. border: 1px solid $color-primary;
  55. background: $color-main-background none;
  56. font-weight: bold;
  57. color: $color-main-text;
  58. }
  59. .ui-state-active a,
  60. .ui-state-active a:link,
  61. .ui-state-active a:visited {
  62. color: $color-main-text;
  63. }
  64. /* Interaction Cues
  65. ----------------------------------*/
  66. .ui-state-highlight,
  67. .ui-widget-content .ui-state-highlight,
  68. .ui-widget-header .ui-state-highlight {
  69. border: 1px solid $color-main-background;
  70. background: $color-main-background none;
  71. color: nc-lighten($color-main-text, 30%);
  72. }
  73. .ui-state-highlight a,
  74. .ui-widget-content .ui-state-highlight a,
  75. .ui-widget-header .ui-state-highlight a {
  76. color: nc-lighten($color-main-text, 30%);
  77. }
  78. .ui-state-error,
  79. .ui-widget-content .ui-state-error,
  80. .ui-widget-header .ui-state-error {
  81. border: $color-error;
  82. background: $color-error none;
  83. color: #ffffff;
  84. }
  85. .ui-state-error a,
  86. .ui-widget-content .ui-state-error a,
  87. .ui-widget-header .ui-state-error a {
  88. color: #ffffff;
  89. }
  90. .ui-state-error-text,
  91. .ui-widget-content .ui-state-error-text,
  92. .ui-widget-header .ui-state-error-text {
  93. color: #ffffff;
  94. }
  95. /* Icons
  96. ----------------------------------*/
  97. .ui-state-default .ui-icon {
  98. background-image: url('images/ui-icons_1d2d44_256x240.png');
  99. }
  100. .ui-state-hover .ui-icon,
  101. .ui-state-focus .ui-icon {
  102. background-image: url('images/ui-icons_1d2d44_256x240.png');
  103. }
  104. .ui-state-active .ui-icon {
  105. background-image: url('images/ui-icons_1d2d44_256x240.png');
  106. }
  107. .ui-state-highlight .ui-icon {
  108. background-image: url('images/ui-icons_ffffff_256x240.png');
  109. }
  110. .ui-state-error .ui-icon,
  111. .ui-state-error-text .ui-icon {
  112. background-image: url('images/ui-icons_ffd27a_256x240.png');
  113. }
  114. /* Misc visuals
  115. ----------------------------------*/
  116. /* Overlays */
  117. .ui-widget-overlay {
  118. background: #666666 url('images/ui-bg_diagonals-thick_20_666666_40x40.png') 50% 50% repeat;
  119. opacity: .5;
  120. }
  121. .ui-widget-shadow {
  122. margin: -5px 0 0 -5px;
  123. padding: 5px;
  124. background: #000000 url('images/ui-bg_flat_10_000000_40x100.png') 50% 50% repeat-x;
  125. opacity: .2;
  126. border-radius: 5px;
  127. }
  128. /* Tabs customizations */
  129. .ui-tabs {
  130. border: none;
  131. .ui-tabs-nav.ui-corner-all {
  132. border-bottom-left-radius: 0;
  133. border-bottom-right-radius: 0;
  134. }
  135. .ui-tabs-nav {
  136. background: none;
  137. margin-bottom: 15px;
  138. .ui-state-default {
  139. border: none;
  140. border-bottom: 1px solid transparent;
  141. font-weight: normal;
  142. margin: 0 !important;
  143. padding: 0 !important;
  144. }
  145. .ui-state-hover,
  146. .ui-state-active {
  147. border: none;
  148. border-bottom: 1px solid $color-main-text;
  149. color: $color-main-text;
  150. a, a:link, a:hover, a:visited {
  151. color: $color-main-text;
  152. }
  153. }
  154. .ui-state-active {
  155. font-weight: bold;
  156. }
  157. }
  158. }
  159. /* Select menus */
  160. .ui-autocomplete {
  161. &.ui-menu {
  162. padding: 0;
  163. .ui-menu-item a {
  164. &.ui-state-focus, &.ui-state-active {
  165. font-weight: inherit;
  166. }
  167. }
  168. }
  169. &.ui-widget-content {
  170. background: $color-main-background;
  171. border-top: none;
  172. }
  173. &.ui-corner-all {
  174. border-radius: 0;
  175. border-bottom-left-radius: 3px;
  176. border-bottom-right-radius: 3px;
  177. }
  178. .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus {
  179. border: 1px solid transparent;
  180. background: inherit;
  181. color: $color-primary-element;
  182. }
  183. }
  184. .ui-button.primary {
  185. background-color: $color-primary;
  186. color: $color-primary-text;
  187. border: 1px solid $color-primary-text;
  188. }