Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

preview "Rotate milestone"

as-opdef90ea1fdf4
diff --git a/frontend/src/app/core/loading-indicator/loading-indicator.service.ts b/frontend/src/app/core/loading-indicator/loading-indicator.service.ts
index c81803f23ed..9a8d48271fa 100644
--- a/frontend/src/app/core/loading-indicator/loading-indicator.service.ts
+++ b/frontend/src/app/core/loading-indicator/loading-indicator.service.ts
@@ -64,12 +64,9 @@ export function withDelayedLoadingIndicator<T>(indicator:() => LoadingIndicator)
export class LoadingIndicator {
private indicatorTemplate =
`<div class="loading-indicator--background">
- <svg class="op-loading-indicator">
- <rect rx="4px"/>
- <rect rx="4px"/>
- <rect rx="4px"/>
- <rect rx="2px"/>
- </svg>
+ <div class="op-loading-indicator">
+ <div></div><div></div>
+ </div>
</div>
`;
diff --git a/frontend/src/app/shared/components/toaster/toast.component.html b/frontend/src/app/shared/components/toaster/toast.component.html
index 499dfbb1d21..51ff8367b45 100644
--- a/frontend/src/app/shared/components/toaster/toast.component.html
+++ b/frontend/src/app/shared/components/toaster/toast.component.html
@@ -2,15 +2,12 @@
<div class="op-toast--content" role="alert" aria-atomic="true">
<ng-container *ngIf="type === 'loading'">
<p [textContent]="toast.message"></p>
- <svg
+ <div
*ngIf="(loading$ | async)"
class="op-loading-indicator op-loading-indicator_in-toast"
>
- <rect rx="4px"/>
- <rect rx="4px"/>
- <rect rx="4px"/>
- <rect rx="2px"/>
- </svg>
+ <div></div><div></div>
+ </div>
</ng-container>
<p *ngIf="type !== 'loading'">
<span [textContent]="toast.message"></span>
diff --git a/frontend/src/global_styles/content/_loading_indicator.sass b/frontend/src/global_styles/content/_loading_indicator.sass
index 065914dfa5d..692c97d0cb6 100644
--- a/frontend/src/global_styles/content/_loading_indicator.sass
+++ b/frontend/src/global_styles/content/_loading_indicator.sass
@@ -20,33 +20,51 @@
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-@keyframes svg_ani-1
+@keyframes rotate-milestone
0%
- x: 150px
- width: 0
- 36%
- x: 0
- width: 150px
- 72%
- x: 0
- width: 0
+ rotate: 45deg
+ transform: scale(100%)
+
+ 50%
+ transform: scale(130%)
+
+ 60%
+ rotate: 1080deg
+ transform: scale(110%)
+
100%
- x: 0
- width: 0
+ rotate: 945deg
-@keyframes svg_ani-2
+@keyframes rotate-linestone
0%
- x: 150px
- 36%
- x: 0
- 72%
- x: -100px
+ rotate: 45deg
+ transform: scale(50%)
+
+ 35%
+ transform: scale(50%)
+ border: solid 4px #a3eea8
+ top: 21px
+ left: 56px
+ border-radius: 10px
+
+ 60%
+ rotate: 1080deg
+ transform: scale(180%)
+ border: solid 0px #a3eea8
+ top: 23px
+ left: 58px
+ border-radius: 10px
+
100%
- x: -100px
+ rotate: 945deg
+ border: solid 0px #a3eea8
+ top: 24px
+ left: 59px
+ border-radius: 10px
$loading-indicator-bg-color: var(--body-background)
$loading-indicator-width: 150px
-$loading-indicator-height: 70px
+$loading-indicator-height: 80px
.loading-indicator--background
@include overlay-background
@@ -57,54 +75,34 @@ $loading-indicator-height: 70px
.loading-indicator--location
position: relative
-
.op-loading-indicator
- margin: 0
+ background-color: transparent
+ width: $loading-indicator-width
+ height: $loading-indicator-height
+ overflow: hidden
position: relative
+ margin: 0
left: calc(50% - ($loading-indicator-width / 2))
top: 33%
- width: $loading-indicator-width
- height: $loading-indicator-height
- view-box: 0 0 $loading-indicator-width $loading-indicator-height
-
- rect
- rx: 4px
- x: 152px
- height: 10px
- width: 150px
- animation-duration: 2000ms
- animation-iteration-count: infinite
- animation-timing-function: linear
- animation-name: svg_ani-1
+ div
&:nth-of-type(1)
- fill: #f89a43
- x: 140px
- y: 6px
+ border: solid 4px #a3eea8
+ background-color: transparent
+ width: 32px
+ height: 32px
+ border-radius: 5px
+ position: absolute
+ top: 20px
+ left: 55px
+ animation: rotate-linestone 4s ease-in-out infinite
&:nth-of-type(2)
- fill: #f89a43
- y: 26px
- animation-delay: 660ms
-
- &:nth-of-type(3)
- fill: #346495
- y: 46px
- animation-name: svg_ani-1
- animation-delay: 1330ms
-
- &:nth-of-type(4)
- fill: #36c434
- y: 44px
- rx: 2px
- width: 14px
- height: 14px
- transform-box: fill-box
- transform-origin: center
- transform: rotate(45deg)
- animation-name: svg_ani-2
- animation-delay: 2130ms
-
- &_in-toast
- top: 0
- left: 50px
+ background-color: #35C53F
+ width: 32px
+ height: 32px
+ border-radius: 5px
+ position: absolute
+ top: 24px
+ left: 59px
+ animation: rotate-milestone 4s ease-in-out infinite
diff --git a/lookbook/previews/loading_indicator_preview/default.html.erb b/lookbook/previews/loading_indicator_preview/default.html.erb
index 85f228b7828..405efee8924 100644
--- a/lookbook/previews/loading_indicator_preview/default.html.erb
+++ b/lookbook/previews/loading_indicator_preview/default.html.erb
@@ -1,8 +1,5 @@
<div class="loading-indicator--background">
- <svg class="op-loading-indicator">
- <rect rx="4px"/>
- <rect rx="4px"/>
- <rect rx="4px"/>
- <rect rx="2px"/>
- </svg>
+ <div class="op-loading-indicator">
+ <div></div><div></div>
+ </div>
</div>