1
0

tooltip.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /**
  2. * @copyright Copyright (c) 2016, John Molakvoæ <skjnldsv@protonmail.com>
  3. * @copyright Copyright (c) 2016, Robin Appelman <robin@icewind.nl>
  4. * @copyright Copyright (c) 2016, Jan-Christoph Borchardt <hey@jancborchardt.net>
  5. * @copyright Copyright (c) 2016, Erik Pellikka <erik@pellikka.org>
  6. * @copyright Copyright (c) 2015, Vincent Petry <pvince81@owncloud.com>
  7. *
  8. * Bootstrap v3.3.5 (http://getbootstrap.com)
  9. * Copyright 2011-2015 Twitter, Inc.
  10. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  11. */
  12. .tooltip {
  13. position: absolute;
  14. display: block;
  15. font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  16. font-style: normal;
  17. font-weight: normal;
  18. letter-spacing: normal;
  19. line-break: auto;
  20. line-height: 1.42857143;
  21. text-align: left;
  22. text-align: start;
  23. text-decoration: none;
  24. text-shadow: none;
  25. text-transform: none;
  26. white-space: normal;
  27. word-break: normal;
  28. word-spacing: normal;
  29. word-wrap: normal;
  30. font-size: 12px;
  31. opacity: 0;
  32. z-index: 100000;
  33. filter: alpha(opacity = 0);
  34. &.in {
  35. opacity: 0.9;
  36. filter: alpha(opacity = 90);
  37. }
  38. &.top {
  39. margin-top: -3px;
  40. padding: 5px 0;
  41. }
  42. &.bottom {
  43. margin-top: 3px;
  44. padding: 5px 0;
  45. }
  46. &.right {
  47. margin-left: 3px;
  48. padding: 0 5px;
  49. .tooltip-arrow {
  50. top: 50%;
  51. left: 0;
  52. margin-top: -5px;
  53. border-width: 5px 5px 5px 0;
  54. border-right-color: #000000;
  55. }
  56. }
  57. &.left {
  58. margin-left: -3px;
  59. padding: 0 5px;
  60. .tooltip-arrow {
  61. top: 50%;
  62. right: 0;
  63. margin-top: -5px;
  64. border-width: 5px 0 5px 5px;
  65. border-left-color: #000000;
  66. }
  67. }
  68. /* TOP */
  69. &.top .tooltip-arrow,
  70. &.top-left .tooltip-arrow,
  71. &.top-right .tooltip-arrow {
  72. bottom: 0;
  73. border-width: 5px 5px 0;
  74. border-top-color: #000000;
  75. }
  76. &.top .tooltip-arrow {
  77. left: 50%;
  78. margin-left: -5px;
  79. }
  80. &.top-left .tooltip-arrow {
  81. right: 5px;
  82. margin-bottom: -5px;
  83. }
  84. &.top-right .tooltip-arrow {
  85. left: 5px;
  86. margin-bottom: -5px;
  87. }
  88. /* BOTTOM */
  89. &.bottom .tooltip-arrow,
  90. &.bottom-left .tooltip-arrow,
  91. &.bottom-right .tooltip-arrow {
  92. top: 0;
  93. border-width: 0 5px 5px;
  94. border-bottom-color: #000000;
  95. }
  96. &.bottom .tooltip-arrow {
  97. left: 50%;
  98. margin-left: -5px;
  99. }
  100. &.bottom-left .tooltip-arrow {
  101. right: 5px;
  102. margin-top: -5px;
  103. }
  104. &.bottom-right .tooltip-arrow {
  105. left: 5px;
  106. margin-top: -5px;
  107. }
  108. }
  109. .tooltip-inner {
  110. max-width: 350px;
  111. padding: 3px 8px;
  112. color: #ffffff;
  113. text-align: center;
  114. background-color: #000000;
  115. border-radius: 4px;
  116. }
  117. .tooltip-arrow {
  118. position: absolute;
  119. width: 0;
  120. height: 0;
  121. border-color: transparent;
  122. border-style: solid;
  123. }