Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
refreshless
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
project
refreshless
Commits
b47d794d
Commit
b47d794d
authored
5 months ago
by
ambient.impact
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3488464
: Add --refreshless-progress-bar-computed-value f/ themes.
parent
f6380e1e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/progress-bar/progress-bar.css
+17
-5
17 additions, 5 deletions
components/progress-bar/progress-bar.css
with
17 additions
and
5 deletions
components/progress-bar/progress-bar.css
+
17
−
5
View file @
b47d794d
...
@@ -57,6 +57,22 @@
...
@@ -57,6 +57,22 @@
calc
(
var
(
--refreshless-progress-bar-transition-duration
)
/
2
)
calc
(
var
(
--refreshless-progress-bar-transition-duration
)
/
2
)
ease-in
;
ease-in
;
/**
* Progress bar computed value.
*
* Unlike --refreshless-progress-bar-value, which is a float between 0 and 1
* (inclusive), this is a percent, and it also takes
* --refreshless-progress-bar-start into account. This is intended to be used
* as the cleaned up and UI-ready value. The default implementation below sets
* this as the value of the width property, but themes can use this however
* they choose.
*/
--refreshless-progress-bar-computed-value
:
calc
(
var
(
--refreshless-progress-bar-value
,
0
)
*
(
100%
-
var
(
--refreshless-progress-bar-start
)
)
+
var
(
--refreshless-progress-bar-start
)
);
}
}
.refreshless-document-progress-bar
{
.refreshless-document-progress-bar
{
...
@@ -70,11 +86,7 @@
...
@@ -70,11 +86,7 @@
height
:
var
(
--refreshless-progress-bar-thickness
);
height
:
var
(
--refreshless-progress-bar-thickness
);
width
:
calc
(
width
:
var
(
--refreshless-progress-bar-computed-value
);
var
(
--refreshless-progress-bar-value
)
*
(
100%
-
var
(
--refreshless-progress-bar-start
)
)
+
var
(
--refreshless-progress-bar-start
)
);
background-color
:
var
(
--refreshless-progress-bar-colour
);
background-color
:
var
(
--refreshless-progress-bar-colour
);
...
...
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