Skip to content

Commit

Permalink
add position rules
Browse files Browse the repository at this point in the history
  • Loading branch information
lHydra committed Oct 4, 2019
1 parent 777b526 commit ee5d578
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ Here is a full list of "drops":
| `smaller` | `font-size: .8em;` |
| `larger` | `font-size: 1.2em;` |
| `invisible` | `display: none;` |
| `position-static` | `position: static;` |
| `position-relative` | `position: relative;` |
| `position-absolute` | `position: absolute;` |
| `position-fixed` | `position: fixed;` |
| `position-sticky` | `position: sticky;` |

There is also a set of drops for responsive design, like `desktop-only` and
`no-printer` for `desktop`, `printer`, `mobile`, and `tablet`.
Expand Down
8 changes: 8 additions & 0 deletions scss/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,12 @@
.right { text-align: right; }
.center { text-align: center; }

$positions: static, relative, absolute, fixed, sticky;

@each $position in $positions {
.position-#{$position} {
position: $position;
}
}

.invisible { display: none; }

0 comments on commit ee5d578

Please sign in to comment.