Component.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. /**
  2. * @class Global_CSS
  3. * Global CSS variables and mixins.
  4. */
  5. /**
  6. * @var {string} $prefix
  7. * The prefix to be applied to all CSS selectors. If this is changed, it must also be changed in your
  8. * JavaScript application.
  9. */
  10. $prefix: dynamic('x-');
  11. /**
  12. * @var {boolean/string} $relative-image-path-for-uis
  13. * True to use a relative image path for all new UIs. If true, the path will be "../images/".
  14. * It can also be a string of the path value.
  15. * It defaults to false, which means it will look for the images in the ExtJS SDK folder.
  16. */
  17. $relative-image-path-for-uis: false !default;
  18. /**
  19. * @var {boolean} $include-missing-images
  20. * True to include files which are not found when compiling your SASS
  21. */
  22. $include-missing-images: dynamic(true);
  23. /**
  24. * @var {boolean} $enable-missing-image-warnings
  25. * True to show a warning while including files which are not found when compiling your SASS
  26. */
  27. $enable-missing-image-warnings: dynamic($include-missing-images);
  28. /**
  29. * @var {boolean} $include-ie
  30. * True to include Internet Explorer specific rules for IE9 and lower. IE10 and up are
  31. * considered to be "modern" browsers, and as such do not need any of the CSS hacks required
  32. * for IE9 and below. Setting this property to false will result in a significantly smaller
  33. * CSS file size, and may also result in a slight performance improvement, because the
  34. * browser will have fewer rules to process.
  35. */
  36. $include-ie: dynamic(true);
  37. /**
  38. * @var {boolean} $include-ff
  39. * True to include Firefox specific rules
  40. */
  41. $include-ff: dynamic(true);
  42. /**
  43. * @var {boolean} $include-opera
  44. * True to include Opera specific rules
  45. */
  46. $include-opera: dynamic(true);
  47. /**
  48. * @var {boolean} $include-webkit
  49. * True to include Webkit specific rules
  50. */
  51. $include-webkit: dynamic(true);
  52. /**
  53. * @var {boolean} $include-safari
  54. * True to include Safari specific rules
  55. */
  56. $include-safari: dynamic($include-webkit);
  57. /**
  58. * @var {boolean} $include-chrome
  59. * True to include Chrome specific rules
  60. */
  61. $include-chrome: dynamic($include-webkit);
  62. /**
  63. * @var {boolean} $include-slicer-border-radius
  64. * True to include rules for rounded corners produced by the slicer. Enables emulation
  65. * of CSS3 border-radius in browsers that do not support it.
  66. */
  67. $include-slicer-border-radius: dynamic($include-ie);
  68. /**
  69. * @var {boolean} $include-slicer-gradient
  70. * True to include rules for background gradients produced by the slicer. Enables emulation
  71. * of CSS3 background-gradient in browsers that do not support it.
  72. */
  73. $include-slicer-gradient: dynamic($include-ie);
  74. /**
  75. * @var {number} $css-shadow-border-radius
  76. * The border radius for CSS shadows
  77. */
  78. $css-shadow-border-radius: dynamic(5px);
  79. // documented in rtl/util/Renderable
  80. $include-rtl: false !default;
  81. /**
  82. * @var {string} $image-extension
  83. * default file extension to use for images (defaults to 'png').
  84. */
  85. $image-extension: dynamic('png');
  86. /**
  87. * @var {string} $slicer-image-extension
  88. * default file extension to use for slicer images (defaults to 'gif').
  89. */
  90. $slicer-image-extension: dynamic('gif');
  91. /**
  92. * @var {string} $image-search-path
  93. * Default search path for images
  94. */
  95. $image-search-path: '.' !default;
  96. /**
  97. * @var {boolean}
  98. * True to include the default UI for each component.
  99. */
  100. $include-default-uis: dynamic(true);
  101. /**
  102. * @var {boolean}
  103. * True to add font-smoothing styles to all components
  104. */
  105. $enable-font-smoothing: dynamic(true);
  106. /**
  107. * @var {string} $theme-resource-path
  108. * The base path relative to the CSS output directory to use for theme resources. For example
  109. * if the theme's images live one directory up from the generated CSS output in a directory
  110. * named 'foo/images/', you would need to set this variable to '../foo/' in order for the image
  111. * paths in the CSS output to be generated correctly. By default this is the same as the
  112. * CSS output directory.
  113. */
  114. $theme-resource-path: dynamic('');
  115. /**
  116. * @var {boolean} [$grid-cell-field-src-included=false]
  117. * @private
  118. * Flag to ensure GridField rules only get set once
  119. */
  120. $grid-cell-field-src-included: false;