I'm using Twitter Bootstrap for a Rails 3.2.3 project and I'm importing each stylesheet in my application.css.scss file. I'm customizing a page in the static folder (with a render file that's in a different folder) with the static.css.scss file that is above bootstrap files in the application file. I'm trying to make the button different from the normal btn class. My code is:
.btn.signup {
margin-top: 10px;
font-size: 18px;
padding: 10px 48px 10px;
background-color: rgb(255, 138, 22);
}
.btn.signup:hover {
margin-top: 10px;
font-size: 18px;
padding: 10px 48px 10px;
background-color: rgb(255, 138, 22);
}
However in Firefox, the button is still grey except for the outer edges which are the correct color. When I hover over the button, the lower half is orange. Inspecting the button, it shows:
.btn.signup:hover, li.signup.buttons:hover {
margin-top: 10px;
font-size: 18px;
padding: 10px 48px;
background-color: rgb(255, 138, 22);
}
button.btn, input.btn[type="submit"] {
}
.btn:hover, li.buttons:hover {
color: rgb(51, 51, 51);
text-decoration: none;
background-color: rgb(230, 230, 230);
background-position: 0px -15px;
-moz-transition: background-position 0.1s linear 0s;
}
.btn:hover, li.buttons:hover, .btn:active, li.buttons:active, .btn.active, li.active.buttons, .btn.disabled, li.disabled.buttons, .btn[disabled], li.buttons[disabled] {
background-color: rgb(230, 230, 230);
}
.btn.signup, li.signup.buttons {
margin-top: 10px;
font-size: 18px;
padding: 10px 48px;
background-color: rgb(255, 138, 22);
}
How do I make it so the entire button is orange? I'll change the hover color later but for now I want it all to be orange and not grey.
Not sure if you're still looking for help on this. Oh well...I guess I'll still pitch in my thoughts.
Do take note that the class .btn in Twitter Bootstrap actually has a background image attached to it, to generate the somewhat subtle gradient effect.
The gradient covers most of the button's background, so your selected background colour only shows at the edges.
This gradient is also why you partially see your own background colour when you hover over the button - the -moz-transition causes that background image gradient to shift upwards (this is normally used to simulate a gradual darkening effect in the colour of the button when you hover over it). If you look closely, you can see that the top half of the button is coloured by the bottom of the gradient, and the bottom half is the background colour.
So you'll need to define either background-image: none; in your custom class, or better yet, define your own gradient so you don't lose that visual aesthetic. If you take the latter course of action, just remember to make the bottom colour of the gradient the same as your background-color, rgb(255, 138, 22). Otherwise, when you hover over the button, it will be quite clear where the gradient ends, and the background colour starts.
Related
I have been modifying the gtk.css file and managed to change the look of mi windows. For the most part i have been able to figure what certain components i must modify to change the look of certain things. however I have not been able to find a way to modify the window's minimize, maximize, and close buttons certain properties and I have been trying for a good while now.
I was able to modify the background-image of the search button in my terminal as you can see in the picture to make it blend in into the headerbar color.
I was able to modify the color of the minimize, maximize, and close buttons color but I can't seem to figure out two remove the background color for these three buttons.
I used the following to modify the regular buttons properties.
button{
/* min-height: 0px;
min-width: 0px;
padding-top: 0px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;*/
/* border: 1px pink; */
/*border-radius: 0px; */
transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
color: blue;
outline-color: rgba(229, 112, 132, 0.7);
border-color: pink;
background-image: image(pink);
text-shadow: 0 1px rgba(255, 255, 255, 0.769231);
-gtk-icon-shadow: 0 1px rgba(255, 255, 255, 0.769231); }
I used the following to change the close and others buttons colors as well, But i can't make the background color disappear.
button.minimize, button.maximize, button.close{
color: blue;
border:0px;
border-radius: 0px;
border-color: pink;
background-image: image(pink);
background-color: pink;
border-radius: 0px;
}
I used all the following components but i just can't seem to make it work, I used one by one, they are not all active at once. These modify the color but won't modify the background color like it did with the search button or menu button from the terminal.
headerbar .close{
color:yellow;
}
.tab-close-button{
color:red;
}
button.titlebutton.minimize{
color: red;
background-color: pink;
background-image: :image(pink);
}
button.headerbutton.minimize{
color: red;
background-color: pink;
background-image: image(pink);
}
button.header.minimize{
color: yellow;
background-color: pink;
background-image: :image(pink);
}
I know its been 3 months since this post but I have an answer.
Even if you had already found it, might as well send it for those coming from google.
windowcontrols button image:not(:hover) {
background-color: transparent;
}
I have applied some custom CSS styling to my Highcharts tooltip that better aligns with my current design, but there's two minor issues with my styling:
The caret/arrow is a white color
The white border outline does not show up on the caret/arrow and instead strikes through the arrow
This is the CSS I used:
.highcharts-tooltip span {
line-height: 1;
font-weight: normal;
padding: 12px;
background-color: rgba(0,0,0,0.9);
color: white;
border-radius: 6px;
font-size: 16px;
text-align: center;
transition: opacity 0.1s;
box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.85);
z-index: 9999;
max-width: 300px;
pointer-events: none;
word-wrap: break-word;
}
P.S. the chart is intentionally squished to 100 px is to test tooltip transparency onto the value labels
I'm not quite sure how to change the color of the arrow back to black since I am using the background-color tag which I am assuming only applies to the color of the rectangle.
Fiddle: http://jsfiddle.net/4mznaybs/83/
Not sure if that what you looking for :
The arrow is a svg path so you must apply a fill color in it.
.highcharts-tooltip path{
fill:rgba(255,0,0,1);
}
The white border outline does not show up on the caret/arrow and instead strikes through the arrow
According to your js code there isn't any border but you added a box-shadow
.highcharts-tooltip span {
...
/*box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.85);*/
...
}
Updated fiddle
I have this page:
http://test2.dac-proiect.ro/wp/
Here you will find your slider (Revelution Slider),plugin for Wordpress.
I want to change the color of these arrows.
http://i62.tinypic.com/6tlrp1.jpg
I tried to inspect the code where reference is made to this color code but unfortunately I have not found.
Perhaps it is something very simple but fail to figure out how to solve this problem.
You can help me solve this problem please?
Thanks in advance!
Go to wp-content/themes/mix/css/template.css Line 10904 and change background-color property to this:
.tparrows:hover{
background-color:blue
}
It will change color when you move your mouse to the arrow.
But still you will not get perfect blue color because there is box-shadow property is given to wp-content/themes/mix/css/template.css Line 10904 so if you want perfect blue color then change it also :
.tparrows:hover{
transition: all 0.5s cubic-bezier(0.8, 0, 0, 1) 0s;
box-shadow: 0px -50px 0px 0px blue inset;
}
Let me know if you have any doubts.
Change the Style of the Navigation Arrows via StyleSheet in Revolution Slider
You can add the following lines to your Style Sheet :
Open up the Slider Settings
Expand the Navigation Section
Change Navigation Arrows to “solo”
Change Style to “round”
Open up any of your Stylesheets (i.e. Appearance / Editor)
Change the Style of the following Classes:
.tparrows
.tparrows.default
.tp-rightarrow
.tp-leftarrow
For example :
.tparrows {
background: rgba(0, 0, 0, 0.5) !important;
-webkit-border-radius: 0px;
border-radius: 0px;
width: 40px !important;
height: 40px !important;
top: auto !important;
}
.tparrows.default:after {
color: #999;
font-size: 25px;
position: absolute;
z-index: 10;
width:40px;
line-height:40px;
text-align:center;
font-weight: 300;
top:0px; left:0px;
font-family: 'fontello';
}
.tp-rightarrow.tparrows.default:after { content: 'e75e'; }
.tp-leftarrow.tparrows.default:after { content: 'e75d'; }
For more details, check it out here : http://www.themepunch.com/faq/change-the-navigation-arrow-in-the-slider/
Hope it helps you.
I am trying to style up a custom scrollbar that works in Chrome and Safari. I’ve tried the following CSS:
::-webkit-scrollbar {
width: 15px;
}
::-webkit-scrollbar-track {
background-color: rgba(100, 100, 100, .5);
width: 15px;
}
::-webkit-scrollbar-thumb {
background-color: #818B99;
border-radius: 9px;
width: 9px;
}
However the width on the -webkit-scrollbar-thumb is being ignored. I would like the thumb to be thinner than the track, as above.
It appears that I can fake the width by setting a border on the -webkit-scrollbar-thumb of 3px with the same colour as the track, however this only works with an opaque background colour, and I need it to work with a transparent colour for the track as above.
Example jsfiddle: http://jsfiddle.net/L6Uzu/1/
You are correct that WebKit ignores the width declaration on the scrollbar-thumb. It also ignores it on the track.
The problem with using a border is that it draws the border within the thumb, so if you just make the colour transparent, it will not work.
The solution is to change where the background is attached. By default the background extends under the border, as mentioned. You can use the background-clip property to change this, so that it only extends to the edge of the padding box instead. Then you just need to make a 3px transparent border, then Bob’s your uncle:
::-webkit-scrollbar-thumb {
background-color: #818B99;
border: 3px solid transparent;
border-radius: 9px;
background-clip: content-box;
}
See http://jsfiddle.net/L6Uzu/3/
This works correctly in Chrome, but Safari doesn’t have as advanced a border-radius implementation, so the rounded corners are not visible.
i am using enyo buttons in iphone....the problem is , when i click on button for a navigation , black color appears over the button....i dont know whether it is shadow or border-color or background-color.... i want to remove this...plz help me....
my code goes here
.onyx-Button2 {
outline: 0;
color: #FFFFFF;
font-size: 16px;
text-align: center;
white-space: nowrap;
margin: 0;
padding: 1px 1px;
overflow: hidden;
border-radius: 3px;
/* for IE8 */
border: 1px solid #777;
border: 1px solid rgba(15, 15, 15, 0.2);
/*
The border and the gradient interact in a strange way that
causes the bottom-border (top if the gradient is aligned top)
to be lighter than other borders.
We can fix it by using the darker bottom border below, but
then there are a few rogue pixels that end up very dark.
*/
box-shadow: inset 0px 1px 0px rgba(255,255,255,0.2);
background: #E1E1E1 url(../../images/gradient.png) repeat-x bottom;
background-size: contain;
text-overflow: ellipsis;
}
It is possibly down to defaults set within the browser on iOS - I would set all the appropriate properties to cover all bases.
So add
background-color:#ffffff; // Change this to your color you want
I suspect it is just the way iOS defaults some CSS, it may also have something to do with the manner in which it deals with image's as backgrounds. Unfortunately while iOS goes with most standards, it has odd ways of implementing certain CSS.