@@ -1222,3 +1222,97 @@ div[data-twttr-id] iframe {
12221222 }
12231223}
12241224
1225+ /** Algolia Doc Search **/
1226+
1227+
1228+ div .algolia-search-wrapper {
1229+ display : inline-block;
1230+ vertical-align : top;
1231+ margin-left : 15px ;
1232+ }
1233+
1234+ @media screen and (max-width : 960px ) {
1235+ div .algolia-search-wrapper {
1236+ display : none;
1237+ }
1238+ }
1239+
1240+ input # algolia-doc-search {
1241+ font-family : "Helvetica Neue" , Helvetica, Arial, sans-serif;
1242+ font-family : proxima-nova, "Helvetica Neue" , Helvetica, Arial, sans-serif;
1243+
1244+ background : transparent url ('/react-native/img/search.png' ) no-repeat left center;
1245+ background-size : 16px 16px ;
1246+
1247+ padding-left : 30px ;
1248+ font-size : 16px ;
1249+ line-height : 20px ;
1250+ background-color : # 3B3738 ;
1251+ border-bottom : solid 3px # 3B3738 ;
1252+ color : white;
1253+ outline : none;
1254+ width : 130px ;
1255+ height : 53px ;
1256+
1257+ transition : border-color .2s ease, width .2s ease;
1258+ -webkit-transition : border-color .2s ease, width .2s ease;
1259+ -moz-transition : border-color .2s ease, width .2s ease;
1260+ -o-transition : border-color .2s ease, width .2s ease;
1261+ }
1262+
1263+ input # algolia-doc-search : focus {
1264+ border-color : # 05A5D1 ;
1265+ width : 240px ;
1266+ }
1267+
1268+ @media screen and (max-width : 1085px ) {
1269+ input # algolia-doc-search : focus {
1270+ width : 178px ;
1271+ }
1272+ }
1273+
1274+ .algolia-autocomplete {
1275+ vertical-align : top;
1276+ height : 53px ;
1277+
1278+ font-family : "Helvetica Neue" , Helvetica, Arial, sans-serif;
1279+ font-family : proxima-nova, "Helvetica Neue" , Helvetica, Arial, sans-serif;
1280+ }
1281+
1282+ /* Bottom border of each suggestion */
1283+ .algolia-docsearch-suggestion {
1284+ border-bottom-color : # 05A5D1 ;
1285+ }
1286+ /* Main category headers */
1287+ .algolia-docsearch-suggestion--category-header {
1288+ background-color : # 3B3738 ;
1289+ }
1290+ /* Highlighted search terms */
1291+ .algolia-docsearch-suggestion--highlight {
1292+ color : # 05A5D1 ;
1293+ }
1294+ /* Highligted search terms in the main category headers */
1295+ .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--highlight {
1296+ background-color : # 05A5D1 ;
1297+ }
1298+ /* Currently selected suggestion */
1299+ .aa-cursor .algolia-docsearch-suggestion--content {
1300+ color : # 05A5D1 ;
1301+ }
1302+ .aa-cursor .algolia-docsearch-suggestion {
1303+ background : hsl (198 , 100% , 96% );
1304+ }
1305+
1306+ /* For bigger screens, when displaying results in two columns */
1307+ @media (min-width : 768px ) {
1308+ /* Bottom border of each suggestion */
1309+ .algolia-docsearch-suggestion {
1310+ border-bottom-color : hsl (198 , 100% , 94% );
1311+ }
1312+ /* Left column, with secondary category header */
1313+ .algolia-docsearch-suggestion--subcategory-column {
1314+ border-right-color : hsl (198 , 100% , 94% );
1315+ background-color : hsl (198 , 100% , 96% );
1316+ color : # 3B3738 ;
1317+ }
1318+ }
0 commit comments