Skip to content

Commit

Permalink
Please merge the following changes
Browse files Browse the repository at this point in the history
Fixes flatpressblog#201 and flatpressblog#144

 * In the admin area of the style Flatmaas-Rev is no longer tried via stylesheet to include the image nib-logo.png.
 * In the preview of the Leggero style "Posted by + time" is now displayed right-aligned - as in the blog.
 * The heading for posts and pages has received its own CSS class "entry-title".
 * In all three styles, both heading sizes are now displayed correctly; as in the blog, so in the preview.
 * The publication date is truncated from h2 and now uses h6.
 * Font size h4 can now also be conveniently set via BBCode button.
 * Long single line code in leggero-v2 style is now wrapped when printing.
  • Loading branch information
Fraenkiman committed Feb 9, 2023
1 parent 9b155ef commit 752998e
Show file tree
Hide file tree
Showing 14 changed files with 101 additions and 28 deletions.
2 changes: 1 addition & 1 deletion fp-interface/themes/leggero/default.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


<div class="entry">
<h3 class="title">{$subject}</h3>
<h2 class="title">{$subject}</h2>
<div class="body">

{if isset($rawcontent) and $rawcontent} {$content}
Expand Down
4 changes: 2 additions & 2 deletions fp-interface/themes/leggero/entry-default.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

{$date|date_format_daily:"<h2 class=\"date\">`$fp_config.locale.dateformat`</h2>"}

<h3 itemprop="name">
<h2 itemprop="name" class="entry-title">
<a href="{$id|link:post_link}">
{$subject|tag:the_title}
</a>
</h3>
</h2>
{include file="shared:entryadminctrls.tpl"}

<div itemprop="articleBody">
Expand Down
12 changes: 7 additions & 5 deletions fp-interface/themes/leggero/flatmaas-rev/res/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,6 @@ input#subject {
#admin-bbcode-toolbar select {width: 10em}


#admin-content {
background: url(../imgs/nib-logo.png) bottom right no-repeat;
}


#admin-content table {
border-collapse: collapse;
width: 100%;
Expand Down Expand Up @@ -367,6 +362,8 @@ input.maxsize, select.maxsize { width: 100% }
/* ===== PREVIEW SETTINGS ===== */
#post-preview .entry { padding: 2em }

#post-preview div.entry h3 { font-size: 1.3em }

#post-preview ul { list-style: none; padding: 0 0 0 1.6em }

#post-preview ol { list-style-position: inside; Padding: 0 1.6em 0 1.6em }
Expand Down Expand Up @@ -654,3 +651,8 @@ a.link-enable:hover {
margin-bottom: 2em;
padding: 1em 2em
}

form {
margin: auto;
}

14 changes: 10 additions & 4 deletions fp-interface/themes/leggero/flatmaas-rev/res/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,17 +153,23 @@ h1 {
}


h2 { /* */ }

h3 {
h2 {
/* Titles of the entry */
font-size: 1.3em;
font-size: 1.4em;
color: #333333;
margin: 0;
}

.entry-title {
padding: 2px 0 2px 30px;
background: transparent url('../imgs/entry.png') center left no-repeat
}

.entry-title a {
color: #333333 !IMPORTANT;
}

h3 { margin: 0; font-size: 1.3em; }

h4 { font-size: 1.2em; }
/* in the specific ID */
Expand Down
18 changes: 16 additions & 2 deletions fp-interface/themes/leggero/leggero-v2/res/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,16 @@ input.maxsize, select.maxsize { width: 99% }
/* ===== PREVIEW SETTINGS ===== */
#post-preview .entry { padding: 2em; max-height: 20em; overflow: auto }

#post-preview div.entry h2 {
font-family: sans-serif;
border-bottom: none;
margin: 0.83em 0;
}

#post-preview div.entry h4 {
margin: 2em 0 0 0;
}

.entry-footer {
margin: 2em 0 0.5em 0;
text-align: right;
Expand Down Expand Up @@ -433,7 +443,7 @@ li.widget-class {


.admin-widgetset h3 {
margin-bottom:1em;
margin-bottom: 1em;
padding: .3em;
background: #eee;
border: 1px solid #ddd;
Expand Down Expand Up @@ -596,4 +606,8 @@ a.link-general:hover, .main-cell a:hover {

#footer {
color: black;
}
}

form {
margin: auto;
}
22 changes: 16 additions & 6 deletions fp-interface/themes/leggero/leggero-v2/res/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,22 @@ h1 {
margin: 1em 0 0.5em 0;
}

h2 { } /* see h2.date */

h3 {
h2 {
/* Titles of the entry */
font-style: normal;
font-size: 1.6em;
margin: 0
margin: 0.83em 0;
}

h2.entry-title,
h2.title {
margin: 0 !IMPORTANT;
}

h3 {
font-style: normal;
font-size: 1.4em;
margin: 0;
}

h4 { font-size: 1.2em; }
Expand Down Expand Up @@ -247,7 +256,7 @@ h4#addcomment {clear:both;}
}

/* === Class of main block === */
h2.date {
h6.date {
font-size: 0.8em;
color: #444;
}
Expand Down Expand Up @@ -300,7 +309,8 @@ h4#addcomment {clear:both;}

.navigation { /* next entries & previous entries link */
font-size: 90%;
margin-bottom: 3em
/* margin-bottom: 3em; */
display: flow-root;
}

form#search ul {
Expand Down
3 changes: 3 additions & 0 deletions fp-interface/themes/leggero/leggero-v2/res/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ pre {
background-color: #eee;
font-size: 70%;
border: 1px dotted #333;
white-space: pre-line;
overflow: auto;
text-overflow: ellipsis;
}

.link-comments {
Expand Down
33 changes: 33 additions & 0 deletions fp-interface/themes/leggero/leggero/res/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ h2 {
border-bottom: 1px solid #ddd;
}

#admin-content h2,
#admin-content form h2 {
font-style: normal;
padding: unset;
}

body { background: #eee; }

/* === Redefines some stuff in inline mode === */
Expand Down Expand Up @@ -279,6 +285,24 @@ input.maxsize, select.maxsize { width: 100% }
/* ===== PREVIEW SETTINGS ===== */
#post-preview .entry { padding: 2em; max-height: 20em; overflow: auto }

#post-preview div.entry h2,
#post-preview div.entry h3 {
border-bottom: none;
}

#post-preview div.entry h2 {
font-style: italic;
margin: 0;
padding: 1em 0 1em 0;
}

#post-preview div.entry h4 {
margin: 2em 0 0 0;
}

.entry-footer {
text-align: right;
}

/* ===== UPLOAD PANEL ===== */
#admin-uploader-filelist {
Expand Down Expand Up @@ -426,6 +450,7 @@ li.widget-class {


.admin-widgetset h3 {
font-style: italic;
margin-bottom:1em;
padding: .3em;
background: #eee;
Expand Down Expand Up @@ -492,6 +517,10 @@ li.widget-class {
margin-bottom: 4em;
}

.option-list ul li {
list-style-type: none;
}

.option-set dt {
width: 33%;
text-align:right;
Expand Down Expand Up @@ -586,3 +615,7 @@ a.link-general:hover, .main-cell a:hover {
#admin-content ul.msgs {
margin:0;
}

form {
margin: auto;
}
12 changes: 8 additions & 4 deletions fp-interface/themes/leggero/leggero/res/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ h1 {
margin: 2em 0 0 0.5em
}

h2 { } /* see h2.date */

h3 {
h2 {
/* Titles of the entry */
font-family: 'book antiqua', georgia, garamond, times, 'times new roman', serif;
font-style: italic;
Expand All @@ -170,6 +168,12 @@ h3 {
padding: 1em 0 1em 0;
}

h3 {
margin: 0;
font-size: 1.3em;
padding: 1em 0 1em 0;
}

h4 { font-size: 1.2em; }


Expand Down Expand Up @@ -272,7 +276,7 @@ h4 { font-size: 1.2em; }
}

/* === Class of main block === */
h2.date {
h6.date {
font-size: 80%;
color: #aaa;
}
Expand Down
4 changes: 2 additions & 2 deletions fp-interface/themes/leggero/preview.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{entry content=$entry}
<div class="entry">
{$date|date_format_daily:"<h2 class=\"date\">`$fp_config.locale.dateformat`</h2>"}
<h3>{$subject|tag:the_title}</h3>
{$date|date_format_daily:"<h6 class=\"date\">`$fp_config.locale.dateformat`</h6>"}
<h2 class="entry-title">{$subject|tag:the_title}</h2>
{$content|tag:the_content}
<ul class="entry-footer">
<li class="entry-info">
Expand Down
2 changes: 1 addition & 1 deletion fp-interface/themes/leggero/previewstatic.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{static content=$entry}
<div class="entry">
<h3>{$subject|tag:the_title}</h3>
<h2 class="entry-title">{$subject|tag:the_title}</h2>
<p class="date">{$lang.staticauthor.published_by} {$author} {$lang.staticauthor.on} {$date|date_format_daily} </p>
{$content|tag:the_content}
</div>
Expand Down
2 changes: 1 addition & 1 deletion fp-interface/themes/leggero/static.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{static_block}
{static}
<div id="{$id}" class="entry page-{$id}">
<h3>{$subject}</h3>
<h2 class="entry-title">{$subject}</h2>
<p class="date">{$lang.staticauthor.published_by} {$author} {$lang.staticauthor.on} {$date|date_format_daily}</p>

{$content|tag:the_content}
Expand Down
Binary file added fp-plugins/bbcode/res/toolbaricons/h4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions fp-plugins/bbcode/tpls/toolbar.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<img src="fp-plugins/bbcode/res/toolbaricons/mail.png" id="bb_mail" accesskey="" alt="mail" title="mail" onclick="insBBCode('mail');" />
<img src="fp-plugins/bbcode/res/toolbaricons/h2.png" id="bb_h2" accesskey="" alt="h2" title="h2" onclick="insBBCode('h2');" />
<img src="fp-plugins/bbcode/res/toolbaricons/h3.png" id="bb_h3" accesskey="" alt="h3" title="h3" onclick="insBBCode('h3');" />
<img src="fp-plugins/bbcode/res/toolbaricons/h4.png" id="bb_h4" accesskey="" alt="h4" title="h4" onclick="insBBCode('h4');" />
<img src="fp-plugins/bbcode/res/toolbaricons/ul.png" id="bb_ul" accesskey="" alt="ul" title="unordered list" onclick="insBBCodeWithContent('list', '\n[*]\n[*]\n');" />
<img src="fp-plugins/bbcode/res/toolbaricons/ol.png" id="bb_ol" accesskey="" alt="ol" title="ordered list" onclick="insBBCodeWithParamsAndContent('list', '#', '\n[*]\n[*]\n');" />
<img src="fp-plugins/bbcode/res/toolbaricons/quote.png" id="bb_quote" accesskey="" alt="quote" title="{$lang.admin.plugin.bbcode.editor.quotetitle}" onclick="insBBCode('quote');" />
Expand Down

0 comments on commit 752998e

Please sign in to comment.