From e76e720dec410c076c0b7ee06867a586cfab4e16 Mon Sep 17 00:00:00 2001 From: yiminghe Date: Fri, 26 Jun 2015 15:29:44 +0800 Subject: [PATCH] update modal style --- package.json | 6 +++--- style/components/dialog/Dialog.less | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8c85ff3cb2..28a0a5d956 100644 --- a/package.json +++ b/package.json @@ -15,14 +15,14 @@ "gregorian-calendar": "~3.0.0", "gregorian-calendar-format": "~3.0.1", "rc-calendar": "~3.9.0", - "rc-dialog": "~4.3.4", + "rc-dialog": "~4.3.5", "rc-dropdown": "~1.0.2", "rc-menu": "~3.4.0", "rc-progress": "~1.0.0", "rc-select": "~4.0.0", + "rc-steps": "~1.0.3", "rc-tabs": "~5.1.0", - "rc-tooltip": "~2.1.1", - "rc-steps": "~1.0.3" + "rc-tooltip": "~2.1.1" }, "devDependencies": { "babel-core": "~5.4.7", diff --git a/style/components/dialog/Dialog.less b/style/components/dialog/Dialog.less index 2a7ddeb1b7..cdff472330 100644 --- a/style/components/dialog/Dialog.less +++ b/style/components/dialog/Dialog.less @@ -44,7 +44,35 @@ opacity: .2; text-decoration: none; + &-x { + position: absolute; + display: inline-block; + font-style: normal; + vertical-align: baseline; + text-align: center; + text-transform: none; + text-rendering: auto; + // 更好地渲染字体 + -webkit-font-smoothing: antialiased; + -webkit-text-stroke-width: 0px; + -moz-osx-font-smoothing: grayscale; + width: 12px; + height: 12px; + font-size: 12px; + line-height: 12px; + color:#000; + top:18px; + right: 18px; + + &:before { + content:"\e61e"; + display: block; + font-family: "anticon" !important; + } + } + &:hover { + color:#000; opacity: 1; filter: alpha(opacity=100); text-decoration: none;