https://github.com/logustra/personal
Personal - HTML Template
https://github.com/logustra/personal
bootstrap bootstrap3 css gulp html javascript jquery sass scss
Last synced: 2 months ago
JSON representation
Personal - HTML Template
- Host: GitHub
- URL: https://github.com/logustra/personal
- Owner: logustra
- Created: 2017-03-14T00:17:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-02T09:34:37.000Z (over 8 years ago)
- Last Synced: 2025-01-22T20:29:47.456Z (over 1 year ago)
- Topics: bootstrap, bootstrap3, css, gulp, html, javascript, jquery, sass, scss
- Language: CSS
- Homepage: https://logustra.github.io/personal/
- Size: 26.5 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Architecture Sass
Properly architecting your Sass project is a crucial starting point to having a maintainable, scalable, and well-organized project. Sass makes separating your project into logical “modules” simple with the `@import` directive, which acts differently than the native CSS `@import` directive in that it **includes** `.scss` **or** `.sass` **files before the final CSS output.**
You can [read the documentation on the](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#import) `@import` [directive](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#import) to get a good idea of how you can use it to include partial files.
There are many project architectures that you can employ in your project, and each might have their pros and cons. The important thing is that you **choose one and stick with it**. In this article, The **7-1 Pattern** by Hugo Giraudel will be used. To summarize, there are **seven** folders and **one** `main.scss` file for output:
- `base/` – contains global styles, such as resets, typography, colors, etc.
- `components/` – contains each self-contained component in its own .scss partial
- `layout/` – contains styling for larger layout components; e.g. nav, header, footer, etc.
- `pages/` – contains page-specific styling, if necessary
- `themes/` – contains styling for different themes
- `utils/` – contains global mixins, functions, helper selectors, etc.
- `vendors/` – contains 3rd-party styles, mixins, etc.
- `main.scss` – output file that brings together all of the above parts
Source : [scotch.io](https://scotch.io/tutorials/aesthetic-sass-1-architecture-and-style-organization)
## Instructions
1. Make sure you have these installed
- [node.js](http://nodejs.org/)
- [git](http://git-scm.com/)
- [gulp](http://gulpjs.com/)
- [ruby](https://www.ruby-lang.org/)
- [sass](http://sass-lang.com/)
2. Clone this repository into your local machine using the terminal (linux) or Gitbash (PC) `git clone https://github.com/Logustra/imgtohtml.git`
3. CD to the folder cd `imgtohtml`
4. Run `npm-install` to install the project dependencies
5. Install gulp.js via the linux terminal or Gitbash on a PC `npm install --global gulp-cli`
6. Run the Gulp command `gulp`