_qtip.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. /**
  2. * Creates the base structure of QuickTip.
  3. * @member Ext.tip.QuickTip
  4. */
  5. @mixin extjs-qtip {
  6. .#{$prefix}tip {
  7. position: absolute;
  8. overflow: visible; /*pointer needs to be able to stick out*/
  9. border-color: $tip-border-color;
  10. .#{$prefix}tip-header {
  11. .#{$prefix}box-item {
  12. padding: $tip-header-padding;
  13. }
  14. .#{$prefix}tool {
  15. padding: 0px 1px 0 0 !important;
  16. }
  17. }
  18. }
  19. @include x-frame(
  20. $cls: 'tip',
  21. $border-radius: $tip-border-radius,
  22. $border-width: $tip-border-width,
  23. $background-color: $tip-background-color,
  24. $background-gradient: $tip-background-gradient,
  25. $table: true
  26. );
  27. .#{$prefix}tip-header-text {
  28. @include no-select;
  29. color: $tip-header-color;
  30. font-size: $tip-header-font-size;
  31. font-weight: $tip-header-font-weight;
  32. }
  33. .#{$prefix}tip-header-draggable {
  34. .#{$prefix}tip-header-text {
  35. cursor: move;
  36. }
  37. }
  38. // Tip is a Panel. It uses dock layout. Body style must be the same
  39. .#{$prefix}tip-body,
  40. .#{$prefix}form-invalid-tip-body {
  41. overflow: hidden;
  42. position: relative;
  43. padding: $tip-body-padding;
  44. }
  45. .#{$prefix}tip-header,
  46. .#{$prefix}tip-body,
  47. .#{$prefix}form-invalid-tip-body {
  48. color: $tip-body-color;
  49. font-size: $tip-body-font-size;
  50. font-weight: $tip-body-font-weight;
  51. a {
  52. color: $tip-body-link-color;
  53. }
  54. }
  55. .#{$prefix}tip-anchor {
  56. position: absolute;
  57. overflow: hidden;
  58. height: 0;
  59. width: 0;
  60. border-style: solid;
  61. border-width: 5px;
  62. border-color: $tip-border-color;
  63. zoom: 1;
  64. }
  65. .#{$prefix}border-box .#{$prefix}tip-anchor {
  66. width: 10px;
  67. height: 10px;
  68. }
  69. .#{$prefix}tip-anchor-top {
  70. border-top-color: transparent;
  71. border-left-color: transparent;
  72. border-right-color: transparent;
  73. @if $include_ie {
  74. _border-top-color: pink;
  75. _border-left-color: pink;
  76. _border-right-color: pink;
  77. _filter: chroma(color=pink);
  78. }
  79. }
  80. .#{$prefix}tip-anchor-bottom {
  81. border-bottom-color: transparent;
  82. border-left-color: transparent;
  83. border-right-color: transparent;
  84. @if $include_ie {
  85. _border-bottom-color: pink;
  86. _border-left-color: pink;
  87. _border-right-color: pink;
  88. _filter: chroma(color=pink);
  89. }
  90. }
  91. .#{$prefix}tip-anchor-left {
  92. border-top-color: transparent;
  93. border-bottom-color: transparent;
  94. border-left-color: transparent;
  95. @if $include-ie {
  96. _border-top-color: pink;
  97. _border-bottom-color: pink;
  98. _border-left-color: pink;
  99. _filter: chroma(color=pink);
  100. }
  101. }
  102. .#{$prefix}tip-anchor-right {
  103. border-top-color: transparent;
  104. border-bottom-color: transparent;
  105. border-right-color: transparent;
  106. @if $include-ie {
  107. _border-top-color: pink;
  108. _border-bottom-color: pink;
  109. _border-right-color: pink;
  110. _filter: chroma(color=pink);
  111. }
  112. }
  113. //error qtip
  114. .#{$prefix}form-invalid-tip {
  115. border-color: $tip-error-border-color;
  116. @include inner-border(
  117. $width: 1px,
  118. $color: $tip-error-inner-border-color
  119. );
  120. }
  121. .#{$prefix}form-invalid-tip-body {
  122. background: 1px 1px no-repeat;
  123. background-image: theme-background-image($theme-name, 'form/exclamation.gif');
  124. padding-left: 22px;
  125. li {
  126. margin-bottom: 4px;
  127. &.last {
  128. margin-bottom: 0;
  129. }
  130. }
  131. }
  132. @include x-frame(
  133. $cls: 'form-invalid-tip',
  134. $ui: 'default',
  135. $border-radius: $tip-error-border-radius,
  136. $border-width: $tip-error-border-width,
  137. $background-color: $tip-error-background-color,
  138. $background-gradient: $tip-background-gradient,
  139. $table: true
  140. );
  141. }