shizuko-akamoto / Trecipe

CPSC 436I Project (2020S)
1 stars 3 forks source link

Responsive map page #136

Open knox153 opened 4 years ago

knox153 commented 4 years ago

The long overdue PR is here lol. Since this is more like a proof of concept and it won't be merge into master, no code review is needed haha

Media query css mixin

To include css properties on mobile only, the following mixin can be used:

@include mobile {
     // Mobile only css property
}

These are usually at the bottom of the .scss file to override any css properties defined above.

Media query component

Display components on desktop only:

<Desktop>
    // Desktop only component here
</Desktop>

Display components on mobile only:

<Mobile>
    // Mobile only component here
</Mobile>

Map page on mobile

image

TODO