Search Results Page Improved
This commit is contained in:
1 parent
dbe51ccead
commit
4369fd78ed
2 files changed
+37
-4
No files matched your search
@@ -121,7 +121,7 @@ cursor: pointer;
|
||||
.docs-tooltip {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
border-bottom: 1px dashed #999;
|
||||
border-bottom: 1px dashed #0295aa;
|
||||
cursor: pointer;
|
||||
line-height: inherit;
|
||||
}
|
||||
@@ -882,6 +882,36 @@ text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.docs-search-result-content-record-topic {
|
||||
font-size: 90%;
|
||||
color: #31708f;
|
||||
}
|
||||
|
||||
.docs-search-result-content-record-tutorial {
|
||||
font-size: 90%;
|
||||
color: #31708f;
|
||||
}
|
||||
|
||||
.docs-search-result-content-record-review {
|
||||
font-size: 90%;
|
||||
color: #31708f;
|
||||
}
|
||||
|
||||
.docs-search-result-content-record-topic {
|
||||
font-size: 90%;
|
||||
color: #31708f;
|
||||
}
|
||||
|
||||
.docs-search-result-content-record-tutorial {
|
||||
font-size: 90%;
|
||||
color: #31708f;
|
||||
}
|
||||
|
||||
.docs-search-result-content-record-review {
|
||||
font-size: 90%;
|
||||
color: #31708f;
|
||||
}
|
||||
|
||||
.docs-search-result-content-record-title {
|
||||
font-size: 120%;
|
||||
font-weight: 500;
|
||||
|
||||
@@ -271,15 +271,18 @@ function newSuperalgosDocsSearchResultsPage() {
|
||||
|
||||
switch (result.documentIndex.category) {
|
||||
case 'Topic': {
|
||||
mainLink = result.documentIndex.docsSchemaDocument.topic + ' - Page ' + result.documentIndex.docsSchemaDocument.pageNumber + ' - ' + result.documentIndex.docsSchemaDocument.type
|
||||
HTML = HTML + '<p class="docs-search-result-content-record-topic">' + result.documentIndex.docsSchemaDocument.topic + ' - Page ' + result.documentIndex.docsSchemaDocument.pageNumber + '</p>'
|
||||
mainLink = result.documentIndex.docsSchemaDocument.type
|
||||
break
|
||||
}
|
||||
case 'Tutorial': {
|
||||
mainLink = result.documentIndex.docsSchemaDocument.tutorial + ' - Page ' + result.documentIndex.docsSchemaDocument.pageNumber + ' - ' + result.documentIndex.docsSchemaDocument.type
|
||||
HTML = HTML + '<p class="docs-search-result-content-record-tutorial">' + result.documentIndex.docsSchemaDocument.tutorial + ' - Page ' + result.documentIndex.docsSchemaDocument.pageNumber + '</p>'
|
||||
mainLink = result.documentIndex.docsSchemaDocument.type
|
||||
break
|
||||
}
|
||||
case 'Review': {
|
||||
mainLink = result.documentIndex.docsSchemaDocument.review + ' - Page ' + result.documentIndex.docsSchemaDocument.pageNumber + ' - ' + result.documentIndex.docsSchemaDocument.type
|
||||
HTML = HTML + '<p class="docs-search-result-content-record-review">' + result.documentIndex.docsSchemaDocument.review + ' - Page ' + result.documentIndex.docsSchemaDocument.pageNumber + '</p>'
|
||||
mainLink = result.documentIndex.docsSchemaDocument.type
|
||||
break
|
||||
}
|
||||
default: {
|
||||
|
||||
Reference in new issue
Block a user