File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed
apps/components_guide_web Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ article a:hover {
21
21
font-weight : bold;
22
22
}
23
23
24
+ a {
25
+ padding : var (--links-padding );
26
+ }
27
+
24
28
input {
25
29
outline : none;
26
30
}
Original file line number Diff line number Diff line change @@ -39,14 +39,14 @@ defmodule ComponentsGuideWeb.ResearchController do
39
39
defp load_results ( query ) when is_binary ( query ) do
40
40
# Spec.clear_search_cache()
41
41
[
42
- content_tag ( :article , [
43
- h2 ( "HTML spec" ) ,
44
- Spec . search_for ( :whatwg_html_spec , query ) |> present_results ( )
45
- ] ) ,
46
42
content_tag ( :article , [
47
43
h2 ( "Can I Use" ) ,
48
44
Spec . search_for ( :caniuse , query ) |> present_results ( )
49
45
] ) ,
46
+ content_tag ( :article , [
47
+ h2 ( "HTML spec" ) ,
48
+ Spec . search_for ( :whatwg_html_spec , query ) |> present_results ( )
49
+ ] ) ,
50
50
content_tag ( :article , [
51
51
h2 ( "HTML ARIA" ) ,
52
52
Spec . search_for ( :html_aria_spec , query ) |> present_results ( )
Original file line number Diff line number Diff line change 6
6
< form role = search action = "/research " class = "flex h-full pt-8 px-2 items-center " >
7
7
< input type = text name = q placeholder = "Search " class = "w-full py-1 px-2 bg-white text-black text-xl " value = "<%= @query %> " >
8
8
</ form >
9
+ < ul class = "list-none flex pt-4 " style = "--links-padding: 1em " >
10
+ < li > <%= link ( "form" , to: "?q=form" ) %>
11
+ < li > <%= link ( "button" , to: "?q=button" ) %>
12
+ < li > <%= link ( "transition" , to: "?q=transition" ) %>
13
+ </ ul >
9
14
</ section >
10
15
</ header >
11
16
12
17
< div class = "bg-white py-16 " >
13
18
< div class = "container px-6 " >
14
- < h1 >
15
- Results for
16
- < strong > <%= @ query %> </ strong > :
17
- </ h1 >
18
- <%# = raw @results %>
19
19
<%= @ results %>
20
20
</ div >
21
21
</ div >
You can’t perform that action at this time.
0 commit comments