_grid.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. // ===============================
  2. // ========= GRID BASE ===========
  3. // ===============================
  4. $grid-base-color: $base-color !default;
  5. // ===============================
  6. // ========= GRID HEADER =========
  7. // ===============================
  8. $grid-header-background-color: adjust-color($neutral-color, $hue: 0deg, $saturation: 0%, $lightness: -16.078%) !default;
  9. $grid-header-background-gradient: 'grid-header' !default;
  10. $grid-header-border-color: $neutral-color !default;
  11. $grid-header-over-border-color: adjust-color($base-color, $hue: -0.175deg, $saturation: 25.296%, $lightness: -2.549%) !default;
  12. $grid-header-over-background-color: $grid-header-over-border-color !default;
  13. $grid-header-over-background-gradient: 'grid-header-over' !default;
  14. $grid-header-background-color: $grid-base-color !default;
  15. $grid-header-line-height: 15px !default;
  16. $grid-header-padding: 3px 6px 4px !default;
  17. $grid-header-trigger-height: 22px !default;
  18. $grid-header-trigger-width: 14px !default;
  19. $grid-header-color: null !default;
  20. // ===============================
  21. // ========= GRID ROWS ===========
  22. // ===============================
  23. $grid-row-height: 20px !default;
  24. $grid-row-cell-color: null !default;
  25. $grid-row-cell-font-size: ceil($font-size * .9) !default;
  26. $grid-row-cell-line-height: $grid-row-cell-font-size + 4 !default;
  27. $grid-row-cell-font: normal #{$grid-row-cell-font-size}/#{$grid-row-cell-line-height} $font-family !default;
  28. //$grid-row-padding: 0 1px !default;
  29. //row wrap
  30. $grid-row-wrap-border-color: #ededed !default;
  31. $grid-row-wrap-border-width: 1px 0 !default;
  32. $grid-row-wrap-border-style: solid !default;
  33. //row body
  34. $grid-row-body-font: normal 11px/13px $font-family !default;
  35. $grid-row-body-padding: 4px !default;
  36. //row cell
  37. $grid-row-cell-background: #fff !default;
  38. $grid-row-cell-border-color: $grid-row-wrap-border-color !default;
  39. $grid-row-cell-border-style: solid !default;
  40. $grid-row-cell-border-width: 1px 0 !default;
  41. //row cell alt
  42. $grid-row-cell-alt-background: darken($grid-row-cell-background, 2) !default;
  43. //row cell over
  44. $grid-row-cell-over-border-color: adjust-color($neutral-color, $hue: 0deg, $saturation: 0%, $lightness: -6.667%) !default;
  45. $grid-row-cell-over-background-color: adjust-color($neutral-color, $hue: 0deg, $saturation: 0%, $lightness: 0.392%) !default;
  46. $grid-row-cell-over-background-gradient: 'grid-row-over' !default;
  47. //row cell selected
  48. $grid-row-cell-selected-border-style: dotted !default;
  49. $grid-row-cell-selected-border-color: adjust-color($base-color, $hue: 6.952deg, $saturation: 5.848%, $lightness: -6.471%) !default;
  50. $grid-row-cell-selected-background-color: adjust-color($base-color, $hue: 3.188deg, $saturation: 0.542%, $lightness: 7.843%) !default;
  51. //row cell focus
  52. $grid-row-cell-focus-border-color: adjust-color($neutral-color, $hue: 0deg, $saturation: 0%, $lightness: -6.667%) !default;
  53. $grid-row-cell-focus-background-color: adjust-color($neutral-color, $hue: 0deg, $saturation: 0%, $lightness: 0.392%) !default;
  54. $grid-row-cell-focus-background-gradient: 'grid-row-over' !default;
  55. //standard cells
  56. $grid-cell-inner-padding-top: 2px !default;
  57. $grid-cell-inner-padding-horizontal: 6px !default;
  58. $grid-cell-inner-padding-bottom: 3px !default;
  59. //special cell
  60. $grid-cell-special-over-background-color: adjust-color($base-color, $hue: -0.476deg, $saturation: 25.214%, $lightness: 5.686%) !default;
  61. //cell with col lines
  62. $grid-cell-with-col-lines-border-color: adjust-color($base-color, $hue: 0deg, $saturation: -55.556%, $lightness: -2.549%) !default;
  63. // ===============================
  64. // ======== GROUPED GRID =========
  65. // ===============================
  66. $grid-grouped-header-background-color: #fff !default;
  67. $grid-grouped-header-border-width: 0 0 2px 0 !default;
  68. $grid-grouped-header-border-style: solid !default;
  69. $grid-grouped-header-border-color: adjust-color($base-color, $hue: 0.844deg, $saturation: 7.644%, $lightness: -8.627%) !default;
  70. $grid-grouped-header-padding: 6px 0 0 0 !default;
  71. $grid-grouped-title-color: adjust-color($base-color, $hue: 0.952deg, $saturation: -6.718%, $lightness: -41.961%) !default;
  72. $grid-grouped-title-font: bold ceil($font-size * .9) $font-family !default;
  73. $grid-grouped-title-padding: 4px 4px 4px 17px !default;
  74. // ===============================
  75. // ========= EDITOR ==========
  76. // ===============================
  77. $grid-editor-line-height: $grid-row-height - 5 !default;
  78. $grid-editor-font: normal #{$grid-row-cell-font-size}/#{$grid-editor-line-height} $font-family !default;
  79. // ===============================
  80. // ========= ROW EDITOR ==========
  81. // ===============================
  82. $grid-row-editor-background-color: adjust-color($base-color, $hue: 1deg, $saturation: 11%, $lightness: 11%) !default;
  83. $grid-row-editor-border-color: $panel-border-color !default;
  84. $grid-row-editor-border-width: 1px !default;
  85. $grid-row-editor-border: $grid-row-editor-border-width solid $grid-row-editor-border-color !important !default;
  86. $grid-row-editor-field-padding-horizontal: 2px !default;
  87. $grid-row-editor-cb-wrap-padding-top: 0 !default;
  88. $grid-row-editor-checkbox-margin-left: -4px !default;
  89. // ===============================
  90. // ========= CELL EDITOR =========
  91. // ===============================
  92. $grid-cell-editor-field-padding-horizontal: 4px !default;
  93. $grid-cell-editor-checkbox-padding-top: 3px !default;