Web:Client:Add IndicatorLoaderTheme.
This commit is contained in:
parent
899d7372d4
commit
b22c5464f5
@ -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;
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user