I ran into the problem, that the cards within a tab navigation in Angular Material were cut off.
Using md-dynamic-height soleved this issue. Thanks #camden_kid for the help!
It's because the md-tabs element on that site (URL is no longer available) does not have the attribute md-dynamic-height:
Taking the markup in your question I created a CodePen. If you remove that attribute you will see the problem you mention.
From the docs:
Related
I want to create a navbar like here: http://www.devoncrawford.io/
I couldn't figure it out how to interact with css elements through my ts code.
Maybe you can give me a tip, where I could research a bit more.
I would also love to get this autoscrollbutoon and just be able to interact with my css stuff.
I found a lot of jQuery stuff, but I am not familiar with it. Is that working in angular and should I learn it?
Thanks for your time. Sorry, it is a little bit general question, but I hope you can give me some advice
Check the below article which explain how to create sticky navbar using angular with good explanation and example
Ref:https://netbasal.com/reactive-sticky-header-in-angular-12dbffb3f1d3
Example:https://stackblitz.com/github/zetsnotdead/ng-reactive-sticky-header
I would use an windows eventListener to look at the scroll movement.
window.addEventListener('scroll', this.scroll);
After the scroll hits a number of vertical pixels, you could change the navbar background-color from 'transparent' to the color you want. (in the examples case '#fff'. You could make two different classes with the different background-colors and append or remove the css class.
Hope this helps.
I am using the latest version of Redactor and have noticed that the z-index of the toolbar is set above many other components (Bootstrap modal, drop-down menus, etc). I browsed the docs and could not find any mention of changing the toolbar's z-index.
What is the best way to fix this problem? Is there a setting I missed that can be called upon initializing?
From Art at Imperavi-
Thank you so much for reporting this. At this time, the only
workaround is to manually adjust Redactor's z-index, please see line
58 in redactor.css.
I am in the process of using Foundation to create a website, and I have come across a problem that I can't seem to find the solution too. I have noticed that when expanded, some of my drop-downs get cut off in the Mobile Version of the Top Bar, and I was wondering if anyone had come across this issue, or had a fix for it. Did I do something in the CSS that made the JS no longer count all of the elements correctly?
You can see what I am saying here.
http://www2.100foldstudio.org
Just try this by adding in css.
.jScrollPaneDrag {
height:0px!important;
}
I think the link is break in theme
Update the link from
http://www2.100foldstudio.org/wp-content/themes/100foldstudio/_/js/functions.js
to
http://www2.100foldstudio.org/wp-content/themes/100foldstudio/js/functions.js
Figured out that if I add a List Item at the end of the main top bar section in "mobile" mode, and added a clearfix class to it, the js kicked in and started calculating the height correctly.
Thanks guys,
I'm new here (and also with bootstrap and JavaScript) and hopefully im not asking a question already asked before. I did google plenty and search on here and could not find anyone mentioning this specific problem.
I found a bug I think with Bootstrap 2.2.1 .. when you close a modal, the href link which called it now has a blue border around it. This happens with buttons, nav items, anything. This can be seen on the Bootstrap live demo itself - click the blue button "Launch demo modal" under the section "Modals bootstrap-modal.js". You can see a light blue border around the button after closing the modal.
http://twitter.github.com/bootstrap/javascript.html#modals
This issue drove me mad, I messed with the CSS for ages, then tried different browsers, until I downgraded and the issue above is not present on bootstrap 2.0.4.
Does anyone know if this is a known issue with 2.2.1 or has it been present since a particular version?, or what the problem is here?
It's pretty simple fix once you locate what the CSS property is. I think it came from some issue with the modal's focus and they decided to modify the generated html. You need to define the following CSS. It comes from the following link.
.modal-open .modal,.btn:focus{
outline:none!important
}
Hope it helps! I made a jsfiddle of the result (including bootstrap's css + js) so you watch a live demo of it, here. Note that if you're using something that isn't a button the outline may come back, since we're only applying it there. Since you're referring to a href, it's likely that you're calling the modal from a link, and therefore should also trigger a:focus
When I follow all 3 options in the top answer in this post:
Fixed sidebar navigation in fluid twitter bootstrap 2.0
The sidebar is indeed fixed but the content in the other div in the row (the span9) is overlapped by the sidebar. When I remove the CSS additions, the overlap is gone. I've triple-checked my html to make sure there's now hanging divs and everything seems to check out.
Has the core bootstrap CSS changed in a material way or am I missing something?
Here's a screencap:
I solved this problem myself by using the offset class as mentioned in my comment. It is referenced by not used in the answer to the cited questions. Thanks for everyone's help/editing.