TygeJ / Sprint-Challenge--Responsive-Less

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assessing Your Preprocessor and Responsive Design Learning

  • The objective of this challenge is test your knoweldge on all of the topics surrounding preprocessing (LESS) and responsive web design you learned this week.
  • Answers to your written questions will be recorded in Answers.md
  • This is to be worked on alone but you can use outside resources. You can reference any old code you may have, and the LESS Documentation, however, please refrain from copying and pasting any of your answers. Try and understand the question and put your responses in your own words. Be as thorough as possible when explaining something.
  • Just a friendly Reminder Don't fret or get anxious about this, this is a no-pressure assessment that is only going to help guide you here in the near future. This is NOT a pass/fail situation.

Start by forking and cloning this repository.

Questions - Self Study - You can exercise your Google-Fu for this and any other Sprint Challenge in the future.

  1. If you had to teach someone with basic CSS knowledge what a preprocessor was, how would you describe it?
  2. What is the command in node package manager (npm) to install LESS globally on your computer?
  3. Please provide an example of a mixin you have used in a project this week.
  4. What is the difference between fixed layout, adaptive layout, and fluid layout?
  5. Why do we need to use the CSS property max-width in a responsive website?

Initializing Project

  • Fork / Clone this project into a directory on your machine.
  • cd into your forked local copy.

Get LESS up and running

  1. Be sure LESS is installed globally
  2. If you haven't already, install a less watch compiler globablly by running: npm install -g less-watch-compiler
  3. Once that is install you should be able to run less-watch-compiler less css index.less

If you get user permission errors, re-run the command with: sudo in front of it.

Complete these tasks

  • Make every gray background turn black using one variable.
  • Convert all font-size values from px to rem, make sure that all of the rem values are based on a 10px base.
  • Nest every LESS selector appropriately
  • Use the mixin ".center-content" to center the text in nav, .logo, .boxes, and the footer.
  • Use the mixin ".border-radius" to make the .logo an oval shape (hint: 50%)
  • Make the whole site responsive by adjusting the .container class' width to 100% and introduce a max-width.
  • Use the escaped media query variable for laptop sizes (1100px) and update nav, .box1 and .box4 to have a background color of green;
  • Use the escaped media query variable for tablet sizes (768px) and update .logo, .box2 and .box3 to have a background color of purple;
  • Use the escaped media query variable for phone sizes (400px), and update nav, footer, .box1, and .box4 to have a background color of orange;
  • Once you're done with all the tasks, push your commits to your fork and submit a Pull-Request

Stretch Goal

  • Collapse boxes 1-4 to full width on tablet and phone.
  • Decrease the navigation box to half of it's current height on phone and make it full width.
  • Make the logo move to the top of navigation on phone using flexbox.

Super Stretch Goal

  • Switch the media queries to min-width and accomplish the same color goals AND layout goals listed above.

Remember you can use any resources you want to solve these problems, but avoid copying/pasting solutions you've previously written. Also if you don't finish all of the challenges, that's fine! Just do what you can and submit your challenges in the end! HAVE FUN!

About


Languages

Language:CSS 80.5%Language:HTML 19.5%