All Projects → jakegiltsoff → Sassline

jakegiltsoff / Sassline

Set text on the web to a baseline grid with Sass & rems using a responsive modular-scale.

Labels

Projects that are alternatives of or similar to Sassline

Gridlex
Just a CSS Flexbox Grid System
Stars: ✭ 1,328 (-3.35%)
Mutual labels:  scss
Vue Mpc
multiple pages (multiple entries) based on vue-cli3.x(基于vue-cli3.x创建的多页面应用,每个页面入口又可以创建自己的vue-router)
Stars: ✭ 97 (-92.94%)
Mutual labels:  scss
Hugo Theme Even
🚀 A super concise theme for Hugo https://hugo-theme-even.netlify.app
Stars: ✭ 1,351 (-1.67%)
Mutual labels:  scss
Guide
A free, open-source community resource for designers, developers and others working on non-custodial bitcoin products.
Stars: ✭ 94 (-93.16%)
Mutual labels:  scss
Tacit
CSS Framework for Dummies, Without Classes
Stars: ✭ 1,344 (-2.18%)
Mutual labels:  scss
Cyber.dhs.gov
A site for CISA directives
Stars: ✭ 98 (-92.87%)
Mutual labels:  scss
Jekyll Rtd Theme
Just another documentation theme compatible with GitHub Pages
Stars: ✭ 92 (-93.3%)
Mutual labels:  scss
Typescript Node Starter
A reference example for TypeScript and Node with a detailed README describing how to use the two together.
Stars: ✭ 10,111 (+635.88%)
Mutual labels:  scss
Vue Now Ui Kit
Vue Now UI Kit
Stars: ✭ 97 (-92.94%)
Mutual labels:  scss
Sassdoc
Release the docs!
Stars: ✭ 1,353 (-1.53%)
Mutual labels:  scss
Educenter Hugo
Educenter is an educational website template. It can be used as an online teaching platform, school and university websites
Stars: ✭ 96 (-93.01%)
Mutual labels:  scss
O Grid
Responsive grid system
Stars: ✭ 96 (-93.01%)
Mutual labels:  scss
Clever Bootstrap 4 Admin Template With Angularjs Angular 2 Support
Clever is Boostrap 4 Admin Template with Angular 2 and AngularJS support
Stars: ✭ 98 (-92.87%)
Mutual labels:  scss
Katatema
A handy static site generator using React.js
Stars: ✭ 95 (-93.09%)
Mutual labels:  scss
Awescnb
🎨 快速构建、安装、切换博客园皮肤
Stars: ✭ 99 (-92.79%)
Mutual labels:  scss
Raisincss
An Utility CSS only library. It supports css grid and many more useful css properties.
Stars: ✭ 93 (-93.23%)
Mutual labels:  scss
Select2 Bootstrap4 Theme
A theme for Select2 v4 and Bootstrap 4
Stars: ✭ 97 (-92.94%)
Mutual labels:  scss
Opentracing.io
OpenTracing website
Stars: ✭ 100 (-92.72%)
Mutual labels:  scss
Engineering Blog
📝 We write about our technologies and the problems we handle at scale.
Stars: ✭ 99 (-92.79%)
Mutual labels:  scss
Paperbits Demo
This repository shows an example how developers can use Paperbits to build web apps with rich content authoring capabilities.
Stars: ✭ 98 (-92.87%)
Mutual labels:  scss

Sassline

Set text on the web to a baseline grid with Sass & rems using a responsive modular-scale.

Please note this code is p old now and is no longer actively maintained.

Do one thing well

Sassline has one aim and one aim only – to spread better typography across the responsive environment of the web.

The idea is to have easy to use and maintain SCSS partials utilising the power of Sass to make the complex calculations to set type on a baseline grid on the web, with a production ready CSS output. Using rems for the font-sizing and the spacing measurements gives a simple way to use the proportions of the baseline grid throughout the design. Sass mixins do all the heavy lifting so your job is easy.

OpenType features are enabled with font-feature-settings to give the most appropriate formatting of text and some flourishes in the headings if available in the web font and supported in the browser.

Sassline includes some basic layouts, and includes mixins to create a main column with optimal measure and a sidebar that doesn’t get too narrow.

Root font-size = ½ line-height

Sassline works by setting the root font-size as half the line-height of the standard paragraph text. The height of the baseline grid is then effectively set at 2rem, with increments at each 1rem. This makes it nice and easy to work proportionally from the baseline with integer rem values to create harmony in your layout and typography. This is based off a technique for setting text in print documents.

Documentation

Sassline is fully commented with details in the SCSS. Set the font sizes with the fontsize mixin, set the spacing using the baseline mixin or set both at once with the sassline mixin. Use rems for everything else. Full documentation is in the works.

Running / compiling

You can also use your preferred methods for compiling Sass as long as you have Sass 3.3.7+. To just include the necessary partials in your existing sass project, you only need to import sassline-base.scss.

If you want to run Sassline as a standalone project use the gulp setup included (or modify it to your needs).

  1. Clone the repo or grab the zip file
  2. Open a terminal window and cd into this directory
  3. Run npm install -g gulp (this may need sudo in front)
  4. Run npm install

Once that is done you can start the server with gulp and stop it with ctrl + c.

The pages will run at http://localhost:1234/

Sass file structure

My preferred method is to work along the lines of the SMACSS & BEM method. In the sass folder there there are two folders — sassline-base and modules. The base folder has the Sassline base SCSS partials. The modules folder contains some demo SCSS partials with styles you can keep or remove. All new partials should be added to the modules folder and referenced in style.scss to be compiled into your CSS.

More on information on using Sassline

Please see this blog post.

Responsive Nav

Viljami Salminen’s responsive-nav.js plugin is included to provide a mobile-ready navigation to work from.

Browsers

Sassline will set text to the baseline in recent versions of Chrome and Firefox, IE 11+ and Safari 8+.

Roadmap

  • Full documentation

========

License

Sassline is licensed under the MIT license. (http://opensource.org/licenses/MIT)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].