소스 검색

Style conditions.

pull/24/head
Ben Kurtovic 10 년 전
부모
커밋
073864eb8c
2개의 변경된 파일9개의 추가작업 그리고 5개의 파일을 삭제
  1. +7
    -3
      static/api.css
  2. +2
    -2
      templates/api.mako

+ 7
- 3
static/api.css 파일 보기

@@ -15,7 +15,7 @@ span.code {
font-family: monospace;
}

span.resp-dtype, span.resp-desc {
span.resp-dtype, span.resp-desc, span.resp-cond {
padding: 0 0.25em;
background-color: #EEE;
}
@@ -24,11 +24,11 @@ span.resp-dtype {
color: #009;
}

span.resp-dtype:before {
span.resp-dtype:before, span.resp-cond:before {
content: "(";
}

span.resp-dtype:after {
span.resp-dtype:after, span.resp-cond:before {
content: ")";
}

@@ -36,6 +36,10 @@ span.resp-desc {
color: #050;
}

span.resp-cond {
color: #900;
}

span.param-key {
color: #009;
font-weight: bold;


+ 2
- 2
templates/api.mako 파일 보기

@@ -167,14 +167,14 @@
"time": <span class="resp-dtype">float</span> <span class="resp-desc">time to generate results, in seconds</span>,
"queries": <span class="resp-dtype">int</span> <span class="resp-desc">number of search engine queries made</span>,
"cached": <span class="resp-dtype">boolean</span> <span class="resp-desc">whether or not these results are cached from an earlier search (always false in the case of action=compare)</span>,
(only if cached=true) "cache_time": <span class="resp-dtype">string</span> <span class="resp-desc">human-readable time of the original search that the results are cached from</span>,
<span class="resp-cond">only if cached=true</span> "cache_time": <span class="resp-dtype">string</span> <span class="resp-desc">human-readable time of the original search that the results are cached from</span>,
"redirected": <span class="resp-dtype">boolean</span> <span class="resp-desc">whether or not a redirect was followed</span>
},
"page": {
"title": <span class="resp-dtype">string</span> <span class="resp-desc">the normalized title of the page checked</span>,
"url": <span class="resp-dtype">string</span> <span class="resp-desc">the full URL of the page checked</span>
},
(only if redirected=true) "original_page": {
<span class="resp-cond">only if redirected=true</span> "original_page": {
"title": <span class="resp-dtype">string</span> <span class="resp-desc">the normalized title of the original page whose redirect was followed</span>,
"url": <span class="resp-dtype">string</span> <span class="resp-desc">the full URL of the original page whose redirect was followed</span>
},


불러오는 중...
취소
저장