diff --git a/assets/styles/app.scss b/assets/styles/app.scss index 5a0af3840..c396a4368 100644 --- a/assets/styles/app.scss +++ b/assets/styles/app.scss @@ -22,3 +22,4 @@ @import './user-profile'; @import './full-page-layout'; @import './vendor'; +@import './tips-content'; diff --git a/assets/styles/index.scss b/assets/styles/index.scss index 44d255dc3..97b434612 100644 --- a/assets/styles/index.scss +++ b/assets/styles/index.scss @@ -2613,13 +2613,6 @@ article.list { max-width: 768px; margin: 0 auto; } -.advanced-search__content-block-text--mono { - font-family: monospace; - font-size: 15px; - background-color: hsla(0, 0%, 0%, 0.06); - padding: 2px 6px; - border-radius: 3px; - } .coverage-item { background-color: #FCFCFC; diff --git a/assets/styles/tips-content.scss b/assets/styles/tips-content.scss new file mode 100644 index 000000000..eb7ef03aa --- /dev/null +++ b/assets/styles/tips-content.scss @@ -0,0 +1,37 @@ +.tips-content { + @extend .advanced-search__content; + + >div { + @extend .advanced-search__content-block; + @extend .advanced-search__content-block--no-background; + } + + h3 { + margin: 0; + } + + p { + @extend .advanced-search__content-block-text; + } + + code { + color: var(--color-text); + font-family: monospace; + font-size: 15px; + background-color: hsla(0, 0%, 0%, 0.06); + padding: 2px 6px; + border-radius: 3px; + } + + pre { + @extend .advanced-search__content-description-text; + } + + em { + color: #00658A; + } + + hr { + @extend .dashed; + } +} diff --git a/newsroom/templates/search_tips_advanced.html b/newsroom/templates/search_tips_advanced.html index 97b7ad39e..026fc5c2c 100644 --- a/newsroom/templates/search_tips_advanced.html +++ b/newsroom/templates/search_tips_advanced.html @@ -1,63 +1,49 @@ -
- Use our Advanced Search to get more targeted search results without the need to learn how to write a Boolean search query -
+Use our Advanced Search to get more targeted search results without the need to learn how to write a Boolean search query
All of these:
+All of these:
- Example: Apples Pear = Apples AND Pear -
+Example: Apples Pear = Apples AND Pear
Any of these:
+Any of these:
- Example: Apples Pear = Apples OR Pear -
+Example: Apples Pear = Apples OR Pear
None of these:
+None of these:
- Example: Apples Pear = NOT Apples NOT Pear -
+Example: Apples Pear = NOT Apples NOT Pear
- Wildcards, Quotation Marks, and proximity search are accepted in the three search input fields on the Advanced Search form, if desired: -
+Wildcards, Quotation Marks, and proximity search are accepted in the three search input fields on the Advanced Search form, if desired:
?
to replace a single character or *
to replace zero or more characters“”
to search for an exact phrase~
to find the matches within n words of each other- By default, Advanced Search searches for results in the most important fields. -
-- You can select/deselect these options on the Advanced Search form -
+By default, Advanced Search searches for results in the most important fields.
+You can select/deselect these options on the Advanced Search form
- Be specific. - The more relevant words you use in your search, the more successful your results. -
-
- General Search = Federal Budget
- Specific Search = Federal Budget 2023 Ministry of Health
+
Be specific. The more relevant words you use in your search, the more successful your results.
+
+ General Search = Federal Budget
+ Specific Search = Federal Budget 2023 Ministry of Health
- Use quotes - to search for a phrase. -
-
- Incorrect search for a phrase = Winter storm warnings
- Correct search for a phrase = "Winter storm warnings"
+
Use quotes to search for a phrase.
+
+ Incorrect search for a phrase = Winter storm warnings
+ Correct search for a phrase = "Winter storm warnings"
- Restricting search to a field -
-- When you run a search using the Search Bar, by default every field in a document is searchable and checked for matching query words, unless specified. -
-- The following are examples: -
+Restricting search to a field
+When you run a search using the Search Bar, by default every field in a document is searchable and checked for matching query words, unless specified.
+The following are examples:
body_html:"storm warning"
headline:(snow OR storm)
byline:"Noel Ransome"
Slugline:climate
- Wildcards -
-- Wildcard searches can be run on individual terms, using ? to replace a single character, and * to replace zero or more characters: qu?ck bro* -
+Wildcards
+Wildcard searches can be run on individual terms, using ?
to replace a single character, and *
to replace zero or more characters: qu?ck bro*
- Proximity search -
-- Use ~ to find the matches within n words of each other. -
-- “climate action”~10 means to find the matches where climate and action appear together with no more than 10 words between each term, regardless of the order that they appear. -
+Proximity search
+Use ~
to find the matches within n words of each other.
“climate action”~10
means to find the matches where climate and action appear together with no more than 10 words between each term, regardless of the order that they appear.
- Using + and – to define what must and/or must not be present -
-- winter storm +toronto -quebec -
-- states that -
+Using +
and –
to define what must and/or must not be present
winter storm +toronto -quebec
states that
- List of other common fields/Boolean operators -
+List of other common fields/Boolean operators
genre.name:Agate
will search for items with Agate as the versionurgency:1
will search for items with ranking 1.service.name:Business
in the Wire section, it will search for wire items in the Business wire category. When using service.name:Business
in the Calendar section, it will search for events and planning items in the Business category.subject.name:Automobile
will search for items with Automobile as the subjectsource:The Canadian Press
will search for items by The Canadian Presswordcount:>100
will search for items with more than 100 words- Use our Filters to narrow down your search results in the Wire and Calendar. We offer a number of filtering options. -
- +Use our Filters to narrow down your search results in the Wire and Calendar. We offer a number of filtering options.
- Filters - Wire -
+- Filter - Calendar -
+- Events: these are things that happen, something tangible - a match, a press conference, parliament sitting, a court case, etc. -
+Events: these are things that happen, something tangible - a match, a press conference, parliament sitting, a court case, etc.
- Planning items: this tells you what The Canadian Press is doing about an Event or an Issue. When related to an Event, it indicates to you we are covering the Event. Planning items can also be independent of an Event - this relates to issues or stories that do not have Events associated to them. -
+Planning items: this tells you what The Canadian Press is doing about an Event or an Issue. When related to an Event, it indicates to you we are covering the Event. Planning items can also be independent of an Event - this relates to issues or stories that do not have Events associated to them.
- Coverages: they are created in Planning items. Coverages can be text, image, visual explainer, or video. -
- +Coverages: they are created in Planning items. Coverages can be text, image, visual explainer, or video.