helper.scss 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. @import "vars";
  2. @import "mixins";
  3. .events {pointer-events: auto !important; }
  4. .no-events {pointer-events: none !important; }
  5. .no-bg {background-color: transparent !important; }
  6. .bg-lighten {background-color: rgba(255,255,255,0.4) !important; }
  7. .transition-1 {@include transition( all 0.1s ease-in-out); }
  8. .disabled {
  9. pointer-events: none !important;
  10. opacity: 0.5 !important;
  11. * {pointer-events: none !important; }
  12. }
  13. .in {
  14. opacity: 1 !important;
  15. pointer-events: auto !important;
  16. // * {pointer-events: auto !important; }
  17. }
  18. .out {
  19. opacity: 0 !important;
  20. pointer-events: none !important;
  21. // * {pointer-events: none !important; }
  22. }
  23. .invis { display: none; }
  24. .vis { display: block; }
  25. /*
  26. .contained-dropdown,
  27. .flex {
  28. display: -webkit-flex;
  29. display: flex;
  30. -webkit-flex-flow: column nowrap;
  31. flex-flow: column nowrap;
  32. min-height: 100%;
  33. > *:not(.unflex) {
  34. -webkit-flex: 1 auto;
  35. flex: 1 auto;
  36. // width: 100%;
  37. }
  38. .overflow-y-scroll,
  39. .adapt {
  40. -webkit-flex: 1000 1000 auto;
  41. flex: 1000 1000 auto;
  42. }
  43. .dialog-title,
  44. .noflex {
  45. -webkit-flex: 0 auto;
  46. flex: 0 auto;
  47. }
  48. }
  49. */
  50. .no-min-w {min-width: 0px !important; }
  51. .no-wrap { white-space: nowrap !important;}
  52. .text-center {text-align: center !important; }
  53. .text-left {text-align: left !important; }
  54. .text-right {text-align: right !important; }
  55. .text-large {
  56. font-size: 30px !important;
  57. font-weight: 500 !important;
  58. }
  59. .text-medium {
  60. font-size: 20px !important;
  61. font-weight: 500 !important;
  62. }
  63. .bg-dark {background: $dark !important; }
  64. .bg-blue {background: $blue !important; }
  65. .bg-light {background: $light !important; }
  66. .c-dark {color: $dark !important; }
  67. .c-blue {color: $blue !important; }
  68. .c-light {color: $light !important; }
  69. .bg-1 { background-color: $color-1 !important; }
  70. .bg-2 { background-color: $color-2 !important; }
  71. .bg-3 { background-color: $color-3 !important; }
  72. .bg-4 { background-color: $color-4 !important; }
  73. .bg-5 { background-color: $color-5 !important; }
  74. .bg-6 { background-color: $color-6 !important; }
  75. .bg-7 { background-color: $color-7 !important; }
  76. .bg-8 { background-color: $color-8 !important; }
  77. .bg-9 { background-color: $color-9 !important; }
  78. .bg-10 { background-color: $color-10 !important; }
  79. .bg-11 { background-color: $color-11 !important; }
  80. .c-1 { color: $color-1 !important; }
  81. .c-2 { color: $color-2 !important; }
  82. .c-3 { color: $color-3 !important; }
  83. .c-4 { color: $color-4 !important; }
  84. .c-5 { color: $color-5 !important; }
  85. .c-6 { color: $color-6 !important; }
  86. .c-7 { color: $color-7 !important; }
  87. .c-8 { color: $color-8 !important; }
  88. .c-9 { color: $color-9 !important; }
  89. .c-10 { color: $color-10 !important; }
  90. .c-11 { color: $color-11 !important; }
  91. .inline-list {
  92. padding: 0;
  93. margin: 0;
  94. li {
  95. display: inline-block;
  96. }
  97. }
  98. .sticky {
  99. position: -webkit-sticky;
  100. position: -moz-sticky;
  101. position: -o-sticky;
  102. position: -ms-sticky;
  103. position: sticky;
  104. top: 10px;
  105. z-index: 1;
  106. }
  107. .truncate {
  108. display: block;
  109. overflow: hidden;
  110. text-overflow: ellipsis;
  111. white-space: nowrap;
  112. width: 100%;
  113. }
  114. .table-fake {
  115. width: 100%;
  116. height: 100%;
  117. display: table;
  118. .cell {
  119. display: table-cell;
  120. vertical-align: middle;
  121. text-align: center;
  122. }
  123. }
  124. .ghost {
  125. height: 100%;
  126. width: 0px;
  127. display: inline-block;
  128. vertical-align: middle;
  129. }
  130. .collapse {
  131. display: none;
  132. &.in {
  133. display: block;
  134. }
  135. }
  136. .panel:hover {
  137. .collapse.collapsed {
  138. max-height: 60px !important;
  139. }
  140. }
  141. .middle {
  142. top: 50%;
  143. left: 50%;
  144. -webkit-transform: translate3d(-50%, -50%, 0);
  145. -ms-transform: translate3d(-50%, -50%, 0);
  146. transform: translate3d(-50%, -50%, 0);
  147. }
  148. .middle,
  149. .static {position: static !important; }
  150. // positions
  151. .absolute-top,
  152. .absolute-bottom,
  153. .absolute-left,
  154. .absolute-right,
  155. .absolute-top-left,
  156. .absolute-top-right,
  157. .absolute-bottom-left-right,
  158. .absolute-bottom-left,
  159. .absolute-bottom-right {
  160. // z-index: 100;
  161. position: absolute !important;
  162. }
  163. .absolute-top { top: 0; }
  164. .absolute-right { right: 0; left: auto !important;}
  165. .absolute-bottom { bottom: 0; }
  166. .absolute-left { left: 0; right: auto !important;}
  167. .absolute-top-left { top: 0; left: 0; right: auto !important;}
  168. .absolute-top-right { top: 0; right: 0; left: auto !important;}
  169. .absolute-bottom-left { bottom: 0; left: 0; right: auto !important;}
  170. .absolute-bottom-right { bottom: 0; right: 0; left: auto !important;}
  171. .absolute-bottom-left-right { bottom: 0; left: 0; right: 0;}
  172. // paddings
  173. .p-5 { padding: 5px !important; }
  174. .p-10 { padding: 10px !important; }
  175. .p-20 { padding: 20px !important; }
  176. .p-r-60 { padding-right: 60px !important; }
  177. .p-l-60 { padding-left: 60px !important; }
  178. .no-p { padding: 0 !important; }
  179. .no-p-v { padding-top: 0 !important; padding-bottom: 0 !important; }
  180. .no-p-h { padding-left: 0 !important; padding-right: 0 !important; }
  181. .no-p-b { padding-bottom: 0 !important; }
  182. .no-p-t { padding-top: 0 !important; }
  183. .no-p-l { padding-left: 0 !important; }
  184. .no-p-r { padding-right: 0 !important; }
  185. // margins
  186. .m-5 { margin: 5px !important; }
  187. .m-10 { margin: 10px !important; }
  188. .m-20 { margin: 20px !important; }
  189. .m-r-60 { margin-right: 60px !important; }
  190. .m-r-20 { margin-right: 20px !important; }
  191. .m-r-10 { margin-right: 10px !important; }
  192. .m-l-20 { margin-left: 20px !important; }
  193. .m-t-20 { margin-top: 20px !important; }
  194. .m-t-15 { margin-top: 15px !important;}
  195. .m-b-15 { margin-bottom: 15px !important;}
  196. .m-h-20 { margin-left: 20px !important; margin-right: 20px !important;}
  197. .m-v-neg-10 { margin-top: -10px !important; margin-bottom: -10px !important;}
  198. .no-m { margin: 0 !important; }
  199. // widths
  200. .w-auto {width: auto !important;}
  201. .w-08 { width: 80px !important; }
  202. .w-1 { width: 100px !important; }
  203. .w-15 { width: 150px !important; }
  204. .w-2 { width: 200px !important; }
  205. .w-25 { width: 250px !important; }
  206. .w-3 { width: 300px !important; }
  207. .w-35 { width: 350px !important; }
  208. .w-4 { width: 400px !important; }
  209. .w-5 { width: 500px !important; }
  210. .w-6 { width: 600px !important; }
  211. .w-7 { width: 700px !important; }
  212. .w-8 { width: 800px !important; }
  213. .w-85 { width: 850px !important; }
  214. .w-9 { width: 900px !important; }
  215. .w-10 { width: 1000px !important; }
  216. // heights
  217. .h-5 { height: 500px !important; }
  218. .h-55 { height: 550px !important; }
  219. .h-6 { height: 600px !important; }
  220. // radiuses
  221. .no-r { border-radius: 0 !important; }
  222. .no-r-t { border-top-left-radius: 0 !important;border-top-right-radius: 0 !important; }
  223. .no-r-r { border-top-right-radius: 0 !important;border-bottom-right-radius: 0 !important; }
  224. .no-r-b { border-bottom-left-radius: 0 !important;border-bottom-right-radius: 0 !important; }
  225. .no-r-l { border-top-left-radius: 0 !important;border-bottom-left-radius: 0 !important; }
  226. .r-10 { border-radius: 10px !important; }
  227. // border
  228. .no-b { border: none !important; }
  229. .b-v {border-top: 2px solid rgba(0,0,0,0.025) !important; border-bottom: 2px solid rgba(0,0,0,0.025) !important; }
  230. .b-h {border-left: 2px solid rgba(0,0,0,0.025) !important; border-right: 2px solid rgba(0,0,0,0.025) !important; }
  231. .b-t {border-top: 2px solid rgba(0,0,0,0.025) !important; }
  232. .b-r {border-right: 2px solid rgba(0,0,0,0.025) !important; }
  233. .b-b {border-bottom: 2px solid rgba(0,0,0,0.025) !important; }
  234. .b-l {border-left: 2px solid rgba(0,0,0,0.025) !important; }
  235. .b {border: 2px solid rgba(0,0,0,0.025) !important; }
  236. // Floats
  237. // -------------------------
  238. .clearfix {
  239. @include clearfix();
  240. }
  241. .pull-right {
  242. float: right !important;
  243. }
  244. .pull-left {
  245. float: left !important;
  246. }
  247. .block {display: block !important; }
  248. .sr-only {
  249. position: absolute;
  250. width: 1px;
  251. height: 1px;
  252. margin: -1px;
  253. padding: 0;
  254. overflow: hidden;
  255. clip: rect(0,0,0,0);
  256. border: 0;
  257. }
  258. .hidden {
  259. display: none !important;
  260. visibility: hidden !important;
  261. }
  262. .invisible {
  263. opacity: 0;
  264. pointer-events: none;
  265. }
  266. .relative {
  267. position: relative !important;
  268. }
  269. .fade {
  270. opacity: 0;
  271. @include transition(opacity .1s linear);
  272. &.in {
  273. opacity: 1;
  274. }
  275. }
  276. // .collapse {
  277. // display: none;
  278. // &.in {
  279. // display: block;
  280. // }
  281. // }
  282. // .collapsing {
  283. // position: relative;
  284. // height: 0;
  285. // overflow: hidden;
  286. // @include transition(height .35s ease);
  287. // }
  288. // Dropdown arrow/caret
  289. .caret {
  290. display: inline-block;
  291. width: 0;
  292. height: 0;
  293. margin-left: 2px;
  294. vertical-align: middle;
  295. border-top: 4px solid white;
  296. border-right: 4px solid transparent;
  297. border-left: 4px solid transparent;
  298. }