lighter_box 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/assets/stylesheets/lighter_box.sass +4 -6
- data/lib/lighter_box/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c71f3b339e2f7fd9dc052ad12c61417405f9c8dc
|
4
|
+
data.tar.gz: 52584ff7b95b11793e73ea47e7e2ecf8ffc97fec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f568f1c09df719a2be68ec66d5ed2fcac551e74e3107e507bfcbb7cf520b09d9ca1ce15f7869afc18df1827189e3e8dddb5814ccda445a5143814f8c6fdaa8a5
|
7
|
+
data.tar.gz: bc66eae2d468217f1620495c48569d5940bcc01c17795febb4d924418b8ca512d460f94f6d3a4cbdd8dcf89907ac9da30978c804816bd8e09e28170b39173c6f
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# v0.3.1
|
2
|
+
|
3
|
+
* Reset margins and padding for `figure` element used in image lightboxes (some CSS frameworks – eg. Bootstrap – apply non-zero margins to `figure` elements by default).
|
4
|
+
|
1
5
|
# v0.3.0
|
2
6
|
|
3
7
|
* New option `data-lightbox-href` for ajax lightboxes: Allows to override the URL to be loaded into the lightbox (default is the link’s `href` attribute).
|
@@ -1,12 +1,6 @@
|
|
1
1
|
$lighter-box-margin: 24px !default
|
2
2
|
$lighter-box-padding: 24px !default
|
3
3
|
|
4
|
-
body.lighter-box-has-backdrop
|
5
|
-
// Damit lässt sich zwar auf Desktop-Browsern bequem das Scrolling „unter“ dem Modal verhindern, aber es hat zwei Probleme:
|
6
|
-
// * Funktioniert nicht auf mobilen Browsern
|
7
|
-
// * Blendet einen eventuell vorhandenen Scrollbar aus, dadurch kanns passieren, dass das Layout „hüpft“. (Bootstrap fixt das, indem sie die Scrollbar-Breite ausmessen und das Bodypadding dann explizit entsprechend anpassen – geht, ist aber recht aufwändig.)
|
8
|
-
//overflow: hidden
|
9
|
-
|
10
4
|
// Only display content to screen readers
|
11
5
|
// See: http://a11yproject.com/posts/how-to-hide-content/
|
12
6
|
.lighter-box-sr-only
|
@@ -91,6 +85,10 @@ body.lighter-box-has-backdrop
|
|
91
85
|
.lighter-box-next-link
|
92
86
|
right: 0px
|
93
87
|
|
88
|
+
.lighter-box-modal figure
|
89
|
+
margin: 0
|
90
|
+
padding: 0
|
91
|
+
|
94
92
|
.lighter-box-image
|
95
93
|
display: block
|
96
94
|
margin: auto
|
data/lib/lighter_box/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lighter_box
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Daschek
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-script
|