From 7ae0d8c461b56b0ed79fecc834050e148034fa8c Mon Sep 17 00:00:00 2001 From: dmitry kirdyashkin Date: Sun, 16 Jun 2024 00:47:11 +0300 Subject: [PATCH] v1.1.4.2 --- README.md | 3 +++ src/styles/dnd-core.css | 30 ++++++++++++++++++++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 49c9e29..67c7ba0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # Библиотека стилей +## v1.1.4.2 +* врезкам добавлено свойство flex для корректного отображения изображений +* системные шрифты заголовков журналов изменены на собственные ## v1.1.4.1 * добавлено формление изображений ## v1.1.4.0 diff --git a/src/styles/dnd-core.css b/src/styles/dnd-core.css index 209542c..aba405f 100644 --- a/src/styles/dnd-core.css +++ b/src/styles/dnd-core.css @@ -40,14 +40,29 @@ background-color: #ffffff; } +.sheet.dnd5e2-journal.journal-entry .journal-entry-content h1, +.sheet.dnd5e2-journal.journal-entry .journal-entry-content h2, +.sheet.dnd5e2-journal.journal-entry .journal-entry-content h3, +.sheet.dnd5e2-journal.journal-entry .journal-entry-content h4, +.sheet.dnd5e2-journal.journal-entry .journal-entry-content h5, +.sheet.dnd5e2-journal.journal-entry-page .window-content h1, +.sheet.dnd5e2-journal.journal-entry-page .window-content h2, +.sheet.dnd5e2-journal.journal-entry-page .window-content h3, +.sheet.dnd5e2-journal.journal-entry-page .window-content h4, +.sheet.dnd5e2-journal.journal-entry-page .window-content h5 { + font-family : 'alegreya-sc'; +} + /* COMMON */ + + .dnd-core { font-family : 'mookmania-regular'; } .dnd-core p{ text-indent : 0px; - margin : auto; + margin : 0px; } .dnd-core p+p { @@ -61,6 +76,9 @@ /* TEXT BLOCKS */ .dnd-core .note { + display : flex; + flex-direction : column; + text-align : left; margin : 10px; padding : 10px; font-family : 'open-sans'; @@ -68,11 +86,13 @@ .dnd-core .note h4 { font-weight : bold; - margin : auto; + margin : 0px; font-family : 'alegreya-sans-sc'; } .dnd-core .descriptive { + display : flex; + flex-direction : column; margin : 10px; padding : 10px; font-family : 'open-sans'; @@ -82,6 +102,11 @@ text-indent : 0px; } +/* TABLES */ +.dnd-core tr:nth-child(odd) td { + background-color : #d0e4c0; +} + /* IMAGES */ .dnd-core .header { background-repeat : no-repeat; @@ -92,6 +117,7 @@ .dnd-core .image { float : right; border-width : 0px; + margin : 10px; } .dnd-core .image figcaption {