Comments (11)
Tabbar tabs actually have a default background gradient, so you'll also need to add background-image: none
to your x-tabbar-tab
rules.
from brick.
x-tabbar-tab {
color: #fff;
background-color: #7cc4e7;
background-image: none;
}
does not make any difference!
from brick.
Maybe I'm doing something wrong in the first place. Here is how I'm using Brick
<x-layout>
<header>
<div id="header"></div>
</header>
<section>
<x-flipbox>
<div id="map-canvas">
<button id="fullscreen">Fullscreen Mode</button>
</div>
<video id="video" autoplay></video>
</x-flipbox>
</section>
<footer>
<x-tabbar>
<x-tabbar-tab target-selector="x-flipbox > *:first-child">
<x-iconbutton>Map</x-iconbutton>
</x-tabbar-tab>
<x-tabbar-tab target-selector="x-flipbox > *:last-child">
<x-iconbutton>Live</x-iconbutton>
</x-tabbar-tab>
</x-tabbar>
</footer>
</x-layout>
from brick.
Ah, I think I see the issue. Styling the tabbar tab only styles the tab element, not the contents of the tab. Since you have an iconbutton in the tab, that means you'll need to apply styling to the iconbutton, as it has a similar default gradient background.
from brick.
I have tried that already and it did not work either. Even if I just add
<div>Map</div>
to x-tabbar-tab I still get the default background..
from brick.
Could you send along the markup of the page you're seeing this issue on, to . Feel free to remove any sensitive markup that's not relevant to the issue.
from brick.
I have posted all the relevant markup already here, please see the 4th post.
from brick.
Are you quite sure this is the only markup you're using? I've taken the markup you've given me and am able to change the styles of the tabbar.
My markup: http://pastebin.com/YpnRuTTd
from brick.
Does not work either.
Here is a link for the demo app
It is meant for smartphones but should work on your laptop too. Since it utilizes getUserMedia you need Android 4.x and FF Aurora or Nightly, same on your laptop. On the laptop it works also with Chrome Beta, but has an issue on Android, probably also related to Brick.
I downloaded a custom Brick .css and .js as you can see in the page source, maybe there is the issue.
from brick.
I'm not really sure what you're trying, as I'm able to edit the CSS of x-iconbutton fine.
For example, in the Chrome developer tools, add background:red
to the bottom of the x-iconbutton declaration, and you should see the tabs turn red. Are you completely unable to see this in all browsers, or just specific ones?
from brick.
My bad, my custom .css got loaded first so this was the issue, sorry about that.
from brick.
Related Issues (20)
- TabView component for Brick 2.0 HOT 3
- dist folder contains old brick-common HOT 1
- brick-form is missing from dist folder HOT 1
- update readme to include all components HOT 1
- Can I use brick without bower? HOT 4
- minified version is not working; templates need IDs
- Interdependece of components triggers a double registration element error HOT 1
- Semibreakage in Firefox OS HOT 5
- Please add an info that Brick do not work from file:/// HOT 5
- gulp server does not exist HOT 2
- Site doesn't load on iOS (nor on desktop Safari) HOT 1
- Ditch Shadow DOM and HTML Imports in the name of compat? HOT 8
- Code citations
- Brick Docs Responsive Layout Example
- Brick-common has a script directory
- [1.0.1] Attribute target disappears from element <a> when page is loaded
- Unminified Platform.js
- brick sites are invisible under safari
- Create Brick's like components and easy data-binding
- CDNJS hosting
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 brick.