Permalink
Browse files

Bing CSS created and 0click box made smaller

  • Loading branch information...
1 parent afb7d91 commit f42a5c011b72fb3a83a64325c28a15874d6c38a4 @mrshu mrshu committed May 2, 2012
Binary file not shown.
View
@@ -0,0 +1,279 @@
+
+#ddg_zeroclick {
+ background: none repeat scroll 0 0 #fafafa;
+ border: 1px solid #dedede;
+ border-radius: 2px;
+ display: block;
+ margin-bottom: 20px;
+ width: 517px;
+ z-index: 10;
+}
+
+.ddg_zeroclick_icon {
+ display: inline;
+ float: left;
+ padding-left: 8px;
+ padding-right: 10px;
+ padding-top: 4px;
+}
+
+.ddg_answer {
+ background: url(https://duckduckgo.com/icon16.png) 4px 4px no-repeat #F9F9F9 !important;
+ line-height: 1.4;
+ padding: 4px 0px 4px 30px !important;
+ margin-bottom: 12px;
+}
+
+
+#ddg_zeroclick_header {
+ padding: 4px;
+ font-weight: bold;
+ /*background: -webkit-gradient(linear, left top, left bottom, from(#e16036), to(#d64a2d));
+ border-bottom: 1px solid #a1260d;
+ border-left: 1px solid #a73010;
+ border-right: 1px solid #a73010;
+ border-top: 1px solid #c25322;
+ */
+
+ background: -webkit-gradient(linear, left top, left bottom, from(#da5b4a), to(#c9392c));
+ border: 1px solid #c23d2a;
+ margin: -1px;
+ border-top-left-radius: 2px;
+ border-top-right-radius: 2px;
+
+
+ font-family: "Helvetica Neue", sans-serif;
+}
+
+#ddg_zeroclick_header img {
+ margin-top: -4px;
+ float: right;
+}
+
+#ddg_zeroclick_header a:active {
+ color: #fff !important;
+}
+
+
+#ddg_zeroclick_image {
+ margin: 10px;
+ float: right;
+}
+
+#ddg_zeroclick_image img {
+ padding: 1px;
+ border-radius: 2px;
+}
+
+.ddg_zeroclick_img {
+ max-width: 100px;
+ max-height: 100px;
+}
+
+#ddg_zeroclick_abstract {
+ margin: 5px 7px 5px 10px;
+ word-wrap: break-word;
+ font-size: 13px;
+ color: #505050;
+}
+
+#ddg_zeroclick_abstract > div{
+ border: 1px solid #fafafa;
+ padding-left: 2px;
+}
+
+#ddg_zeroclick_abstract p {
+ line-height: 16px;
+ font-family: "Helvetica Neue", sans-serif;
+ color: #202020;
+ padding: 5px 0;
+ margin: 0;
+}
+
+#ddg_zeroclick_abstract a{
+ text-decoration: none;
+ color: #0033cc;
+}
+
+#ddg_zeroclick_abstract a:hover {
+ text-decoration: underline;
+}
+
+.first_category {
+ margin-top: 3px !important;
+}
+
+#ddg_zeroclick_official_links {
+ padding: 5px 0px 5px 0px;
+}
+
+#ddg_zeroclick_official_links img{
+ display: inline;
+ float: left;
+ padding-right: 5px;
+ width: 16px;
+ height: 16px;
+ margin-top: -2px;
+}
+
+
+
+#ddg_zeroclick_header a {
+ text-decoration: none;
+ color: #fff;
+}
+
+#ddg_zeroclick_header a:hover {
+ text-decoration: underline;
+}
+
+.ddg_zeroclick_category{
+ /* background-image: url("data:image/gif;base64,R0lGODlhEAAQAMQQAKCgoJiYmIaGho6OjqSkpHt7e35+fq6urqurq4KCgoqKipycnJOTk3h4eLCwsKioqP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABAALAAAAAAQABAAAAVYICQ6ZGmWInSkLLu2cIo8dG3X4kPE7A4RAF4qCAEsRIuk8ghhLgJCERQSYIgY2KwVsmUMopBvWCFSmM9kSFohALchgoQoQaez5HQDWC8qgP0iDYKDhIMpIQA7"); */
+ background-image: url(https://duckduckgo.com/assets/icon_category.v101.png);
+ background-repeat: no-repeat;
+ background-position: 2px 4px;
+ line-height: 22px;
+ padding: 1px 0px 1px 36px !important;
+ border: 1px solid #fafafa;
+}
+
+
+.ddg_zeroclick_article{
+ /* background-image: url("data:image/gif;base64,R0lGODlhEAAQAMQQAKCgoJiYmIaGho6OjqSkpHt7e35+fq6urqurq4KCgoqKipycnJOTk3h4eLCwsKioqP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABAALAAAAAAQABAAAAVYICQ6ZGmWInSkLLu2cIo8dG3X4kPE7A4RAF4qCAEsRIuk8ghhLgJCERQSYIgY2KwVsmUMopBvWCFSmM9kSFohALchgoQoQaez5HQDWC8qgP0iDYKDhIMpIQA7"); */
+ background-image: url(https://duckduckgo.com/assets/icon_article.v101.png);
+ background-repeat: no-repeat;
+ background-position: 2px 4px;
+ line-height: 22px;
+ padding: 1px 0px 1px 36px !important;
+ border: 1px solid #fafafa;
+}
+
+.ddg_zeroclick_disambig {
+ line-height: 1.4;
+ padding: 4px;
+ margin-left: 48px;
+ border: 1px solid #fafafa;
+}
+
+.icon_disambig {
+ padding-top: 5px;
+ float: left;
+ text-align: right;
+ width: 48px;
+ display: block;
+}
+
+.icon_disambig img {
+ max-height: 40px;
+ max-width: 40px;
+ display: inline;
+ margin-top: 2px;
+ padding-right: 4px;
+}
+
+.icon_category {
+ text-align: right;
+ width: 58px;
+ max-height: 50px;
+ float: left;
+ padding: 5px 0px 2px 2px;
+}
+
+.icon_category img {
+ max-height: 50px;
+ max-width: 50px;
+}
+
+.ddg_zeroclick_category_item {
+ line-height: 1.4;
+ padding: 4px;
+ min-height: 30px;
+ margin-left: 62px;
+ width: 470px;
+}
+
+.ddg_zeroclick_category_item a {
+ font-size: 1.2em;
+}
+
+.disambig_holder {
+ margin: 3px;
+}
+
+.disambig_more {
+ border: 1px solid #fafafa;
+ margin-left: 52px !important;
+ padding: 4px;
+ clear: left;
+ width: 474px;
+}
+
+.disambig_more hr {
+ width: 85%;
+ height: 1px;
+ margin: 0;
+ padding: 0;
+ border: none;
+ color: #BADE89;
+ background-color: #D2D2D2;
+ text-align: left;
+}
+
+.ddg_selected{
+ background-color: #efefef !important;
+ border-radius: 2px;
+ border: 1px solid #c2c2c2 !important;
+ cursor: pointer;
+}
+
+.category_more {
+ padding: 4px 4px 4px 68px !important;
+ width: 460px;
+}
+
+
+#ddg_zeroclick_category_img {
+ max-height: 30px;
+ max-width: 30px;
+}
+
+.ddg_zeroclick_more{
+ background-image: url(https://duckduckgo.com/assets/icon_ellipsis.v101.png);
+ background-position: 0px 4px;
+ background-repeat: no-repeat;
+ margin-top: -2px;
+ padding: 3px 3px 3px 35px !important;
+ border: 1px solid #fafafa;
+}
+
+.wrapper {
+ clear: left;
+ padding-bottom: 3px;
+ width: 530px;
+ border: 1px solid #fafafa;
+}
+
+.ddg_more {
+ font-size: 12px;
+ float: right;
+ font-weight: normal;
+ line-height: 24px;
+}
+
+.ddg_more_link {
+ padding-left: 12px;
+}
+
+.ddg_head {
+ font-size: 18px;
+ line-height: 24px;
+ padding-left: 5px;
+ text-shadow: 0px -1px 0px #7d320d;
+}
+
+.clear {
+ clear: both;
+ height: 0;
+ font-size: 0;
+ line-height: 0;
+}
File renamed without changes.
View
@@ -262,7 +262,7 @@ function displaySummary(res, query) {
if (source_base_url === "wikipedia.org")
more_image = '<img src="https://duckduckgo.com/assets/icon_wikipedia.v101.png" />';
- result += '<div id="ddg_zeroclick_abstract" style="'+ (res['Image'] ? 'max-width: 420px': '') +'">' +
+ result += '<div id="ddg_zeroclick_abstract" style="'+ (res['Image'] ? 'max-width: 383px': '') +'">' +
'<div onmouseover="this.className+=\' ddg_selected\'" onmouseout="this.className=\'\'" onclick="window.location.href=\''+ res['AbstractURL'] +'\'">' +
'<p>' + res['Abstract'] +
'</p><div id="ddg_zeroclick_official_links">' +
View
@@ -388,14 +388,14 @@
],
"js": ["js/google.js"],
- "css": ["css/style.css"]
+ "css": ["css/google.css"]
},
{
"matches": [
"http://www.bing.com/search*"
],
"js": ["js/bing.js"],
- "css": ["css/style.css"]
+ "css": ["css/bing.css"]
}
],
"options_page": "html/options.html",

0 comments on commit f42a5c0

Please sign in to comment.