Garamond font, tab switch, intro

This commit is contained in:
Alexander Yakovlev 2018-09-27 13:46:42 +07:00
parent dff58b36be
commit 155a9edd7f
12 changed files with 12480 additions and 13 deletions

Binary file not shown.

Binary file not shown.

12452
fonts/EBGaramond12-Regular.svg Normal file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -73,11 +73,11 @@ $(document).on("room_language_after_choices", () ->
$(".options").addClass("narrowchoice")
)
sysroom "language",
dsc: ""
choices: "#language"
dsc: () -> "intro".l()
choices: ['ru']
sysroom "ru",
title: "Русский",
title: "Начать игру",
tags: ["language"]
dsc: ""
enter: () ->
@ -87,6 +87,7 @@ sysroom "ru",
sysroom "en",
title: "English",
tags: ["language"]
canView: false
canChoose: false
dsc: ""
enter: () ->

View File

@ -61,6 +61,7 @@ $(document).ready(() ->
if not id?
id = $(event.target).parent().attr("id")
switchTab(id)
$(event.target).find("a").trigger("click")
return true
)
$("body").on("click", '#night', () ->

View File

@ -2,7 +2,9 @@ strings =
begingame: "Начать игру"
settings_title: "Настройки"
back: "Обратно"
start: """
intro: """
# djhd
Все счастливые семьи похожи друг на друга, каждая несчастливая семья несчастлива по-своему.
Все смешалось в доме Облонских. Жена узнала, что муж был в связи с бывшею в их доме француженкою-гувернанткой, и объявила мужу, что не может жить с ним в одном доме. Положение это продолжалось уже третий день и мучительно чувствовалось и самими супругами, и всеми членами семьи, и домочадцами. Все члены семьи и домочадцы чувствовали, что нет смысла в их сожительстве и что на каждом постоялом дворе случайно сошедшиеся люди более связаны между собой, чем они, члены семьи и домочадцы Облонских. Жена не выходила из своих комнат, мужа третий день не было дома. Дети бегали по всему дому, как потерянные; англичанка поссорилась с экономкой и написала записку приятельнице, прося приискать ей новое место; повар ушел вчера со двора, во время самого обеда; черная кухарка и кучер просили расчета.

View File

@ -1,7 +1,10 @@
$font-family-sans-serif: 'Scada', 'PT Sans', sans-serif;
$font-family-serif: 'PT Serif', serif;
$headings-font-family: "PT Sans Caption",$font-family-sans-serif;
$font-family-sans-serif: "Scada", "PT Sans", sans-serif;
$font-family-serif: "EBGaramond12-Regular", "EB Garamond", "EBGaramond", "Cormorant Garamond", "Garamond", serif;
$headings-font-family: "PT Sans Caption", $font-family-sans-serif;
$font-family-base: $font-family-serif;
$icon-font-path: '../fonts/';
$font-size-base: 1.2rem;
$body-bg: #fff;
$body-background: url("../img/bgr.jpg");

View File

@ -1,6 +1,18 @@
@import "variables";
@import "bootstrap";
@import "open-iconic";
@font-face {
font-family: "EBGaramond12-Regular";
src: url("#{$icon-font-path}/EBGaramond12-Regular.eot"); /* IE9 Compat Modes */
src: url("#{$icon-font-path}/EBGaramond12-Regular.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
url("#{$icon-font-path}/EBGaramond12-Regular.otf") format("opentype"), /* Open Type Font */
url("#{$icon-font-path}/EBGaramond12-Regular.svg") format("svg"), /* Legacy iOS */
url("#{$icon-font-path}/EBGaramond12-Regular.ttf") format("truetype"), /* Safari, Android, iOS */
url("#{$icon-font-path}/EBGaramond12-Regular.woff") format("woff"), /* Modern Browsers */
url("#{$icon-font-path}/EBGaramond12-Regular.woff2") format("woff2"); /* Modern Browsers */
font-weight: normal;
font-style: normal;
}
body {
background-color: $body-bg;
@ -32,6 +44,7 @@ body {
padding-left: 3em;
padding-right: 3em;
}
background: #ffe9c480;
padding: 1em;
h1, h2, h3, h4, h5 {
text-align: center;

View File

@ -1,8 +1,3 @@
/* Bootstrap */
/* Override Bootstrap default variable */
$icon-font-path: '../fonts/' !default;
@font-face {
font-family: 'Open Iconic';
src: url('#{$icon-font-path}open-iconic.eot');