Skip to content

Commit

Permalink
merged main
Browse files Browse the repository at this point in the history
  • Loading branch information
m2a2x committed Nov 12, 2024
2 parents 876a377 + 0515ebd commit ffc7226
Show file tree
Hide file tree
Showing 13 changed files with 56 additions and 37 deletions.
2 changes: 1 addition & 1 deletion docs
Submodule docs updated 213 files
2 changes: 1 addition & 1 deletion formats/select
2 changes: 1 addition & 1 deletion packages/angular
2 changes: 1 addition & 1 deletion packages/react
Submodule react updated 2 files
+1 −1 demo/package.json
+2 −2 package.json
2 changes: 1 addition & 1 deletion packages/svelte
Submodule svelte updated 1 files
+2 −2 package.json
2 changes: 1 addition & 1 deletion packages/vue2
Submodule vue2 updated 2 files
+1 −1 demo/package.json
+2 −2 package.json
2 changes: 1 addition & 1 deletion packages/vue3
Submodule vue3 updated 2 files
+2 −2 demo/package.json
+2 −2 package.json
36 changes: 15 additions & 21 deletions src/components/revoGrid/styles/revo-grid.common.dark.scss
Original file line number Diff line number Diff line change
@@ -1,73 +1,67 @@
@mixin revoGridDark() {
$font-color: #d8d8d8;
color: $font-color;

$cell-border-color: #404040;
$cell-shadow-cell: 0 -1px 0 0 $cell-border-color inset;
$focused-header: rgba(#7394a0, 0.15);
$el-color: #28272b;
color: $font-color-dark;

.rowHeaders {
background-color: rgba($el-color, 0.8);
background-color: rgba($el-color-dark, 0.8);
revogr-data .rgCell {
color: rgba($font-color, 0.8);
color: rgba($font-color-dark, 0.8);
}
}

revogr-edit {
background-color: $el-color;
background-color: $el-color-dark;
}

revogr-header {
.header-rgRow {
&.group {
$shadow-bottom: 0 -1px 0 0 $cell-border-color inset;
$shadow-bottom: 0 -1px 0 0 $cell-border-color-dark inset;
box-shadow: $shadow-bottom;
}

&:not(.group) {
$shadow-bottom: 0 -1px 0 0 $cell-border-color inset;
$shadow-top: 0 -1px 0 0 $cell-border-color;
$shadow-bottom: 0 -1px 0 0 $cell-border-color-dark inset;
$shadow-top: 0 -1px 0 0 $cell-border-color-dark;
box-shadow: $shadow-top, $shadow-bottom;
}
}

.rgHeaderCell {
&.sortable {
&:hover {
background-color: rgba($cell-border-color, 0.5);
background-color: rgba($cell-border-color-dark, 0.5);
}
}
&.focused-cell {
background: $focused-header;
background: $focused-header-dark;
}
}
}

.footer-wrapper revogr-data {
box-shadow: 0 -1px 0 $cell-border-color;
box-shadow: 0 -1px 0 $cell-border-color-dark;
}

revogr-data {
.rgCell {
color: rgba($font-color, 0.9);
color: rgba($font-color-dark, 0.9);
}

.rgRow {
box-shadow: $cell-shadow-cell;
box-shadow: $cell-shadow-cell-dark;
&.focused-rgRow {
background-color: $focused-header;
background-color: $focused-header-dark;
}
}
}

revogr-viewport-scroll {
&.colPinStart {
box-shadow: -1px 0 0 $cell-border-color inset;
box-shadow: -1px 0 0 $cell-border-color-dark inset;
}

&.colPinEnd {
box-shadow: -1px 0 0 $cell-border-color;
box-shadow: -1px 0 0 $cell-border-color-dark;
}
}
}
20 changes: 12 additions & 8 deletions src/global/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
position: relative;
overflow: hidden;
color: #fff;
background-color: #6200ee;
background-color: #4545ff;
height: $h;
line-height: $h;
padding: 0 15px;
Expand All @@ -17,13 +17,11 @@
&.green {
$bg: #009037;
background-color: $bg;
border: 1px solid darken($color: $bg, $amount: 5);
}

&.red {
$bg: #E0662E;
background-color: $bg;
border: 1px solid darken($color: $bg, $amount: 5);
}

&:disabled,
Expand All @@ -32,16 +30,22 @@
filter: opacity(0.35) !important;
}

&.light {
$br-color: #cedefa;
&.outline {
$br-color: #dbdbdb;
$color: #000;
border: 1px solid $br-color;
line-height: $h - 2;
background: none;
color: $color;
box-shadow: none;
}



}

revo-grid[theme^='dark'] {
.revo-button {
&.outline {
border: 1px solid $cell-border-color-dark;
color: $font-color-dark;
}
}
}
5 changes: 5 additions & 0 deletions src/global/_colors.dark.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$font-color-dark: #d8d8d8;
$cell-border-color-dark: #404040;
$cell-shadow-cell-dark: 0 -1px 0 0 $cell-border-color-dark inset;
$focused-header-dark: rgba(#7394a0, 0.15);
$el-color-dark: #28272b;
2 changes: 1 addition & 1 deletion src/plugins/filter/filter.panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export class FilterPanel {
<button
id="revo-button-reset"
aria-label="reset"
class="revo-button light"
class="revo-button outline"
onClick={() => this.onReset()}
>
{capts.reset}
Expand Down
15 changes: 15 additions & 0 deletions src/plugins/filter/filter.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,18 @@ revogr-filter-panel {
justify-content: space-between;
align-items: center;
}

revo-grid[theme^='dark'] {
revogr-filter-panel {
background-color: $el-color-dark;

.add-filter-divider {
border-bottom-color: $el-color-dark;
}

input[type=text] {
background-color: $font-color-dark;
color: black;
}
}
}
1 change: 1 addition & 0 deletions stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const config: Config = {
sass({
injectGlobalPaths: [
'src/global/_colors.scss',
'src/global/_colors.dark.scss',
'src/global/_icons.scss',
'src/global/_mixins.scss',
'src/global/_buttons.scss',
Expand Down

0 comments on commit ffc7226

Please sign in to comment.