-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs(usage): add basic information on how to use the plugins (#1) * feat(license): add isc license * feat(widths): add adjustable border-width variant * docs(global): add proper docs * docs(information): add more information about project * docs(border widths): add documentation * docs(temp): add placeholder templates * docs(classes): add btn-rounded documentation * docs(classes): add btn-squared documentation * docs(classes): add font-sizes documentation * feat(global): add commitizen ensure commits follow the same structure for readability. * docs(classes): update documentation structure * docs(classes): add documentation for col-count * docs(mixins): add documentation for media-ie * docs(other): add documentation for responsize typography * feat(version): update to 0.2.0 * feat(version): update to 0.2.0 * docs(usage): add basic information on how to use the plugins (#1) * feat(license): add isc license * feat(widths): add adjustable border-width variant * docs(global): add proper docs * docs(information): add more information about project * docs(border widths): add documentation * docs(temp): add placeholder templates * docs(classes): add btn-rounded documentation * docs(classes): add btn-squared documentation * docs(classes): add font-sizes documentation * feat(global): add commitizen ensure commits follow the same structure for readability. * docs(classes): update documentation structure * docs(classes): add documentation for col-count * docs(mixins): add documentation for media-ie * docs(other): add documentation for responsize typography * docs(community): add code of conduct * docs(community): add contributing guidelines * docs(community): add contribution documentation * docs(contribution): update pr steps * docs(contribution): fix links to issues * test(global): add lint and compiling tests * test(gulp): add initial testing setup * fix(plugin): rename squared buttons file * test(global): make tests work * chore(templates): add templates * docs(community): move code of conduct and contributing docs * chore(templates): add templates * chore(templates): add new templates * chore(templates): add new templates * chore(templates): remove old template * refactor(version): update to 1.0.0 * fix(repo): change repo url BREAKING CHANGE: The repository has changed. * docs(log): add changelog * refactor(version): update to 1.0.0 * feat(plugin): add screen reader breakpoints * docs(tests): correct documentation * docs(tests): correct documentation * feat(class): add sr-breakpoint classes * docs(spelling): correct typo * feat(plugin): add transparent backgrounds plugin * feat(plugin): add 25 and 75 transparent background classes * feat(plugin): add opacity classes * docs(classes): change name of documentation file * docs(plugin): update bg-transparency with 25 and 75 * docs(plugin): remove file extension from example * docs(plugin): add more info for the sr-brakpoints documention * feat(plugin): add opacity plugin * refactor(version): update to 1.1.0 * docs(community): add code of conduct * docs(community): add contributing guidelines * docs(community): add contribution documentation * docs(contribution): update pr steps * docs(contribution): fix links to issues * chore(templates): add templates * docs(community): move code of conduct and contributing docs * chore(templates): add templates * chore(templates): add new templates * chore(templates): add new templates * chore(templates): remove old template * refactor(version): update to 1.0.0 * fix(repo): change repo url BREAKING CHANGE: The repository has changed. * docs(log): add changelog * refactor(version): update to 1.0.0 * feat(plugin): add screen reader breakpoints * docs(tests): correct documentation * docs(tests): correct documentation * feat(class): add sr-breakpoint classes * docs(spelling): correct typo * feat(plugin): add transparent backgrounds plugin * feat(plugin): add 25 and 75 transparent background classes * feat(plugin): add opacity classes * docs(classes): change name of documentation file * docs(plugin): update bg-transparency with 25 and 75 * docs(plugin): remove file extension from example * docs(plugin): add more info for the sr-brakpoints documention * feat(plugin): add opacity plugin * refactor(version): update to 1.1.0
- Loading branch information
Showing
21 changed files
with
251 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Transparent Backgrounds | ||
|
||
Adds background classes with transparencies. | ||
|
||
Uses the base bootstrap background classes `.bg-primary` and adds a transparency selector onto the end which corresponds to the percentage of transparency `-50`. | ||
|
||
Adds 11 variants for each background colour. | ||
|
||
```scss | ||
.bg-primary-10 | ||
.bg-primary-20 | ||
.bg-primary-25 | ||
.bg-primary-30 | ||
.bg-primary-40 | ||
.bg-primary-50 | ||
.bg-primary-60 | ||
.bg-primary-70 | ||
.bg-primary-75 | ||
.bg-primary-80 | ||
.bg-primary-90 | ||
``` | ||
|
||
## Usage | ||
|
||
### Styles | ||
|
||
```scss | ||
@import 'path/to/node_modules/bootstrap-scss-plugins/scss/transparent-backgrounds'; | ||
``` | ||
|
||
### HTML | ||
|
||
```html | ||
<div class="bg-success-70 text-light"> | ||
<p>This is some text.</p> | ||
</div> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Transparent Backgrounds | ||
|
||
Adds opacity classes. | ||
|
||
Applies opacity to an element with a percentage directly tied to the class name (e.g. `o-60` for 60% opacity). | ||
|
||
Adds 11 variants for opacity. | ||
|
||
```scss | ||
.o-10 | ||
.o-20 | ||
.o-25 | ||
.o-30 | ||
.o-40 | ||
.o-50 | ||
.o-60 | ||
.o-70 | ||
.o-75 | ||
.o-80 | ||
.o-90 | ||
``` | ||
|
||
## Usage | ||
|
||
### Styles | ||
|
||
```scss | ||
@import 'path/to/node_modules/bootstrap-scss-plugins/scss/opacity'; | ||
``` | ||
|
||
### HTML | ||
|
||
```html | ||
<p class="o-75">This is some faded text.</p> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Screen Reader Breakpoints | ||
|
||
Extends the vanilla Bootstrap `.sr-only` and `.sr-only-focusable` classes to function with media-breakpoint mixins. | ||
|
||
The classes follow the pattern `sr-[breakpoint]-[query-type]` and `sr-[breakpoint]-[query-type]-focusable`. | ||
|
||
The query types use the provided media queries aside from the "between" query: | ||
|
||
- `only`: to target only the selected breakpoint | ||
- `up`: to target the selected breakpoint and anything larger | ||
- `down`: to target the select breakpoint and anything smaller | ||
|
||
```scss | ||
.sr-md-only | ||
.sr-md-up | ||
.sr-md-down | ||
|
||
.sr-md-only-focusable | ||
.sr-md-up-focusable | ||
.sr-md-down-focusable | ||
``` | ||
|
||
## Usage | ||
|
||
### Styles | ||
|
||
```scss | ||
@import 'path/to/node_modules/bootstrap-scss-plugins/scss/screen-reader-breakpoints'; | ||
``` | ||
|
||
### HTML | ||
|
||
```html | ||
<p class="sr-md-up">This is some text that can been seen on small and smaller screens.</p> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// ---------- | ||
// Mixin to add opacity classes. | ||
// | ||
// Creates a selector based on the $parent provided and the $value given. | ||
// ---------- | ||
|
||
@mixin opacity-variant($parent, $value) { | ||
#{$parent} { | ||
opacity: $value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// ---------- | ||
// Screen reader breakpoint mixins. | ||
// ---------- | ||
|
||
@each $breakpoint, $value in $grid-breakpoints { | ||
.sr-#{$breakpoint}-only { | ||
@include media-breakpoint-only($breakpoint) { | ||
@include sr-only; | ||
} | ||
} | ||
|
||
.sr-#{$breakpoint}-up { | ||
@include media-breakpoint-up($breakpoint) { | ||
@include sr-only; | ||
} | ||
} | ||
|
||
.sr-#{$breakpoint}-down { | ||
@include media-breakpoint-down($breakpoint) { | ||
@include sr-only; | ||
} | ||
} | ||
|
||
.sr-#{$breakpoint}-only-focusable { | ||
@include media-breakpoint-only($breakpoint) { | ||
@include sr-only-focusable; | ||
} | ||
} | ||
|
||
.sr-#{$breakpoint}-up-focusable { | ||
@include media-breakpoint-up($breakpoint) { | ||
@include sr-only-focusable; | ||
} | ||
} | ||
|
||
.sr-#{$breakpoint}-down-focusable { | ||
@include media-breakpoint-down($breakpoint) { | ||
@include sr-only-focusable; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// ---------- | ||
// Mixin to add transparent background classes. | ||
// | ||
// Creates a selector based on the $parent provided and the $colour and $value given. | ||
// ---------- | ||
|
||
// sass-lint:disable no-color-literals | ||
|
||
@mixin transparent-background-variant($parent, $colour, $value) { | ||
#{$parent} { | ||
background-color: rgba($colour, $value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// ---------- | ||
// Opacity plugin. | ||
// ---------- | ||
|
||
@import './mixins/opacity'; | ||
@import './utilities/opacity'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// ---------- | ||
// Screen reader breakpoints plugin | ||
// ---------- | ||
|
||
@import './mixins/screen-reader-breakpoints'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// ---------- | ||
// Transparent backgrounds plugin. | ||
// ---------- | ||
|
||
@import './mixins/transparent-backgrounds'; | ||
@import './utilities/transparent-backgrounds'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// ---------- | ||
// Opacity classes. | ||
// ---------- | ||
|
||
@for $x from 1 to 10 { | ||
$class: '.o-#{($x * 10)}'; | ||
$value: $x / 10; | ||
|
||
@include opacity-variant($class, $value); | ||
} | ||
|
||
// Add classes for 25% and 75%. | ||
@include opacity-variant('.o-25', .25); | ||
@include opacity-variant('.o-75', .75); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// ---------- | ||
// Transparent background classes. | ||
// ---------- | ||
|
||
@each $name, $hex in $theme-colors { | ||
@for $x from 1 to 10 { | ||
$class: '.bg-#{$name}-#{($x * 10)}'; | ||
$value: $x / 10; | ||
|
||
@include transparent-background-variant($class, $hex, $value); | ||
} | ||
|
||
// Add classes for 25% and 75%. | ||
@include transparent-background-variant('.bg-#{$name}-25', $hex, .25); | ||
@include transparent-background-variant('.bg-#{$name}-75', $hex, .75); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// ---------- | ||
// Compile test for .opacity-n classes. | ||
// ---------- | ||
|
||
@import '../../node_modules/bootstrap/scss/bootstrap'; | ||
@import '../../scss/opacity'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// ---------- | ||
// Compile test for .sr-breakpoint classes. | ||
// ---------- | ||
|
||
@import '../../node_modules/bootstrap/scss/bootstrap'; | ||
@import '../../scss/screen-reader-breakpoints'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// ---------- | ||
// Compile test for .background-colour-x classes. | ||
// ---------- | ||
|
||
@import '../../node_modules/bootstrap/scss/bootstrap'; | ||
@import '../../scss/transparent-backgrounds'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters