File tree Expand file tree Collapse file tree 2 files changed +48
-3
lines changed Expand file tree Collapse file tree 2 files changed +48
-3
lines changed Original file line number Diff line number Diff line change @@ -107,10 +107,10 @@ export const Search: m.Component = {
107107
108108
109109 return (
110- < div class = { ( state . results . length > 0 ) ?"search active" : "search" } style = { { position : "relative" , display : " flex" , flexGrow : "1" } } >
110+ < div class = { ( state . results . length > 0 ) ?"search active flex grow" : "search flex grow" } >
111111 < div >
112112 < div class = "flex" style = { { margin : ( state . results . length > 0 ) ?"0" :"1px" } } >
113- < svg xmlns = "http://www.w3.org/2000/svg" width = "20" height = "20" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "feather feather-search" > < circle cx = "11" cy = "11" r = "8" > </ circle > < line x1 = "21" y1 = "21" x2 = "16.65" y2 = "16.65" > </ line > </ svg >
113+ < svg xmlns = "http://www.w3.org/2000/svg" width = "20" height = "20" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "feather feather-search shrink-0 " > < circle cx = "11" cy = "11" r = "8" > </ circle > < line x1 = "21" y1 = "21" x2 = "16.65" y2 = "16.65" > </ line > </ svg >
114114 < input type = "text" placeholder = "Search" value = { state . query } onkeydown = { onkeydown } oninput = { autocomplete } style = { {
115115 border : "0" ,
116116 outline : "0" ,
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ button.primary {
3434 background-color : var (--primary );
3535 border : none;
3636}
37+ p {
38+ margin-block-start : var (--padding );
39+ margin-block-end : var (--padding );
40+ }
3741
3842/*------------APP------------*/
3943
@@ -202,6 +206,7 @@ svg.node-bullet circle#node-collapsed {
202206 border : none;
203207 background : none;
204208 margin : 0 var (--padding );
209+ position : relative;
205210}
206211.search > div {
207212 width : 95% ;
@@ -353,4 +358,44 @@ svg.node-bullet circle#node-collapsed {
353358 height : 72px ;
354359 opacity : 0 ;
355360 }
356- }
361+ }
362+
363+
364+ /*------------MOBILE------------*/
365+
366+ @media (max-width : 600px ) {
367+
368+ : root {
369+ --padding : var (--2 );
370+ }
371+
372+ .notice {
373+ width : 100vw ;
374+ }
375+ /*todo: this padding needs to stay to same as desktop
376+ for alignment purposes. should probably center
377+ the top nav in a more elegant way at some point*/
378+ .sidebar-topsection , .topbar {
379+ padding : calc (var (--padding )* 2 );
380+ }
381+
382+ .search {
383+ max-width : 100vw ;
384+
385+ }
386+ }
387+
388+
389+
390+
391+
392+
393+
394+
395+
396+
397+
398+
399+
400+
401+
You can’t perform that action at this time.
0 commit comments