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.

common.scss 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. // this file defines the common chameleon mixin any related variables etc.
  2. $chameleon-app-background: transparent;
  3. $chameleon-font-family: Arial, Helvetica, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
  4. $chameleon-font-size: 13px;
  5. $chameleon-font-size-small: 11.05px;
  6. $chameleon-font-size-big: 15.6px;
  7. $chameleon-line-height: 1.4;
  8. // rules on the application level, above theme selection
  9. @mixin chameleon-app {
  10. // App background & tooltip
  11. &.v-app {
  12. background: transparent;
  13. overflow: hidden;
  14. }
  15. .v-ui {
  16. margin-top: 0;
  17. border-top: none;
  18. }
  19. .v-tooltip {
  20. background: #fdfdee;
  21. border: 1px solid #c0c0b9;
  22. padding: 1px 5px;
  23. color: #222;
  24. font-size: 11.7px;
  25. line-height: normal;
  26. -webkit-border-radius: 4px;
  27. -moz-border-radius: 4px;
  28. }
  29. .v-sa & .v-tooltip {
  30. outline-color: #000000; /* Fallback for browsers that does not support RGBA such as IE8 */
  31. outline-color: rgba(0,0,0,.2);
  32. outline: 1px solid;
  33. -webkit-border-radius: 0;
  34. -moz-border-radius: 0;
  35. border: none;
  36. }
  37. // TODO move most of the rest to chameleon-common
  38. // Global fonts
  39. // First all the containers that have other components inside them, and are
  40. // possibly overlay elements (which reside inside the BODY element, not the .v-app element)
  41. // Then come all other overlay elements, that do not have other arbitrary
  42. // components inside them (from v-filterselect-suggestpopup onwards)
  43. &.v-app,
  44. .v-window,
  45. .v-popupview-popup,
  46. .v-tooltip,
  47. &.v-app input,
  48. &.v-app select,
  49. &.v-app button,
  50. &.v-app textarea,
  51. .v-window input,
  52. .v-window select,
  53. .v-window button,
  54. .v-window textarea,
  55. .v-popupview-popup input,
  56. .v-popupview-popup select,
  57. .v-popupview-popup button,
  58. .v-popupview-popup textarea,
  59. .v-filterselect-suggestpopup,
  60. .v-datefield-popup,
  61. .v-contextmenu,
  62. .v-Notification,
  63. .v-menubar-submenu,
  64. .v-table-header-drag,
  65. .v-menubar-submenu,
  66. .v-drag-element {
  67. font-family: $chameleon-font-family;
  68. font-size: $chameleon-font-size;
  69. line-height: $chameleon-line-height;
  70. color: #222;
  71. }
  72. // Generic overlay elements
  73. .v-window,
  74. .v-popupview-popup,
  75. .v-filterselect-suggestpopup,
  76. .v-datefield-popup,
  77. .v-contextmenu,
  78. .v-Notification,
  79. .v-menubar-submenu {
  80. border: 1px solid #adadad;
  81. border-color: #000000; /* Fallback for browsers that does not support RGBA such as IE8 */
  82. border-color: rgba(0,0,0,.4);
  83. border-radius: 4px;
  84. -webkit-border-radius: 4px;
  85. -moz-border-radius: 4px;
  86. overflow: hidden;
  87. }
  88. .v-window,
  89. .v-popupview-popup,
  90. .v-filterselect-suggestpopup,
  91. .v-datefield-popup,
  92. .v-contextmenu,
  93. .v-menubar-submenu{
  94. background: #e8e8e8; /* Fallback for browsers that does not support RGBA such as IE8 */
  95. background: rgba(232,232,232,.90);
  96. background-image: url(../img/grad-light-top.png) repeat-x;
  97. }
  98. .v-filterselect-suggestpopup,
  99. .v-contextmenu,
  100. .v-menubar-submenu {
  101. padding: 3px 0;
  102. }
  103. .v-contextmenu .gwt-MenuItem,
  104. .v-filterselect-suggestpopup .gwt-MenuItem,
  105. .v-menubar-submenu .v-menubar-menuitem {
  106. padding: .05em .7em;
  107. user-select: none;
  108. -webkit-user-select: none;
  109. -moz-user-select: none;
  110. -ms-user-select: none;
  111. cursor: default;
  112. }
  113. .v-filterselect-suggestpopup .gwt-MenuItem {
  114. padding: 0 .7em;
  115. }
  116. .v-contextmenu td.gwt-MenuItem-selected div,
  117. .v-filterselect-suggestpopup td.gwt-MenuItem-selected,
  118. .v-table .v-table-body .v-selected,
  119. .v-menubar-submenu span.v-menubar-menuitem-selected {
  120. text-shadow: none;
  121. }
  122. .v-contextmenu .gwt-MenuItem-selected,
  123. .v-filterselect-suggestpopup .gwt-MenuItem-selected,
  124. .v-table .v-selected,
  125. .v-menubar-submenu .v-menubar-menuitem-selected {
  126. background-color: #333;
  127. }
  128. .v-contextmenu .gwt-MenuItem-selected div {
  129. background: transparent;
  130. }
  131. // Misc. generics
  132. .v-tooltip .v-errormessage {
  133. color: #b2320b;
  134. padding-left: 14px;
  135. background: transparent url(../img/error-indicator.png) no-repeat 0 50%;
  136. }
  137. }
  138. @mixin chameleon-common {
  139. // Misc. generics
  140. .v-errorindicator {
  141. width: 13px;
  142. height: 1.4em;
  143. background: transparent url(../img/error-indicator.png) no-repeat right 50%;
  144. }
  145. .v-caption-small .v-errorindicator {
  146. height: 1.2em;
  147. }
  148. .v-caption-big .v-errorindicator {
  149. height: 1.8em;
  150. }
  151. }