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.8KB

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