Skip to content

Commit

Permalink
Add support for font size setting
Browse files Browse the repository at this point in the history
Remove fixed font sizes
Add default font sizes to defaults.json
Pull latest HTML
  • Loading branch information
navdeepsinghkhalsa committed Apr 22, 2017
1 parent a89965a commit 5aaa55d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion www/core
Submodule core updated from 41715a to 6aff92
6 changes: 6 additions & 0 deletions www/js/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
"display-transliteration": true,
"display-teeka": true
},
"font-sizes": {
"gurbani": 9,
"translation": 5,
"transliteration": 4,
"teeka": 4
},
"display-options": {
"larivaar": false
}
Expand Down
22 changes: 13 additions & 9 deletions www/src/scss/viewer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ h2 {
}

.gurbani {
font-size: 9vh;
font-weight: normal;
line-height: 1.3em;
line-height: 1.3;

i {
font-style: normal;
Expand All @@ -102,7 +101,6 @@ h2 {

i,
span {
font-size: 9vh;
vertical-align: bottom;
white-space: nowrap;
}
Expand All @@ -116,18 +114,12 @@ h2 {
line-height: 1.2;
}

.translation {
font-size: 5vh;
}

.transliteration {
font-size: 4vh;
text-transform: lowercase;
}

.teeka {
font-family: 'AnmolUniBaniTrue';
font-size: 4vh;
line-height: 1.5;
}

Expand All @@ -147,6 +139,18 @@ h2 {
opacity: 1;
}

/* ***** FONT SIZES ***** */
@for $i from 1 through 12 {
.gurbani-#{$i} .gurbani,
.gurbani-#{$i} .gurbani span,
.gurbani-#{$i} .gurbani i,
.translation-#{$i} .translation,
.transliteration-#{$i} .transliteration,
.teeka-#{$i} .teeka {
font-size: #{$i}vh;
}
}

#logo {
display: none;
height: 20%;
Expand Down

0 comments on commit 5aaa55d

Please sign in to comment.