agent icon indicating copy to clipboard operation
agent copied to clipboard

Check portrait or landscape?

Open GabrielDvt opened this issue 7 years ago • 1 comments

Sorry if I'm posting in the wrong place, I'm new to github, but I felt the need of a $agent->landscape() or $agent->portrait(), is it possible to develop? Thanks

GabrielDvt avatar Apr 19 '17 03:04 GabrielDvt

yes its not possible :D like you want it, only possible like this:

    /* render css settings on tablet */
    @if(SiteSetting::getDeviceType() == 'tablet')
            @media only screen and (orientation: landscape) {
                .container-{{ $block->id }} {
                    padding: {{$settings->paddingTabletLandscape}};
                }
            }

            @media only screen and (orientation: portrait) {
                .container-{{ $block->id }} {
                    padding: {{$settings->paddingTabletPortrait}};
                }
            }

nikocraft avatar Nov 22 '17 00:11 nikocraft