1.0.0 • Published 3 years ago

sass-personal-library v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

SASS-Personal-Library

"SASS Personal Library" started initially as a way for me to learn the basics of CSS and pre-processor - SASS. As the time passed by, I realized that it's better to have custom made HTML and CSS Components; so that I can reuse them in different projects.

TABLE OF CONTENTS:

  1. HTML SNIPPETS

    1. Accordion
    2. Alerts
    3. Buttons
    4. Cards
    5. Font Awesome Icons
    6. Image Logo
    7. User Inputs
    8. Lists
    9. Read More Button
    10. Scroll Top Button
    11. Search Menu
    12. Tables
    13. Text Group with Header
  2. UTILITIES

  3. IMPROVEMENTS

HTML SNIPPETS :

This section consists in different components that can be used in future projects. The classes are constructed following BEM Methodology and D.R.Y. Principles. For each HTML Component you will see detailed information regarding the way HTML tags are build. Besides this aspect, you will see how the SASS logic is constructed so that the CSS Styles are applied to each component variation accordingly. These components are responsive only in portrait mode.

  • Accordion is a custom made component that is constructed using the block classes - accordion and a panel. The javascript file is changing the behavior of this accordion. This component is responsive only in portrait mode. You can view a live example here;

  • Alerts are a set of components with different color variations that are constructed using the block class - alert. Modifier classes like: --standard, --primary, --secondary etc. will change the color schema of a certain alert. This component is responsive only in portrait mode. You can view a live example here;

  • Buttons are a set of components with different color variations and layouts that are constructed using the block class - button-group, btn and pagination-group. Modifier classes like: --standard, --primary, --secondary, --outline-standard, --outline-primary, --outline-secondary etc. will change the color schema and layout of a certain button. This component is responsive only in portrait mode. You can view a live example here;

  • Cards are custom made component that are constructed using the block classes - card and btn. Modifier classes like: --standard, --primary, --secondary etc. will change the color schema of a certain button. This component is responsive only in portrait mode. You can se a live example here;

  • Font Awesome Icons are custom made component that are constructed using the class structure from Font Awesome v4.7. These components are responsive only in portrait mode. You can view a live example here;

  • Image Logo is set of components with different dimensions that is constructed using the block class img. The modifier classes like: --logo-50px, --logo-75px etc. will change the width and height of a certain logo. These components are responsive only in portrait mode. You can view a live example here;

  • User Inputs are set of components that are constructed using the block class input. The element classes like: __check, __text, __label etc. will change the way these inputs are displayed. These components are responsive only in portrait mode. You can view a live example here;

  • Lists are set of components that are constructed using the block class lists. The element classes like: __element, __element-type1, __text etc. will change the way these lists are displayed. These components are responsive only in portrait mode. You can view a live example here;

  • Read More Button is a custom made component that is constructed using the block class - btn. The javascript file is changing the behavior of this read more / read less button. This component is responsive only in portrait mode. You can view a live example here;

  • Scroll Top Button is a custom made component that is constructed using the block class - btn. The javascript file is changing the behavior of this scroll top button. This component is responsive only in portrait mode. You can view a live example here;

  • Search Menu is a custom made component that is constructed using the block classes - list-search and list. The javascript file will be triggered every time the user will enter data in the search field. In this search menu, the user can enter whatever he/she likes. This component is responsive only in portrait mode. You can view a live example here;

  • Table is a component that is constructed using the block class - table. The element classes like: __header, __row and __cell will change the layout of the component to a more easy-to-read table. This component is not responsive. You can view a live example here;

  • Text Group with Header is a component with a header and a paragraph that is constructed using the block classes - text-group, text-header and text-content. This component is responsive only in portrait mode. You can view a live example here.

UTILITIES :

This section consists in different CSS Styles that are use to design the HTML Components. The styles are constructed following D.R.Y. Principles. For each utility mixin you will see detailed information regarding the way SASS logic is constructed so that the CSS Styles are applied to each component variation accordingly.

  • Box Model consist of a set of functions and mixins like: margin, padding, width, height etc. that can be used in future projects;

  • Flex Box consist of a set of mixins to center elements to the left, center or right side of the screen by using the following properties: display, justify-content and align-items;

  • Typography consist of a set of mixins that are useful when the user wants to format a paragraph or a link. Font size function and mixin will convert the pixels unit of measurement to rem;

IMPROVEMENTS :

  • Responsive Navigation Bar with Hamburger Menu;
  • Responsive Hero Image with Button;