Styling Boxes With Lighting Effect - Sass-Scss

in #utopian-io6 years ago

lightingbuttons.gif


Repository

https://github.com/sass/sass

What Will I Learn?

  • You will learn how to create stylish button with lighting effect .
  • You will learn how to create effects with defining before and after versions and using filter function.
  • You will learn how to use checked function on buttons and create styles.
  • You will learn how to use define inside shadows with box-shadow: inset.
  • You will learn how to remove radio box with display: none also changing mouse with cursor: pointer.

Requirements

  • Any text editor. (Brackets, Atom, Notepad++)
  • Basic HTML knowledge
  • Basic SCSS code knowledge
  • SASS installed.
  • Local server (Wampserver)
  • Any browser

Resources

Difficulty

  • Intermediate

Description

In this tutorial we will create lighted boxes with different colors. When the box is selected it will take his effect. We will also create inside shadows to give more effect. If you follow this tutorial download all files from my github page and change the values. You can use comment mark(/*between these marks*/) to deactivate codes and test it. With this way it will be more useful for you and you can test and understand the codes better.


1- Before you start be sure that you run our sass code in the directory of site files. Our command is sass --watch sass:css. It will translate all codes that you write in scss file to css file. After that, write a basic html file on root directory and into body section we have one division and 10 labels in it


2- We starting to center our object to out page and defining some styles here. With box shadow and border radius we make this object more stylish. Here we also code our text and we set here a border bottem with darkred color


3- Here we change our mouse cursor and also removing radio buttons. In span class we are sizing the text boxes and define some border with radius.


4- With :checked option we give our styles when it selected. With its before and after we define our lighting effect. without specifically color for each button.


5- Last step is defining colors for each button and also giving some inside shadow with using box-shadow: inset.



6- And finally our end work...

lightingbuttons.gif


Video Tutorial


Curriculum


Proof of Work Done

https://github.com/omersurer/Sass-Scss-Tutorials/tree/master/Lighting_the_buttons

Sort:  

Thank you for your contribution @omersurer.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thanks a lot, i have one more tutorial from yesterday. If you have time can you review this one also.

Hey @omersurer
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.28
TRX 0.12
JST 0.032
BTC 61185.73
ETH 3012.54
USDT 1.00
SBD 3.84