From 9a6db5128a919bafacf66a584891d548cae7d10d Mon Sep 17 00:00:00 2001 From: Neshura Date: Fri, 17 Mar 2023 00:26:40 +0100 Subject: [PATCH] Undid changes to Service Status --- components/styles/cards/desktop.tsx | 40 +++++------------------------ 1 file changed, 7 insertions(+), 33 deletions(-) diff --git a/components/styles/cards/desktop.tsx b/components/styles/cards/desktop.tsx index 6ca2ed7..182bda0 100644 --- a/components/styles/cards/desktop.tsx +++ b/components/styles/cards/desktop.tsx @@ -82,13 +82,11 @@ const CardTitleIcon = styled.div` const CardStatus = styled.p` display: flex; flex-direction: row; - position: absolute; - top: -0.8rem; - left: 80%; font-size: 0.9rem; - padding: 0 0.2rem; - margin: 0; + padding: 0.1rem 0.3rem; + margin: 0.5rem; + margin-right: 1.5rem; color: ${props => { let ret; @@ -108,35 +106,11 @@ const CardStatus = styled.p` return ret; }}; - border-radius: 0.5rem; - border: 0.125rem solid; + border-radius: 0.5rem; + border: 0; + border-bottom: 0.125rem solid; - ${({ theme }) => { - let ret; - - if (theme.backgroundImage) { - ret = css` - background-image: ${() => { - return css` - linear-gradient(${theme.colors.background}, ${theme.colors.background}), - url(${theme.backgroundImage}) - ` - }}; - background-repeat: no-repeat; - background-attachment: fixed; - background-size: cover; - background-position: ${theme.backgroundOffset ? theme.backgroundOffset : "60%"}; - background-position-y: 0; - `; - } - else { - ret = css` - background-color: ${({ theme }) => theme.colors.background}; - `; - } - - return ret; - }}; + background: transparent; ` const CardTitle = styled.div`