Remove fomantic progress module (#19760)

Replace it with HTML `<progress>` element. The bar won't go green at
100% anymore but I think it's not something that fits stylistically anyways.
This commit is contained in:
silverwind 2022-05-20 05:04:45 +02:00 committed by GitHub
parent cc7236e852
commit ac8bee6aeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 37 additions and 2035 deletions

View file

@ -61,10 +61,13 @@
<div class="milestone list"> <div class="milestone list">
{{range .Milestones}} {{range .Milestones}}
<li class="item"> <li class="item">
{{svg "octicon-milestone" 16 "mr-2"}} <a href="{{$.RepoLink}}/milestone/{{.ID}}">{{.Name}}</a> <div class="df ac sb">
<div class="ui right green progress" data-percent="{{.Completeness}}"> <h2 class="df ac m-0 fw">
<div class="bar" {{if not .Completeness}}style="background-color: transparent"{{end}}> {{svg "octicon-milestone" 16 "mr-3"}}<a class="muted" href="{{$.RepoLink}}/milestone/{{.ID}}">{{.Name}}</a>
<div class="progress"></div> </h2>
<div class="df ac">
<span class="mr-3">{{.Completeness}}%</span>
<progress value="{{.Completeness}}" max="100"></progress>
</div> </div>
</div> </div>
<div class="meta"> <div class="meta">

View file

@ -73,7 +73,8 @@
{{if gt $tasks 0}} {{if gt $tasks 0}}
{{$tasksDone := .GetTasksDone}} {{$tasksDone := .GetTasksDone}}
<span class="checklist"> <span class="checklist">
{{svg "octicon-checklist" 14 "mr-2"}}{{$tasksDone}} / {{$tasks}} <span class="progress-bar"><span class="progress" style="width:calc(100% * {{$tasksDone}} / {{$tasks}});"></span></span> {{svg "octicon-checklist" 14 "mr-2"}}{{$tasksDone}} / {{$tasks}}
<progress value="{{$tasksDone}}" max="{{$tasks}}"></progress>
</span> </span>
{{end}} {{end}}
{{if ne .DeadlineUnix 0}} {{if ne .DeadlineUnix 0}}

View file

@ -80,11 +80,14 @@
<div class="milestone list"> <div class="milestone list">
{{range .Milestones}} {{range .Milestones}}
<li class="item"> <li class="item">
<div class="ui label">{{.Repo.FullName}}</div> <div class="df ac sb">
{{svg "octicon-milestone"}} <a href="{{.Repo.Link }}/milestone/{{.ID}}">{{.Name}}</a> <h2 class="df ac m-0 fw">
<div class="ui right green progress" data-percent="{{.Completeness}}"> <span class="ui large label">{{.Repo.FullName}}</span>
<div class="bar" {{if not .Completeness}}style="background-color: transparent"{{end}}> {{svg "octicon-milestone" 16 "mr-3"}}<a class="muted" href="{{.Repo.Link}}/milestone/{{.ID}}">{{.Name}}</a>
<div class="progress"></div> </h2>
<div class="df ac">
<span class="mr-3">{{.Completeness}}%</span>
<progress value="{{.Completeness}}" max="100"></progress>
</div> </div>
</div> </div>
<div class="meta"> <div class="meta">

View file

@ -34867,950 +34867,6 @@ Floated Menu / Item
/******************************* /*******************************
User Overrides User Overrides
*******************************/ *******************************/
/*!
* # Fomantic-UI - Progress Bar
* http://github.com/fomantic/Fomantic-UI/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*******************************
Progress
*******************************/
.ui.progress {
position: relative;
display: block;
max-width: 100%;
border: none;
margin: 1em 0 2.5em;
box-shadow: none;
background: rgba(0, 0, 0, 0.1);
padding: 0;
border-radius: 0.28571429rem;
}
.ui.progress:first-child {
margin: 0 0 2.5em;
}
.ui.progress:last-child {
margin: 0 0 1.5em;
}
/*******************************
Content
*******************************/
/* Activity Bar */
.ui.progress .bar {
display: block;
line-height: 1;
position: relative;
width: 0;
min-width: 2em;
background: #888888;
border-radius: 0.28571429rem;
transition: width 0.1s ease, background-color 0.1s ease;
overflow: hidden;
}
.ui.ui.ui.progress:not([data-percent]):not(.indeterminate) .bar,
.ui.ui.ui.progress[data-percent="0"]:not(.indeterminate) .bar {
background: transparent;
}
.ui.progress[data-percent="0"] .bar .progress {
color: rgba(0, 0, 0, 0.87);
}
.ui.inverted.progress[data-percent="0"] .bar .progress {
color: rgba(255, 255, 255, 0.9);
}
/* Percent Complete */
.ui.progress .bar > .progress {
white-space: nowrap;
position: absolute;
width: auto;
font-size: 0.92857143em;
top: 50%;
right: 0.5em;
left: auto;
bottom: auto;
color: rgba(255, 255, 255, 0.7);
text-shadow: none;
margin-top: -0.5em;
font-weight: 500;
text-align: left;
}
/* Label */
.ui.progress > .label {
position: absolute;
width: 100%;
font-size: 1em;
top: 100%;
right: auto;
left: 0;
bottom: auto;
color: rgba(0, 0, 0, 0.87);
font-weight: 500;
text-shadow: none;
margin-top: 0.2em;
text-align: center;
transition: color 0.4s ease;
}
/*******************************
Types
*******************************/
/* Indicating */
.ui.indicating.progress[data-percent^="1"] .bar,
.ui.indicating.progress[data-percent^="2"] .bar {
background-color: #D95C5C;
}
.ui.indicating.progress[data-percent^="3"] .bar {
background-color: #EFBC72;
}
.ui.indicating.progress[data-percent^="4"] .bar,
.ui.indicating.progress[data-percent^="5"] .bar {
background-color: #E6BB48;
}
.ui.indicating.progress[data-percent^="6"] .bar {
background-color: #DDC928;
}
.ui.indicating.progress[data-percent^="7"] .bar,
.ui.indicating.progress[data-percent^="8"] .bar {
background-color: #B4D95C;
}
.ui.indicating.progress[data-percent^="9"] .bar,
.ui.indicating.progress[data-percent^="100"] .bar {
background-color: #66DA81;
}
/* Indicating Label */
.ui.indicating.progress[data-percent^="1"] .label,
.ui.indicating.progress[data-percent^="2"] .label {
color: rgba(0, 0, 0, 0.87);
}
.ui.indicating.progress[data-percent^="3"] .label {
color: rgba(0, 0, 0, 0.87);
}
.ui.indicating.progress[data-percent^="4"] .label,
.ui.indicating.progress[data-percent^="5"] .label {
color: rgba(0, 0, 0, 0.87);
}
.ui.indicating.progress[data-percent^="6"] .label {
color: rgba(0, 0, 0, 0.87);
}
.ui.indicating.progress[data-percent^="7"] .label,
.ui.indicating.progress[data-percent^="8"] .label {
color: rgba(0, 0, 0, 0.87);
}
.ui.indicating.progress[data-percent^="9"] .label,
.ui.indicating.progress[data-percent^="100"] .label {
color: rgba(0, 0, 0, 0.87);
}
/* Inverted Indicating Label */
.ui.inverted.indicating.progress[data-percent^="1"] .label,
.ui.inverted.indicating.progress[data-percent^="2"] .label {
color: rgba(255, 255, 255, 0.9);
}
.ui.inverted.indicating.progress[data-percent^="3"] .label {
color: rgba(255, 255, 255, 0.9);
}
.ui.inverted.indicating.progress[data-percent^="4"] .label,
.ui.inverted.indicating.progress[data-percent^="5"] .label {
color: rgba(255, 255, 255, 0.9);
}
.ui.inverted.indicating.progress[data-percent^="6"] .label {
color: rgba(255, 255, 255, 0.9);
}
.ui.inverted.indicating.progress[data-percent^="7"] .label,
.ui.inverted.indicating.progress[data-percent^="8"] .label {
color: rgba(255, 255, 255, 0.9);
}
.ui.inverted.indicating.progress[data-percent^="9"] .label,
.ui.inverted.indicating.progress[data-percent^="100"] .label {
color: rgba(255, 255, 255, 0.9);
}
/* Single Digits */
.ui.indicating.progress[data-percent="1"] .bar,
.ui.indicating.progress[data-percent^="1."] .bar,
.ui.indicating.progress[data-percent="2"] .bar,
.ui.indicating.progress[data-percent^="2."] .bar,
.ui.indicating.progress[data-percent="3"] .bar,
.ui.indicating.progress[data-percent^="3."] .bar,
.ui.indicating.progress[data-percent="4"] .bar,
.ui.indicating.progress[data-percent^="4."] .bar,
.ui.indicating.progress[data-percent="5"] .bar,
.ui.indicating.progress[data-percent^="5."] .bar,
.ui.indicating.progress[data-percent="6"] .bar,
.ui.indicating.progress[data-percent^="6."] .bar,
.ui.indicating.progress[data-percent="7"] .bar,
.ui.indicating.progress[data-percent^="7."] .bar,
.ui.indicating.progress[data-percent="8"] .bar,
.ui.indicating.progress[data-percent^="8."] .bar,
.ui.indicating.progress[data-percent="9"] .bar,
.ui.indicating.progress[data-percent^="9."] .bar {
background-color: #D95C5C;
}
.ui.indicating.progress[data-percent="0"] .label,
.ui.indicating.progress[data-percent^="0."] .label,
.ui.indicating.progress[data-percent="1"] .label,
.ui.indicating.progress[data-percent^="1."] .label,
.ui.indicating.progress[data-percent="2"] .label,
.ui.indicating.progress[data-percent^="2."] .label,
.ui.indicating.progress[data-percent="3"] .label,
.ui.indicating.progress[data-percent^="3."] .label,
.ui.indicating.progress[data-percent="4"] .label,
.ui.indicating.progress[data-percent^="4."] .label,
.ui.indicating.progress[data-percent="5"] .label,
.ui.indicating.progress[data-percent^="5."] .label,
.ui.indicating.progress[data-percent="6"] .label,
.ui.indicating.progress[data-percent^="6."] .label,
.ui.indicating.progress[data-percent="7"] .label,
.ui.indicating.progress[data-percent^="7."] .label,
.ui.indicating.progress[data-percent="8"] .label,
.ui.indicating.progress[data-percent^="8."] .label,
.ui.indicating.progress[data-percent="9"] .label,
.ui.indicating.progress[data-percent^="9."] .label {
color: rgba(0, 0, 0, 0.87);
}
.ui.inverted.indicating.progress[data-percent="0"] .label,
.ui.inverted.indicating.progress[data-percent^="0."] .label,
.ui.inverted.indicating.progress[data-percent="1"] .label,
.ui.inverted.indicating.progress[data-percent^="1."] .label,
.ui.inverted.indicating.progress[data-percent="2"] .label,
.ui.inverted.indicating.progress[data-percent^="2."] .label,
.ui.inverted.indicating.progress[data-percent="3"] .label,
.ui.inverted.indicating.progress[data-percent^="3."] .label,
.ui.inverted.indicating.progress[data-percent="4"] .label,
.ui.inverted.indicating.progress[data-percent^="4."] .label,
.ui.inverted.indicating.progress[data-percent="5"] .label,
.ui.inverted.indicating.progress[data-percent^="5."] .label,
.ui.inverted.indicating.progress[data-percent="6"] .label,
.ui.inverted.indicating.progress[data-percent^="6."] .label,
.ui.inverted.indicating.progress[data-percent="7"] .label,
.ui.inverted.indicating.progress[data-percent^="7."] .label,
.ui.inverted.indicating.progress[data-percent="8"] .label,
.ui.inverted.indicating.progress[data-percent^="8."] .label,
.ui.inverted.indicating.progress[data-percent="9"] .label,
.ui.inverted.indicating.progress[data-percent^="9."] .label {
color: rgba(255, 255, 255, 0.9);
}
/* Indicating Success */
.ui.ui.indicating.progress.success .label {
color: #1A531B;
}
/* Multiple */
.ui.multiple.progress {
display: flex;
}
/*******************************
States
*******************************/
/*--------------
Success
---------------*/
.ui.ui.progress.success .bar {
background-color: #21BA45;
}
.ui.ui.progress.success .bar,
.ui.ui.progress.success .bar::after {
-webkit-animation: none;
animation: none;
}
.ui.progress.success > .label {
color: #1A531B;
}
/*--------------
Warning
---------------*/
.ui.ui.progress.warning .bar {
background-color: #F2C037;
}
.ui.ui.progress.warning .bar,
.ui.ui.progress.warning .bar::after {
-webkit-animation: none;
animation: none;
}
.ui.progress.warning > .label {
color: #794B02;
}
/*--------------
Error
---------------*/
.ui.ui.progress.error .bar {
background-color: #DB2828;
}
.ui.ui.progress.error .bar,
.ui.ui.progress.error .bar::after {
-webkit-animation: none;
animation: none;
}
.ui.progress.error > .label {
color: #912D2B;
}
/*--------------
Active
---------------*/
.ui.active.progress .bar {
position: relative;
min-width: 2em;
}
.ui.active.progress .bar::after {
content: '';
opacity: 0;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #FFFFFF;
border-radius: 0.28571429rem;
-webkit-animation: progress-active 2s ease infinite;
animation: progress-active 2s ease infinite;
transform-origin: left;
}
@-webkit-keyframes progress-active {
0% {
opacity: 0.3;
transform: scale(0, 1);
}
100% {
opacity: 0;
transform: scale(1);
}
}
@keyframes progress-active {
0% {
opacity: 0.3;
transform: scale(0, 1);
}
100% {
opacity: 0;
transform: scale(1);
}
}
/*--------------
Disabled
---------------*/
.ui.disabled.progress {
opacity: 0.35;
}
.ui.ui.disabled.progress .bar,
.ui.ui.disabled.progress .bar::after {
-webkit-animation: none;
animation: none;
}
/*******************************
Variations
*******************************/
/*--------------
Inverted
---------------*/
.ui.inverted.progress {
background: rgba(255, 255, 255, 0.08);
border: none;
}
.ui.inverted.progress .bar {
background: #888888;
}
.ui.inverted.progress .bar > .progress {
color: #1B1C1D;
}
.ui.inverted.progress > .label {
color: #FFFFFF;
}
.ui.inverted.progress.success > .label {
color: #21BA45;
}
.ui.inverted.progress.warning > .label {
color: #F2C037;
}
.ui.inverted.progress.error > .label {
color: #DB2828;
}
/*--------------
Attached
---------------*/
/* bottom attached */
.ui.progress.attached {
background: transparent;
position: relative;
border: none;
margin: 0;
}
.ui.progress.attached,
.ui.progress.attached .bar {
display: block;
height: 0.2rem;
padding: 0;
overflow: hidden;
border-radius: 0 0 0.28571429rem 0.28571429rem;
}
.ui.progress.attached .bar {
border-radius: 0;
}
/* top attached */
.ui.progress.top.attached,
.ui.progress.top.attached .bar {
top: 0;
border-radius: 0.28571429rem 0.28571429rem 0 0;
}
.ui.progress.top.attached .bar {
border-radius: 0;
}
/* Coupling */
.ui.segment > .ui.attached.progress,
.ui.card > .ui.attached.progress {
position: absolute;
top: auto;
left: 0;
bottom: 100%;
width: 100%;
}
.ui.segment > .ui.bottom.attached.progress,
.ui.card > .ui.bottom.attached.progress {
top: 100%;
bottom: auto;
}
/*--------------
Colors
---------------*/
.ui.indeterminate.primary.progress .bar::before,
.ui.primary.progress .bar,
.ui.progress .primary.bar {
background-color: #2185D0;
}
.ui.inverted.indeterminate.primary.progress .bar::before,
.ui.primary.inverted.progress .bar,
.ui.inverted.progress .primary.bar {
background-color: #54C8FF;
}
.ui.indeterminate.secondary.progress .bar::before,
.ui.secondary.progress .bar,
.ui.progress .secondary.bar {
background-color: #1B1C1D;
}
.ui.inverted.indeterminate.secondary.progress .bar::before,
.ui.secondary.inverted.progress .bar,
.ui.inverted.progress .secondary.bar {
background-color: #545454;
}
.ui.indeterminate.red.progress .bar::before,
.ui.red.progress .bar,
.ui.progress .red.bar {
background-color: #DB2828;
}
.ui.inverted.indeterminate.red.progress .bar::before,
.ui.red.inverted.progress .bar,
.ui.inverted.progress .red.bar {
background-color: #FF695E;
}
.ui.indeterminate.orange.progress .bar::before,
.ui.orange.progress .bar,
.ui.progress .orange.bar {
background-color: #F2711C;
}
.ui.inverted.indeterminate.orange.progress .bar::before,
.ui.orange.inverted.progress .bar,
.ui.inverted.progress .orange.bar {
background-color: #FF851B;
}
.ui.indeterminate.yellow.progress .bar::before,
.ui.yellow.progress .bar,
.ui.progress .yellow.bar {
background-color: #FBBD08;
}
.ui.inverted.indeterminate.yellow.progress .bar::before,
.ui.yellow.inverted.progress .bar,
.ui.inverted.progress .yellow.bar {
background-color: #FFE21F;
}
.ui.indeterminate.olive.progress .bar::before,
.ui.olive.progress .bar,
.ui.progress .olive.bar {
background-color: #B5CC18;
}
.ui.inverted.indeterminate.olive.progress .bar::before,
.ui.olive.inverted.progress .bar,
.ui.inverted.progress .olive.bar {
background-color: #D9E778;
}
.ui.indeterminate.green.progress .bar::before,
.ui.green.progress .bar,
.ui.progress .green.bar {
background-color: #21BA45;
}
.ui.inverted.indeterminate.green.progress .bar::before,
.ui.green.inverted.progress .bar,
.ui.inverted.progress .green.bar {
background-color: #2ECC40;
}
.ui.indeterminate.teal.progress .bar::before,
.ui.teal.progress .bar,
.ui.progress .teal.bar {
background-color: #00B5AD;
}
.ui.inverted.indeterminate.teal.progress .bar::before,
.ui.teal.inverted.progress .bar,
.ui.inverted.progress .teal.bar {
background-color: #6DFFFF;
}
.ui.indeterminate.blue.progress .bar::before,
.ui.blue.progress .bar,
.ui.progress .blue.bar {
background-color: #2185D0;
}
.ui.inverted.indeterminate.blue.progress .bar::before,
.ui.blue.inverted.progress .bar,
.ui.inverted.progress .blue.bar {
background-color: #54C8FF;
}
.ui.indeterminate.violet.progress .bar::before,
.ui.violet.progress .bar,
.ui.progress .violet.bar {
background-color: #6435C9;
}
.ui.inverted.indeterminate.violet.progress .bar::before,
.ui.violet.inverted.progress .bar,
.ui.inverted.progress .violet.bar {
background-color: #A291FB;
}
.ui.indeterminate.purple.progress .bar::before,
.ui.purple.progress .bar,
.ui.progress .purple.bar {
background-color: #A333C8;
}
.ui.inverted.indeterminate.purple.progress .bar::before,
.ui.purple.inverted.progress .bar,
.ui.inverted.progress .purple.bar {
background-color: #DC73FF;
}
.ui.indeterminate.pink.progress .bar::before,
.ui.pink.progress .bar,
.ui.progress .pink.bar {
background-color: #E03997;
}
.ui.inverted.indeterminate.pink.progress .bar::before,
.ui.pink.inverted.progress .bar,
.ui.inverted.progress .pink.bar {
background-color: #FF8EDF;
}
.ui.indeterminate.brown.progress .bar::before,
.ui.brown.progress .bar,
.ui.progress .brown.bar {
background-color: #A5673F;
}
.ui.inverted.indeterminate.brown.progress .bar::before,
.ui.brown.inverted.progress .bar,
.ui.inverted.progress .brown.bar {
background-color: #D67C1C;
}
.ui.indeterminate.grey.progress .bar::before,
.ui.grey.progress .bar,
.ui.progress .grey.bar {
background-color: #767676;
}
.ui.inverted.indeterminate.grey.progress .bar::before,
.ui.grey.inverted.progress .bar,
.ui.inverted.progress .grey.bar {
background-color: #DCDDDE;
}
.ui.indeterminate.black.progress .bar::before,
.ui.black.progress .bar,
.ui.progress .black.bar {
background-color: #1B1C1D;
}
.ui.inverted.indeterminate.black.progress .bar::before,
.ui.black.inverted.progress .bar,
.ui.inverted.progress .black.bar {
background-color: #545454;
}
/*--------------
Sizes
---------------*/
.ui.progress {
font-size: 1rem;
}
.ui.progress .bar {
height: 1.75em;
}
.ui.mini.progress {
font-size: 0.78571429rem;
}
.ui.mini.progress .bar {
height: 0.3em;
}
.ui.tiny.progress {
font-size: 0.85714286rem;
}
.ui.tiny.progress .bar {
height: 0.5em;
}
.ui.small.progress {
font-size: 0.92857143rem;
}
.ui.small.progress .bar {
height: 1em;
}
.ui.large.progress {
font-size: 1.14285714rem;
}
.ui.large.progress .bar {
height: 2.5em;
}
.ui.big.progress {
font-size: 1.28571429rem;
}
.ui.big.progress .bar {
height: 3.5em;
}
.ui.huge.progress {
font-size: 1.42857143rem;
}
.ui.huge.progress .bar {
height: 4em;
}
.ui.massive.progress {
font-size: 1.71428571rem;
}
.ui.massive.progress .bar {
height: 5em;
}
/*---------------
Indeterminate
----------------*/
.ui.indeterminate.progress .bar {
width: 100%;
}
.ui.indeterminate.progress .bar .progress,
.ui.progress .bar .centered.progress {
text-align: center;
position: relative;
}
.ui.indeterminate.progress .bar::before {
content: '';
position: absolute;
top: 0;
bottom: 0;
border-radius: 0.28571429rem;
-webkit-animation: progress-pulsating 2s ease infinite;
animation: progress-pulsating 2s ease infinite;
transform-origin: center;
width: 100%;
}
.ui.slow.indeterminate.progress .bar::before {
-webkit-animation-duration: 4s;
animation-duration: 4s;
}
.ui.fast.indeterminate.progress .bar::before {
-webkit-animation-duration: 1s;
animation-duration: 1s;
}
.ui.swinging.indeterminate.progress .bar::before {
transform-origin: left;
-webkit-animation-name: progress-swinging;
animation-name: progress-swinging;
}
.ui.sliding.indeterminate.progress .bar::before {
transform-origin: left;
-webkit-animation-name: progress-sliding;
animation-name: progress-sliding;
}
.ui.filling.indeterminate.progress .bar::before {
-webkit-animation-name: progress-filling;
animation-name: progress-filling;
}
.ui.indeterminate.progress:not(.sliding):not(.filling):not(.swinging) .bar::before {
background: #FFFFFF;
}
.ui.sliding.indeterminate.progress .bar,
.ui.swinging.indeterminate.progress .bar,
.ui.filling.indeterminate.progress .bar {
background: rgba(0, 0, 0, 0.1);
}
.ui.sliding.indeterminate.progress .bar .progress,
.ui.swinging.indeterminate.progress .bar .progress {
color: #1B1C1D;
}
.ui.inverted.sliding.indeterminate.progress .bar,
.ui.inverted.swinging.indeterminate.progress .bar,
.ui.inverted.filling.indeterminate.progress .bar {
background: rgba(255, 255, 255, 0.08);
}
.ui.inverted.sliding.indeterminate.progress .bar .progress,
.ui.inverted.swinging.indeterminate.progress .bar .progress {
color: rgba(255, 255, 255, 0.7);
}
@-webkit-keyframes progress-swinging {
0%, 100% {
width: 10%;
left: -25%;
}
25%, 65% {
width: 70%;
}
50% {
width: 10%;
left: 100%;
}
}
@keyframes progress-swinging {
0%, 100% {
width: 10%;
left: -25%;
}
25%, 65% {
width: 70%;
}
50% {
width: 10%;
left: 100%;
}
}
@-webkit-keyframes progress-sliding {
0% {
width: 10%;
left: -25%;
}
50% {
width: 70%;
}
100% {
width: 10%;
left: 100%;
}
}
@keyframes progress-sliding {
0% {
width: 10%;
left: -25%;
}
50% {
width: 70%;
}
100% {
width: 10%;
left: 100%;
}
}
@-webkit-keyframes progress-filling {
0% {
transform: scale(0, 1);
}
80% {
transform: scale(1);
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes progress-filling {
0% {
transform: scale(0, 1);
}
80% {
transform: scale(1);
opacity: 1;
}
100% {
opacity: 0;
}
}
@-webkit-keyframes progress-pulsating {
0% {
transform: scale(0, 1);
opacity: 0.7;
}
100% {
transform: scale(1);
opacity: 0;
}
}
@keyframes progress-pulsating {
0% {
transform: scale(0, 1);
opacity: 0.7;
}
100% {
transform: scale(1);
opacity: 0;
}
}
/*******************************
Progress
*******************************/
/*******************************
Site Overrides
*******************************/
/*! /*!
* # Fomantic-UI - Reset * # Fomantic-UI - Reset
* http://github.com/fomantic/Fomantic-UI/ * http://github.com/fomantic/Fomantic-UI/

File diff suppressed because it is too large Load diff

View file

@ -45,7 +45,6 @@
"message", "message",
"modal", "modal",
"popup", "popup",
"progress",
"reset", "reset",
"search", "search",
"segment", "segment",

View file

@ -116,9 +116,6 @@ export function initGlobalCommon() {
fullTextSearch: 'exact' fullTextSearch: 'exact'
}); });
$('.ui.checkbox').checkbox(); $('.ui.checkbox').checkbox();
$('.ui.progress').progress({
showActivity: false
});
// init popups // init popups
$('.tooltip').each((_, el) => { $('.tooltip').each((_, el) => {

View file

@ -207,6 +207,22 @@ details summary > * {
display: inline; display: inline;
} }
progress {
background: var(--color-secondary);
border-radius: 6px;
border: none;
overflow: hidden;
}
progress::-webkit-progress-bar {
background: var(--color-secondary);
}
progress::-webkit-progress-value {
background-color: var(--color-secondary-dark-3);
}
progress::-moz-progress-bar {
background: var(--color-secondary-dark-3);
}
* { * {
scrollbar-color: var(--color-primary) transparent; scrollbar-color: var(--color-primary) transparent;
caret-color: var(--color-caret); caret-color: var(--color-caret);
@ -620,10 +636,6 @@ a.ui.card:hover,
color: var(--color-primary); color: var(--color-primary);
} }
.ui.progress[data-percent="0"] .bar .progress {
color: var(--color-text);
}
.ui.attached.table { .ui.attached.table {
border-color: var(--color-secondary); border-color: var(--color-secondary);
} }

View file

@ -1238,26 +1238,9 @@
padding-bottom: 10px; padding-bottom: 10px;
border-bottom: 1px dashed var(--color-secondary); border-bottom: 1px dashed var(--color-secondary);
> a { progress {
padding-top: 5px; width: 200px;
padding-right: 10px; height: 16px;
font-size: 1.5rem;
color: var(--color-text);
&:hover {
color: var(--color-primary);
}
}
.ui.progress {
width: 40%;
padding: 0;
border: 0;
margin: 0;
.bar {
height: 20px;
}
} }
.meta { .meta {

View file

@ -83,21 +83,13 @@
.checklist { .checklist {
padding-left: 5px; padding-left: 5px;
.progress-bar { progress {
margin-left: 2px; margin-left: 2px;
width: 80px; width: 80px;
height: 6px; height: 6px;
display: inline-block; display: inline-block;
background-color: var(--color-secondary);
overflow: hidden;
border-radius: 3px; border-radius: 3px;
vertical-align: 2px !important; vertical-align: 2px !important;
.progress {
background-color: var(--color-secondary-dark-3);
display: block;
height: 100%;
}
} }
} }

View file

@ -140,14 +140,6 @@
background-color: #383c4a; background-color: #383c4a;
} }
.ui.green.progress .bar {
background-color: #668844;
}
.ui.progress.success .bar {
background-color: #7b9e57 !important;
}
.following.bar.light { .following.bar.light {
background: #2e323e; background: #2e323e;
border-color: var(--color-secondary-alpha-40); border-color: var(--color-secondary-alpha-40);