From bd6462780d1ed724181df4fce3d3a22b2f15ab45 Mon Sep 17 00:00:00 2001 From: JayPanoz Date: Wed, 10 Apr 2019 14:44:30 +0200 Subject: [PATCH] Remove vertical margins in scroll view Re #55 --- README.md | 2 +- css/demo/css/ReadiumCSS-after.css | 3 --- css/dist/ReadiumCSS-after.css | 9 --------- css/dist/cjk-horizontal/ReadiumCSS-after.css | 9 --------- css/dist/rtl/ReadiumCSS-after.css | 9 --------- css/src/modules/ReadiumCSS-scroll.css | 11 +---------- package.json | 2 +- 7 files changed, 3 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index d6de2a83..98e28be6 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Readium CSS provides styles for reflowable text: - media overlays and user highlights; - a set of baselines and recommendations for accessibility, overrides, and internationalization. -**Readium CSS is currently in alpha** (version `1.0.0-alpha.1`). +**Readium CSS is currently in alpha** (version `1.0.0-alpha.2`). ## License diff --git a/css/demo/css/ReadiumCSS-after.css b/css/demo/css/ReadiumCSS-after.css index b964bc11..5f8c4a29 100644 --- a/css/demo/css/ReadiumCSS-after.css +++ b/css/demo/css/ReadiumCSS-after.css @@ -214,9 +214,6 @@ body { :root[style*="readium-scroll-on"] body { --RS__maxLineLength: 40rem !important; - - margin-top: var(--RS__pageGutter) !important; - margin-bottom: var(--RS__pageGutter) !important; } /* Scroll mode horizontal */ diff --git a/css/dist/ReadiumCSS-after.css b/css/dist/ReadiumCSS-after.css index b964bc11..e9187e75 100644 --- a/css/dist/ReadiumCSS-after.css +++ b/css/dist/ReadiumCSS-after.css @@ -214,17 +214,8 @@ body { :root[style*="readium-scroll-on"] body { --RS__maxLineLength: 40rem !important; - - margin-top: var(--RS__pageGutter) !important; - margin-bottom: var(--RS__pageGutter) !important; } -/* Scroll mode horizontal */ - -/* Vertical writing needs body height set */ - -/* Do we add a top/bottom margin for body in vertical scroll or not? */ - /* Readium CSS Default highlights diff --git a/css/dist/cjk-horizontal/ReadiumCSS-after.css b/css/dist/cjk-horizontal/ReadiumCSS-after.css index 020c57c7..f57a44a0 100644 --- a/css/dist/cjk-horizontal/ReadiumCSS-after.css +++ b/css/dist/cjk-horizontal/ReadiumCSS-after.css @@ -214,17 +214,8 @@ body { :root[style*="readium-scroll-on"] body { --RS__maxLineLength: 40rem !important; - - margin-top: var(--RS__pageGutter) !important; - margin-bottom: var(--RS__pageGutter) !important; } -/* Scroll mode horizontal */ - -/* Vertical writing needs body height set */ - -/* Do we add a top/bottom margin for body in vertical scroll or not? */ - /* Readium CSS Default highlights diff --git a/css/dist/rtl/ReadiumCSS-after.css b/css/dist/rtl/ReadiumCSS-after.css index 4284c835..4c4d672a 100644 --- a/css/dist/rtl/ReadiumCSS-after.css +++ b/css/dist/rtl/ReadiumCSS-after.css @@ -214,17 +214,8 @@ body { :root[style*="readium-scroll-on"] body { --RS__maxLineLength: 40rem !important; - - margin-top: var(--RS__pageGutter) !important; - margin-bottom: var(--RS__pageGutter) !important; } -/* Scroll mode horizontal */ - -/* Vertical writing needs body height set */ - -/* Do we add a top/bottom margin for body in vertical scroll or not? */ - /* Readium CSS Default highlights diff --git a/css/src/modules/ReadiumCSS-scroll.css b/css/src/modules/ReadiumCSS-scroll.css index 2727695a..5fc824f6 100644 --- a/css/src/modules/ReadiumCSS-scroll.css +++ b/css/src/modules/ReadiumCSS-scroll.css @@ -24,13 +24,4 @@ /* Make sure line-length is limited in all configs */ :root:--scroll-view body { --RS__maxLineLength: 40rem !important; - - margin-top: var(--RS__pageGutter) !important; - margin-bottom: var(--RS__pageGutter) !important; -} - -/* Scroll mode horizontal */ - -/* Vertical writing needs body height set */ - -/* Do we add a top/bottom margin for body in vertical scroll or not? */ \ No newline at end of file +} \ No newline at end of file diff --git a/package.json b/package.json index 7b985097..61e746a8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "readium-css", "description": "A set of reference stylesheets for EPUB Reading Systems", - "version": "1.0.0-alpha.1", + "version": "1.0.0-alpha.2", "homepage": "https://github.com/readium/readium-css", "license": "BSD-3-Clause", "keywords": [