Skip to content
This repository was archived by the owner on Apr 27, 2022. It is now read-only.

Commit e2567d2

Browse files
committed
new version
1 parent 6b59af6 commit e2567d2

File tree

5 files changed

+26
-18
lines changed

5 files changed

+26
-18
lines changed

build/bundle.js

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/_dimensions.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
$column-width: 480px;
2+
$column-padding: 20px;
3+
4+
$total-column-width: $column-width + ( $column-padding * 2 );

src/components/reference/styles.scss

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
@import '../_dimensions.scss';
2+
13
.reference {
24
height: calc( 100vh - 56px );
35
overflow-x: hidden;
46
overflow-y: scroll;
57
width: 100%;
68

79
&.is-not-sync {
8-
max-width: 520px;
10+
max-width: $total-column-width;
911
}
1012
}
1113

@@ -26,17 +28,17 @@
2628
font-family: 'Helvetica Neue';
2729
font-weight: 100;
2830
margin: 0 auto;
29-
max-width: 480px;
31+
max-width: $column-width;
3032
padding: 10px 0;
3133
text-align: center;
3234
}
3335

3436
.verseWrapper {
3537
color: #bbb;
36-
padding: 0 20px;
37-
flex-basis: 50%;
38-
flex-grow: 2;
39-
max-width: 480px;
38+
padding: 0 $column-padding;
39+
flex-basis: 0;
40+
flex-grow: 1;
41+
max-width: $column-width;
4042
}
4143

4244
.verse {

src/components/version-selector/styles.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import '../_dimensions.scss';
2+
13
.version-selector {
24
display: flex;
35
}
@@ -7,7 +9,7 @@
79
flex-basis: 0;
810
flex-grow: 1;
911
margin-right: -1px;
10-
max-width: 520px;
12+
max-width: $total-column-width;
1113
}
1214

1315
.form-field, .left-version, .right-version {

sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var cache = 'javascripture.16.0'; // add greek transliteration
1+
var cache = 'javascripture.17.0'; // add flexible column numbers
22

33
self.addEventListener('install', function(e) {
44
e.waitUntil( caches.open( cache ).then(function(cache) { // layout tweaks

0 commit comments

Comments
 (0)