Skip to content

el-nopal/webstyle-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

=== PROJECT 4 - Web Style Guide ===

Description: In this project, we’ve provided an index.html file with a set of class names already defined. You will be responsible for creating rules to style the web page using each of those class names. This will provide you with a set of classes that you can then use in other projects to apply similar styles. You'll create a sass project to do this, using partials, variables, extends, and mixins to apply the styles and classes to the style guide page. When done, you’ll have a Sass micro-framework to quickly prototype other websites.

Instructions: Organize your Sass files. Create a scss folder in your project. In the scss folder, create the following subfolders to organize your CSS code into SCSS partial

files: utilities (a folder to contain partials for global variables, extends, mixins, and functions) base (for the normalize.css file and base styles that are used in the project) components (to contain partials for each part of your site: grid, typography, navigation, images, buttons, forms)
Each subfolder you create should contain an "_ index .scss" file. You’ll use that file to import each sass partial file in the folder. Create a css folder for your compiled CSS. As you work on the project, you’ll be able to run sass --watch scss:css from the command line to compile the sass that you write.

Create a styles.scss file in the root of your Sass project (in your ‘scss’ folder). Import all of your "_ index.scss" partials into this main styles.scss file. Make sure your imports are listed in the correct order for styling.

Create a partial for variables in your utilities folder Use this partial to create variables for your repeated values. At minimum, create variables for fonts, breakpoints, and colors. Import this partial into your utilities/index.scss file

Create a partial for your mixins in your utilities folder

Inside your mixins partial, you’ll want to create mixins for: Media Queries Flexbox settings

Create a partial for your placeholders in your utilities folder

In your placeholder partial, create placeholders for at least the following: Links Images Headlines Nav items

Components All your styles for this project will be applied using the classes listed in the comment at the top of the index.html file. You’ll style these classes in the components folder. Try not to combine selectors from two different categories. For example, avoid using .grid__col--8 .link to style the link in the typography section, as it makes the style of links dependent on what grid column they’re in. The best way to organize this is to make a file in the components folder for each of the following: Grid (recommend using flexbox) Typography Navigation Images Buttons Forms

Base folder In your base folder, include a normalize.css file and create a base.scss file. In the base.scss file, you can only apply styles to three different elements directly: the universal selector "(* )" ul elements p elements

Check your work Open the no_classes.html file. If you’ve only used the proper classes to style your page, this page should match the no_classes_mockup.png mockup, and should be almost completely unstyled. If you’ve used element or id level selectors somehow, you’ll see the difference between these two files. Be sure to check that your classes do only what they’re meant to and that each component category doesn’t depend on styles from another category (E.g. - avoid selecting .grid__col--8 .link to style a link in a grid column.) Making these classes as independent as possible will increase the usefulness of using this style guide on other projects.

About

Treehouse Project #4 - Web Style Guide

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages