diff --git a/CHANGES.md b/CHANGES.md
index ab6d96a9e..0cbbc4e90 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -5,6 +5,7 @@
Features
~~~~~~~~
+- Add configurable scrolling behavior to pat-inject.
- Add ``webpack-visualizer-plugin`` for analyzation of generated bundles.
- Add ``pat-fullscreen`` pattern to allow any element to be displayed in fullscreen-mode.
A second pattern ``pat-fullscreen-close`` which is triggered on ``close-fullscreen`` CSS class allows for closing the fullscreen with custom buttons.
diff --git a/src/pat/inject/_inject.scss b/src/pat/inject/_inject.scss
index 18a0357ab..4ac341ad4 100644
--- a/src/pat/inject/_inject.scss
+++ b/src/pat/inject/_inject.scss
@@ -1,32 +1,32 @@
.blue {
- background-color: blue;
- color: white;
+ background-color: blue;
+ color: white;
}
.red {
- background-color: red;
- color: white;
+ background-color: red;
+ color: white;
}
form.pat-inject,
fieldset.pat-inject {
- &.executing {
- [type="submit"] {
- -ms-pointer-events: none;
- -moz-pointer-events: none;
- -webkit-pointer-events: none;
- pointer-events: none;
- opacity: 0.5;
- }
- }
+ &.executing {
+ [type="submit"] {
+ -ms-pointer-events: none;
+ -moz-pointer-events: none;
+ -webkit-pointer-events: none;
+ pointer-events: none;
+ opacity: 0.5;
+ }
+ }
}
a.pat-inject {
- &.executing {
- -ms-pointer-events: none;
- -moz-pointer-events: none;
- -webkit-pointer-events: none;
- pointer-events: none;
- opacity: 0.5;
- }
-}
\ No newline at end of file
+ &.executing {
+ -ms-pointer-events: none;
+ -moz-pointer-events: none;
+ -webkit-pointer-events: none;
+ pointer-events: none;
+ opacity: 0.5;
+ }
+}
diff --git a/src/pat/inject/_injection.scss b/src/pat/inject/_injection.scss
index 58ce60827..7c5e56f8e 100644
--- a/src/pat/inject/_injection.scss
+++ b/src/pat/inject/_injection.scss
@@ -21,6 +21,7 @@
-moz-animation: spin 2s infinite linear;
-o-animation: spin 2s infinite linear;
-webkit-animation: spin 2s infinite linear;
- animation: spin 2s infinite linear;}
+ animation: spin 2s infinite linear;
+}
-/* @end */
\ No newline at end of file
+/* @end */
diff --git a/src/pat/inject/documentation.md b/src/pat/inject/documentation.md
index f79d980b3..d4941979e 100644
--- a/src/pat/inject/documentation.md
+++ b/src/pat/inject/documentation.md
@@ -30,7 +30,7 @@ The possibilities don't stop here. Other applications of injection include injec
The most simple form of injection is a link which loads content when clicked:
Demo the frobber
-
+
…
@@ -41,7 +41,7 @@ In another situation you may not want to replace content but add new content. Yo
Tell me more
-
+
…
@@ -103,7 +103,7 @@ In case one source element is to be used for both targets, it can be specified a
source: #src; target: #tgt2">
One source element for two targets.
-
+
@@ -259,10 +259,10 @@ A `autoload` may be delayed, by providing a `delay` argument in `data-pat-inject
Autoloads as soon as initialised
-
+
Autoloads as soon as visible
-
+
Autoloads 2 seconds after the page is initialised.
@@ -317,12 +317,12 @@ It corresponds and is shorthand notation for:
After injection was triggered:
-
+