Provided the color wheel image how can we display it using CSS Sprites technique adding hover effects over the red, blue & yellow areas ? Clicking on any color area should open respective links.
Related
I'm currently working on a navbar (with a dark red background color) where the subsequent submenus have a light grey background color.
I'm using Scss and have managed to get the focus to work with the code bellow:
%focus {
#include focus-style(map-get($colors, "muted"), $focus-offset);
}
The color muted is connected to list of globally defined colors (in this case #636466) and focus-offset pulls the outline in by -2px.
The problem that arises is that there isn't enough contrast between the "muted" outline and the dark red background on the main navbar. I'm wondering how I'd go about adding a white outline when focus is on the main navbar and the "muted" color when it's on the grey submenus?
Strange I faced this question just now - are there any differences between css background color overlay and same looking color? For ex: designer designed buttons for hover, focus etc. On hover he wrote - overlay #FFF 15%. Now sice we use mixins and colors are hex, I have two choices - wrap element with other div or convert my rgba color rgba(255,255,255,0.15) to rgba #FFFFFF26 and use a pseudo class to apply it on hover.
It looks ugly, why not just other background color on hover?
I can get a hex color like this rgba(255,255,255,0.15) and it looks the same...
What are the benefits of overlay color (are there any?)?
If you have overlay with transparency then the background color will be seen through the overlay. If you apply directly on the button then what is behind it will show (in most cases white) so you have 2 different results
I have an image that is a simple coloured text on a black background. Is there a CSS filter (or a hacky combination of filters) that would allow me to turn black colour into complete transparency (essentially leaving me with just text)?
Anyone know where I can find the Microsoft guidelines for creating WPF gel-type buttons? I'm not sure if "gel" is the correct name for this effect but I have heard many people use the term. If MS doesn't have a guideline, do you have some other standards or guidelines for creating these buttons?
Have a look at the glass button.
There are a number of XAML elements
which go into making up the button.
They are clearly commented in the XAML
but the list is as follows:
Drop-shadow: an ellipse with a radial gradient of black fading to
tranparent
Button surround: a white ellipse slightly bigger than the green one
Black button background: only visible round the edges of the green
when the button is pressed
Main button colour: the green (or whatever color you want) of the
button. This ellipse is clipped to
its initial outline, thus allowing us
to move the ellipse slightly for the
button press without it overlapping
the button surround
Top glow: an ellipse with a linear gradient background of white (at the
top) fading to transparent. Smaller
than the main button colour and
positioned so that the tops are the
same
Bottom glow: an ellipse the same size as the main button colour but
with a linear gradient background of
white (at the bottom) fading to
transparent. This is also clipped as
per the main button colour.
Hover-over glow: an ellipse the same size as the main button colour
with a radial gradient background of
white (at the centre of the ellipse)
fading to transparent. This is
initially transparent.
Transparent element for catching mouse events: on top of all of this is
a transparent ellipse the same size as
the white button surround for catching
MouseEnter, MouseLeave,
MouseLeftButtonDown and
MouseLeftButtonUp events. This
element also contains the Storyboard
for the pulsating hover-over effect
(although this could be in any XAML
element).
I am now writing a image viewer, It is used for view thumbnails.
As it is ugly, I decide to draw shadow round thumbnail.
There is background color.
I am using StretchDIBits to draw a shadow image at the location of thumbnail.
However it is really annoying that it cover the background color...
When the background is white, it looks perfect.
but if the backgound is not white, it has a white border.
so I make use of AlphaBlend, first draw the shadow image onto a DC, then use AlphaBlend onto the background. However, I can still see the white border.
Is there any why to generate a perfect shadow , no matter what background is.
Are you sure the shadow bitmap contains alpha values for the alpha channel ? I.o.w.: how are you creating the shadow bitmap: are you doing that by blurring a square on a transparent target or a white target? If the first, the shadow bitmap contains an alpha channel and should blend fine with the background. if the second, your shadow bitmap contains white fragments and thus will blend that white with the background.