Use mini.css as CSS for message display - simpler, faster, shorter.
This commit is contained in:
parent
8e1c2d94d7
commit
9446236361
6 changed files with 42 additions and 5945 deletions
|
@ -1,11 +1,6 @@
|
||||||
<?xml version="1.0"?>
|
<div class="card filled fluid">
|
||||||
<div class="container">
|
<h4 class="doc section">Error: %1</h4>
|
||||||
<div class="row">
|
<div class="doc section">
|
||||||
<div class="alert alert-danger" role="alert">
|
|
||||||
<span class="sr-only">Error:</span>
|
|
||||||
%1
|
|
||||||
</div>
|
|
||||||
|
|
||||||
%2
|
%2
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -1 +1 @@
|
||||||
<a style="margin-right: 5px; margin-top: 3px;" class="btn btn-primary btn-sm" href="%1">%2 (%3)</a>
|
<a class="button primary" href="%1">%2 (%3)</a>
|
|
@ -1,15 +1,12 @@
|
||||||
<div class="card">
|
<div class="card filled fluid">
|
||||||
<div class="card-block">
|
<h4 class="doc section">%1 <a class="button primary" href="%3">URL</a> %6</h4>
|
||||||
<h4 class="card-title">%1 <a class="btn btn-primary btn-sm" href="%3">URL</a> %6</h4>
|
<div class="doc section">
|
||||||
<div class="card-text">
|
<div style="text-align: center;">
|
||||||
|
%2, %5
|
||||||
|
</div>
|
||||||
<div style="padding: 2px; margin: 0px;">
|
<div style="padding: 2px; margin: 0px;">
|
||||||
%7
|
%7
|
||||||
</div>
|
</div>
|
||||||
%4
|
%4
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-footer" style="text-align: center;">
|
|
||||||
%2, %5
|
|
||||||
</div>
|
|
||||||
</div>
|
|
File diff suppressed because one or more lines are too long
|
@ -37,7 +37,7 @@ void NewspaperPreviewer::showMoreMessages() {
|
||||||
|
|
||||||
prev->layout()->setContentsMargins(margins);
|
prev->layout()->setContentsMargins(margins);
|
||||||
|
|
||||||
prev->setFixedHeight(200);
|
prev->setFixedHeight(300);
|
||||||
prev->loadMessage(msg, m_root);
|
prev->loadMessage(msg, m_root);
|
||||||
m_ui->m_layout->insertWidget(m_ui->m_layout->count() - 2, prev);
|
m_ui->m_layout->insertWidget(m_ui->m_layout->count() - 2, prev);
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,8 +63,7 @@ QString SkinFactory::selectedSkinName() const {
|
||||||
QString SkinFactory::adBlockedPage(const QString& subscription, const QString& rule) {
|
QString SkinFactory::adBlockedPage(const QString& subscription, const QString& rule) {
|
||||||
const QString& adblocked = currentSkin().m_adblocked.arg(tr("This page was blocked by AdBlock"),
|
const QString& adblocked = currentSkin().m_adblocked.arg(tr("This page was blocked by AdBlock"),
|
||||||
tr(R"(Blocked by set: "%1"<br/>Blocked by filter: "%2")")
|
tr(R"(Blocked by set: "%1"<br/>Blocked by filter: "%2")")
|
||||||
.arg(subscription,
|
.arg(subscription, rule));
|
||||||
rule));
|
|
||||||
|
|
||||||
return currentSkin().m_layoutMarkupWrapper.arg(tr("This page was blocked by AdBlock"), adblocked);
|
return currentSkin().m_layoutMarkupWrapper.arg(tr("This page was blocked by AdBlock"), adblocked);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue