Skip to content

Commit 401cce4

Browse files
committed
feat(app): Polish DevRank styling and docs (#9011)
1 parent ca626c3 commit 401cce4

4 files changed

Lines changed: 60 additions & 4 deletions

File tree

resources/scss/src/apps/devrank/GridContainer.scss

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,28 @@
1515
}
1616
}
1717

18-
.heatmap-cell-0 { background-color: transparent; color: var(--neo-text-color-2); opacity: 0.5; }
19-
.heatmap-cell-1 { background-color: rgba(14, 233, 175, 0.15); color: var(--neo-text-color-1); }
20-
.heatmap-cell-2 { background-color: rgba(14, 233, 175, 0.35); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
21-
.heatmap-cell-3 { background-color: rgba(14, 233, 175, 0.65); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.8); font-weight: bold; }
18+
.neo-grid-body .neo-grid-row .neo-grid-cell {
19+
&.heatmap-cell-0 {
20+
background-color: var(--heatmap-bg-0);
21+
color : var(--heatmap-text-0);
22+
}
23+
24+
&.heatmap-cell-1 {
25+
background-color: var(--heatmap-bg-1);
26+
color : var(--heatmap-text-1);
27+
}
28+
29+
&.heatmap-cell-2 {
30+
background-color: var(--heatmap-bg-2);
31+
color : var(--heatmap-text-2);
32+
text-shadow : var(--heatmap-shadow-2);
33+
}
34+
35+
&.heatmap-cell-3 {
36+
background-color: var(--heatmap-bg-3);
37+
color : var(--heatmap-text-3);
38+
font-weight : bold;
39+
text-shadow : var(--heatmap-shadow-3);
40+
}
41+
}
2242
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:root .neo-theme-neo-dark {
2+
.devrank-grid-container {
3+
--heatmap-bg-0: rgba(14, 233, 175, 0.05);
4+
--heatmap-text-0: rgba(255, 255, 255, 0.5);
5+
6+
--heatmap-bg-1: rgba(14, 233, 175, 0.15);
7+
--heatmap-text-1: #fff;
8+
9+
--heatmap-bg-2: rgba(14, 233, 175, 0.35);
10+
--heatmap-text-2: #fff;
11+
--heatmap-shadow-2: 0 1px 2px rgba(0, 0, 0, 0.5);
12+
13+
--heatmap-bg-3: rgba(14, 233, 175, 0.65);
14+
--heatmap-text-3: #fff;
15+
--heatmap-shadow-3: 0 1px 2px rgba(0, 0, 0, 0.8);
16+
}
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:root .neo-theme-neo-light {
2+
.devrank-grid-container {
3+
--heatmap-bg-0: rgba(14, 233, 175, 0.05);
4+
--heatmap-text-0: rgba(0, 0, 0, 0.5);
5+
6+
--heatmap-bg-1: rgba(14, 233, 175, 0.15);
7+
--heatmap-text-1: #000;
8+
9+
--heatmap-bg-2: rgba(14, 233, 175, 0.35);
10+
--heatmap-text-2: #000;
11+
--heatmap-shadow-2: none;
12+
13+
--heatmap-bg-3: rgba(14, 233, 175, 0.65);
14+
--heatmap-text-3: #fff;
15+
--heatmap-shadow-3: 0 1px 2px rgba(0, 0, 0, 0.8);
16+
}
17+
}

src/grid/column/Base.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class Column extends Base {
2121
*/
2222
className: 'Neo.grid.column.Base',
2323
/**
24+
* Additional CSS classes to add to the cell.
25+
* These classes are appended to the default ones (e.g. 'neo-grid-cell').
2426
* @member {Function|String|String[]|null} cellCls=null
2527
*/
2628
cellCls: null,

0 commit comments

Comments
 (0)