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.

helpers.less 8.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. .gt-df { display: flex !important; }
  2. .gt-di { display: inline !important; }
  3. .gt-dif { display: inline-flex !important; }
  4. .gt-dib { display: inline-block !important; }
  5. .gt-pr { position: relative !important; }
  6. .gt-ac { align-items: center !important; }
  7. .gt-tc { text-align: center !important; }
  8. .gt-tl { text-align: left !important; }
  9. .gt-tdn { text-decoration: none !important; }
  10. .gt-jc { justify-content: center !important; }
  11. .gt-js { justify-content: flex-start !important; }
  12. .gt-je { justify-content: flex-end !important; }
  13. .gt-sb { justify-content: space-between !important; }
  14. .gt-fc { flex-direction: column !important; }
  15. .gt-f1 { flex: 1 !important; }
  16. .gt-fw { flex-wrap: wrap !important; }
  17. .gt-vm { vertical-align: middle !important; }
  18. .gt-w-100 { width: 100% !important; }
  19. .gt-h-100 { height: 100% !important; }
  20. .gt-br-0 { border-radius: 0 !important; }
  21. /* below class names match Tailwind CSS */
  22. .gt-pointer-events-none { pointer-events: none !important; }
  23. .gt-relative { position: relative !important; }
  24. .gt-mono {
  25. font-family: var(--fonts-monospace) !important;
  26. font-size: .9em !important; /* compensate for monospace fonts being usually slightly larger */
  27. }
  28. .gt-bold { font-weight: 600 !important; }
  29. .gt-word-break {
  30. word-wrap: break-word !important;
  31. word-break: break-word; /* compat: Safari */
  32. overflow-wrap: anywhere;
  33. }
  34. .gt-ellipsis {
  35. overflow: hidden !important;
  36. white-space: nowrap !important;
  37. text-overflow: ellipsis !important;
  38. }
  39. .gt-full-screen-width { width: 100vw !important; }
  40. .gt-full-screen-height { height: 100vh !important; }
  41. .gt-rounded { border-radius: var(--border-radius) !important; }
  42. .gt-rounded-top { border-radius: var(--border-radius) var(--border-radius) 0 0 !important; }
  43. .gt-rounded-bottom { border-radius: 0 0 var(--border-radius) var(--border-radius) !important; }
  44. .gt-rounded-left { border-radius: var(--border-radius) 0 0 var(--border-radius) !important; }
  45. .gt-rounded-right { border-radius: 0 var(--border-radius) var(--border-radius) 0 !important; }
  46. .gt-border-secondary { border: 1px solid var(--color-secondary) !important; }
  47. .gt-border-secondary-top { border-top: 1px solid var(--color-secondary) !important; }
  48. .gt-border-secondary-bottom { border-bottom: 1px solid var(--color-secondary) !important; }
  49. .gt-border-secondary-left { border-left: 1px solid var(--color-secondary) !important; }
  50. .gt-border-secondary-right { border-right: 1px solid var(--color-secondary) !important; }
  51. .gt-no-transition { transition: none !important; }
  52. .gt-bg-red { background: var(--color-red) !important; }
  53. .gt-bg-orange { background: var(--color-orange) !important; }
  54. .gt-bg-yellow { background: var(--color-yellow) !important; }
  55. .gt-bg-olive { background: var(--color-olive) !important; }
  56. .gt-bg-green { background: var(--color-green) !important; }
  57. .gt-bg-teal { background: var(--color-teal) !important; }
  58. .gt-bg-blue { background: var(--color-blue) !important; }
  59. .gt-bg-violet { background: var(--color-violet) !important; }
  60. .gt-bg-purple { background: var(--color-purple) !important; }
  61. .gt-bg-pink { background: var(--color-pink) !important; }
  62. .gt-bg-brown { background: var(--color-brown) !important; }
  63. .gt-bg-grey { background: var(--color-grey) !important; }
  64. .gt-bg-gold { background: var(--color-gold) !important; }
  65. .gt-text-white { color: var(--color-white) !important; }
  66. .gt-m-0 { margin: 0 !important; }
  67. .gt-m-1 { margin: .125rem !important; }
  68. .gt-m-2 { margin: .25rem !important; }
  69. .gt-m-3 { margin: .5rem !important; }
  70. .gt-m-4 { margin: 1rem !important; }
  71. .gt-m-5 { margin: 2rem !important; }
  72. .gt-ml-0 { margin-left: 0 !important; }
  73. .gt-ml-1 { margin-left: .125rem !important; }
  74. .gt-ml-2 { margin-left: .25rem !important; }
  75. .gt-ml-3 { margin-left: .5rem !important; }
  76. .gt-ml-4 { margin-left: 1rem !important; }
  77. .gt-ml-5 { margin-left: 2rem !important; }
  78. .gt-mr-0 { margin-right: 0 !important; }
  79. .gt-mr-1 { margin-right: .125rem !important; }
  80. .gt-mr-2 { margin-right: .25rem !important; }
  81. .gt-mr-3 { margin-right: .5rem !important; }
  82. .gt-mr-4 { margin-right: 1rem !important; }
  83. .gt-mr-5 { margin-right: 2rem !important; }
  84. .gt-mt-0 { margin-top: 0 !important; }
  85. .gt-mt-1 { margin-top: .125rem !important; }
  86. .gt-mt-2 { margin-top: .25rem !important; }
  87. .gt-mt-3 { margin-top: .5rem !important; }
  88. .gt-mt-4 { margin-top: 1rem !important; }
  89. .gt-mt-5 { margin-top: 2rem !important; }
  90. .gt-mb-0 { margin-bottom: 0 !important; }
  91. .gt-mb-1 { margin-bottom: .125rem !important; }
  92. .gt-mb-2 { margin-bottom: .25rem !important; }
  93. .gt-mb-3 { margin-bottom: .5rem !important; }
  94. .gt-mb-4 { margin-bottom: 1rem !important; }
  95. .gt-mb-5 { margin-bottom: 2rem !important; }
  96. .gt-mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
  97. .gt-mx-1 { margin-left: .125rem !important; margin-right: .125rem !important; }
  98. .gt-mx-2 { margin-left: .25rem !important; margin-right: .25rem !important; }
  99. .gt-mx-3 { margin-left: .5rem !important; margin-right: .5rem !important; }
  100. .gt-mx-4 { margin-left: 1rem !important; margin-right: 1rem !important; }
  101. .gt-mx-5 { margin-left: 2rem !important; margin-right: 2rem !important; }
  102. .gt-my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
  103. .gt-my-1 { margin-top: .125rem !important; margin-bottom: .125rem !important; }
  104. .gt-my-2 { margin-top: .25rem !important; margin-bottom: .25rem !important; }
  105. .gt-my-3 { margin-top: .5rem !important; margin-bottom: .5rem !important; }
  106. .gt-my-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
  107. .gt-my-5 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
  108. .gt-p-0 { padding: 0 !important; }
  109. .gt-p-1 { padding: .125rem !important; }
  110. .gt-p-2 { padding: .25rem !important; }
  111. .gt-p-3 { padding: .5rem !important; }
  112. .gt-p-4 { padding: 1rem !important; }
  113. .gt-p-5 { padding: 2rem !important; }
  114. .gt-pl-0 { padding-left: 0 !important; }
  115. .gt-pl-1 { padding-left: .125rem !important; }
  116. .gt-pl-2 { padding-left: .25rem !important; }
  117. .gt-pl-3 { padding-left: .5rem !important; }
  118. .gt-pl-4 { padding-left: 1rem !important; }
  119. .gt-pl-5 { padding-left: 2rem !important; }
  120. .gt-pr-0 { padding-right: 0 !important; }
  121. .gt-pr-1 { padding-right: .125rem !important; }
  122. .gt-pr-2 { padding-right: .25rem !important; }
  123. .gt-pr-3 { padding-right: .5rem !important; }
  124. .gt-pr-4 { padding-right: 1rem !important; }
  125. .gt-pr-5 { padding-right: 2rem !important; }
  126. .gt-pt-0 { padding-top: 0 !important; }
  127. .gt-pt-1 { padding-top: .125rem !important; }
  128. .gt-pt-2 { padding-top: .25rem !important; }
  129. .gt-pt-3 { padding-top: .5rem !important; }
  130. .gt-pt-4 { padding-top: 1rem !important; }
  131. .gt-pt-5 { padding-top: 2rem !important; }
  132. .gt-pb-0 { padding-bottom: 0 !important; }
  133. .gt-pb-1 { padding-bottom: .125rem !important; }
  134. .gt-pb-2 { padding-bottom: .25rem !important; }
  135. .gt-pb-3 { padding-bottom: .5rem !important; }
  136. .gt-pb-4 { padding-bottom: 1rem !important; }
  137. .gt-pb-5 { padding-bottom: 2rem !important; }
  138. .gt-px-0 { padding-left: 0 !important; padding-right: 0 !important; }
  139. .gt-px-1 { padding-left: .125rem !important; padding-right: .125rem !important; }
  140. .gt-px-2 { padding-left: .25rem !important; padding-right: .25rem !important; }
  141. .gt-px-3 { padding-left: .5rem !important; padding-right: .5rem !important; }
  142. .gt-px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
  143. .gt-px-5 { padding-left: 2rem !important; padding-right: 2rem !important; }
  144. .gt-py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
  145. .gt-py-1 { padding-top: .125rem !important; padding-bottom: .125rem !important; }
  146. .gt-py-2 { padding-top: .25rem !important; padding-bottom: .25rem !important; }
  147. .gt-py-3 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
  148. .gt-py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  149. .gt-py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  150. .gt-content-center { align-content: center !important; }
  151. @media @mediaSm {
  152. .gt-db-small { display: block !important; }
  153. .gt-w-100-small { width: 100% !important; }
  154. .gt-js-small { justify-content: flex-start !important; }
  155. }
  156. /*
  157. gt-hidden must be placed after all other "display: xxx !important" classes to win the chance
  158. do not use:
  159. * "[hidden]" attribute: it's too weak, can not be applied to an element with "display: flex"
  160. * ".hidden" class: it has been polluted by Fomantic UI in many cases
  161. * inline style="display: none": it's difficult to tweak
  162. * jQuery's show/hide/toggle: it can not show/hide elements with "display: xxx !important"
  163. only use:
  164. * this ".gt-hidden" class
  165. * showElem/hideElem/toggleElem functions in "utils/dom.js"
  166. */
  167. .gt-hidden { display: none !important; }