Coder Social home page Coder Social logo

Comments (12)

mac81 avatar mac81 commented on September 2, 2024

Hi there

You want to have the menu as a 'drawer' on smaller screens and visible on large screens? Or did I misinterpreted the question?

Do you use the sass or css version of pure drawer?

from pure-drawer.

pete45 avatar pete45 commented on September 2, 2024

Hi Thomas,
thank you for your answer.
You are right. On smaller screens as a 'drawer" and on larger screens visible.
I use the sass version 1.01 of pure drawer.
Thanks in advance.
Pete

from pure-drawer.

mac81 avatar mac81 commented on September 2, 2024

Step 1:
Set the $show-drawer variable in settings.scss to $large-down. Eg. $show-drawer: $large-down;

Step 2:
Inside the '@mixin pure-drawer' in pure-drawer-global.scss find the media query '@media {$large-up} { }'

Step 3:
Edit your styles inside the media query

Hope this helps. If you have any further questions please don't hesitate to ask.

from pure-drawer.

pete45 avatar pete45 commented on September 2, 2024

I tried out the above suggestion with an error result:
If I follow step 1:
In _pure-drawer_settings.scss line 2 is in download version deactivated. I have activated the line and changed the code from '//$show-drawer: $small-only' to '$show-drawer: $large-down'.
The result is following error message while compiling:
' error mediwe/css/scss/nav-pure-drawer/pure-drawer.scss (Line 631 of mediwe/css/scss/nav-pure-drawer/pure-drawer/vendor/_animate.scss: You may not @extend an outer selector from within @media.
You may only @extend selectors within the same directive.
From "@extend .bounceInDown" on line 30 of O:/Eigene Dateien/Werbung/Homepage/Templates/Erstes Template/mediwe/css/scss/nav-pure-drawer/pure-drawer/effects/_effect-bounce.scss.
)
Compilation failed in 1 files.'

from pure-drawer.

pete45 avatar pete45 commented on September 2, 2024

Thank you for your reply.
Waiting for your update.
In between I´ll try the quick fix and give you a short report when inserted.
Thanks a lot.

from pure-drawer.

mac81 avatar mac81 commented on September 2, 2024

Disregard my latest quickfix.. It won't work. It's the extend that is causing the issue.

[data-effect="pure-effect-bounce"] .pure-drawer[data-position='left'] { @extend .bounceOutLeft; }
[data-effect="pure-effect-bounce"] .pure-drawer[data-position='right'] { @extend .bounceOutRight; }
[data-effect="pure-effect-bounce"] .pure-drawer[data-position='top'] { @extend .bounceOutUp; }

[data-effect="pure-effect-bounce"] .pure-toggle[data-toggle='left']:checked ~ .pure-drawer[data-position='left'] { @extend .bounceInLeft; }
[data-effect="pure-effect-bounce"] .pure-toggle[data-toggle='right']:checked ~ .pure-drawer[data-position='right'] { @extend .bounceInRight; }
[data-effect="pure-effect-bounce"] .pure-toggle[data-toggle='top']:checked ~ .pure-drawer[data-position='top'] { @extend .bounceInDown; }

You can't have @extend inside a mediaquery.

from pure-drawer.

mac81 avatar mac81 commented on September 2, 2024

So quickfix would be to replace the extends with the corresponding class in animate.scss

from pure-drawer.

Andrewchs avatar Andrewchs commented on September 2, 2024

Hello there pete45,

Have you achieved that effect? If you could share the working code?

Thanks in advance.

from pure-drawer.

pete45 avatar pete45 commented on September 2, 2024

Hello Thomas,
I tried to, but aborted, because in my joomla template I discovered another incompatibility between pure-drawer and blueimp gallery. To solve this had priority.
Issue was that all effects with scale (scale down pusher, scale up and scale rotatate pusher) had the effect, that the lightbox of blueimp gallery was not centered on the window. Instead the lightbox was moved down. The problem is caused only by these effects, but I couldn´t solve it either. So I had to disable these effects.
Regards
Pete

from pure-drawer.

mac81 avatar mac81 commented on September 2, 2024

Is the lightbox markup placed inside the '.pure-pusher-container'? If so I can see this causing an issue because some effects uses perspective and other transform properties which can conflict with lightbox positioning.

If you place your lightbox outside of the pure-drawer I don't see this beeing an issue, but I can't be certain without inspecting the code.

from pure-drawer.

pete45 avatar pete45 commented on September 2, 2024

You are right with the first point:
blueimp gallery is placed inside the '.pure-pusher-container'.
The effects that are using perspectives causing conflicts, so that the lightbox is not centering up the window but the vertical align is centered up the enclosing container.

from pure-drawer.

mac81 avatar mac81 commented on September 2, 2024

Because the lightbox is inside the .pure-pusher container the lightbox will be affected by perspective.
If you place it outside this div the lightbo should work. Although it will ofcourse be hidden behind the overlay when the menu is triggered, but that might be what you want.

F.ex.

from pure-drawer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.