Coder Social home page Coder Social logo

preprocessing-part-ii's Introduction

Preprocessing II - Advanced LESS

At this point, you have been introduced to LESS variables, nesting, mixins, escaping, importing and more. This project incorporates a small amount of everything. You will need to be able to navigate the file structure and make the following updates:

Project 2 - Organize imports, use mixins, functions, escaping, namespacing by building and updating a single web page.

This project will be broken into two main tasks:

  1. Use several imports to build a single index.less file.
  2. Demonstrate that you can use mixins, escaping, functions and stretching to see if you can use namespaces.

Start by forking and cloning this repo then get started on the tasks. Good luck!

Task 1 - Importing

Notice that the LESS folder in this project has several .less files now. Task 1 is to correctly import the .less files into index.less in the following order:

  1. reset.less
  2. variables.less
  3. mixins.less
  4. general-styles.less
  5. header.less
  6. cta.less
  7. main-content.less
  8. contact.less
  9. footer.less

Once you have imported your less files, be sure to run less-watch-compiler

Task 2 - Demonstrate your skills using Mixins, escaping and functions by doing the following:

  1. Use all 5 mixins from the mixins.less file in anyway you want throughout the site (Hint, google the CSS properties if you don't know what they do!).

  2. Use escaping to create 2 unique media query variables named "tablet" at a max-width of 768px and "phone" at 400px max-width. Now use your variables in combination with @media to introduce responsive styling to your page. (You can use code from your last project for the responsivness)

  3. Create your own custom button mixin that passes values for width, height, and background color. Once you have created this mixin, introduce a button to the bottom of each .text-content div. Create unique text for each button to match the header. Example: The heading "Features" could have a button that reads "See Features." Be creative!

  4. Use a function to darken the background by 20% on hover for all those new buttons you just made.

Stretch

Create your own namespace for the following elements:

  • Headings
  • Buttons
  • p tags

Once you have created your own unique namespace styles, apply them throughout the site using the > accessor to overrite the current styles in place as you see fit. This is open ended so try and find practical ways this could help you or just go wild and change everything ;)

preprocessing-part-ii's People

Contributors

bigknell avatar jggarza5 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.