Web:Client:Add IndicatorLoaderTheme.

This commit is contained in:
Vlada Gazizova 2022-08-29 21:43:58 +03:00
parent 899d7372d4
commit b22c5464f5
2 changed files with 27 additions and 24 deletions

View File

@ -0,0 +1,24 @@
import styled, { css } from "styled-components";
import { isMobileOnly } from "react-device-detect";
const StyledWrapper = styled.div`
#ipl-progress-indicator {
position: fixed;
z-index: 390;
top: 0;
left: -6px;
width: 0%;
height: 3px;
background-color: #eb835f;
-moz-border-radius: 1px;
-webkit-border-radius: 1px;
border-radius: 1px;
${isMobileOnly &&
css`
top: 48px;
`}
}
`;
export default StyledWrapper;

View File

@ -1,32 +1,11 @@
import React from "react";
import styled, { css } from "styled-components";
import { isMobileOnly } from "react-device-detect";
const StyledWrapper = styled.div`
#ipl-progress-indicator {
position: fixed;
z-index: 390;
top: 0;
left: -6px;
width: 0%;
height: 3px;
background-color: #eb835f;
-moz-border-radius: 1px;
-webkit-border-radius: 1px;
border-radius: 1px;
${isMobileOnly &&
css`
top: 48px;
`}
}
`;
import { ColorTheme, ThemeType } from "@docspace/common/components/ColorTheme";
const IndicatorLoader = () => {
return (
<StyledWrapper>
<ColorTheme type={ThemeType.IndicatorLoader}>
<div id="ipl-progress-indicator"></div>
</StyledWrapper>
</ColorTheme>
);
};