Skip to content

Instantly share code, notes, and snippets.

@funsunz
Last active June 12, 2016 13:56
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save funsunz/5da0f12026cf48b49bb8571289c202a5 to your computer and use it in GitHub Desktop.
Save funsunz/5da0f12026cf48b49bb8571289c202a5 to your computer and use it in GitHub Desktop.
去推广广告,多列卡片显示的百度搜索stylish样式
body {
overflow-x: hidden;
min-width: 600px;
/*background-color: rgb(248,248,248);*/
}
#container {
width: 100%
}
#content_right {
display: none
}
#content_left {
padding: 0;
width: 100%;
display: block;
counter-reset: results;
}
.rrecom-container,
.xpath-log:not(.c-container) {
transform: scale(0)
}
@media (max-width: 1200px) {}
@media (min-width: 1201px) and (max-width: 1700px) {
#content_left {
column-count: 2;
column-gap: 0px;
-moz-column-count: 2;
-moz-column-gap: 0px;
-webkit-column-count: 2;
-webkit-column-gap: 0px;
}
}
@media (min-width: 1701px) {
#content_left {
column-count: 3;
column-gap: 0px;
-moz-column-count: 3;
-moz-column-gap: 0px;
-webkit-column-count: 3;
-webkit-column-gap: 0px;
}
}
#content_left>div:not([class^='result']) {
position: absolute;
margin-top: -1em;
transform : scale(0);
}
#content_left>div[class^='result'] {
display: inline-block;
width: 90%;
padding: 10px;
margin: 1em;
word-break: normal;
word-wrap: normal;
position: relative;
z-index: 1;
/* border : 1px solid #ddd;*/
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
background-color:white;
}
#content_left>div[class^='result']:before {
counter-increment: results;
content: counter(results);
z-index: -10;
color: #EEE;
font-size: 6em;
position: absolute;
text-align: right;
width: 96%;
line-height: 1em;
}
#content_left .result-op>div {
width: 540px
}
#rs {
width: 100%
}
#rs .tt,
#rs table,
#rs tr,
#rs td,
#rs th {
display: inline;
padding: 0 5px
}
#page {
margin: 10px 0
}
#page .fk {
display: none
}
#page>a,
#page>strong {
height: auto
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment