Skip to content

Commit d19dc24

Browse files
committed
remove bunch of unused styles
1 parent 8511533 commit d19dc24

File tree

2 files changed

+7
-58
lines changed

2 files changed

+7
-58
lines changed

redisinsight/ui/src/pages/home/components/add-database-screen/components/connectivity-options/ConnectivityOptions.tsx

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react'
2-
import cx from 'classnames'
32
import styled from 'styled-components'
43

54
import { AddDbType } from 'uiSrc/pages/home/constants'
@@ -16,7 +15,6 @@ import { RocketIcon } from 'uiSrc/components/base/icons'
1615
import { Col, FlexItem, Grid } from 'uiSrc/components/base/layout/flex'
1716
import { Spacer } from 'uiSrc/components/base/layout/spacer'
1817
import { SecondaryButton } from 'uiSrc/components/base/forms/buttons'
19-
import { Title } from 'uiSrc/components/base/text/Title'
2018
import { RiBadge } from 'uiSrc/components/base/display/badge/RiBadge'
2119
import { Text } from 'uiSrc/components/base/text/Text'
2220
import { Link } from 'uiSrc/components/base/link/Link'
@@ -42,27 +40,22 @@ const NewCloudLink = styled(Link)`
4240
width: 100%;
4341
height: 84px !important;
4442
padding: 0 12px;
45-
color: var(--buttonSecondaryTextColor) !important;
4643
border: 1px solid ${({ theme }) => theme.semantic.color.border.primary500};
4744
border-radius: 5px;
45+
4846
& .freeBadge {
4947
position: absolute;
50-
top: 0;
51-
left: 50%;
52-
transform: translate(-50%, -50%);
53-
z-index: 1;
48+
top: 10px;
49+
left: 10px;
5450
5551
text-transform: uppercase;
56-
background-color: var(--euiColorLightestShade);
57-
border: 1px solid var(--euiColorPrimary);
58-
border-radius: 2px !important;
52+
border-radius: 3px;
5953
}
6054
6155
& .btnIcon {
6256
margin-bottom: 8px;
63-
width: 24px;
64-
height: 24px;
65-
fill: currentColor;
57+
width: 30px;
58+
height: 30px;
6659
}
6760
`
6861

@@ -82,7 +75,7 @@ const ConnectivityOptions = (props: Props) => {
8275
data-testid="discover-cloud-btn"
8376
>
8477
<Col align="center">
85-
<CloudIcon className={styles.btnIcon} />
78+
<CloudIcon />
8679
Add databases
8780
</Col>
8881
</SecondaryButton>
Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
.sectionTitle {
2-
font-weight: 400 !important;
3-
display: flex;
4-
align-items: center;
5-
}
6-
71
.cloudSection {
82
.typeBtn {
93
min-width: 160px !important;
@@ -18,33 +12,11 @@
1812

1913
border-color: var(--separatorColorLight) !important;
2014
color: var(--buttonSecondaryTextColor) !important;
21-
//box-shadow: none !important;
22-
23-
&.small {
24-
padding: 0 8px;
25-
height: 52px !important;
26-
27-
:global(.euiButton__text) {
28-
flex-direction: row;
29-
}
30-
31-
.btnIcon {
32-
margin-right: 8px;
33-
}
34-
}
3515

3616
&:hover {
3717
background-color: transparent !important;
3818
}
3919

40-
:global(.euiButton__text) {
41-
display: flex;
42-
flex-direction: column;
43-
align-items: center;
44-
font-weight: 400 !important;
45-
}
46-
47-
&:not(.small) {
4820
.btnIcon {
4921
margin-bottom: 8px;
5022

@@ -54,20 +26,4 @@
5426
width: 24px;
5527
}
5628
}
57-
}
58-
59-
60-
61-
.freeBadge {
62-
position: absolute;
63-
top: 0;
64-
left: 50%;
65-
transform: translate(-50%, -50%);
66-
z-index: 1;
67-
68-
text-transform: uppercase;
69-
background-color: var(--euiColorLightestShade);
70-
border: 1px solid var(--euiColorPrimary);
71-
border-radius: 2px !important;
72-
}
7329
}

0 commit comments

Comments
 (0)