New pointer styles. Arrows are currently optimized to point upward. props georgestephanis, chexee. see #18693.

git-svn-id: https://develop.svn.wordpress.org/trunk@19269 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2011-11-14 10:30:14 +00:00
parent 82f5175bf7
commit 4bc2fdb619
6 changed files with 123 additions and 111 deletions

View File

@@ -1,28 +1,61 @@
.wp-pointer {
}
.wp-pointer-content {
padding: 0 15px;
background: white;
border: 1px solid #ccc;
padding: 0 0 10px;
position: relative;
font-size: 13px;
background: #fff;
border-style: solid;
border-width: 1px;
/* Fallback for non-rgba-compliant browsers */
border-color: #dfdfdf;
/* Use rgba to look better against non-white backgrounds. */
border-color: rgba(0,0,0,.125);
-webkit-border-radius: 3px;
border-radius: 3px;
-moz-box-shadow: 1px 1px 2px rgba( 0, 0, 0, 0.4 );
-webkit-box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.5);
box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 0 2px 4px rgba(0,0,0,.19);
-moz-box-shadow: 0 2px 4px rgba(0,0,0,.19);
box-shadow: 0 2px 4px rgba(0,0,0,.19);
}
.wp-pointer-content h3 {
position: relative;
margin: 0 0 5px;
padding: 15px 18px 14px 60px;
line-height: 1.4em;
font-size: 14px;
color: #fff;
border-radius: 3px 3px 0 0;
text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
background-color: #8cc1e9;
background-image: -webkit-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(140,193,233) 100%);
background-image: -moz-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(140,193,233) 100%);
background-image: -ms-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(140,193,233) 100%);
background-image: -o-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(140,193,233) 100%);
background-image: linear-gradient(bottom, rgb(114,167,207) 0%, rgb(140,193,233) 100%);
}
.wp-pointer-content h3:before {
position: absolute;
top: 0;
left: 15px;
content: ' ';
width: 36px;
height: 100%;
background: url('../images/icon-pointer-flag.png') 0 50% no-repeat;
}
.wp-pointer-content p {
padding: 0 15px;
}
.wp-pointer-buttons {
margin: 0 -15px;
padding: 5px 10px;
margin: 0;
padding: 5px 15px;
overflow: auto;
background: #f5f5f5;
border-top: 1px solid #ddd;
-webkit-border-bottom-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.wp-pointer-buttons a {
@@ -31,6 +64,24 @@
text-decoration: none;
}
.wp-pointer-buttons a.close {
padding-left:3px;
position: relative;
}
.wp-pointer-buttons a.close:before {
content: ' ';
width:10px;
height:100%;
position:absolute;
left:-10px;
background:url('../../wp-admin/images/xit.gif') 0 50% no-repeat;
}
.wp-pointer-buttons a.close:hover:before {
background-position:100% 50%;
}
/* The arrow base class must take up no space, even with transparent borders. */
.wp-pointer-arrow,
.wp-pointer-arrow-inner {
@@ -41,86 +92,66 @@
.wp-pointer-arrow {
z-index: 10;
background:url('../images/arrow-pointer-blue.png') 0 0 no-repeat;
}
.wp-pointer-arrow-inner {
z-index: 20;
}
.wp-pointer-left {
margin-left: 10px;
}
.wp-pointer-right {
margin-left: -10px;
}
.wp-pointer-top {
margin-top: 10px;
/* Make Room for the Arrow! */
.wp-pointer-top,
.wp-pointer-undefined {
padding-top: 13px;
}
.wp-pointer-bottom {
margin-top: -10px;
padding-bottom: 13px;
}
.wp-pointer-left {
padding-left: 13px;
}
.wp-pointer-right {
padding-right: 13px;
}
/* Base Size & Positioning */
.wp-pointer-top .wp-pointer-arrow,
.wp-pointer-bottom .wp-pointer-arrow,
.wp-pointer-undefined .wp-pointer-arrow {
left: 50px;
width: 30px;
height: 14px;
}
.wp-pointer-left .wp-pointer-arrow,
.wp-pointer-right .wp-pointer-arrow,
.wp-pointer-right .wp-pointer-arrow {
top: 60px;
width: 14px;
height: 30px;
}
/* Arrow Sprite */
.wp-pointer-top .wp-pointer-arrow,
.wp-pointer-undefined .wp-pointer-arrow {
top: 0;
background-position: 0 0;
}
.wp-pointer-bottom .wp-pointer-arrow {
border: solid 10px transparent;
bottom: 0;
background-position: 0 -46px;
}
.wp-pointer-left .wp-pointer-arrow {
border-right-color: #aaa;
border-left-width: 0;
left: 0;
background-position: 0 -15px;
}
.wp-pointer-right .wp-pointer-arrow {
border-left-color: #aaa;
border-right-width: 0;
}
.wp-pointer-top .wp-pointer-arrow {
border-top-width: 0;
}
.wp-pointer-bottom .wp-pointer-arrow {
border-top-color: #aaa;
border-bottom-width: 0;
}
.wp-pointer-left .wp-pointer-arrow-inner,
.wp-pointer-right .wp-pointer-arrow-inner,
.wp-pointer-top .wp-pointer-arrow-inner,
.wp-pointer-bottom .wp-pointer-arrow-inner {
border: solid 9px transparent;
}
.wp-pointer-left .wp-pointer-arrow-inner {
border-right-color: #fff;
border-left-width: 0;
top: -9px;
left: 2px;
}
.wp-pointer-right .wp-pointer-arrow-inner {
border-left-color: #fff;
border-right-width: 0;
top: -9px;
right: 2px;
}
.wp-pointer-top .wp-pointer-arrow-inner {
border-bottom-color: #fff;
border-top-width: 0;
top: 2px;
left: -9px;
}
.wp-pointer-bottom .wp-pointer-arrow-inner {
border-top-color: #fff;
border-bottom-width: 0;
bottom: 2px;
left: -9px;
right:0;
background-position:-16px -15px;
}