bootstrap-extended-utilities 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +20 -0
- data/LICENSE.txt +21 -0
- data/README.md +116 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bootstrap-extended-utilities.gemspec +22 -0
- data/lib/bootstrap-extended-utilities.rb +3 -0
- data/vendor/assets/stylesheets/_bootstrap-extended-utilities.scss +16 -0
- data/vendor/assets/stylesheets/_variables.scss +12 -0
- data/vendor/assets/stylesheets/color/_background.scss +31 -0
- data/vendor/assets/stylesheets/color/_opacity.scss +46 -0
- data/vendor/assets/stylesheets/color/_text.scss +31 -0
- data/vendor/assets/stylesheets/general/_cursor.scss +25 -0
- data/vendor/assets/stylesheets/general/_overflow.scss +30 -0
- data/vendor/assets/stylesheets/general/_position.scss +18 -0
- data/vendor/assets/stylesheets/general/_z-index.scss +30 -0
- data/vendor/assets/stylesheets/shadow/shadow.scss +46 -0
- data/vendor/assets/stylesheets/sizing/_sizes.scss +15 -0
- data/vendor/assets/stylesheets/svg/_svg.scss +9 -0
- metadata +94 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 21ebeb64115cd3d05cb6c10d393fa1530ab2c0a3
|
4
|
+
data.tar.gz: f84c349e655797f320287cca1225ff803ebcad35
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dcb0f3f09e8b6f2e984644b6fa4571cfa97325a13514901adcd17218b865d504abbb3900e34647f6a72e88954ee7f800cfe04beb7af3dba03cd3376ce05b9679
|
7
|
+
data.tar.gz: 6e50eefcd87a202ff0d43e6e292fd79a8b7b8aff723ee91643b00c355e5f5938395d97cc8e6192ad125b2109401e4cd02aeda4eaf0c0af38e7f4c6aab71fd46d
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at mitchel_jager@hotmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
bootstrap-extended-utilities (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
rake (10.5.0)
|
10
|
+
|
11
|
+
PLATFORMS
|
12
|
+
ruby
|
13
|
+
|
14
|
+
DEPENDENCIES
|
15
|
+
bootstrap-extended-utilities!
|
16
|
+
bundler (~> 1.15)
|
17
|
+
rake (~> 10.0)
|
18
|
+
|
19
|
+
BUNDLED WITH
|
20
|
+
1.16.0.pre.3
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Mitcheljager
|
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
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
# Bootstrap Extended Utilities
|
2
|
+
|
3
|
+
This Rails gem adds more Utilities CSS classes on top of what Bootstrap 4 already offers. It adds new properties as well as build on already existing ones. Such as adding Breakpoints to certain existing utilities.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'bootstrap-extended-utilities'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install bootstra-extended-utilities
|
20
|
+
|
21
|
+
## How to use
|
22
|
+
|
23
|
+
Every new property can be configured to your needs. This way you can add only what you require without bloating the CSS.
|
24
|
+
|
25
|
+
Most classes follow the same naming structure as Bootstrap, with exception of hovers.
|
26
|
+
|
27
|
+
Each component can be turn on or off by adjusting the `$components` SCSS variable.
|
28
|
+
|
29
|
+
```
|
30
|
+
$components: (
|
31
|
+
background-color,
|
32
|
+
cursor,
|
33
|
+
opacity,
|
34
|
+
overflow,
|
35
|
+
position,
|
36
|
+
shadow,
|
37
|
+
sizes,
|
38
|
+
svg,
|
39
|
+
text-color,
|
40
|
+
z-index
|
41
|
+
);
|
42
|
+
```
|
43
|
+
By default all components are turned on.
|
44
|
+
|
45
|
+
Each component has their own variables that allow for further customization.
|
46
|
+
```
|
47
|
+
$background-color-hovers: false; // Toggle hovers for all Background colors in $theme-colors
|
48
|
+
$background-color-responsive: true; // Toggle breakpoints for background-color
|
49
|
+
|
50
|
+
$cursor-breakpoints: false; // Toggle breakpoints for Cursor property
|
51
|
+
$cursors: (
|
52
|
+
pointer
|
53
|
+
); // Add or remove different Cursor properties
|
54
|
+
|
55
|
+
$opacity-hover: false; // Toggle hovers for Opacity
|
56
|
+
$opacity-breakpoints: true; /// Toggle breakpoints for Opacity
|
57
|
+
$opacities: (
|
58
|
+
0: 0,
|
59
|
+
10: 0.1,
|
60
|
+
20: 0.2,
|
61
|
+
30: 0.3,
|
62
|
+
40: 0.4,
|
63
|
+
50: 0.5,
|
64
|
+
60: 0.6,
|
65
|
+
70: 0.7,
|
66
|
+
80: 0.8,
|
67
|
+
90: 0.9,
|
68
|
+
100: 1
|
69
|
+
); // Add or remove different Opacity properties. First value is the classname, second is the opacity value.
|
70
|
+
|
71
|
+
$overflow-breakpoints: true; // Toggle breakpoints for Overflow
|
72
|
+
$overflow: (
|
73
|
+
visible,
|
74
|
+
hidden,
|
75
|
+
scroll,
|
76
|
+
auto,
|
77
|
+
initial,
|
78
|
+
inherit
|
79
|
+
); // Add or remove different Overflow properties.
|
80
|
+
|
81
|
+
$positions: (
|
82
|
+
absolute,
|
83
|
+
relative
|
84
|
+
static,
|
85
|
+
fixed
|
86
|
+
); // Add or remove different position properties. These are only breakpoints, as Bootstrap already offers the base classes.
|
87
|
+
|
88
|
+
$shadow-hover: false; // Toggle hovers on box-shadows
|
89
|
+
$shadow-breakpoints: true; // Toggle breakpoints for box-shadows
|
90
|
+
$shadows: (
|
91
|
+
"": 0 .5rem 1rem rgba($black, .15),
|
92
|
+
sm: 0 .125rem .25rem rgba($black, .075),
|
93
|
+
lg: 0 1rem 3rem rgba($black, .175)
|
94
|
+
); // Add or remove Shadows. These are only hovers and breakpoints, as Bootstrap already offers the base classes.
|
95
|
+
|
96
|
+
$sizes-breakpoints: true; // These are only breakpoints, as Bootstrpa already offers the base classes. The sizes can be changed with the Bootstrap variable $sizes.
|
97
|
+
|
98
|
+
$text-color-hovers: false; // Toggle hovers for all Text colors in $theme-colors
|
99
|
+
$text-color-responsive: true; // Toggle breakpoints for Text colors
|
100
|
+
|
101
|
+
$z-index-breakpoints: false; // toggle breakpoints on z-index
|
102
|
+
$z-indexes: (
|
103
|
+
-1,
|
104
|
+
1,
|
105
|
+
2,
|
106
|
+
10,
|
107
|
+
100,
|
108
|
+
1000
|
109
|
+
); // Add or remove different z-index values
|
110
|
+
```
|
111
|
+
|
112
|
+
Everything listed here are the default values.
|
113
|
+
|
114
|
+
All classes can be used similar to the already existing Utilities classes in Bootstrap. Such as `.position-md-absolute`. Hovers can be access with the `.hover:` addition. Such as `.hover:opacity-lg-50`.
|
115
|
+
|
116
|
+
SVG offers two classes `.fill-current` and `.stroke-current` which use the currentColor property.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "bootstrap-extended-utilities"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "bootstrap-extended-utilities"
|
7
|
+
spec.version = "0.1.0"
|
8
|
+
spec.authors = ["Mitcheljager"]
|
9
|
+
spec.email = ["mitchel_jager@hotmail.com"]
|
10
|
+
|
11
|
+
spec.summary = "An extension of Twitter's Bootstrap Utility classes"
|
12
|
+
spec.homepage = "https://github.com/Mitcheljager/bootstrap-extended-utilities"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($\)
|
16
|
+
spec.bindir = "exe"
|
17
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
21
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
22
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
@import "variables";
|
2
|
+
|
3
|
+
@import "general/position",
|
4
|
+
"general/z-index",
|
5
|
+
"general/cursor",
|
6
|
+
"general/overflow";
|
7
|
+
|
8
|
+
@import "color/background",
|
9
|
+
"color/opacity",
|
10
|
+
"color/text";
|
11
|
+
|
12
|
+
@import "shadow/shadow";
|
13
|
+
|
14
|
+
@import "sizing/sizes";
|
15
|
+
|
16
|
+
@import "svg/svg";
|
@@ -0,0 +1,31 @@
|
|
1
|
+
@if index($components, background-color) {
|
2
|
+
$background-color-hovers: false !default;
|
3
|
+
$background-color-breakpoints: true !default;
|
4
|
+
|
5
|
+
$hover: "";
|
6
|
+
|
7
|
+
@if $background-color-hovers {
|
8
|
+
@each $color, $value in $theme-colors {
|
9
|
+
|
10
|
+
.hover\:bg-#{$color}:hover {
|
11
|
+
background-color: #{$value} !important;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
@if $background-color-breakpoints {
|
17
|
+
@each $breakpoint, $breakpoint-value in $grid-breakpoints {
|
18
|
+
@include media-breakpoint-up($breakpoint) {
|
19
|
+
@each $color, $value in $theme-colors {
|
20
|
+
@if $background-color-hovers {
|
21
|
+
$hover: ", .hover\\:bg-#{$breakpoint}-#{$color}:hover, .hover\\:bg-#{$breakpoint}-#{$color}:active";
|
22
|
+
}
|
23
|
+
|
24
|
+
.bg-#{$breakpoint}-#{$color}#{$hover} {
|
25
|
+
background-color: #{$value} !important;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
@if index($components, opacity) {
|
2
|
+
$opacity-hover: false !default;
|
3
|
+
$opacity-breakpoints: true !default;
|
4
|
+
|
5
|
+
$opacities: (
|
6
|
+
0: 0,
|
7
|
+
10: 0.1,
|
8
|
+
20: 0.2,
|
9
|
+
30: 0.3,
|
10
|
+
40: 0.4,
|
11
|
+
50: 0.5,
|
12
|
+
60: 0.6,
|
13
|
+
70: 0.7,
|
14
|
+
80: 0.8,
|
15
|
+
90: 0.9,
|
16
|
+
100: 1
|
17
|
+
) !default;
|
18
|
+
|
19
|
+
$hover: "";
|
20
|
+
|
21
|
+
@each $opacity, $value in $opacities {
|
22
|
+
@if $opacity-hover {
|
23
|
+
$hover: ", .hover\\:opacity-#{$opacity}:hover, .hover\\:opacity-#{$opacity}:active";
|
24
|
+
}
|
25
|
+
|
26
|
+
.opacity-#{$opacity}#{$hover} {
|
27
|
+
opacity: $value !important;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
@if $opacity-breakpoints {
|
32
|
+
@each $breakpoint, $breakpoint-value in $grid-breakpoints {
|
33
|
+
@include media-breakpoint-up($breakpoint) {
|
34
|
+
@each $opacity, $value in $opacities {
|
35
|
+
@if $opacity-hover {
|
36
|
+
$hover: ", .hover\\:opacity-#{$breakpoint}-#{$opacity}:hover, .hover\\:opacity-#{$breakpoint}-#{$opacity}:active";
|
37
|
+
}
|
38
|
+
|
39
|
+
.opacity-#{$breakpoint}-#{$opacity}#{$hover} {
|
40
|
+
opacity: $value !important;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
@if index($components, text-color) {
|
2
|
+
$text-color-hovers: false !default;
|
3
|
+
$text-color-breakpoints: true !default;
|
4
|
+
|
5
|
+
$hover: "";
|
6
|
+
|
7
|
+
@if $text-color-hovers {
|
8
|
+
@each $color, $value in $theme-colors {
|
9
|
+
|
10
|
+
.hover\:text-#{$color}:hover {
|
11
|
+
color: #{$value} !important;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
@if $text-color-breakpoints {
|
17
|
+
@each $breakpoint, $breakpoint-value in $grid-breakpoints {
|
18
|
+
@include media-breakpoint-up($breakpoint) {
|
19
|
+
@each $color, $value in $theme-colors {
|
20
|
+
@if $text-color-hovers {
|
21
|
+
$hover: ", .hover\\:text-#{$breakpoint}-#{$color}:hover, .hover\\:text-#{$breakpoint}-#{$color}:active";
|
22
|
+
}
|
23
|
+
|
24
|
+
.text-#{$breakpoint}-#{$color}#{$hover} {
|
25
|
+
color: #{$value} !important;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
@if index($components, cursor) {
|
2
|
+
$cursor-breakpoints: false !default;
|
3
|
+
|
4
|
+
$cursors: (
|
5
|
+
pointer
|
6
|
+
) !default;
|
7
|
+
|
8
|
+
@each $cursor in $cursors {
|
9
|
+
.position-#{$cursor} {
|
10
|
+
position: $cursor !important;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
@if $cursor-breakpoints {
|
15
|
+
@each $breakpoint, $breakpoint-value in $grid-breakpoints {
|
16
|
+
@include media-breakpoint-up($breakpoint) {
|
17
|
+
@each $cursor in $cursors {
|
18
|
+
.cursor-#{$breakpoint}-#{$cursor} {
|
19
|
+
position: $cursor !important;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
@if index($components, overflow) {
|
2
|
+
$overflow-breakpoints: true !default;
|
3
|
+
|
4
|
+
$overflow: (
|
5
|
+
visible,
|
6
|
+
hidden,
|
7
|
+
scroll,
|
8
|
+
auto,
|
9
|
+
initial,
|
10
|
+
inherit
|
11
|
+
) !default;
|
12
|
+
|
13
|
+
@each $property in $overflow {
|
14
|
+
.overflow-#{$property} {
|
15
|
+
overflow: $property !important;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
@if $overflow-breakpoints {
|
20
|
+
@each $breakpoint, $breakpoint-value in $grid-breakpoints {
|
21
|
+
@include media-breakpoint-up($breakpoint) {
|
22
|
+
@each $property in $overflow {
|
23
|
+
.overflow-#{$breakpoint}-#{$property} {
|
24
|
+
overflow: $property !important;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
@if index($components, position) {
|
2
|
+
$positions: (
|
3
|
+
absolute,
|
4
|
+
relative
|
5
|
+
static,
|
6
|
+
fixed
|
7
|
+
) !default;
|
8
|
+
|
9
|
+
@each $breakpoint, $breakpoint-value in $grid-breakpoints {
|
10
|
+
@include media-breakpoint-up($breakpoint) {
|
11
|
+
@each $position in $positions {
|
12
|
+
.position-#{$breakpoint}-#{$position} {
|
13
|
+
position: $position !important;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
@if index($components, z-index) {
|
2
|
+
$z-index-breakpoints: false !default;
|
3
|
+
|
4
|
+
$z-indexes: (
|
5
|
+
-1,
|
6
|
+
1,
|
7
|
+
2,
|
8
|
+
10,
|
9
|
+
100,
|
10
|
+
1000
|
11
|
+
) !default;
|
12
|
+
|
13
|
+
@each $z-index in $z-indexes {
|
14
|
+
.z-#{$z-index} {
|
15
|
+
z-index: $z-index !important;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
@if $z-index-breakpoints {
|
20
|
+
@each $breakpoint, $breakpoint-value in $grid-breakpoints {
|
21
|
+
@include media-breakpoint-up($breakpoint) {
|
22
|
+
@each $z-index in $z-indexes {
|
23
|
+
.z-#{$breakpoint}-#{$z-index} {
|
24
|
+
z-index: $z-index !important;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
@if index($components, shadow) {
|
2
|
+
$shadow-hover: false !default;
|
3
|
+
$shadow-breakpoints: true !default;
|
4
|
+
|
5
|
+
$shadows: (
|
6
|
+
"": 0 .5rem 1rem rgba($black, .15),
|
7
|
+
sm: 0 .125rem .25rem rgba($black, .075),
|
8
|
+
lg: 0 1rem 3rem rgba($black, .175)
|
9
|
+
) !default;
|
10
|
+
|
11
|
+
$hover: "";
|
12
|
+
|
13
|
+
@if $shadow-hover {
|
14
|
+
@each $shadow, $value in $shadows {
|
15
|
+
$separator: "";
|
16
|
+
@if $shadow {
|
17
|
+
$separator: "-";
|
18
|
+
}
|
19
|
+
|
20
|
+
.hover\:shadow#{$separator}#{$shadow}:hover, .hover\:shadow#{$separator}#{$shadow}:active {
|
21
|
+
box-shadow: #{$value} !important;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
@if $shadow-breakpoints {
|
27
|
+
@each $breakpoint, $breakpoint-value in $grid-breakpoints {
|
28
|
+
@include media-breakpoint-up($breakpoint) {
|
29
|
+
@each $shadow, $value in $shadows {
|
30
|
+
$separator: "";
|
31
|
+
@if $shadow {
|
32
|
+
$separator: "-";
|
33
|
+
}
|
34
|
+
|
35
|
+
@if $shadow-hover {
|
36
|
+
$hover: ", .hover\\:shadow-#{$breakpoint}#{$separator}#{$shadow}:hover, .hover\\:shadow-#{$breakpoint}#{$separator}#{$shadow}:active";
|
37
|
+
}
|
38
|
+
|
39
|
+
.shadow-#{$breakpoint}#{$separator}#{$shadow}#{$hover} {
|
40
|
+
box-shadow: #{$value} !important;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@if index($components, sizes) {
|
2
|
+
$sizes-breakpoints: true !default;
|
3
|
+
|
4
|
+
@if $sizes-breakpoints {
|
5
|
+
@each $breakpoint, $breakpoint-value in $grid-breakpoints {
|
6
|
+
@include media-breakpoint-up($breakpoint) {
|
7
|
+
@each $size, $value in $sizes {
|
8
|
+
.w-#{$breakpoint}-#{$size} {
|
9
|
+
width: $value !important;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
metadata
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bootstrap-extended-utilities
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mitcheljager
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-06-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.15'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
description:
|
42
|
+
email:
|
43
|
+
- mitchel_jager@hotmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- CODE_OF_CONDUCT.md
|
49
|
+
- Gemfile
|
50
|
+
- Gemfile.lock
|
51
|
+
- LICENSE.txt
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- bin/console
|
55
|
+
- bin/setup
|
56
|
+
- bootstrap-extended-utilities.gemspec
|
57
|
+
- lib/bootstrap-extended-utilities.rb
|
58
|
+
- vendor/assets/stylesheets/_bootstrap-extended-utilities.scss
|
59
|
+
- vendor/assets/stylesheets/_variables.scss
|
60
|
+
- vendor/assets/stylesheets/color/_background.scss
|
61
|
+
- vendor/assets/stylesheets/color/_opacity.scss
|
62
|
+
- vendor/assets/stylesheets/color/_text.scss
|
63
|
+
- vendor/assets/stylesheets/general/_cursor.scss
|
64
|
+
- vendor/assets/stylesheets/general/_overflow.scss
|
65
|
+
- vendor/assets/stylesheets/general/_position.scss
|
66
|
+
- vendor/assets/stylesheets/general/_z-index.scss
|
67
|
+
- vendor/assets/stylesheets/shadow/shadow.scss
|
68
|
+
- vendor/assets/stylesheets/sizing/_sizes.scss
|
69
|
+
- vendor/assets/stylesheets/svg/_svg.scss
|
70
|
+
homepage: https://github.com/Mitcheljager/bootstrap-extended-utilities
|
71
|
+
licenses:
|
72
|
+
- MIT
|
73
|
+
metadata: {}
|
74
|
+
post_install_message:
|
75
|
+
rdoc_options: []
|
76
|
+
require_paths:
|
77
|
+
- lib
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
requirements: []
|
89
|
+
rubyforge_project:
|
90
|
+
rubygems_version: 2.6.12
|
91
|
+
signing_key:
|
92
|
+
specification_version: 4
|
93
|
+
summary: An extension of Twitter's Bootstrap Utility classes
|
94
|
+
test_files: []
|