Skip to content

Commit

Permalink
Support Slide Layout settings
Browse files Browse the repository at this point in the history
Render viewer slides top-down
Only show desired fields in slides
Show all fields by default
Pull latest HTML
  • Loading branch information
navdeepsinghkhalsa committed Apr 21, 2017
1 parent 52c834e commit d3f5786
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion www/core
Submodule core updated from e0770c to 78ee45
7 changes: 7 additions & 0 deletions www/js/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
"translationEnglish": "ssk",
"transliteration": true,
"meta": true
},
"slide-layout": {
"fields": {
"display-translation": true,
"display-transliteration": true,
"display-teeka": true
}
}
},
"gurmukhiKB": false,
Expand Down
19 changes: 16 additions & 3 deletions www/src/scss/viewer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ html {
display: flex;
flex-flow: column nowrap;
height: calc(100% - 250px);
justify-content: space-around;
justify-content: flex-start;
opacity: 0;
position: absolute;
transition: opacity 400ms ease-out;
Expand All @@ -81,7 +81,7 @@ body.viewer .slide {
h1,
h2 {
cursor: default;
margin: 0;
margin: 0 0 20px;
}

.gurbani {
Expand All @@ -98,6 +98,7 @@ h2 {

.translation {
font-size: 5vh;
line-height: 1.2;
}

.transliteration {
Expand All @@ -108,7 +109,19 @@ h2 {
.teeka {
font-family: 'AnmolUniBaniTrue';
font-size: 4vh;
line-height: 1.3;
line-height: 1.4;
}

.translation,
.transliteration,
.teeka {
display: none;
}

.display-translation .translation,
.display-transliteration .transliteration,
.display-teeka .teeka {
display: block;
}

#logo {
Expand Down

0 comments on commit d3f5786

Please sign in to comment.