File tree Expand file tree Collapse file tree 4 files changed +64
-11
lines changed
assets/stylesheets/partials Expand file tree Collapse file tree 4 files changed +64
-11
lines changed Original file line number Diff line number Diff line change 1919@mixin set-focus-outline-dark () {
2020 * :focus-visible {
2121 outline : 2px solid $color-focus-dark ;
22+ outline-offset : 2px ;
2223 }
2324}
2425
2526@mixin set-focus-outline () {
2627 * :focus-visible {
2728 outline : 2px solid $color-focus ;
29+ outline-offset : 2px ;
2830 }
2931}
Original file line number Diff line number Diff line change 3939 .wrapper {
4040 background : url (" https://cdn.mitlibrary.net/files/branding/local/vi-shape7-tp.svg" ) no-repeat -48px -250px ;
4141 padding-top : 32px ;
42- padding-bottom : 32 px ;
42+ padding-bottom : 0 ;
4343 }
4444
4545 .navigation-bar {
4646 display : flex ;
47+ padding-bottom : 32px ;
4748
4849 > h1 {
4950 display : flex ;
Original file line number Diff line number Diff line change 22// #SEARCH BITS
33// ------------------------
44
5+ /* New USE UI search styles */
6+ #search-form {
7+ margin : 0 ;
8+ padding-bottom : 24px ;
9+
10+ h3 {
11+ font-size : 1.8rem ;
12+ margin-bottom : 12px ;
13+ }
14+
15+ .form-wrapper {
16+ display : flex ;
17+ gap : 8px ;
18+
19+ input , button {
20+ padding : 12px 20px ;
21+ border-radius : 0 ;
22+ font-size : 1.8rem ;
23+ font-weight : $fw-medium ;
24+
25+ margin : 0 ;
26+
27+ & :hover:not (:focus ) {
28+ outline : 2px solid $color-gray-700 ;
29+ outline-offset : 2px ;
30+ }
31+ }
32+
33+ input {
34+ flex-grow : 1 ;
35+ color : $color-black ;
36+ border : none ;
37+ }
38+
39+ button {
40+ background-color : $color-red-600 ;
41+ border : none ;
42+ }
43+
44+ }
45+
46+ .form-links {
47+ padding-top : 12px ;
48+
49+ a {
50+ color : $color-white ;
51+ text-decoration : none ;
52+ border-bottom : 1px solid $color-red-500 ;
53+ font-size : 1.4rem ;
54+ }
55+
56+ }
57+
58+ }
59+
560/* basic search bar */
661.search-form {
762 background-color : #989898 ;
Original file line number Diff line number Diff line change 1- < form id ="search-form " class ="form-horizontal search-form " action ="<%= results_path %> " method ="get " role ="search ">
2- < div class ="form-group ">
3- < input id ="basic-search-main " type ="search "
4- class ="field field-text basic-search-input " name ="q "
5- title ="Keyword anywhere " placeholder ="Enter your search "
6- value ="<%= params [ :q ] %> " required >
7-
8- < div class ="basic-search-submit ">
9- < button type ="submit " class ="btn button-primary "> Search</ button >
10- </ div >
1+ < form id ="search-form " action ="<%= results_path %> " method ="get " role ="search ">
2+ < h3 > What can we help you find?</ h3 >
3+ < div class ="form-wrapper ">
4+ < input id ="basic-search-main " type ="search " class ="field field-text basic-search-input " name ="q " title ="Keyword anywhere " placeholder ="Search for anything " value ="<%= params [ :q ] %> " required >
5+ < button type ="submit " class ="btn button-primary "> Search</ button >
116 </ div >
127</ form >
138
You can’t perform that action at this time.
0 commit comments