Set both normal and hover style with SASS -


It looks like a basic question, but I can not find the answer anywhere. How can I set both Normal and both styles for links with SASS?

I want to control the default and hover styles for all links in one place and in my CSS, different selectors have to pass this 'variable' (or whatever is the correct word) capable.

is similar to the code below, but I want to control the default and hover style on the first line. So later if I want these links to have one: active style then I will add it at the top of the page once.

$ Primary-Color: # 333; . Some classes {color: $ primary-color; }. Some class-other-orbit {color: $ primary-color; }

You can try:

  A {& Amp ;: link, & amp;: hover {color: $ primary color; } And: active {color: $ other-color; }}  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -