_sizes.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. // Sizes & Placement
  2. @use "sass:math";
  3. $border-size--active: 3px !default;
  4. $icon-size: 16px !default;
  5. $border-radius: 2px !default;
  6. /////////////////////////
  7. // Button
  8. $button-width: 32px !default;
  9. $button-height: 32px !default;
  10. // button : half
  11. $button-width--half: floor($button-width * 0.5) !default;
  12. $button-height--half: floor($button-height * 0.5) !default;
  13. // button : quarter
  14. $button-width--quarter: floor($button-width * 0.25) !default;
  15. $button-height--quarter: floor($button-height * 0.25) !default;
  16. // button : fifth
  17. $button-width--fifth: floor($button-width * 0.2) !default;
  18. $button-height--fifth: floor($button-height * 0.2) !default;
  19. // button : plus half`
  20. $button-width--plus-half: floor($button-width * 1.5) !default;
  21. $button-height--plus-half: floor($button-height * 1.5) !default;
  22. // button : double
  23. $button-width--double: floor($button-width * 2) !default;
  24. $button-height--double: floor($button-height * 2) !default;
  25. /////////////////////////
  26. // List Items
  27. $list-item-height: 48px !default;
  28. $list-item-height--three-quarters: floor($list-item-height * 3 * 0.25) !default;
  29. /////////////////////////
  30. // Toggle
  31. $toggle-offset: 4px !default;
  32. $toggle-width: 28px !default;
  33. $toggle-height: 16px !default;
  34. $toggle-handle-size: $toggle-height - $toggle-offset !default;
  35. /////////////////////////
  36. // Panel
  37. $panel-width: 300px !default;
  38. $panel-width--three-quarters: floor($panel-width * 3 * 0.25) !default;
  39. $panel-width--plus-half: floor($panel-width * 1.5) !default;
  40. $panel-min-height--large: 240px !default;
  41. $panel-min-height--medium: 120px !default;
  42. $panel-min-height--small: 96px !default;
  43. $panel-min-height--xsmall: 32px !default;
  44. $panel-max-height--large: 680px !default;
  45. $panel-max-height--medium: 540px !default;
  46. $panel-max-height--small: 420px !default;
  47. $panel-max-height--xsmall: 240px !default;
  48. /////////////////////////
  49. // Component (widget in view) max heights based on view height
  50. $view-height--gt-medium__component-max-height: 680px !default;
  51. $view-height--medium__component-max-height: 540px !default;
  52. $view-height--small__component-max-height: 420px !default;
  53. $view-height--xsmall__component-max-height: 240px !default;
  54. /////////////////////////
  55. // Popup
  56. $docked-margin: 15px !default;
  57. $docked-margin--double: floor($docked-margin * 2) !default;
  58. /////////////////////////
  59. // Loading
  60. $looping-progress-bar-width: 20% !default;
  61. $looping-progress-bar-params: 1500ms linear infinite !default;
  62. $spinning-loader-size: $icon-size !default;
  63. /////////////////////////
  64. // Spacing
  65. $side-spacing: 15px !default;
  66. $cap-spacing: 12px !default;
  67. // spacing : three quarters
  68. $side-spacing--three-quarters: floor($side-spacing * 3 * 0.25) !default;
  69. $cap-spacing--three-quarters: floor($cap-spacing * 3 * 0.25) !default;
  70. // spacing : half
  71. $side-spacing--half: floor($side-spacing * 0.5) !default;
  72. $cap-spacing--half: floor($cap-spacing * 0.5) !default;
  73. // spacing : third
  74. $side-spacing--third: floor(math.div($side-spacing, 3)) !default;
  75. $cap-spacing--third: floor(math.div($cap-spacing, 3)) !default;
  76. // spacing : quarter
  77. $side-spacing--quarter: floor($side-spacing * 0.25) !default;
  78. $cap-spacing--quarter: floor($cap-spacing * 0.25) !default;
  79. // spacing : eighth
  80. $side-spacing--eighth: ceil($side-spacing * 0.125) !default;
  81. $cap-spacing--eighth: ceil($cap-spacing * 0.125) !default;
  82. // spacing : plus half
  83. $side-spacing--plus-half: floor($side-spacing * 1.5) !default;
  84. $cap-spacing--plus-half: floor($cap-spacing * 1.5) !default;
  85. // spacing : double
  86. $side-spacing--double: floor($side-spacing * 2) !default;
  87. $cap-spacing--double: floor($cap-spacing * 2) !default;
  88. /////////////////////////
  89. // View UI
  90. $view-ui-spacing: 10px !default;
  91. /////////////////////////
  92. // Smart Mapping Sliders
  93. $smartmapping-slider__width: 260px !default;
  94. $smartmapping-slider__base-height: 240px !default;
  95. $smartmapping-slider__ramp-width: 30px !default;
  96. $smartmapping-slider__ramp-stroke-width: 1px !default;
  97. $smartmapping-slider__ramp-path-stroke-width: 0.5px !default;
  98. $smartmapping-slider__histogram-width: 120px !default;
  99. $smartmapping-slider__range-input-height: 40px !default;
  100. $smartmapping-slider__thumb-size: 12px !default;
  101. $smartmapping-slider__thumb-size--offset: round($smartmapping-slider__thumb-size * 0.5) !default;
  102. $smartmapping-slider__thumb-pointer-size: round($smartmapping-slider__thumb-size * 0.5) !default;