Improved: show Terms of Service in config menu (#5215)

* Use constants for path to TOS

* improve comments

* TOS title moved to template

* TOS available via config menu

* CSS: improve handling of content of TOS/about

* give info about set/unset TOS in system config

* fix target

* i18n FR

* i18n DE
This commit is contained in:
maTh 2023-03-21 18:47:07 +01:00 committed by GitHub
parent 34f62896ac
commit e679d3df0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
60 changed files with 193 additions and 348 deletions

View File

@ -239,7 +239,7 @@ class FreshRSS_auth_Controller extends FreshRSS_ActionController {
Minz_Error::error(403); Minz_Error::error(403);
} }
$this->view->show_tos_checkbox = file_exists(join_path(DATA_PATH, 'tos.html')); $this->view->show_tos_checkbox = file_exists(TOS_FILENAME);
$this->view->show_email_field = FreshRSS_Context::$system_conf->force_email_validation; $this->view->show_email_field = FreshRSS_Context::$system_conf->force_email_validation;
$this->view->preferred_language = Minz_Translate::getLanguage(null, Minz_Request::getPreferredLanguages(), FreshRSS_Context::$system_conf->language); $this->view->preferred_language = Minz_Translate::getLanguage(null, Minz_Request::getPreferredLanguages(), FreshRSS_Context::$system_conf->language);
FreshRSS_View::prependTitle(_t('gen.auth.registration.title') . ' · '); FreshRSS_View::prependTitle(_t('gen.auth.registration.title') . ' · ');

View File

@ -282,13 +282,13 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
} }
/** /**
* This action displays the EULA page of FreshRSS. * This action displays the EULA/TOS (Terms of Service) page of FreshRSS.
* This page is enabled only if admin created a data/tos.html file. * This page is enabled only if admin created a data/tos.html file.
* The content of the page is the content of data/tos.html. * The content of the page is the content of data/tos.html.
* It returns 404 if there is no EULA. * It returns 404 if there is no EULA/TOS.
*/ */
public function tosAction() { public function tosAction() {
$terms_of_service = file_get_contents(join_path(DATA_PATH, 'tos.html')); $terms_of_service = file_get_contents(TOS_FILENAME);
if (!$terms_of_service) { if (!$terms_of_service) {
Minz_Error::error(404); Minz_Error::error(404);
} }

View File

@ -318,7 +318,7 @@ class FreshRSS_user_Controller extends FreshRSS_ActionController {
); );
} }
$tos_enabled = file_exists(join_path(DATA_PATH, 'tos.html')); $tos_enabled = file_exists(TOS_FILENAME);
$accept_tos = Minz_Request::param('accept_tos', false); $accept_tos = Minz_Request::param('accept_tos', false);
if ($system_conf->force_email_validation && empty($email)) { if ($system_conf->force_email_validation && empty($email)) {

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'Registrační formulář uživatele', 'title' => 'Registrační formulář uživatele',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'Aktualizace systému', '_' => 'Aktualizace systému',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'Benutzer-Registrierungsformular', 'title' => 'Benutzer-Registrierungsformular',
), ),
'tos' => array(
'disabled' => 'sind nicht aktiviert',
'enabled' => '<a href="./?a=tos">sind aktiv</a>',
'help' => 'So werden die <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">Nutzungsbedingungen aktiviert</a>',
),
), ),
'update' => array( 'update' => array(
'_' => 'System aktualisieren', '_' => 'System aktualisieren',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'Φόρμα εγγραφής χρήστη', 'title' => 'Φόρμα εγγραφής χρήστη',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'Ενημέρωση συστήματος', '_' => 'Ενημέρωση συστήματος',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'User registration form', // IGNORE 'title' => 'User registration form', // IGNORE
), ),
'tos' => array(
'disabled' => 'is not given', // IGNORE
'enabled' => '<a href="./?a=tos">is enabled</a>', // IGNORE
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // IGNORE
),
), ),
'update' => array( 'update' => array(
'_' => 'Update system', // IGNORE '_' => 'Update system', // IGNORE

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'User registration form', 'title' => 'User registration form',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'Update system', '_' => 'Update system',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'Formulario de registro del usuario', 'title' => 'Formulario de registro del usuario',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'Actualizar sistema', '_' => 'Actualizar sistema',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'Formulaire dinscription utilisateur', 'title' => 'Formulaire dinscription utilisateur',
), ),
'tos' => array(
'disabled' => 'non renseigné',
'enabled' => '<a href="./?a=tos">activées</a>',
'help' => 'Comment <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">activer les conditions dutilisation</a>',
),
), ),
'update' => array( 'update' => array(
'_' => 'Système de mise à jour', '_' => 'Système de mise à jour',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'User registration form', // TODO 'title' => 'User registration form', // TODO
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'מערכת העדכון', '_' => 'מערכת העדכון',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'Formulir Pendaftaran Pengguna', 'title' => 'Formulir Pendaftaran Pengguna',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'Update system', // TODO '_' => 'Update system', // TODO

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'Form di registrazione utente', 'title' => 'Form di registrazione utente',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'Aggiornamento sistema', '_' => 'Aggiornamento sistema',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'ユーザー登録', 'title' => 'ユーザー登録',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'システムアップデート', '_' => 'システムアップデート',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => '사용자 회원가입 양식', 'title' => '사용자 회원가입 양식',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => '업데이트', '_' => '업데이트',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'Gebruikersregistratieformulier', 'title' => 'Gebruikersregistratieformulier',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'Versie controle', '_' => 'Versie controle',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'Formulari dinscripcion utilizaire', 'title' => 'Formulari dinscripcion utilizaire',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'Sistèma de mesa a jorn', '_' => 'Sistèma de mesa a jorn',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'Formularz rejestracji użytkowników', 'title' => 'Formularz rejestracji użytkowników',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'Aktualizacja', '_' => 'Aktualizacja',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'Formulário de Cadastro de Usuário', 'title' => 'Formulário de Cadastro de Usuário',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'Atualização do sistema', '_' => 'Atualização do sistema',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'Форма регистрации пользователей', 'title' => 'Форма регистрации пользователей',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'Обновление системы', '_' => 'Обновление системы',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'Registračný formulár používateľa', 'title' => 'Registračný formulár používateľa',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'Aktualizácia systému', '_' => 'Aktualizácia systému',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => 'Kullanıcı kayıt formu', 'title' => 'Kullanıcı kayıt formu',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => 'Sistem güncelleme', '_' => 'Sistem güncelleme',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => '用户注册表单', 'title' => '用户注册表单',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => '更新系统', '_' => '更新系统',

View File

@ -183,6 +183,11 @@ return array(
), ),
'title' => '使用者註冊表單', 'title' => '使用者註冊表單',
), ),
'tos' => array(
'disabled' => 'is not given', // TODO
'enabled' => '<a href="./?a=tos">is enabled</a>', // TODO
'help' => 'How to <a href="https://freshrss.github.io/FreshRSS/en/admins/12_User_management.html#enable-terms-of-service-tos" target="_blank">enable the Terms of Service</a>', // TODO
),
), ),
'update' => array( 'update' => array(
'_' => '更新系統', '_' => '更新系統',

View File

@ -84,6 +84,11 @@
<li class="item<?= Minz_Request::actionName() === 'about' ? ' active' : '' ?>"> <li class="item<?= Minz_Request::actionName() === 'about' ? ' active' : '' ?>">
<a href="<?= _url('index', 'about') ?>"><?= _t('gen.menu.about') ?></a> <a href="<?= _url('index', 'about') ?>"><?= _t('gen.menu.about') ?></a>
</li> </li>
<?php if (file_exists(TOS_FILENAME)) { ?>
<li class="item">
<a href="<?= _url('index', 'tos') ?>"><?= _t('index.tos.title')?></a>
</li>
<?php } ?>
</ul> </ul>
</li> </li>
</ul> </ul>

View File

@ -103,6 +103,11 @@
<ul> <ul>
<li class="item"><a href="<?= _url('index', 'logs') ?>"><?= _t('gen.menu.logs') ?></a></li> <li class="item"><a href="<?= _url('index', 'logs') ?>"><?= _t('gen.menu.logs') ?></a></li>
<li class="item"><a href="<?= _url('index', 'about') ?>"><?= _t('gen.menu.about') ?></a></li> <li class="item"><a href="<?= _url('index', 'about') ?>"><?= _t('gen.menu.about') ?></a></li>
<?php if (file_exists(TOS_FILENAME)) { ?>
<li class="item">
<a href="<?= _url('index', 'tos') ?>"><?= _t('index.tos.title')?></a>
</li>
<?php } ?>
<?= Minz_ExtensionManager::callHook('menu_other_entry') ?> <?= Minz_ExtensionManager::callHook('menu_other_entry') ?>
</ul> </ul>
</li> </li>

View File

@ -83,6 +83,19 @@
</div> </div>
</div> </div>
<div class="form-group">
<label class="group-name"><?= _t('index.tos.title') ?></label>
<div class="group-controls">
<?php if (file_exists(TOS_FILENAME)) { ?>
<?= _t('admin.system.tos.enabled') ?>
<?php
} else { ?>
<?= _t('admin.system.tos.disabled') ?>
<p class="help"><?= _i('help') ?> <?= _t('admin.system.tos.help') ?></p>
<?php } ?>
</div>
</div>
<div class="form-group"> <div class="form-group">
<div class="group-controls"> <div class="group-controls">
<label class="checkbox" for="force-email-validation"> <label class="checkbox" for="force-email-validation">

View File

@ -5,7 +5,7 @@
} }
?> ?>
<main class="post content"> <main class="post content<?= !FreshRSS_Auth::hasAccess() ? ' centered' : ''?>">
<?php if (FreshRSS_Auth::hasAccess()) {?> <?php if (FreshRSS_Auth::hasAccess()) {?>
<div class="link-back-wrapper"> <div class="link-back-wrapper">
<a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a> <a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>

View File

@ -1,14 +1,29 @@
<?php /** @var FreshRSS_View $this */ ?> <?php
<main class="post content"> /** @var FreshRSS_View $this */
<?php if ($this->can_register) { ?> if (FreshRSS_Auth::hasAccess()) {
<a href="<?= _url('auth', 'register') ?>"> $this->partial('aside_configure');
<?= _t('gen.action.back') ?> }
</a> ?>
<main class="post content<?= !FreshRSS_Auth::hasAccess() ? ' centered' : ''?>">
<?php if (FreshRSS_Auth::hasAccess()) {?>
<div class="link-back-wrapper">
<a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
</div>
<?php } elseif ($this->can_register) { ?>
<div class="link-back-wrapper">
<a href="<?= _url('auth', 'register') ?>">
<?= _t('gen.action.back') ?>
</a>
</div>
<?php } else { ?> <?php } else { ?>
<a href="<?= _url('index', 'index') ?>"> <div class="link-back-wrapper">
<?= _t('gen.action.back') ?> <a href="<?= _url('index', 'index') ?>">
</a> <?= _t('gen.action.back') ?>
</a>
</div>
<?php } ?> <?php } ?>
<h1><?= _t('index.tos.title')?></h1>
<?= $this->terms_of_service ?> <?= $this->terms_of_service ?>
</main> </main>

View File

@ -46,6 +46,7 @@ defined('USERS_PATH') or define('USERS_PATH', DATA_PATH . '/users');
defined('LOG_FILENAME') or define('LOG_FILENAME', 'log.txt'); defined('LOG_FILENAME') or define('LOG_FILENAME', 'log.txt');
defined('ADMIN_LOG') or define('ADMIN_LOG', USERS_PATH . '/_/' . LOG_FILENAME); defined('ADMIN_LOG') or define('ADMIN_LOG', USERS_PATH . '/_/' . LOG_FILENAME);
defined('API_LOG') or define('API_LOG', USERS_PATH . '/_/log_api.txt'); defined('API_LOG') or define('API_LOG', USERS_PATH . '/_/log_api.txt');
defined('TOS_FILENAME') or define('TOS_FILENAME', DATA_PATH . '/tos.html');
defined('CACHE_PATH') or define('CACHE_PATH', DATA_PATH . '/cache'); defined('CACHE_PATH') or define('CACHE_PATH', DATA_PATH . '/cache');
defined('PSHB_LOG') or define('PSHB_LOG', USERS_PATH . '/_/log_pshb.txt'); defined('PSHB_LOG') or define('PSHB_LOG', USERS_PATH . '/_/log_pshb.txt');
defined('PSHB_PATH') or define('PSHB_PATH', DATA_PATH . '/PubSubHubbub'); defined('PSHB_PATH') or define('PSHB_PATH', DATA_PATH . '/PubSubHubbub');
@ -58,5 +59,5 @@ defined('EXTENSIONS_PATH') or define('EXTENSIONS_PATH', FRESHRSS_PATH . '/extens
//Directory used for feed mutex with *.freshrss.lock files. Must be writable. //Directory used for feed mutex with *.freshrss.lock files. Must be writable.
defined('TMP_PATH') or define('TMP_PATH', sys_get_temp_dir()); defined('TMP_PATH') or define('TMP_PATH', sys_get_temp_dir());
//clean the chacke after x hours (720 hours = 30 days) //clean the cache after x hours (720 hours = 30 days)
defined('CLEANCACHE_HOURS') or define('CLEANCACHE_HOURS', 720); defined('CLEANCACHE_HOURS') or define('CLEANCACHE_HOURS', 720);

View File

@ -1,4 +1,4 @@
<h1>Terms of Service</h1> <!-- <h1>Terms of Service</h1> -->
<h2>Article 1: Lorem ipsum</h2> <h2>Article 1: Lorem ipsum</h2>

View File

@ -621,20 +621,6 @@ kbd {
left: 2px; left: 2px;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
.slides { .slides {
border-color: var(--border-color-middle); border-color: var(--border-color-middle);
} }

View File

@ -621,20 +621,6 @@ kbd {
right: 2px; right: 2px;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
.slides { .slides {
border-color: var(--border-color-middle); border-color: var(--border-color-middle);
} }

View File

@ -2,17 +2,8 @@
/*=== Configuration pages */ /*=== Configuration pages */
.post { .post {
padding: 1rem 2rem;
font-size: 1rem; font-size: 1rem;
form {
margin: 1rem 0;
}
&.content {
max-width: 550px;
}
h1, h2 { h1, h2 {
color: variables.$main-font-color; color: variables.$main-font-color;
font-size: 2rem; font-size: 2rem;

View File

@ -1102,15 +1102,8 @@ main.prompt {
/*=== Configuration pages */ /*=== Configuration pages */
.post { .post {
padding: 1rem 2rem;
font-size: 1rem; font-size: 1rem;
} }
.post form {
margin: 1rem 0;
}
.post.content {
max-width: 550px;
}
.post h1, .post h2 { .post h1, .post h2 {
color: #363330; color: #363330;
font-size: 2rem; font-size: 2rem;
@ -1312,3 +1305,5 @@ a, button.as-link {
outline: none; outline: none;
color: #ca7227; color: #ca7227;
} }
/*# sourceMappingURL=ansum.css.map */

View File

@ -1102,15 +1102,8 @@ main.prompt {
/*=== Configuration pages */ /*=== Configuration pages */
.post { .post {
padding: 1rem 2rem;
font-size: 1rem; font-size: 1rem;
} }
.post form {
margin: 1rem 0;
}
.post.content {
max-width: 550px;
}
.post h1, .post h2 { .post h1, .post h2 {
color: #363330; color: #363330;
font-size: 2rem; font-size: 2rem;

View File

@ -660,20 +660,6 @@ a.btn {
border-radius: 3px; border-radius: 3px;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt .form-group { .prompt .form-group {
margin-bottom: 1rem; margin-bottom: 1rem;

View File

@ -660,20 +660,6 @@ a.btn {
border-radius: 3px; border-radius: 3px;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt .form-group { .prompt .form-group {
margin-bottom: 1rem; margin-bottom: 1rem;

View File

@ -612,20 +612,6 @@ a.btn {
background-color: #111; background-color: #111;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt .form-group { .prompt .form-group {
margin-bottom: 1rem; margin-bottom: 1rem;

View File

@ -612,20 +612,6 @@ a.btn {
background-color: #111; background-color: #111;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt .form-group { .prompt .form-group {
margin-bottom: 1rem; margin-bottom: 1rem;

View File

@ -617,20 +617,6 @@ a.btn {
border-radius: 3px; border-radius: 3px;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt .form-group { .prompt .form-group {
margin-bottom: 1rem; margin-bottom: 1rem;

View File

@ -617,20 +617,6 @@ a.btn {
border-radius: 3px; border-radius: 3px;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt .form-group { .prompt .form-group {
margin-bottom: 1rem; margin-bottom: 1rem;

View File

@ -2,17 +2,8 @@
/*=== Configuration pages */ /*=== Configuration pages */
.post { .post {
padding: 1rem 2rem;
font-size: 1rem; font-size: 1rem;
form {
margin: 1rem 0;
}
&.content {
max-width: 550px;
}
h1, h2 { h1, h2 {
color: variables.$main-font-color; color: variables.$main-font-color;
font-size: 2rem; font-size: 2rem;

View File

@ -1116,15 +1116,8 @@ main.prompt {
/*=== Configuration pages */ /*=== Configuration pages */
.post { .post {
padding: 1rem 2rem;
font-size: 1rem; font-size: 1rem;
} }
.post form {
margin: 1rem 0;
}
.post.content {
max-width: 550px;
}
.post h1, .post h2 { .post h1, .post h2 {
color: #303136; color: #303136;
font-size: 2rem; font-size: 2rem;

View File

@ -1116,15 +1116,8 @@ main.prompt {
/*=== Configuration pages */ /*=== Configuration pages */
.post { .post {
padding: 1rem 2rem;
font-size: 1rem; font-size: 1rem;
} }
.post form {
margin: 1rem 0;
}
.post.content {
max-width: 550px;
}
.post h1, .post h2 { .post h1, .post h2 {
color: #303136; color: #303136;
font-size: 2rem; font-size: 2rem;

View File

@ -914,21 +914,6 @@ option {
left: 2px; left: 2px;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt input { .prompt input {
margin: 5px auto; margin: 5px auto;

View File

@ -914,21 +914,6 @@ option {
right: 2px; right: 2px;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt input { .prompt input {
margin: 5px auto; margin: 5px auto;

View File

@ -738,20 +738,6 @@ a.btn-attention:hover {
left: 2px; left: 2px;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt .form-group { .prompt .form-group {
margin-bottom: 1rem; margin-bottom: 1rem;

View File

@ -738,20 +738,6 @@ a.btn-attention:hover {
right: 2px; right: 2px;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt .form-group { .prompt .form-group {
margin-bottom: 1rem; margin-bottom: 1rem;

View File

@ -714,20 +714,6 @@ a.signin {
filter: brightness(3); filter: brightness(3);
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt .form-group { .prompt .form-group {
margin-bottom: 1rem; margin-bottom: 1rem;

View File

@ -714,20 +714,6 @@ a.signin {
filter: brightness(3); filter: brightness(3);
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt .form-group { .prompt .form-group {
margin-bottom: 1rem; margin-bottom: 1rem;

View File

@ -635,20 +635,6 @@ a.btn {
border-radius: 3px; border-radius: 3px;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt { .prompt {
text-shadow: 0 1px rgba(255,255,255,0.08); text-shadow: 0 1px rgba(255,255,255,0.08);

View File

@ -635,20 +635,6 @@ a.btn {
border-radius: 3px; border-radius: 3px;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt { .prompt {
text-shadow: 0 1px rgba(255,255,255,0.08); text-shadow: 0 1px rgba(255,255,255,0.08);

View File

@ -673,19 +673,12 @@ form th {
} }
.post { .post {
padding: 10px 50px;
font-size: 0.9em; font-size: 0.9em;
} }
.post input.long { .post input.long {
height: 33px; height: 33px;
margin-top: 0px; margin-top: 0px;
} }
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
.prompt input { .prompt input {
margin: 5px auto; margin: 5px auto;
@ -1174,11 +1167,9 @@ button.as-link {
left: 0; left: 0;
right: auto; right: auto;
} }
#nav_menu_actions ul.dropdown-menu::after { #nav_menu_actions ul.dropdown-menu::after {
display: none; display: none;
} }
#nav_menu_actions .dropdown.only-mobile { #nav_menu_actions .dropdown.only-mobile {
display: initial !important; display: initial !important;
} }
@ -1193,6 +1184,4 @@ button.as-link {
#slider label { #slider label {
min-height: initial; min-height: initial;
} }
/*# sourceMappingURL=swage.css.map */

View File

@ -673,19 +673,12 @@ form th {
} }
.post { .post {
padding: 10px 50px;
font-size: 0.9em; font-size: 0.9em;
} }
.post input.long { .post input.long {
height: 33px; height: 33px;
margin-top: 0px; margin-top: 0px;
} }
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
.prompt input { .prompt input {
margin: 5px auto; margin: 5px auto;
@ -1174,11 +1167,9 @@ button.as-link {
right: 0; right: 0;
left: auto; left: auto;
} }
#nav_menu_actions ul.dropdown-menu::after { #nav_menu_actions ul.dropdown-menu::after {
display: none; display: none;
} }
#nav_menu_actions .dropdown.only-mobile { #nav_menu_actions .dropdown.only-mobile {
display: initial !important; display: initial !important;
} }
@ -1193,4 +1184,4 @@ button.as-link {
#slider label { #slider label {
min-height: initial; min-height: initial;
} }

View File

@ -872,7 +872,6 @@ form {
} }
.post { .post {
padding: 10px 50px;
font-size: 0.9em; font-size: 0.9em;
input { input {
@ -881,14 +880,6 @@ form {
margin-top: 0px; margin-top: 0px;
} }
} }
form {
margin: 10px 0;
}
&.content {
max-width: 550px;
}
} }
.prompt { .prompt {

View File

@ -461,20 +461,6 @@ a.btn {
border-radius: 3px; border-radius: 3px;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt { .prompt {
text-align: center; text-align: center;

View File

@ -461,20 +461,6 @@ a.btn {
border-radius: 3px; border-radius: 3px;
} }
/*=== Configuration pages */
.post {
padding: 10px 50px;
font-size: 0.9em;
}
.post form {
margin: 10px 0;
}
.post.content {
max-width: 550px;
}
/*=== Prompt (centered) */ /*=== Prompt (centered) */
.prompt { .prompt {
text-align: center; text-align: center;

View File

@ -1759,6 +1759,20 @@ html.slider-active {
background-position: center; background-position: center;
} }
/*=== Configuration pages */
.post {
padding: 1rem 2rem;
font-size: 0.9em;
}
.post form {
margin: 1rem 0;
}
.post.content.centered {
max-width: 550px;
}
/*=== SLIDESHOW */ /*=== SLIDESHOW */
/*==============*/ /*==============*/
.slides { .slides {

View File

@ -1759,6 +1759,20 @@ html.slider-active {
background-position: center; background-position: center;
} }
/*=== Configuration pages */
.post {
padding: 1rem 2rem;
font-size: 0.9em;
}
.post form {
margin: 1rem 0;
}
.post.content.centered {
max-width: 550px;
}
/*=== SLIDESHOW */ /*=== SLIDESHOW */
/*==============*/ /*==============*/
.slides { .slides {