Comments (12)
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.
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.
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.
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.
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.
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.
So quickfix would be to replace the extends with the corresponding class in animate.scss
from pure-drawer.
Hello there pete45,
Have you achieved that effect? If you could share the working code?
Thanks in advance.
from pure-drawer.
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.
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.
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.
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)
- Do not put node_modules in repo HOT 2
- Missing closing tag in your index.html page
- Menu breaks parallax images HOT 5
- preventing the "pure-pusher-container" contents to scroll up when clicked on the menu HOT 2
- managing open / close state when main page is clicked to close the menu HOT 1
- strategy to cut down on the large CSS file HOT 1
- Operator issue HOT 2
- Touch laggy on Chrome
- license please HOT 1
- $toggle-checked-color doesn't work HOT 2
- Slide/Push HOT 1
- If drawer is placed in iFrame, opening and closing the drawer scrolls the parent frame to the top
- Dist directory contains duplicate scss files HOT 1
- SCSS breakpoint error HOT 2
- menus are hiding in landscape mode as push-drawer isn't scrollable HOT 2
- Resize Icon? HOT 5
- Custom toggle? HOT 4
- Publish on NPM HOT 1
- Open Drawer with javascript?
- FEAT: Incremental Swiping Demo For Mobile (Doc Request)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pure-drawer.