lighter_box 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7eeffa6b43bdfedb23fe7773b0e8b13e6ee96425
4
- data.tar.gz: e1e54bc7e09593727970205ae98338a853e0ef9f
3
+ metadata.gz: c71f3b339e2f7fd9dc052ad12c61417405f9c8dc
4
+ data.tar.gz: 52584ff7b95b11793e73ea47e7e2ecf8ffc97fec
5
5
  SHA512:
6
- metadata.gz: eb25ab6d893cc0983a4059c97405edebfa300cf21ff169f8aff2fa024b9f6b614f5272d87fbaf7e73347f44a340d9528625f3ac780fd5a64c72aab51195bdd48
7
- data.tar.gz: 26b00578beba0e36b0672f231801425757c78fa5e3515e4e5de6ff415d415b96e7f7531a74589dc5512ee53e2acf72e2cb7b16518a0d88e7da724edb30ab443f
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
@@ -1,3 +1,3 @@
1
1
  module LighterBox
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-13 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-script