Skip to content

Commit

Permalink
rm margin-left from gallery slides
Browse files Browse the repository at this point in the history
  • Loading branch information
ganlanyuan committed Sep 27, 2018
1 parent 388c399 commit 1330bbb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/min/tiny-slider.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/sourcemaps/tiny-slider.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions dist/tiny-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -1238,8 +1238,7 @@ var tns = function(options) {
// margin-left: ~

// Resource: https://docs.google.com/spreadsheets/d/147up245wwTXeQYve3BRSAD4oVcvQmuGsFteJOeA5xNQ/edit?usp=sharing
// if (carousel && horizontal) {
if (horizontal) {
if (carousel && horizontal) {
if (PERCENTAGELAYOUT || autoWidth) {
addCSSRule(sheet, '#' + slideId + ' > .tns-item', 'font-size:' + win.getComputedStyle(slideItems[0]).fontSize + ';', getCssRulesLength(sheet));
addCSSRule(sheet, '#' + slideId, 'font-size:0;', getCssRulesLength(sheet));
Expand Down
3 changes: 1 addition & 2 deletions src/tiny-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,7 @@ export var tns = function(options) {
// margin-left: ~

// Resource: https://docs.google.com/spreadsheets/d/147up245wwTXeQYve3BRSAD4oVcvQmuGsFteJOeA5xNQ/edit?usp=sharing
// if (carousel && horizontal) {
if (horizontal) {
if (carousel && horizontal) {
if (PERCENTAGELAYOUT || autoWidth) {
addCSSRule(sheet, '#' + slideId + ' > .tns-item', 'font-size:' + win.getComputedStyle(slideItems[0]).fontSize + ';', getCssRulesLength(sheet));
addCSSRule(sheet, '#' + slideId, 'font-size:0;', getCssRulesLength(sheet));
Expand Down
3 changes: 1 addition & 2 deletions src/tiny-slider.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,7 @@ export var tns = function(options) {
// margin-left: ~

// Resource: https://docs.google.com/spreadsheets/d/147up245wwTXeQYve3BRSAD4oVcvQmuGsFteJOeA5xNQ/edit?usp=sharing
// if (carousel && horizontal) {
if (horizontal) {
if (carousel && horizontal) {
if (PERCENTAGELAYOUT || autoWidth) {
addCSSRule(sheet, '#' + slideId + ' > .tns-item', 'font-size:' + win.getComputedStyle(slideItems[0]).fontSize + ';', getCssRulesLength(sheet));
addCSSRule(sheet, '#' + slideId, 'font-size:0;', getCssRulesLength(sheet));
Expand Down

0 comments on commit 1330bbb

Please sign in to comment.