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