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 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. @mixin base-common {
  2. &.v-app {
  3. height: 100%;
  4. }
  5. /* Force arrow cursor for all elements inside the app */
  6. &.v-app,
  7. .v-window,
  8. .v-popupview-popup,
  9. .v-label,
  10. .v-caption {
  11. cursor: default;
  12. }
  13. /* add box-shadows to overlay elements */
  14. .v-window {
  15. box-shadow: 0 5px 18px 0 rgba(0, 0, 0, .5);
  16. }
  17. .v-datefield-popup,
  18. .v-filterselect-suggestpopup,
  19. .v-menubar-popup,
  20. .v-slider-feedback,
  21. .v-popupview-popup,
  22. .v-contextmenu {
  23. box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .5);
  24. }
  25. body &.v-app .v-app-loading {
  26. /* You can use this to provide indication for the user that the application is loading. */
  27. /* It is applied to the same element as .v-app */
  28. background-image: url(img/loading-indicator.gif);
  29. background-repeat: no-repeat;
  30. background-position: 50%;
  31. width: 100%;
  32. height: 100%;
  33. }
  34. .v-ui {
  35. height: 100%;
  36. width: 100%;
  37. /* avoid scrollbars with margins in root layout */
  38. outline: none;
  39. position: relative;
  40. }
  41. /* Prevent margin collapse */
  42. .v-ui.v-ui-embedded {
  43. margin-top: -1px;
  44. border-top: 1px solid transparent;
  45. }
  46. /**
  47. * Try to handle printing somehow. Reasonable printing support
  48. * needs application specific planning and CSS tuning.
  49. */
  50. /* Disabled for now, see #10336
  51. @media print {
  52. .v-generated-body {
  53. height: auto;
  54. min-height: 20cm;
  55. overflow: visible;
  56. }
  57. .v-app {
  58. height: auto;
  59. min-height: 20cm;
  60. }
  61. .v-ui {
  62. overflow: visible;
  63. }
  64. .v-gridlayout {
  65. overflow: visible !important;
  66. }
  67. }
  68. */
  69. .v-ui:active,
  70. .v-ui:focus {
  71. outline: none;
  72. }
  73. &.v-app select,
  74. .v-window select {
  75. margin: 0;
  76. }
  77. .v-disabled {
  78. opacity: .3;
  79. filter: alpha(opacity=30);
  80. cursor: default;
  81. }
  82. .v-disabled * {
  83. cursor: default;
  84. }
  85. * html & .v-disabled {
  86. zoom: 1;
  87. }
  88. *+html & .v-disabled {
  89. zoom: 1;
  90. }
  91. .v-disabled .v-disabled {
  92. opacity: 1;
  93. }
  94. .v-required-field-indicator {
  95. padding-left: 2px;
  96. color: red;
  97. }
  98. .v-form fieldset {
  99. border: none;
  100. padding: 0;
  101. margin: 0;
  102. height: 100%;
  103. }
  104. .v-form-content {
  105. height: 100%;
  106. -webkit-box-sizing: border-box;
  107. -moz-box-sizing: border-box;
  108. box-sizing: border-box;
  109. }
  110. /* Field modified */ /* Disabled by default
  111. .v-modified,
  112. .v-richtextarea.v-modified iframe.gwt-RichTextArea,
  113. .v-checkbox.v-modified,
  114. .v-modified .v-select-option,
  115. .v-modified .v-textfield,
  116. .v-modified .v-datefield-calendarpanel,
  117. .v-modified .v-select-select,
  118. .v-modified .v-select-twincol-selections,
  119. .v-modified .v-select-twincol-options,
  120. .v-modified .v-slider-base {
  121. background: #ffffe0;
  122. }
  123. */
  124. .v-tooltip {
  125. cursor: default;
  126. background: #fff;
  127. box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .5);
  128. }
  129. .v-tooltip-text {
  130. overflow: auto;
  131. }
  132. .v-tooltip .v-errormessage {
  133. overflow: auto;
  134. }
  135. .v-contextmenu {
  136. background: #fff;
  137. }
  138. .v-contextmenu .gwt-MenuItem {
  139. cursor: pointer;
  140. vertical-align: middle;
  141. padding: 0;
  142. border: 0;
  143. margin: 0;
  144. }
  145. .v-contextmenu .gwt-MenuBar {
  146. overflow-y: auto;
  147. overflow-x: hidden;
  148. }
  149. .v-contextmenu .gwt-MenuItem div {
  150. cursor: pointer;
  151. vertical-align: middle;
  152. white-space: nowrap;
  153. }
  154. .v-contextmenu .gwt-MenuItem-selected div {
  155. background: #aaa;
  156. color: #fff;
  157. }
  158. .v-contextmenu table {
  159. border-collapse: collapse;
  160. margin: 0;
  161. padding: 0;
  162. }
  163. .v-contextmenu .gwt-MenuItem img {
  164. margin-right: 1em;
  165. vertical-align: middle;
  166. }
  167. /* Margins are not supported within Label */
  168. .v-label pre {
  169. margin: 0;
  170. }
  171. /* A label with undefined width is always considered to be on one line */
  172. .v-label-undef-w {
  173. white-space: nowrap;
  174. }
  175. /* Revert line-height for heading elements inside labels */
  176. .v-label h1,
  177. .v-label h2,
  178. .v-label h3,
  179. .v-label h4,
  180. .v-label h5,
  181. .v-label h6 {
  182. line-height: normal;
  183. }
  184. /* Loading indicator states
  185. * Note: client side expects that loading indicator has a height. It depends on
  186. * this css property to ensure browsers have applied all required styles.
  187. */
  188. .v-loading-indicator,
  189. .v-loading-indicator-delay,
  190. .v-loading-indicator-wait {
  191. position: absolute;
  192. top: 0;
  193. right: 0;
  194. z-index: 30000;
  195. width: 31px;
  196. height: 31px;
  197. background: transparent url(img/loading-indicator.gif);
  198. margin-right: 5px;
  199. margin-top: 5px;
  200. }
  201. .v-loading-indicator-delay {
  202. background-image: url(img/loading-indicator-delay.gif);
  203. }
  204. .v-loading-indicator-wait {
  205. background-image: url(img/loading-indicator-wait.gif);
  206. }
  207. /* Fix for Liferay, issue #2384 */
  208. &.v-app input[type="text"],
  209. &.v-app input[type="password"],
  210. &.v-app input[type="reset"],
  211. &.v-app select,
  212. &.v-app textarea ,
  213. .v-window input[type="text"],
  214. .v-window input[type="password"],
  215. .v-window input[type="reset"],
  216. .v-window select,
  217. .v-window textarea {
  218. padding: 2px;
  219. }
  220. /* Removes clear button from input fields introduced by IE10 */
  221. input::-ms-clear {
  222. display: none;
  223. }
  224. .v-drag-element {
  225. z-index: 60000;
  226. /* override any other position: properties */
  227. position: absolute !important;
  228. opacity: 0.5;
  229. filter: alpha(opacity=50);
  230. cursor: default;
  231. }
  232. .v-clip {
  233. overflow: hidden;
  234. }
  235. .v-scrollable {
  236. overflow: auto;
  237. font-size: 0;
  238. line-height: normal;
  239. }
  240. /* Set font-size in order to make Firefox scrolling better #11353 */
  241. .v-ff & .v-scrollable {
  242. font-size: $font-size;
  243. }
  244. .v-ios.v-webkit & .v-scrollable {
  245. -webkit-overflow-scrolling: touch;
  246. }
  247. /* Disable native scrolling on iOS 5 due to #8792 */
  248. .v-ios5.v-webkit & .v-scrollable {
  249. -webkit-overflow-scrolling: none;
  250. }
  251. /* "Unnecessary scrollbar" related fixes (#14631, copied from Valo) */
  252. .v-scrollable.v-panel-content > .v-widget {
  253. /* This is needed for IE */
  254. vertical-align: middle;
  255. /* Needed for all browsers. Can't really show anything outside the
  256. * scrolling area anyway, so we can safely hide any overflow */
  257. overflow: hidden;
  258. }
  259. &.v-overlay-container {
  260. width: 0;
  261. height: 0;
  262. }
  263. }
  264. /* Outside the base mixin because elements might be added directly to the body */
  265. .v-assistive-device-only {
  266. position: absolute;
  267. top: -2000px;
  268. left: -2000px;
  269. width: 10px;
  270. overflow: hidden;
  271. }
  272. /* fix for #14681 - mobile safari 8 sometimes displayed text cursor on that element */
  273. .v-radiobutton {
  274. -webkit-user-select: none;
  275. }