Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit e488806

Browse files
committed
refactor(clean up): rm tooltip footprint
1 parent 41d0685 commit e488806

File tree

3 files changed

+1
-248
lines changed

3 files changed

+1
-248
lines changed

components/index.bak.js

Lines changed: 0 additions & 91 deletions
This file was deleted.

containers/ThemeWrapper/AntUIOverWrite.js

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createGlobalStyle } from 'styled-components'
22
import { lighten } from 'polished'
33

4-
import { theme, cs } from '@utils'
4+
import { theme } from '@utils'
55

66
// move ant style to seperate file
77
const AntUIOverWrite = createGlobalStyle`
@@ -76,28 +76,6 @@ const AntUIOverWrite = createGlobalStyle`
7676
border-radius: 0;
7777
}
7878
79-
// ----
80-
// popover
81-
.ant-popover {
82-
z-index: ${cs.zIndex.popover};
83-
}
84-
.ant-popover-inner-content {
85-
padding: 0;
86-
}
87-
.ant-popover .ant-popover-content .ant-popover-inner {
88-
background: ${theme('baseColor.error')};
89-
}
90-
91-
.ant-popover-inner {
92-
background: ${theme('baseColor.error')};
93-
}
94-
95-
.ant-popover-placement-top {
96-
padding-bottom: 0;
97-
}
98-
99-
// popover end
100-
10179
// input
10280
.normal-form {
10381
.ant-input {

static/antd-3.8.4-mini.css

Lines changed: 0 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -3344,140 +3344,6 @@ textarea.ant-pagination-options-quick-jumper input {
33443344
/* stylelint-disable no-duplicate-selectors */
33453345
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
33463346
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
3347-
.ant-tooltip {
3348-
font-family: 'Chinese Quote', -apple-system, BlinkMacSystemFont, 'Segoe UI',
3349-
'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue',
3350-
Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
3351-
'Segoe UI Symbol';
3352-
font-size: 14px;
3353-
font-variant: tabular-nums;
3354-
line-height: 1.5;
3355-
color: rgba(0, 0, 0, 0.65);
3356-
-webkit-box-sizing: border-box;
3357-
box-sizing: border-box;
3358-
margin: 0;
3359-
padding: 0;
3360-
list-style: none;
3361-
position: absolute;
3362-
z-index: 1060;
3363-
display: block;
3364-
visibility: visible;
3365-
max-width: 250px;
3366-
}
3367-
.ant-tooltip-hidden {
3368-
display: none;
3369-
}
3370-
.ant-tooltip-placement-top,
3371-
.ant-tooltip-placement-topLeft,
3372-
.ant-tooltip-placement-topRight {
3373-
padding-bottom: 8px;
3374-
}
3375-
.ant-tooltip-placement-right,
3376-
.ant-tooltip-placement-rightTop,
3377-
.ant-tooltip-placement-rightBottom {
3378-
padding-left: 8px;
3379-
}
3380-
.ant-tooltip-placement-bottom,
3381-
.ant-tooltip-placement-bottomLeft,
3382-
.ant-tooltip-placement-bottomRight {
3383-
padding-top: 8px;
3384-
}
3385-
.ant-tooltip-placement-left,
3386-
.ant-tooltip-placement-leftTop,
3387-
.ant-tooltip-placement-leftBottom {
3388-
padding-right: 8px;
3389-
}
3390-
.ant-tooltip-inner {
3391-
padding: 6px 8px;
3392-
color: #fff;
3393-
text-align: left;
3394-
text-decoration: none;
3395-
background-color: rgba(0, 0, 0, 0.75);
3396-
border-radius: 4px;
3397-
-webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
3398-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
3399-
min-height: 32px;
3400-
word-wrap: break-word;
3401-
}
3402-
.ant-tooltip-arrow {
3403-
position: absolute;
3404-
width: 0;
3405-
height: 0;
3406-
border-color: transparent;
3407-
border-style: solid;
3408-
}
3409-
.ant-tooltip-placement-top .ant-tooltip-arrow,
3410-
.ant-tooltip-placement-topLeft .ant-tooltip-arrow,
3411-
.ant-tooltip-placement-topRight .ant-tooltip-arrow {
3412-
bottom: 3px;
3413-
border-width: 5px 5px 0;
3414-
border-top-color: rgba(0, 0, 0, 0.75);
3415-
}
3416-
.ant-tooltip-placement-top .ant-tooltip-arrow {
3417-
left: 50%;
3418-
margin-left: -5px;
3419-
}
3420-
.ant-tooltip-placement-topLeft .ant-tooltip-arrow {
3421-
left: 16px;
3422-
}
3423-
.ant-tooltip-placement-topRight .ant-tooltip-arrow {
3424-
right: 16px;
3425-
}
3426-
.ant-tooltip-placement-right .ant-tooltip-arrow,
3427-
.ant-tooltip-placement-rightTop .ant-tooltip-arrow,
3428-
.ant-tooltip-placement-rightBottom .ant-tooltip-arrow {
3429-
left: 3px;
3430-
border-width: 5px 5px 5px 0;
3431-
border-right-color: rgba(0, 0, 0, 0.75);
3432-
}
3433-
.ant-tooltip-placement-right .ant-tooltip-arrow {
3434-
top: 50%;
3435-
margin-top: -5px;
3436-
}
3437-
.ant-tooltip-placement-rightTop .ant-tooltip-arrow {
3438-
top: 8px;
3439-
}
3440-
.ant-tooltip-placement-rightBottom .ant-tooltip-arrow {
3441-
bottom: 8px;
3442-
}
3443-
.ant-tooltip-placement-left .ant-tooltip-arrow,
3444-
.ant-tooltip-placement-leftTop .ant-tooltip-arrow,
3445-
.ant-tooltip-placement-leftBottom .ant-tooltip-arrow {
3446-
right: 3px;
3447-
border-width: 5px 0 5px 5px;
3448-
border-left-color: rgba(0, 0, 0, 0.75);
3449-
}
3450-
.ant-tooltip-placement-left .ant-tooltip-arrow {
3451-
top: 50%;
3452-
margin-top: -5px;
3453-
}
3454-
.ant-tooltip-placement-leftTop .ant-tooltip-arrow {
3455-
top: 8px;
3456-
}
3457-
.ant-tooltip-placement-leftBottom .ant-tooltip-arrow {
3458-
bottom: 8px;
3459-
}
3460-
.ant-tooltip-placement-bottom .ant-tooltip-arrow,
3461-
.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow,
3462-
.ant-tooltip-placement-bottomRight .ant-tooltip-arrow {
3463-
top: 3px;
3464-
border-width: 0 5px 5px;
3465-
border-bottom-color: rgba(0, 0, 0, 0.75);
3466-
}
3467-
.ant-tooltip-placement-bottom .ant-tooltip-arrow {
3468-
left: 50%;
3469-
margin-left: -5px;
3470-
}
3471-
.ant-tooltip-placement-bottomLeft .ant-tooltip-arrow {
3472-
left: 16px;
3473-
}
3474-
.ant-tooltip-placement-bottomRight .ant-tooltip-arrow {
3475-
right: 16px;
3476-
}
3477-
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
3478-
/* stylelint-disable no-duplicate-selectors */
3479-
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
3480-
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
34813347
.ant-popover {
34823348
font-family: 'Chinese Quote', -apple-system, BlinkMacSystemFont, 'Segoe UI',
34833349
'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue',

0 commit comments

Comments
 (0)