This page includes the default base blockquote styles.
32 | 33 |Default blockquote
34 |36 |38 |For me, it is far better to grasp the Universe as it really is than to persist in delusion, however satisfying and reassuring.
37 |
├── .gitignore
├── .prettierignore
├── .prettierrc.json
├── .stylelintrc
├── CONTRIBUTING.md
├── LICENSE.md
├── README.md
├── gh-pages.sh
├── lerna.json
├── package-lock.json
├── package.json
└── packages
├── base-blockquotes
├── .gitignore
├── LICENSE
├── README.md
├── _blockquotes.scss
├── index.html
└── package.json
├── base-forms
├── .gitignore
├── LICENSE
├── README.md
├── _forms.scss
├── index.html
└── package.json
├── base-images
├── .gitignore
├── LICENSE
├── README.md
├── _images.scss
└── package.json
├── base-lists
├── .gitignore
├── LICENSE
├── README.md
├── _lists.scss
├── index.html
└── package.json
├── base-tables
├── .gitignore
├── LICENSE
├── README.md
├── _tables.scss
├── index.html
└── package.json
├── base-typography
├── .gitignore
├── LICENSE
├── README.md
├── _typography.scss
├── index.html
└── package.json
├── components-buttons
├── .gitignore
├── LICENSE
├── README.md
├── _buttons.scss
├── index.html
└── package.json
├── generic-normalize
├── .gitignore
├── LICENSE
├── README.md
├── _normalize.scss
└── package.json
├── generic-reset
├── .gitignore
├── LICENSE
├── README.md
├── _reset.scss
└── package.json
├── objects-box
├── .gitignore
├── LICENSE
├── README.md
├── _box.scss
├── index.html
└── package.json
├── objects-centered-column
├── .gitignore
├── LICENSE
├── README.md
├── _centered-column.scss
├── index.html
└── package.json
├── objects-flag
├── .gitignore
├── LICENSE
├── README.md
├── _flag.scss
├── index.html
└── package.json
├── objects-horizontal-list
├── .gitignore
├── LICENSE
├── README.md
├── _horizontal-list.scss
├── index.html
└── package.json
├── objects-media-object
├── .gitignore
├── LICENSE
├── README.md
├── _media-object.scss
├── index.html
└── package.json
├── objects-multi-col-list
├── .gitignore
├── LICENSE
├── README.md
├── _multi-col-list.scss
├── index.html
└── package.json
├── objects-split
├── .gitignore
├── LICENSE
├── README.md
├── _split.scss
├── index.html
└── package.json
├── objects-stack
├── .gitignore
├── LICENSE
├── README.md
├── _stack.scss
├── index.html
└── package.json
├── objects-stats
├── .gitignore
├── LICENSE
├── README.md
├── _stats.scss
├── index.html
└── package.json
├── objects-vertical-list
├── .gitignore
├── LICENSE
├── README.md
├── _vertical-list.scss
├── index.html
└── package.json
├── scalescss
├── .gitignore
├── LICENSE.md
├── README.md
├── imports.md
├── index.html
├── package-lock.json
├── package.json
└── vars.md
├── utilities-clearfix
├── .gitignore
├── LICENSE
├── README.md
├── _clearfix.scss
└── package.json
├── utilities-spacing
├── .gitignore
├── LICENSE
├── README.md
├── _spacing.scss
└── package.json
└── utilities-width
├── .gitignore
├── LICENSE
├── README.md
├── _width.scss
└── package.json
/.gitignore:
--------------------------------------------------------------------------------
1 | .*.swo
2 | .*.swp
3 | nbproject
4 | CVS
5 | .cvsignore
6 | .#*
7 | .DS_Store
8 | .sublime-workspace
9 | .sass-cache/
10 | css/
11 | .idea/
12 | node_modules/
13 | lerna-debug.log
14 |
--------------------------------------------------------------------------------
/.prettierignore:
--------------------------------------------------------------------------------
1 | packages/generic-normalize/_normalize.scss
2 |
--------------------------------------------------------------------------------
/.prettierrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "singleQuote": true
3 | }
4 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | First of all, thank you for your interest in contributing to Scales! I really appreciate your time and interest.
4 |
5 | ## Where to start
6 | To get familiar with Scales, start with the README. Everything you need to get the whole project running is in there already.
7 |
8 | Since Scales is a collection of separate packages it's likely that you will be contributing to an individual part of Scales, which doesn't require setting the whole thing up.
9 |
10 | Once you've fork and cloned the repo locally, create a feature branch and start making changes to the package you want to contribute to.
11 |
12 | ## Anatomy of a Scales package
13 | The 3 important files in a Scales package are the `.scss` file, index.html, and the README.
14 |
15 | ### .scss
16 | This is the main file for each package and the one that actually gets referenced in a project that uses Scales. Scales uses [Stylelint Lint](https://stylelint.io/) and [Prettier](https://prettier.io/) to maintain consistent code style. When you commit files, they will linted and formatted. I recommend that you install the Stylelint and Prettier plugins for your code editor so you can catch errors before attempting to commit.
17 |
18 | Please follow the commenting convention in the files to add usage notes when appropriate.
19 |
20 | #### Variables
21 | Scales makes heavy use of variables so that default values can be set by the user. Make sure you put these in the right area near the top of the file and don't forget to set the `!default` flag.
22 |
23 | ### index.html
24 | This file is used for testing the different patterns in Scales.
25 |
26 | Any changes or additions to classes need to be represented in this file.
27 |
28 | You also need to update the CSS in this file so the changes you made are visible. I suggest copying the contents of the `.scss` file into [Sassmeister](https://www.sassmeister.com/) and pasting the css output into `index.html`.
29 |
30 | ### README.md
31 | This is the documentation for the package. Add any documentation here that helps explain your changes.
32 |
33 | Be sure to add or update any variables or classes in the appropriate sections.
34 |
35 | Also, be sure to add or update the html in the usage section.
36 |
37 | ## Opening a PR
38 | Once you've made the changes and updated all of the documentation, simply open a pull request against master.
39 |
40 | Thanks again for your interest!
41 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2017
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # This library is no longer being maintained
2 | Scales has been pulled directly into https://github.com/sparkdesignsystem/spark-design-system and is no longer being directly maintained.
3 |
4 | # Scales
5 |
6 | Scales is a modular CSS framework for quickly building responsive web projects. It clocks in at only 3.8kb when minified and gzipped.
7 |
8 | It is purposely "design-free" so that there is nothing you will have to change. Instead, you will build your design on top of the foundation that Scales provides.
9 |
10 | This is a framework for serious developers and designers who aren't afraid to get their hands dirty with advanced and sometimes challenging CSS concepts. A framework shouldn't do your work for you or make all of the decisions. Scales tries it's best to stay out of your way.
11 |
12 | Scales is a highly _scalable_ CSS architecture, it contains design _patterns_ (scales in nature form patterns), and it is responsive so it _scales_ to the width of the viewport. So clever it hurts.
13 |
14 | ## Monorepo
15 |
16 | Scales is managed as a monorepo. All of the Scales source code lives in a single repo, but is released as separate packages using [Lerna](https://github.com/lerna/lerna).
17 |
18 | ### Looking for the previous version of scales?
19 | [Scales 2.6.1](https://github.com/ScalesCSS/scalescss/tree/v2.6.1)
20 |
21 | ## Techniques/Concepts Used in Scales
22 | * [ITCSS](http://www.creativebloq.com/web-design/manage-large-css-projects-itcss-101517528) (Inverted Triangle CSS) architecture
23 | * Object Oriented CSS Design Patterns
24 | * Responsive Design
25 | * Sass/scss
26 | * BEM (Block, Element, Modifier)-style naming convention
27 |
28 | ## Browser Support
29 | Scales uses `box-sizing: border-box;`, and `display: table-cell;`, neither of which are supported in IE7 and under. There are a few media queries, but they are an enhancement. Thus, Scales is only for IE9+ and any modern browser, but IE8 is also mostly covered.
30 |
31 | ## Dependencies
32 | * [Sass](http://sass-lang.com/) - Either Ruby Sass or Libsass.
33 | * [NPM](http://npmjs.com) - To pull all of the scales packages together.
34 |
35 | ## Setup
36 | Make sure you have the dependencies installed on your system and then, from the root directory of your project, run:
37 |
38 | ```
39 | npm install --save @scalescss/scalescss
40 | ```
41 |
42 | Next you will want to create 3 files (name them whatever you want):
43 |
44 | 1. A settings/variables file. ex. `_settings.scss`
45 | 1. A file to import all of the Scales packages. ex. `_scalescss.scss`
46 | 1. A main file to import the settings, Scales packages, and all of your project partials. ex. `styles.scss`
47 |
48 | ### Settings/Variables
49 | Scales exposes a large number of variables that allow you to customize nearly everything.
50 |
51 | Have a look at all of the [available variables](https://github.com/ScalesCSS/scalescss/blob/master/packages/scalescss/vars.md).
52 |
53 | ### The Scales Packages
54 | Each piece of Scales is its own package on npm. Once you have all of the packages in your project, you will need to import them into your project. I recommend creating a `_scalescss.scss` file that imports everything.
55 |
56 | **The order of the imports is very important!**
57 |
58 | See an example of the [correct import order](https://github.com/ScalesCSS/scalescss/blob/master/packages/scalescss/imports.md).
59 |
60 | ### Main Sass File
61 |
62 | Once you have these files sorted out, you will want to create a main Scss file that will import your settings, Scales, and the rest of your project partials. This is the file that will get compiled into CSS:
63 |
64 | ```
65 | @import your-project/settings;
66 | @import your-project/scalescss;
67 | @import your-project/project-partial;
68 | @import your-project/project-partial;
69 | @import your-project/project-partial;
70 | @import your-project/project-partial;
71 | ```
72 |
73 | ## Compile to CSS
74 | Once you have these things set up you simply need to tell Sass what to compile:
75 |
76 | ```
77 | $ sass your-project/styles.scss your-project/css/styles.css
78 | ```
79 |
80 | There are many other options for compiling that you can find in the [Sass Documentation](http://sass-lang.com/documentation/file.SASS_REFERENCE.html). You can also look into using a task runner like [Gulp](http://gulpjs.com/) or a module bundler like [Webpack](https://webpack.github.io/).
81 |
82 | ## Pattern Library
83 | The [scalescss](https://github.com/ScalesCSS/scalescss/tree/master/packages/scalescss/) package includes an `index.html` file that serves as a basic pattern library for Scales. It shows all of the available patterns in their default state. This can be used as a reference, for testing, or styled into a more complete pattern library with your project's patterns as well.
84 |
85 | ## Props
86 | This couldn't have been done without the amazing work of [Harry Roberts](https://csswizardry.com/) on [inuitcss](https://github.com/inuitcss). A number of the design patterns and techniques in Scales were borrowed or adapted from inuitcss.
87 |
88 | I also wanted to thank [Nicole Sullivan](http://www.stubbornella.org/) for her work on [OOCSS](https://github.com/stubbornella/oocss/wiki), without which I would not be the developer I am today.
89 |
90 | ## Sites using Scales
91 |
92 | ### v2
93 | * [rocket.quickenloans.com](https://rocket.quickenloans.com/)
94 | * [quickenloans.com](https://quickenloans.com/)
95 | * [myql.com](https://www.myql.com/)
96 | * [davidgillhespy.com](http://davidgillhespy.com/)
97 | * [rockframework.org](http://www.rockframework.org/)
98 |
99 | ### v1
100 | * [realestateagent.quickenloans.com](https://realestateagent.quickenloans.com/#!/)
101 | * [toflexornottoflex.com](http://toflexornottoflex.com/#/)
102 |
103 | ## Meta
104 | * Follow me on twitter [@yodasw16](http://twitter.com/yodasw16)
105 | * Check out [my website](http://davidgillhespy.com/)
106 | * Detroit people: Check out [Devtroit](http://devtroit.com/)
107 |
108 | 
109 |
--------------------------------------------------------------------------------
/gh-pages.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | git subtree split --prefix packages/scalescss -b gh-pages
3 | git push -f origin gh-pages:gh-pages
4 | git branch -D gh-pages
5 |
--------------------------------------------------------------------------------
/lerna.json:
--------------------------------------------------------------------------------
1 | {
2 | "lerna": "2.10.2",
3 | "packages": [
4 | "packages/*"
5 | ],
6 | "version": "6.0.0-1"
7 | }
8 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "scalescss",
3 | "description": "Scales is a design-free collection of OOCSS patterns, framework settings, & utilities to quickly build mobile-first, responsive web projects",
4 | "scripts": {
5 | "test": "echo \"Error: no test specified\" && exit 1",
6 | "gh-pages": "./gh-pages.sh",
7 | "precommit": "lint-staged"
8 | },
9 | "lint-staged": {
10 | "packages/**/*.scss": [
11 | "prettier-stylelint --write",
12 | "git add"
13 | ]
14 | },
15 | "author": "Dave Gillhespy",
16 | "license": "MIT",
17 | "devDependencies": {
18 | "husky": "^0.14.3",
19 | "lerna": "^2.10.2",
20 | "lint-staged": "^6.1.0",
21 | "prettier-stylelint": "^0.4.2",
22 | "stylelint": "^8.4.0",
23 | "stylelint-scss": "^2.2.0"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/packages/base-blockquotes/.gitignore:
--------------------------------------------------------------------------------
1 | .*.swo
2 | .*.swp
3 | nbproject
4 | CVS
5 | .cvsignore
6 | .#*
7 | .DS_Store
8 | .sublime-workspace
9 | .sass-cache/
10 | css/
11 | .idea/
12 | node_modules/
13 |
--------------------------------------------------------------------------------
/packages/base-blockquotes/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2017
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/packages/base-blockquotes/README.md:
--------------------------------------------------------------------------------
1 | # Base Block Quotes for Scales
2 |
3 | These are the base styles for block quotes.
4 |
5 | ## Requirements
6 |
7 | Scales uses the [Sass CSS preprocessor](http://sass-lang.com/), you'll need either Ruby Sass or LibSass.
8 |
9 | ## Installation
10 |
11 | * [NPM](http://npmjs.com): `npm install --save @scales/base-blockquotes`
12 |
13 | ## Usage
14 |
15 | A nice semantic way to markup a blockquote is using the `figure` element. See http://alistapart.com/blog/post/more-thoughts-about-blockquotes-than-are-strictly-required for the rationale behind this approach.
16 |
17 | ### Default blockquote
18 | ```
19 | For me, it is far better to grasp the Universe as it really is than to persist in delusion, however satisfying and reassuring.
21 |
23 |
This page includes the default base blockquote styles.
32 | 33 |36 |38 |For me, it is far better to grasp the Universe as it really is than to persist in delusion, however satisfying and reassuring.
37 |
This page includes the default base list styles.
24 |Lorem | 22 |Ipsum | 23 |Dolor | 24 |Sit | 25 |
---|---|---|---|
Sit | 30 |Dolor | 31 |03.788 | 32 |Lorem | 33 |
Dolor | 36 |32.210 | 37 |Lorem | 38 ||
Dolor | 41 |47.797 | 42 |Lorem | 43 ||
Sit | 46 |Dolor | 47 |09.640 | 48 |Lorem | 49 |
Dolor | 52 |12.117 | 53 |Lorem | 54 |
Lorem | 150 |Ipsum | 151 |Dolor | 152 |Sit | 153 |
---|---|---|---|
Sit | 158 |Dolor | 159 |03.788 | 160 |Lorem | 161 |
Dolor | 164 |32.210 | 165 |Lorem | 166 ||
Dolor | 169 |47.797 | 170 |Lorem | 171 ||
Sit | 174 |Dolor | 175 |09.640 | 176 |Lorem | 177 |
Dolor | 180 |12.117 | 181 |Lorem | 182 |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed gravida urna quis nulla ultrices, sed efficitur risus elementum. Vivamus semper ex a lorem sodales, rhoncus rhoncus augue cursus. Sed vestibulum felis vel euismod aliquet. Suspendisse sit amet euismod nibh, eget fermentum arcu. Aliquam lacinia, sem eu ultricies auctor, velit nunc commodo sapien, pharetra maximus augue dui eget dui.
20 | ``` 21 | 22 | ### Code Block 23 | ``` 24 |
25 | function padZeros(num, totalLen) {
26 | var numStr = num.toString();
27 | var numZeros = totalLen - numStr.length;
28 | for (var i = 1; i <= numZeros; i++) {
29 | numStr = "0" + numStr;
30 | }
31 | return numStr;
32 | }
33 |
34 | ```
35 |
36 | ### Measure
37 | Measure is the length of a line of text. For maximum readability, this should optimally be set between 45 and 75 characters. With multiple columns of text the measure should be narrower, between 40 and 50 characters.
38 |
39 | ```
40 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed gravida urna quis nulla ultrices, sed efficitur risus elementum. Vivamus semper ex a lorem sodales, rhoncus rhoncus augue cursus.
41 | 42 |Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed gravida urna quis nulla ultrices, sed efficitur risus elementum. Vivamus semper ex a lorem sodales, rhoncus rhoncus augue cursus.
43 | ``` 44 | 45 | ### Truncation 46 | This allows you to cut text off if it exceeds the width of the viewport and adds an ellipsis. This works even better when combined with [utilities-size](https://github.com/ScalesCSS/scalescss/tree/master/packages/utilities-size) to control where it cuts off by applying a width to the container. 47 | 48 | ``` 49 |Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed gravida urna quis nulla ultrices, sed efficitur risus elementum. Vivamus semper ex a lorem sodales, rhoncus rhoncus augue cursus.
50 | ``` 51 | 52 | ## Available Classes 53 | 54 | * `.Lede` or `.Lead` 55 | * `.Measure` 56 | * `.Measure--narrow` 57 | * `.Truncate` 58 | 59 | ### Heading Utility Classes 60 | 61 | * `.H1` 62 | * `.H2` 63 | * `.H3` 64 | * `.H4` 65 | * `.H5` 66 | * `.H6` 67 | * `.Alpha` 68 | * `.Beta` 69 | * `.Gamma` 70 | * `.Delta` 71 | * `.Epsilon` 72 | * `.Zeta` 73 | 74 | ## Available Variables 75 | 76 | * `$base-text-color` 77 | * `$heading-color` 78 | * `$text-margins` 79 | * `$heading-margins` 80 | * `$measure` 81 | * `$narrow-measure` 82 | * `$code-block-padding` 83 | * `$code-block-margins` 84 | * `$code-block-bg-color` 85 | * `$code-block-text-color` 86 | * `$pre-wordwrap` - Set to 'true' to make text in a code block wrap to new lines when it reaches the bounds of the container. 87 | * `$reset-heading-sizes` - Set to 'true' to make the default heading sizes match the base font size. 88 | * `$system-body-fonts` - Set to 'false' to use the `$base-font-stack` instead of using system fonts. 89 | * `$system-heading-fonts` - Set to 'false' to use the `$heading-font-stack` instead of using system fonts. 90 | * `$system-font-stack` 91 | * `$monospaced-font-stack` 92 | * `$base-font-stack` 93 | * `$heading-font-stack` 94 | * `$heading-font-weight` 95 | * `$font-size-unit` 96 | * `$base-font-size` 97 | * `$base-line-height` 98 | * `$heading-line-height` 99 | * `$lede-font-size` 100 | * `$h1-size` 101 | * `$h2-size` 102 | * `$h3-size` 103 | * `$h4-size` 104 | * `$h5-size` 105 | * `$h6-size` 106 | * `$h1-color` 107 | * `$h2-color` 108 | * `$h3-color` 109 | * `$h4-color` 110 | * `$h5-color` 111 | * `$h6-color` 112 | * `$h1-line-height` 113 | * `$h2-line-height` 114 | * `$h3-line-height` 115 | * `$h4-line-height` 116 | * `$h5-line-height` 117 | * `$h6-line-height` 118 | * `$h1-weight` 119 | * `$h2-weight` 120 | * `$h3-weight` 121 | * `$h4-weight` 122 | * `$h5-weight` 123 | * `$h6-weight` 124 | * `$anchor-link-color` 125 | * `$anchor-visited-color` 126 | * `$anchor-hover-color` 127 | * `$anchor-active-color` 128 | * `$anchor-link-decoration` 129 | * `$anchor-hover-decoration` 130 | 131 | ## Custom heading utility class variables (overrides Greek alphabet classes) 132 | * `$custom-h1-utility-class` 133 | * `$custom-h2-utility-class` 134 | * `$custom-h3-utility-class` 135 | * `$custom-h4-utility-class` 136 | * `$custom-h5-utility-class` 137 | * `$custom-h6-utility-class` 138 | 139 | ### Namespace Variables 140 | 141 | #### The Scales Namespace Variable 142 | 143 | All Scales patterns expose the `$scales-namespace` variable. 144 | 145 | `$scales-namespace` accepts a string that will prefix all Scales classes. The default value is `null`. 146 | 147 | #### Class Level Namespace Variable 148 | 149 | Class level namespace variables allow you to namespace a selector based on the type e.g. `b-` for "base", `o-` for "objects", `u-` for utilities, and `c-` for "components". 150 | 151 | This pattern exposes the `$scales-base-class-namespace` variable. 152 | 153 | `$scales-base-class-namespace` accepts a string that will prefix any classes in this pattern and follow the Scales Namespace Variable if it is not null. The default value is `null`. 154 | 155 | #### Namespace Variable Usage 156 | 157 | To set either of these namespaces, you will need to set the variables in a file that is imported before any scales files. For example: 158 | 159 | ``` 160 | @import your-project/settings; // Namespace variables are set in this file 161 | @import your-project/scalescss; // Imports all of the Scales packages 162 | @import your-project/project // The rest of your project imports 163 | ``` 164 | -------------------------------------------------------------------------------- /packages/base-typography/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |This page includes the default base typographic styles.
139 | 140 |Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed gravida urna quis nulla ultrices, sed efficitur risus elementum. Vivamus semper ex a lorem sodales, rhoncus rhoncus augue cursus. Sed vestibulum felis vel euismod aliquet. Suspendisse sit amet euismod nibh, eget fermentum arcu. Aliquam lacinia, sem eu ultricies auctor, velit nunc commodo sapien, pharetra maximus augue dui eget dui.
153 | 154 |Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed gravida urna quis nulla ultrices, sed efficitur risus elementum. Vivamus semper ex a lorem sodales, rhoncus rhoncus augue cursus. Sed vestibulum felis vel euismod aliquet. Suspendisse sit amet euismod nibh, eget fermentum arcu. Aliquam lacinia, sem eu ultricies auctor, velit nunc commodo sapien, pharetra maximus augue dui eget dui.
156 | 157 |Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed gravida urna quis nulla ultrices, sed efficitur risus elementum. Vivamus semper ex a lorem sodales, rhoncus rhoncus augue cursus. Sed vestibulum felis vel euismod aliquet. Suspendisse sit amet euismod nibh, eget fermentum arcu. Aliquam lacinia, sem eu ultricies auctor, velit nunc commodo sapien, pharetra maximus augue dui eget dui.
159 | 160 |Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed gravida urna quis nulla ultrices, sed efficitur risus elementum. Vivamus semper ex a lorem sodales, rhoncus rhoncus augue cursus. Sed vestibulum felis vel euismod aliquet. Suspendisse sit amet euismod nibh, eget fermentum arcu. Aliquam lacinia, sem eu ultricies auctor, velit nunc commodo sapien, pharetra maximus augue dui eget dui.
162 | 163 |Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed gravida urna quis nulla ultrices, sed efficitur risus elementum. Vivamus semper ex a lorem sodales, rhoncus rhoncus augue cursus. Sed vestibulum felis vel euismod aliquet. Suspendisse sit amet euismod nibh, eget fermentum arcu. Aliquam lacinia, sem eu ultricies auctor, velit nunc commodo sapien, pharetra maximus augue dui eget dui.
165 | 166 |
168 | function padZeros(num, totalLen) {
169 | var numStr = num.toString();
170 | var numZeros = totalLen - numStr.length;
171 | for (var i = 1; i <= numZeros; i++) {
172 | numStr = "0" + numStr;
173 | }
174 | return numStr;
175 | }
176 |
177 |
178 | This page includes the default button component styles
62 | 63 |Buttons should be used with links, buttons, and submit inputs for best results
65 | 66 |The content in here will be boxed off from the surrounding content and will have a default amount of padding (based on the class used) to visually separate it.
24 |This is a really ugly error message in an alert box!!!!!
97 |This page includes the default box object styles
51 | 52 |The box object can be used on any element that you want to visually separate it from surrounding content.
54 | 55 |The content in the centered column is restricted to a max-width. If the viewport is greater, the column is horizontally 21 | centered.
22 |This page includes the default centered column object styles
20 | 21 |The Centered Column layout object is intended to wrap main content when the desired effect is one column that 23 | centers itself on large displays. The default max-width is 64rem, which converts to 1024px.
24 | 25 |Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci alias assumenda aut blanditiis, deleniti doloremque ea eius eum ipsam iste maiores molestiae, natus optio provident quos repellendus ullam voluptas! Suscipit!
29 |Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci alias assumenda aut blanditiis, deleniti doloremque ea eius eum ipsam iste maiores molestiae, natus optio provident quos repellendus ullam voluptas! Suscipit!
30 |Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci alias assumenda aut blanditiis, deleniti doloremque ea eius eum ipsam iste maiores molestiae, natus optio provident quos repellendus ullam voluptas! Suscipit!
31 |The domestic cat is a small, usually furry, domesticated, and carnivorous mammal. It is often called the housecat when kept as an indoor pet, or simply the cat when there is no need to distinguish it from other felids and felines.
26 |The domestic cat is a small, usually furry, domesticated, and carnivorous mammal. It is often called the housecat when kept as an indoor pet, or simply the cat when there is no need to distinguish it from other felids and felines.
30 |The domestic cat is a small, usually furry, domesticated, and carnivorous mammal. It is often called the housecat when kept as an indoor pet, or simply the cat when there is no need to distinguish it from other felids and felines.
42 |This page includes the default multi column list object styles
51 | 52 |Multi column lists can be used when you have a single list that you want to split into multiple columns.
54 | 55 |This page includes the default split object styles
28 | 29 |The Split pattern can be used on any elements but works best in a <dl> or <ul/ol>. For Example:
31 | 32 |This page includes the default stats object styles
49 | 50 |Stats should be used with a <dl> and individual <div>s to group the stat title and value. The `--big` variation can be used when the title or values are too long to sit next to each other in a row.
52 | 53 |This page includes the default vertical list object styles
36 | 37 |Vertical List should be used whenever you need to make an ordered or unordered list vertical instead of horizontal. You can extend it with '--delimited' to semantically mark up a character delimited list for things like tags, etc.
39 | 40 |This changes the padding on all sides to 0 and the margin on the left to the default small size.
27 | ``` 28 | 29 | ## Available Classes 30 | 31 | * `.ptn,.pvn,.pan` 32 | * `.pts,.pvs,.pas` 33 | * `.ptm,.pvm,.pam` 34 | * `.ptl,.pvl,.pal` 35 | * `.pth,.pvh,.pah` 36 | * `.prn,.phn,.pan` 37 | * `.prs,.phs,.pas` 38 | * `.prm,.phm,.pam` 39 | * `.prl,.phl,.pal` 40 | * `.prh,.phh,.pah` 41 | * `.pbn,.pvn,.pan` 42 | * `.pbs,.pvs,.pas` 43 | * `.pbm,.pvm,.pam` 44 | * `.pbl,.pvl,.pal` 45 | * `.pbh,.pvh,.pah` 46 | * `.pln,.phn,.pan` 47 | * `.pls,.phs,.pas` 48 | * `.plm,.phm,.pam` 49 | * `.pll,.phl,.pal` 50 | * `.plh,.phh,.pah` 51 | * `.mtn,.mvn,.man` 52 | * `.mts,.mvs,.mas` 53 | * `.mtm,.mvm,.mam` 54 | * `.mtl,.mvl,.mal` 55 | * `.mth,.mvh,.mah` 56 | * `.mrn,.mhn,.man` 57 | * `.mrs,.mhs,.mas` 58 | * `.mrm,.mhm,.mam` 59 | * `.mrl,.mhl,.mal` 60 | * `.mrh,.mhh,.mah` 61 | * `.mbn,.mvn,.man` 62 | * `.mbs,.mvs,.mas` 63 | * `.mbm,.mvm,.mam` 64 | * `.mbl,.mvl,.mal` 65 | * `.mbh,.mvh,.mah` 66 | * `.mln,.mhn,.man` 67 | * `.mls,.mhs,.mas` 68 | * `.mlm,.mhm,.mam` 69 | * `.mll,.mhl,.mal` 70 | * `.mlh,.mhh,.mah` 71 | 72 | ## Available variables 73 | 74 | * `$space-s` 75 | * `$space-m` 76 | * `$space-l` 77 | * `$space-h` 78 | 79 | ### Namespace Variables 80 | 81 | #### The Scales Namespace Variable 82 | 83 | All Scales patterns expose the `$scales-namespace` variable. 84 | 85 | `$scales-namespace` accepts a string that will prefix all Scales classes. The default value is `null`. 86 | 87 | #### Class Level Namespace Variable 88 | 89 | Class level namespace variables allow you to namespace a selector based on the type e.g. `b-` for "base", `o-` for "objects", `u-` for utilities, and `c-` for "components". 90 | 91 | This pattern exposes the `$scales-utilities-class-namespace` variable. 92 | 93 | `$scales-utilities-class-namespace` accepts a string that will prefix any classes in this pattern and follow the Scales Namespace Variable if it is not null. The default value is `null`. 94 | 95 | #### Namespace Variable Usage 96 | 97 | To set either of these namespaces, you will need to set the variables in a file that is imported before any scales files. For example: 98 | 99 | ``` 100 | @import your-project/settings; // Namespace variables are set in this file 101 | @import your-project/scalescss; // Imports all of the Scales packages 102 | @import your-project/project // The rest of your project imports 103 | ``` 104 | -------------------------------------------------------------------------------- /packages/utilities-spacing/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@scalescss/utilities-spacing", 3 | "version": "6.0.0-1", 4 | "description": "Size classes to force an element to a specific size for Scales CSS", 5 | "main": "_spacing.scss", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/ScalesCSS/scalescss/tree/master/packages/utilities-spacing" 12 | }, 13 | "author": "Dave Gillhespy", 14 | "license": "MIT", 15 | "bugs": { 16 | "url": "https://github.com/ScalesCSS/scalescss/issues" 17 | }, 18 | "homepage": "https://github.com/ScalesCSS/scalescss/tree/master/packages/utilities-spacing#readme" 19 | } 20 | -------------------------------------------------------------------------------- /packages/utilities-width/.gitignore: -------------------------------------------------------------------------------- 1 | .*.swo 2 | .*.swp 3 | nbproject 4 | CVS 5 | .cvsignore 6 | .#* 7 | .DS_Store 8 | .sublime-workspace 9 | .sass-cache/ 10 | css/ 11 | .idea/ 12 | node_modules/ 13 | -------------------------------------------------------------------------------- /packages/utilities-width/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2017 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /packages/utilities-width/README.md: -------------------------------------------------------------------------------- 1 | # Width Utilities for Scales 2 | 3 | A set of utility classes for changing the width of an element. 4 | 5 | ## Requirements 6 | 7 | Scales uses the [Sass CSS preprocessor](http://sass-lang.com/), you'll need either Ruby Sass or LibSass. 8 | 9 | ## Installation 10 | 11 | * [NPM](http://npmjs.com): `npm install --save @scales/utilities-width` 12 | 13 | ## Usage 14 | 15 | By default there is a class for every 5% step from 5 to 100 in the format `.Width-[percent]`. Simply put a class in your HTML and the width will change by that percentage. 16 | 17 | ``` 18 |This changes the width of the element to 50%
19 | ``` 20 | 21 | ## Available Classes 22 | 23 | * `.Width-5` 24 | * `.Width-10` 25 | * `.Width-15` 26 | * `.Width-20` 27 | * `.Width-25` 28 | * `.Width-30` 29 | * `.Width-35` 30 | * `.Width-40` 31 | * `.Width-45` 32 | * `.Width-50` 33 | * `.Width-55` 34 | * `.Width-60` 35 | * `.Width-65` 36 | * `.Width-70` 37 | * `.Width-75` 38 | * `.Width-80` 39 | * `.Width-85` 40 | * `.Width-90` 41 | * `.Width-95` 42 | * `.Width-100` 43 | 44 | ## Available variables 45 | 46 | * `$width-range-start` 47 | * Value of the first class 48 | * Default: 5 49 | * `$width-range-end` 50 | * Value of the last class 51 | * Default: 100 52 | * `$width-step-value` 53 | * Increment between values 54 | * Default: 5 55 | 56 | ### Namespace Variables 57 | 58 | #### The Scales Namespace Variable 59 | 60 | All Scales patterns expose the `$scales-namespace` variable. 61 | 62 | `$scales-namespace` accepts a string that will prefix all Scales classes. The default value is `null`. 63 | 64 | #### Class Level Namespace Variable 65 | 66 | Class level namespace variables allow you to namespace a selector based on the type e.g. `b-` for "base", `o-` for "objects", `u-` for utilities, and `c-` for "components". 67 | 68 | This pattern exposes the `$scales-utilities-class-namespace` variable. 69 | 70 | `$scales-utilities-class-namespace` accepts a string that will prefix any classes in this pattern and follow the Scales Namespace Variable if it is not null. The default value is `null`. 71 | 72 | #### Namespace Variable Usage 73 | 74 | To set either of these namespaces, you will need to set the variables in a file that is imported before any scales files. For example: 75 | 76 | ``` 77 | @import your-project/settings; // Namespace variables are set in this file 78 | @import your-project/scalescss; // Imports all of the Scales packages 79 | @import your-project/project // The rest of your project imports 80 | ``` 81 | -------------------------------------------------------------------------------- /packages/utilities-width/_width.scss: -------------------------------------------------------------------------------- 1 | // ========================================================================== 2 | // Width Utilities 3 | // ========================================================================== 4 | 5 | // 6 | // A set of classes for changing the width of an element. 7 | /// 8 | 9 | // 10 | // Scales namespace variable 11 | /// 12 | $scales-namespace: null !default; 13 | 14 | // 15 | // Class level namespacing variable 16 | /// 17 | $scales-utilities-class-namespace: null !default; 18 | 19 | // 20 | // Available variables 21 | /// 22 | $width-range-start: 5; 23 | $width-range-end: 100; 24 | $width-step-value: 5; 25 | 26 | // 27 | // Width classes 28 | // 29 | // This will generate a list of classes in the format `.Width-[percent]`. 30 | // By default it will generate a class for every 5% step from 5 to 100. 31 | /// 32 | $width: $width-range-start; 33 | 34 | @while $width <= $width-range-end { 35 | .#{$scales-namespace}#{$scales-utilities-class-namespace}Width-#{$width} { 36 | width: unquote($string:'#{$width}%') !important; 37 | } 38 | 39 | $width: $width + $width-step-value; 40 | } 41 | -------------------------------------------------------------------------------- /packages/utilities-width/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@scalescss/utilities-width", 3 | "version": "6.0.0-1", 4 | "description": "Width classes to force an element to a specific width for Scales CSS", 5 | "main": "_width.scss", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/ScalesCSS/scalescss/tree/master/packages/utilities-width" 12 | }, 13 | "author": "Dave Gillhespy", 14 | "license": "MIT", 15 | "bugs": { 16 | "url": "https://github.com/ScalesCSS/scalescss/issues" 17 | }, 18 | "homepage": "https://github.com/ScalesCSS/scalescss/tree/master/packages/utilities-width#readme" 19 | } 20 | --------------------------------------------------------------------------------