Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
e40dc8be
Unverified
Commit
e40dc8be
authored
5 years ago
by
Paul Rosenzweig
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update pulse table style to match app (#10989)
parent
cc1ddc05
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/metabase/pulse/render/style.clj
+13
-1
13 additions, 1 deletion
src/metabase/pulse/render/style.clj
src/metabase/pulse/render/table.clj
+10
-8
10 additions, 8 deletions
src/metabase/pulse/render/table.clj
with
23 additions
and
9 deletions
src/metabase/pulse/render/style.clj
+
13
−
1
View file @
e40dc8be
...
...
@@ -47,10 +47,22 @@
"~25% gray."
"#394340"
)
(
def
^
:const
color-row-border
(
def
^
:const
color-text-medium
"Color for medium text."
"#74838f"
)
(
def
^
:const
color-text-dark
"Color for dark text."
"#2E353B"
)
(
def
^
:const
color-header-row-border
"Used as color for the bottom border of table headers for charts with `:table` vizualization."
"#EDF0F1"
)
(
def
^
:const
color-body-row-border
"Used as color for the bottom border of table body rows for charts with `:table` vizualization."
"#F0F0F04D"
)
;; don't try to improve the code and make this a plain variable, in EE it's customizable which is why it's a function.
;; Too much of a hassle to have it be a fn in one version of the code an a constant in another
(
defn
primary-color
...
...
This diff is collapsed.
Click to expand it.
src/metabase/pulse/render/table.clj
+
10
−
8
View file @
e40dc8be
...
...
@@ -15,23 +15,25 @@
(
defn-
bar-th-style
[]
(
merge
(
style/font-style
)
{
:font-size
:1
4.22
px
{
:font-size
:1
2.5
px
:font-weight
700
:color
style/color-
gray-4
:border-bottom
(
str
"1px solid "
style/color-row-border
)
:color
style/color-
text-medium
:border-bottom
(
str
"1px solid "
style/color-
header-
row-border
)
:padding-top
:20px
:padding-bottom
:5px
}))
(
defn-
bar-td-style
[]
(
merge
(
style/font-style
)
{
:font-size
:1
4.22
px
:font-weight
4
00
{
:font-size
:1
2.5
px
:font-weight
7
00
:text-align
:left
:color
style/color-text-dark
:border-bottom
(
str
"1px solid "
style/color-body-row-border
)
:height
:36px
:width
:106px
:padding-right
:0.5em
:padding-left
:0.5em
:padding-top
:4px
:padding-bottom
:4px
}))
:padding-left
:0.5em
}))
(
defn-
bar-th-style-numeric
[]
(
merge
(
style/font-style
)
(
bar-th-style
)
{
:text-align
:right
}))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment