_grid.scss 5.2 KB

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