Skip to content

Commit 283c07a

Browse files
committed
Correct scrollPadding attr selectors
Oversight on my part since the attribute selector was checking root contains at least one occurrence of value within the string, which means setting any value would accidentaly enable global scrollPadding with an undefined value. This would consequently override pageGutter for instance. Switched to whitespace-separated list of words, one of which is exactly value.
1 parent a502175 commit 283c07a

14 files changed

Lines changed: 38 additions & 38 deletions

css/dist/ReadiumCSS-after.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.15)
2+
* Readium CSS (v. 2.0.0-beta.16)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the
@@ -117,23 +117,23 @@ body{
117117
}
118118
}
119119

120-
:root[style*="readium-scroll-on"][style*="--RS__scrollPadding"] body{
120+
:root[style*="readium-scroll-on"][style~="--RS__scrollPadding"] body{
121121
padding:var(--RS__scrollPadding) !important;
122122
}
123123

124-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingTop"] body{
124+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingTop"] body{
125125
padding-top:var(--RS__scrollPaddingTop) !important;
126126
}
127127

128-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingBottom"] body{
128+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingBottom"] body{
129129
padding-bottom:var(--RS__scrollPaddingBottom) !important;
130130
}
131131

132-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingLeft"] body{
132+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingLeft"] body{
133133
padding-left:var(--RS__scrollPaddingLeft) !important;
134134
}
135135

136-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingRight"] body{
136+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingRight"] body{
137137
padding-right:var(--RS__scrollPaddingRight) !important;
138138
}
139139

css/dist/ReadiumCSS-before.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.15)
2+
* Readium CSS (v. 2.0.0-beta.16)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the

css/dist/ReadiumCSS-default.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.15)
2+
* Readium CSS (v. 2.0.0-beta.16)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the

css/dist/cjk-horizontal/ReadiumCSS-after.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.15)
2+
* Readium CSS (v. 2.0.0-beta.16)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the
@@ -117,23 +117,23 @@ body{
117117
}
118118
}
119119

120-
:root[style*="readium-scroll-on"][style*="--RS__scrollPadding"] body{
120+
:root[style*="readium-scroll-on"][style~="--RS__scrollPadding"] body{
121121
padding:var(--RS__scrollPadding) !important;
122122
}
123123

124-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingTop"] body{
124+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingTop"] body{
125125
padding-top:var(--RS__scrollPaddingTop) !important;
126126
}
127127

128-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingBottom"] body{
128+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingBottom"] body{
129129
padding-bottom:var(--RS__scrollPaddingBottom) !important;
130130
}
131131

132-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingLeft"] body{
132+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingLeft"] body{
133133
padding-left:var(--RS__scrollPaddingLeft) !important;
134134
}
135135

136-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingRight"] body{
136+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingRight"] body{
137137
padding-right:var(--RS__scrollPaddingRight) !important;
138138
}
139139

css/dist/cjk-horizontal/ReadiumCSS-before.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.15)
2+
* Readium CSS (v. 2.0.0-beta.16)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the

css/dist/cjk-horizontal/ReadiumCSS-default.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.15)
2+
* Readium CSS (v. 2.0.0-beta.16)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the

css/dist/cjk-vertical/ReadiumCSS-after.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.15)
2+
* Readium CSS (v. 2.0.0-beta.16)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the
@@ -124,23 +124,23 @@ body{
124124
}
125125
}
126126

127-
:root[style*="readium-scroll-on"][style*="--RS__scrollPadding"] body{
127+
:root[style*="readium-scroll-on"][style~="--RS__scrollPadding"] body{
128128
padding:var(--RS__scrollPadding) !important;
129129
}
130130

131-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingTop"] body{
131+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingTop"] body{
132132
padding-top:var(--RS__scrollPaddingTop) !important;
133133
}
134134

135-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingBottom"] body{
135+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingBottom"] body{
136136
padding-bottom:var(--RS__scrollPaddingBottom) !important;
137137
}
138138

139-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingLeft"] body{
139+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingLeft"] body{
140140
padding-left:var(--RS__scrollPaddingLeft) !important;
141141
}
142142

143-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingRight"] body{
143+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingRight"] body{
144144
padding-right:var(--RS__scrollPaddingRight) !important;
145145
}
146146

css/dist/cjk-vertical/ReadiumCSS-before.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.15)
2+
* Readium CSS (v. 2.0.0-beta.16)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the

css/dist/cjk-vertical/ReadiumCSS-default.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.15)
2+
* Readium CSS (v. 2.0.0-beta.16)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the

css/dist/rtl/ReadiumCSS-after.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.15)
2+
* Readium CSS (v. 2.0.0-beta.16)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the
@@ -117,23 +117,23 @@ body{
117117
}
118118
}
119119

120-
:root[style*="readium-scroll-on"][style*="--RS__scrollPadding"] body{
120+
:root[style*="readium-scroll-on"][style~="--RS__scrollPadding"] body{
121121
padding:var(--RS__scrollPadding) !important;
122122
}
123123

124-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingTop"] body{
124+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingTop"] body{
125125
padding-top:var(--RS__scrollPaddingTop) !important;
126126
}
127127

128-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingBottom"] body{
128+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingBottom"] body{
129129
padding-bottom:var(--RS__scrollPaddingBottom) !important;
130130
}
131131

132-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingLeft"] body{
132+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingLeft"] body{
133133
padding-left:var(--RS__scrollPaddingLeft) !important;
134134
}
135135

136-
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingRight"] body{
136+
:root[style*="readium-scroll-on"][style~="--RS__scrollPaddingRight"] body{
137137
padding-right:var(--RS__scrollPaddingRight) !important;
138138
}
139139

0 commit comments

Comments
 (0)