parent
7f022ab5d9
commit
0d8c673fdf
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
define('G_APP_NAME', 'Chevereto Free');
|
||||
define('G_APP_VERSION', '1.1.0');
|
||||
define('G_APP_VERSION', '1.1.1');
|
||||
define('G_APP_GITHUB_OWNER', 'Chevereto');
|
||||
define('G_APP_GITHUB_REPO', 'Chevereto-Free');
|
||||
define('G_APP_GITHUB_REPO_URL', 'https://github.com/' . G_APP_GITHUB_OWNER . '/' . G_APP_GITHUB_REPO);
|
||||
define('CHEVERETO_INSTALLER_DOWNLOAD_URL', 'https://chevereto.com/download/file/installer');
|
||||
define('CHEVERETO_INSTALLER_DOWNLOAD_URL', 'https://chevereto.com/download/file/installer');
|
||||
|
|
|
@ -5,16 +5,18 @@
|
|||
http://chevereto.com/
|
||||
|
||||
@author Rodolfo Berrios A. <http://rodolfoberrios.com/>
|
||||
<inbox@rodolfoberrios.com>
|
||||
<inbox@rodolfoberrios.com>
|
||||
|
||||
Copyright (C) Rodolfo Berrios A. All rights reserved.
|
||||
|
||||
|
||||
BY USING THIS SOFTWARE YOU DECLARE TO ACCEPT THE CHEVERETO EULA
|
||||
http://chevereto.com/license
|
||||
|
||||
--------------------------------------------------------------------- */
|
||||
|
||||
if(!defined('access') or !access) die('This file cannot be directly accessed.'); ?>
|
||||
if (!defined('access') or !access) {
|
||||
die('This file cannot be directly accessed.');
|
||||
} ?>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
|
@ -22,7 +24,6 @@ if(!defined('access') or !access) die('This file cannot be directly accessed.');
|
|||
<title><?php echo $doctitle; ?></title>
|
||||
<link rel="stylesheet" href="<?php echo G\absolute_to_url(CHV_PATH_PEAFOWL . 'peafowl.css'); ?>">
|
||||
<link rel="stylesheet" href="<?php echo G\absolute_to_url(CHV_APP_PATH_CONTENT_SYSTEM . 'style.css'); ?>">
|
||||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic&subset=latin,greek,cyrillic">
|
||||
<link rel="shortcut icon" href="<?php echo G\absolute_to_url(CHV_APP_PATH_CONTENT_SYSTEM . 'favicon.png'); ?>">
|
||||
<script>(function(w,d,u){w.readyQ=[];w.bindReadyQ=[];function p(x,y){if(x=="ready"){w.bindReadyQ.push(y);}else{w.readyQ.push(x);}};var a={ready:p,bind:p};w.$=w.jQuery=function(f){if(f===d||f===u){return a}else{p(f)}}})(window,document);</script>
|
||||
</head>
|
||||
|
@ -48,8 +49,8 @@ PF.obj.config.base_url = "<?php echo G\get_base_url(); ?>";
|
|||
PF.obj.l10n = <?php echo json_encode(CHV\get_translation_table()) ;?>;
|
||||
</script>
|
||||
<?php
|
||||
if(method_exists('CHV\Settings','getChevereto')) {
|
||||
echo '<script>var CHEVERETO = ' . json_encode(CHV\Settings::getChevereto()) . '</script>';
|
||||
if (method_exists('CHV\Settings', 'getChevereto')) {
|
||||
echo '<script>var CHEVERETO = ' . json_encode(CHV\Settings::getChevereto()) . '</script>';
|
||||
}
|
||||
?>
|
||||
<script src="<?php echo CHV\Render\versionize_src(G\Render\get_app_lib_file_url('chevereto.js')); ?>"></script>
|
||||
|
|
|
@ -251,7 +251,8 @@ try {
|
|||
'upload_max_filesize_mb_guest' => 0.5,
|
||||
'notify_user_signups' => 0,
|
||||
'listing_viewer' => 1,
|
||||
]
|
||||
],
|
||||
'1.1.1' => NULL,
|
||||
];
|
||||
// Settings that must be renamed from NAME to NEW NAME and DELETE old NAME
|
||||
$settings_rename = [];
|
||||
|
|
|
@ -72,6 +72,10 @@ $route = function ($handler) {
|
|||
'current' => $handler::getCond($route_prefix.'_'.$aux)
|
||||
);
|
||||
}
|
||||
$route_menu['upgrade'] = [
|
||||
'label' => '💎 Upgrade to premium',
|
||||
'id' => 'upgrade'
|
||||
];
|
||||
|
||||
$handler::setVar($route_prefix.'_menu', $route_menu);
|
||||
$handler::setVar('tabs', $route_menu);
|
||||
|
@ -119,13 +123,16 @@ $route = function ($handler) {
|
|||
|
||||
$system_values = [
|
||||
'chv_version' => [
|
||||
'label' => _s('Chevereto Free'),
|
||||
'content' => (version_compare($chv_version['files'], $chv_version['db'], '<=') ? $chv_version['files'] : $chv_version['files'] . ' ('.$chv_version['db'].' DB) <a href="'.G\get_base_url('install').'">'._s('install update').'</a>') . ' – <a data-action="check-for-updates">' . _s("check for updates") . '</a>' . '<p><a class="btn btn-capsule btn-upgrade red" data-action="upgrade">Upgrade</a> Upgrade to paid edition to get more features and Tech support assistance.
|
||||
</p>'
|
||||
'label' => 'Chevereto (Free)',
|
||||
'content' => (version_compare($chv_version['files'], $chv_version['db'], '<=') ? $chv_version['files'] : $chv_version['files'] . ' ('.$chv_version['db'].' DB) <a href="'.G\get_base_url('install').'">'._s('install update').'</a>') . ' – <a data-action="check-for-updates">' . _s("check for updates") . '</a>',
|
||||
],
|
||||
'donate' => [
|
||||
'label' => 'Donate',
|
||||
'content' => 'Chevereto Free cost you nothing to use, but that doesn\'t mean it costs nothing to make. Chevereto needs your support to grow and thrive.<p>If you feel that Chevereto Free suits you, please consider <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RCA2MU7DYMJJW&source=url" target="_blank">donating</a> or purchasing our <a href="https://chevereto.com/pricing" target="_blank">premium edition</a>. Every penny will help.</p>'
|
||||
],
|
||||
'support' => [
|
||||
'label' => _s('Support'),
|
||||
'content' => strtr('%s available.', ['%s' => '<a href="https://chevereto.com/community/forums/chevereto-free-support.90/" target="_blank">Community support</a>'])
|
||||
'label' => 'Support',
|
||||
'content' => _s('Need help? Go to %s and you will get help quickly.', ['%s' => '<a href="https://chevereto.com/support" target="_blank">'._s('Support').'</a>'])
|
||||
],
|
||||
'g_version' => [
|
||||
'label' => 'G\\',
|
||||
|
@ -177,12 +184,13 @@ $route = function ($handler) {
|
|||
];
|
||||
|
||||
$chevereto_urls = [
|
||||
_s('Community') => 'https://chevereto.com/community',
|
||||
_s('Support') . ' (paid)' => 'https://chevereto.com/support',
|
||||
_s('Support') => 'https://chevereto.com/support',
|
||||
_s('Documentation') => 'https://chevereto.com/docs',
|
||||
_s('Releases') . ' (paid)' => 'https://chevereto.com/releases',
|
||||
_s('Releases') . ' (free)' => 'https://github.com/Chevereto/Chevereto-Free/releases',
|
||||
_s('Changelog') => 'https://chevereto.com/changelog',
|
||||
_s('Request new features') => 'https://chevereto.com/request-new-features',
|
||||
_s('Bug tracking') => 'https://chevereto.com/bug-tracking',
|
||||
_s('Community') => 'https://chevereto.com/community',
|
||||
'Discord' => 'https://chevereto.com/go/discord',
|
||||
'GitHub' => 'https://github.com/Chevereto',
|
||||
];
|
||||
$chevereto_links = [];
|
||||
|
|
|
@ -1,17 +1,21 @@
|
|||
<?php if(!defined('access') or !access) die('This file cannot be directly accessed.'); ?>
|
||||
<?php if (!defined('access') or !access) {
|
||||
die('This file cannot be directly accessed.');
|
||||
} ?>
|
||||
<div id="powered-by" class="footer">Powered by <a href="https://chevereto.com" rel="generator">Chevereto</a> image hosting</div>
|
||||
|
||||
<?php if(!is_maintenance()) { G\Render\include_theme_file('snippets/embed_tpl'); } ?>
|
||||
<?php if (!is_maintenance()) {
|
||||
G\Render\include_theme_file('snippets/embed_tpl');
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
if(is_upload_allowed()) {
|
||||
G\Render\include_theme_file('snippets/anywhere_upload');
|
||||
if (is_upload_allowed()) {
|
||||
G\Render\include_theme_file('snippets/anywhere_upload');
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if(!CHV\Login::isLoggedUser()) {
|
||||
G\Render\include_theme_file('snippets/modal_login');
|
||||
if (!CHV\Login::isLoggedUser()) {
|
||||
G\Render\include_theme_file('snippets/modal_login');
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -27,5 +31,43 @@ if(!CHV\Login::isLoggedUser()) {
|
|||
|
||||
<?php echo CHV\getSetting('analytics_code'); ?>
|
||||
|
||||
<?php
|
||||
if (CHV\Login::isAdmin()) {
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(document).on("click", "[data-action=upgrade]", function() {
|
||||
PF.fn.modal.call({
|
||||
template: $("[data-modal=form-upgrade]").html(),
|
||||
buttons: false,
|
||||
button_submit: "Upgrade now",
|
||||
ajax: {
|
||||
data: {action: 'upgrade'},
|
||||
deferred: {
|
||||
success: function(XHR) {
|
||||
window.location.href = XHR.responseJSON.redir.url;
|
||||
},
|
||||
error: function(XHR) {
|
||||
PF.fn.growl.call(XHR.responseJSON.error.message);
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div data-modal="form-upgrade" class="hidden" data-is-xhr data-submit-fn="CHV.fn.submit_upgradeToPaid" data-ajax-deferred="CHV.fn.complete_upgradeToPaid">
|
||||
<span class="modal-box-title">Upgrade to premium</span>
|
||||
<div class="text-align-center margin-top-30 margin-bottom-30" style="font-size: 90px;">💎💖👏</div>
|
||||
<p>Upgrading to Chevereto premium edition not only allows you to get more features and early access to all new additions and fixes. It also helps to keep development ongoing which is the most important asset of your purchase.</p>
|
||||
<p>Chevereto <a href="https://chevereto.com/features" target="_blank">premium features</a> include support for multiple external storage servers, bulk content importer, manage banners, content likes, user followers, social login signup and more. Of course, we don't charge any time-based fees.</p>
|
||||
<p>You will need a <a href="https://chevereto.com/panel/license" target="_blank">license key</a> for this process. If you don't have a license key, you can <a href="https://chevereto.com/pricing" target="_blank">purchase</a> it right now.</p>
|
||||
<div class="btn-container text-align-center"><button class="btn btn-input green" data-action="submit" type="submit">Upgrade now</button> <span class="btn-alt"><?php _se('or'); ?><a class="cancel" data-action="cancel">maybe later</a></span></div>
|
||||
</div>
|
||||
<?php
|
||||
} ?>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -515,6 +515,10 @@ foreach ($twitter_card as $k => $v) {
|
|||
<?php
|
||||
} ?>
|
||||
<li><a href="<?php echo G\get_base_url(sprintf("logout?auth_token=%s", get_auth_token())); ?>"><?php _se('Sign out'); ?></a></li>
|
||||
<?php if (is_admin()) { ?>
|
||||
<div class="or-separator margin-0" style="height: 1px;"></div>
|
||||
<li><a data-action="upgrade">💎 Upgrade</a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,12 +1,22 @@
|
|||
<?php if(!defined('access') or !access) die('This file cannot be directly accessed.'); ?>
|
||||
<?php if (!defined('access') or !access) {
|
||||
die('This file cannot be directly accessed.');
|
||||
} ?>
|
||||
|
||||
<?php
|
||||
$list = function_exists('get_list') ? get_list() : G\get_global('list');
|
||||
$tabs = (array) (G\get_global('tabs') ? G\get_global('tabs') : (function_exists('get_tabs') ? get_tabs() : NULL));
|
||||
foreach($tabs as $tab) {
|
||||
if($tab["list"] === false or $tab["tools"] === false) continue;
|
||||
?>
|
||||
<div data-content="list-selection" data-tab="<?php echo $tab["id"]; ?>" class="list-selection <?php $class = []; if(count($list->output) == 0) { $class[] = 'disabled'; } if(!$tab["current"]) { $class[] = 'hidden'; } echo implode(' ', $class); ?>">
|
||||
$tabs = (array) (G\get_global('tabs') ? G\get_global('tabs') : (function_exists('get_tabs') ? get_tabs() : null));
|
||||
foreach ($tabs as $tab) {
|
||||
if ($tab["list"] === false or $tab["tools"] === false) {
|
||||
continue;
|
||||
} ?>
|
||||
<div data-content="list-selection" data-tab="<?php echo $tab["id"]; ?>" class="header--centering list-selection <?php $class = [];
|
||||
if (count($list->output) == 0) {
|
||||
$class[] = 'disabled';
|
||||
}
|
||||
if (!$tab["current"]) {
|
||||
$class[] = 'hidden';
|
||||
}
|
||||
echo implode(' ', $class); ?>">
|
||||
<div class="display-inline-block margin-right-10"><a data-action="list-select-all" class="header-link" data-text-select-all="<?php _se('Select all'); ?>" data-text-clear-all="<?php _se('Clear selection'); ?>"><?php _se('Select all'); ?></a><span class="margin-left-10">·</span></div>
|
||||
|
||||
<div data-content="pop-selection" class="disabled sort-listing pop-btn header-link display-inline-block">
|
||||
|
@ -15,48 +25,42 @@ foreach($tabs as $tab) {
|
|||
<div class="pop-box-inner pop-box-menu">
|
||||
<ul>
|
||||
<?php
|
||||
if($tab['type'] == 'images') {
|
||||
?>
|
||||
if ($tab['type'] == 'images') {
|
||||
?>
|
||||
<li><a data-action="get-embed-codes"><?php _se('Get embed codes'); ?></a></li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
<?php
|
||||
if(in_array(G\get_route_name(), ['user', 'album']) and (array_key_exists('tools_available', $tab) ? in_array('album', $tab['tools_available']) : TRUE)) {
|
||||
?>
|
||||
if (in_array(G\get_route_name(), ['user', 'album']) and (array_key_exists('tools_available', $tab) ? in_array('album', $tab['tools_available']) : true)) {
|
||||
?>
|
||||
<li><a data-action="create-album"><?php _se('Create album'); ?></a></li>
|
||||
<li><a data-action="move"><?php _se('Move to album'); ?></a></li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
<?php
|
||||
if($tab['type'] == 'images') {
|
||||
?>
|
||||
if ($tab['type'] == 'images') {
|
||||
?>
|
||||
<?php
|
||||
if((array_key_exists('tools_available', $tab) ? in_array('category', $tab['tools_available']) : TRUE) and get_categories()) {
|
||||
?>
|
||||
if ((array_key_exists('tools_available', $tab) ? in_array('category', $tab['tools_available']) : true) and get_categories()) {
|
||||
?>
|
||||
<li><a data-action="assign-category"><?php _se('Assign category'); ?></a></li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
<?php
|
||||
if((array_key_exists('tools_available', $tab) ? in_array('flag', $tab['tools_available']) : TRUE)) {
|
||||
?>
|
||||
if ((array_key_exists('tools_available', $tab) ? in_array('flag', $tab['tools_available']) : true)) {
|
||||
?>
|
||||
<li><a data-action="flag-safe" class="hidden"><?php _se('Flag as safe'); ?></a></li>
|
||||
<li><a data-action="flag-unsafe" class="hidden"><?php _se('Flag as unsafe'); ?></a></li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if(is_allowed_to_delete_content() && (array_key_exists('tools_available', $tab) ? in_array('delete', $tab['tools_available']) : TRUE)) {
|
||||
?>
|
||||
} ?>
|
||||
<?php
|
||||
} ?>
|
||||
<?php
|
||||
if (is_allowed_to_delete_content() && (array_key_exists('tools_available', $tab) ? in_array('delete', $tab['tools_available']) : true)) {
|
||||
?>
|
||||
<li><a data-action="delete"><?php _se('Delete'); ?></a></li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
} ?>
|
||||
<li><a data-action="clear"><?php _se('Clear selection'); ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -64,5 +68,5 @@ foreach($tabs as $tab) {
|
|||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -12,6 +12,18 @@
|
|||
<?php G\Render\include_theme_file("snippets/tabs"); ?>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(e) {
|
||||
$("#upgrade-link").attr("data-action", "upgrade").removeAttr("href");
|
||||
var $currentTab = $("li.current", ".content-tabs");
|
||||
$(document).on("click", "#upgrade-link", function(e) {
|
||||
$("#upgrade-link").closest("li").removeClass("current");
|
||||
var $tab_menu = $("[data-action=tab-menu]");
|
||||
$tab_menu.find("[data-content=current-tab-label]").text($currentTab.text());
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
switch (get_dashboard()) {
|
||||
case 'stats':
|
||||
|
@ -66,44 +78,8 @@
|
|||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
<style>
|
||||
.btn-upgrade {
|
||||
line-height: inherit;
|
||||
}
|
||||
</style>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(document).on("click", "[data-action=upgrade]", function() {
|
||||
PF.fn.modal.call({
|
||||
template: $("[data-modal=form-upgrade]").html(),
|
||||
buttons: true,
|
||||
button_submit: "Upgrade now",
|
||||
ajax: {
|
||||
data: {action: 'upgrade'},
|
||||
deferred: {
|
||||
success: function(XHR) {
|
||||
window.location.href = XHR.responseJSON.redir.url;
|
||||
},
|
||||
error: function(XHR) {
|
||||
PF.fn.growl.call(XHR.responseJSON.error.message);
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div data-modal="form-upgrade" class="hidden" data-is-xhr data-submit-fn="CHV.fn.submit_upgradeToPaid" data-ajax-deferred="CHV.fn.complete_upgradeToPaid">
|
||||
<div class="text-align-center margin-top-30 margin-bottom-30">
|
||||
<img class="c8 replace-svg" src="<?php echo G\absolute_to_url(CHV_PATH_CONTENT_IMAGES_SYSTEM . 'default/logo.svg'); ?>" alt="Chevereto" height="auto">
|
||||
</div>
|
||||
<p>Upgrading to paid edition not only allows you to get all features, support and early access to all new additions and fixes. It also helps to keep development ongoing which is the most important asset of your purchase.</p>
|
||||
<p>Don't worry, we don't sell each paid feature as a separate plugin. Everything is included and we don't charge any yearly-based fees.</p>
|
||||
<p>You will need a <a href="https://chevereto.com/panel/license" target="_blank">license key</a> for this process. If you don't have a license you can <a href="https://chevereto.com/pricing" target="_blank">purchase</a> it right now.</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
@ -129,7 +105,7 @@
|
|||
<?php if (get_dashboard() == 'users') {
|
||||
?>
|
||||
<div class="header-content-right phone-float-none">
|
||||
<div class="list-selection">
|
||||
<div class="list-selection header--centering">
|
||||
<a class="header-link" data-modal="form" data-target="modal-add-user"><?php _se('Add user'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -197,7 +173,7 @@
|
|||
|
||||
<?php echo G\Render\get_input_auth_token(); ?>
|
||||
|
||||
<div class="header default-margin-bottom">
|
||||
<div class="header header--centering default-margin-bottom">
|
||||
<h1>
|
||||
<span class="icon icon-cog phablet-hide tablet-hide laptop-hide desktop-hide"></span>
|
||||
<span class="phone-hide"><?php echo get_dashboard_menu()[get_dashboard()]['label']; ?></span>
|
||||
|
@ -223,7 +199,7 @@
|
|||
<?php if (get_settings()['key'] == 'categories') {
|
||||
?>
|
||||
<div class="header-content-right phone-float-none">
|
||||
<div class="list-selection">
|
||||
<div class="list-selection header--centering">
|
||||
<a class="header-link" data-modal="form" data-target="modal-add-category"><?php _se('Add category'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -238,7 +214,7 @@
|
|||
<?php if (get_settings()['key'] == 'ip-bans') {
|
||||
?>
|
||||
<div class="header-content-right phone-float-none">
|
||||
<div class="list-selection">
|
||||
<div class="list-selection header--centering">
|
||||
<a class="header-link" data-modal="form" data-target="modal-add-ip_ban"><?php _se('Add IP ban'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -269,7 +245,7 @@
|
|||
break;
|
||||
} ?>
|
||||
<div class="header-content-right phone-hide">
|
||||
<div class="list-selection">
|
||||
<div class="list-selection header--centering">
|
||||
<a class="header-link" href="<?php echo G\get_base_url($pages_top_link['href']); ?>"><?php echo $pages_top_link['text']; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
if(is_dashboard_user()) {
|
||||
?>
|
||||
<div class="header-content-right phone-float-none">
|
||||
<div class="list-selection">
|
||||
<div class="list-selection header--centering">
|
||||
<a href="<?php echo get_user()['url']; ?>" class="header-link"><?php echo get_user()['username']; ?></a>
|
||||
<a class="delete-link margin-left-5" data-confirm="<?php _se("Do you really want to delete this user? This can't be undone."); ?>" data-submit-fn="CHV.fn.user.delete.submit" data-ajax-deferred="CHV.fn.complete_resource_delete" data-ajax-url="<?php echo G\get_base_url("json"); ?>"><?php _se('Delete user'); ?></a>
|
||||
</div>
|
||||
|
|
|
@ -106,7 +106,7 @@ html {
|
|||
* 16px 1em
|
||||
*/
|
||||
html, body {
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
color: #333;
|
||||
font-size: 16px;
|
||||
background: #FFF;
|
||||
|
@ -148,6 +148,9 @@ a {
|
|||
cursor: pointer;
|
||||
outline: 0;
|
||||
}
|
||||
a[role="button"]:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover, a:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
@ -391,6 +394,27 @@ input, textarea, select {
|
|||
border: 1px solid #CCC;
|
||||
}
|
||||
|
||||
/* Go home Chrome, you are drunk */
|
||||
input:-webkit-autofill,
|
||||
input:-webkit-autofill:hover,
|
||||
input:-webkit-autofill:focus,
|
||||
select:-webkit-autofill,
|
||||
select:-webkit-autofill:hover,
|
||||
select:-webkit-autofill:focus {
|
||||
-webkit-text-fill-color: inherit;
|
||||
-webkit-box-shadow: inset 0 0 0px 9999px transparent;
|
||||
transition: background-color 5000s ease-in-out 0s;
|
||||
}
|
||||
|
||||
.tone-dark input:-webkit-autofill,
|
||||
.tone-dark input:-webkit-autofill:hover,
|
||||
.tone-dark input:-webkit-autofill:focus,
|
||||
.tone-dark select:-webkit-autofill,
|
||||
.tone-dark select:-webkit-autofill:hover,
|
||||
.tone-dark select:-webkit-autofill:focus {
|
||||
-webkit-text-fill-color: #FFF;
|
||||
}
|
||||
|
||||
select {
|
||||
font: inherit;
|
||||
outline: none;
|
||||
|
@ -603,6 +627,15 @@ input:focus, textarea:focus, select:focus, input.search:focus, .input-focus {
|
|||
top: 50%;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.fancy-fieldset .input-password {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.fancy-fieldset .input-password-strength {
|
||||
right: 0;
|
||||
top: auto;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.input-password-strength {
|
||||
background: #E5E5E5;
|
||||
|
@ -619,7 +652,18 @@ input:focus, textarea:focus, select:focus, input.search:focus, .input-focus {
|
|||
|
||||
.input-password-strength span {
|
||||
width: 0%;
|
||||
background: #6EC02A;
|
||||
background-color: transparent;
|
||||
}
|
||||
.input-password-strength *[data-veredict="very-weak"] {
|
||||
background-color: #e74c3c;
|
||||
}
|
||||
.input-password-strength *[data-veredict="weak"] {
|
||||
background-color: #e67e22;
|
||||
}
|
||||
.input-password-strength *[data-veredict="average"],
|
||||
.input-password-strength *[data-veredict="strong"],
|
||||
.input-password-strength *[data-veredict="stronger"] {
|
||||
background-color: #2ecc71;
|
||||
}
|
||||
|
||||
/* Checkbox label */
|
||||
|
@ -635,7 +679,7 @@ input:focus, textarea:focus, select:focus, input.search:focus, .input-focus {
|
|||
.checkbox-label input {
|
||||
position: absolute;
|
||||
padding: 0;
|
||||
margin: 4px 0 0;
|
||||
margin: 2px 0 0;
|
||||
margin-left: -20px;
|
||||
}
|
||||
.btn-alt.checkbox-label input {
|
||||
|
@ -653,6 +697,10 @@ input:focus, textarea:focus, select:focus, input.search:focus, .input-focus {
|
|||
margin: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.fancy-box .checkbox-label label {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
/* Search input */
|
||||
.input-search {
|
||||
|
@ -2350,9 +2398,11 @@ textarea {
|
|||
.header-content-right {
|
||||
float: right;
|
||||
height: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
.phone .header-content-right {
|
||||
}
|
||||
.phone .header-content-right.phone-float-none {
|
||||
width: 100%;
|
||||
}
|
||||
.header-content-right .number-figures {
|
||||
margin-top: 14px;
|
||||
border-left: 1px solid #E5E5E5;
|
||||
|
@ -2363,18 +2413,10 @@ textarea {
|
|||
.header .header-link {
|
||||
font-size: 1em;
|
||||
display: inline-block;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.header > .header-link {
|
||||
/* line-height: 50px; */
|
||||
}
|
||||
.header > .header-link * {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.phone .header .header-link {
|
||||
}
|
||||
.header .pop-btn.breadcrum-item {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
@ -2382,9 +2424,6 @@ textarea {
|
|||
.header .user-image {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
/*position: relative;
|
||||
top: 50%;
|
||||
margin-top: -15px;*/
|
||||
margin-top: 10px;
|
||||
float: left;
|
||||
}
|
||||
|
@ -2667,6 +2706,17 @@ textarea {
|
|||
color: #CCC;
|
||||
}
|
||||
|
||||
.header--centering {
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-ms-flex-align: center;
|
||||
-webkit-align-items: center;
|
||||
-webkit-box-align: center;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.list-selection {
|
||||
overflow: visible;
|
||||
height: 50px;
|
||||
|
@ -2731,12 +2781,13 @@ textarea {
|
|||
display: table;
|
||||
width: 100%;
|
||||
}
|
||||
.table-li li {
|
||||
padding: 8px 0;
|
||||
.table-li > li {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 1px solid #E5E5E5;
|
||||
list-style: none !important;
|
||||
}
|
||||
.tone-dark .table-li li {
|
||||
.tone-dark .table-li > li {
|
||||
border-bottom-color: #212121;
|
||||
}
|
||||
|
||||
|
@ -2754,17 +2805,16 @@ textarea {
|
|||
background: none;
|
||||
}
|
||||
|
||||
.table-li ul {
|
||||
}
|
||||
.table-li ul li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.table-li ul li:hover {
|
||||
/*background: #F6F6F6;*/
|
||||
}
|
||||
.table-li ul li ul li:hover {
|
||||
/*background: #F3F3F3;*/
|
||||
}
|
||||
.phablet .table-li--mobile-display,
|
||||
.tablet .table-li--mobile-display,
|
||||
.laptop .table-li--mobile-display,
|
||||
.desktop .table-li--mobile-display,
|
||||
.largescreen .table-li--mobile-display {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/*
|
||||
* VIEWER
|
||||
|
@ -3014,6 +3064,13 @@ textarea {
|
|||
border: 0;
|
||||
}
|
||||
|
||||
|
||||
.text-overflow-ellipsis {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
min-width: 0;
|
||||
}
|
||||
/*
|
||||
* MOBILE MENU
|
||||
* ---------------------------------------------
|
||||
|
@ -3172,7 +3229,7 @@ body.upload-box-visible .upload-box {
|
|||
}
|
||||
.upload-box-heading h2,
|
||||
.upload-box-heading .heading {
|
||||
font-weight: lighter;
|
||||
font-weight: 200;
|
||||
font-size: 26px;
|
||||
margin: 10px 0;
|
||||
display: block;
|
||||
|
@ -4053,6 +4110,201 @@ img.user-image.size-40 , .default-user-image.size-40 {
|
|||
margin-right: 20px;
|
||||
}
|
||||
|
||||
/* menu boxes */
|
||||
[role=menu] {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
}
|
||||
.menu-box,
|
||||
[role=menu] > .menu-box {
|
||||
z-index: 300;
|
||||
}
|
||||
[role=menu] > .menu-box {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
max-height: 10px;
|
||||
display: block;
|
||||
visibility: hidden;
|
||||
transition: 250ms all ease-in-out;
|
||||
opacity: 0;
|
||||
transform: translateY(-5px);
|
||||
transform-origin: top;
|
||||
max-height: 100vh;
|
||||
}
|
||||
[role=menu].opened > .menu-box {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
[role=menu] > .menu-box {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-box {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.menu-box,
|
||||
.menu-box .menu-box-sub > ul,
|
||||
.menu-box .menu-box-sub > .sub {
|
||||
background: #FFF;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 0 15px 0 rgba(0,0,0,.2);
|
||||
color: #333;
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
position: absolute;
|
||||
top: 100%; /* Future Rodolfo: Remember that positions not /2 causes display issues in webkit + uhd */
|
||||
list-style: none;
|
||||
min-width: 190px; /* col-5 */
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.menu-box--static {
|
||||
position: static;
|
||||
max-width: 190px;
|
||||
}
|
||||
|
||||
.menu-box *:not(a),
|
||||
.menu-box [role*=button] {
|
||||
color: #333;
|
||||
}
|
||||
.tone-dark .menu-box *:not(a),
|
||||
.tone-dark .menu-box [role*=button] {
|
||||
color: #FFF;
|
||||
}
|
||||
.menu-box ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.float-left .menu-box, .pull-left .menu-box,
|
||||
menu-box.anchor-left {
|
||||
left: 0;
|
||||
}
|
||||
.float-right .menu-box, .pull-right .menu-box,
|
||||
.menu-box--anchor-right {
|
||||
right: 0;
|
||||
}
|
||||
.menu-box hr,
|
||||
.menu-box .separator,
|
||||
.menu-box [role=separator] {
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 0;
|
||||
border: 0;
|
||||
border-top: 1px solid #EBEBEB;
|
||||
}
|
||||
.menu-box--border-separators > * {
|
||||
border-bottom: 1px solid #EBEBEB;
|
||||
}
|
||||
.menu-box--border-separators > *:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
.menu-box--border-separators > hr {
|
||||
display: none;
|
||||
}
|
||||
.menu-box li,
|
||||
.menu-box .sub,
|
||||
.menu-box [role=box],
|
||||
.menu-box [role*=button] {
|
||||
padding: 10px;
|
||||
list-style: none;
|
||||
position: relative;
|
||||
line-height: 1.4;
|
||||
clear: both;
|
||||
min-height: 40px;
|
||||
display: block;
|
||||
}
|
||||
.menu-box [role=box] {
|
||||
cursor: default;
|
||||
}
|
||||
.menu-box [role*=button] {
|
||||
padding-left: 35px;
|
||||
border-left: 2px solid transparent;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-align: start;
|
||||
}
|
||||
.menu-box--multiline [role*=button] {
|
||||
white-space: normal;
|
||||
}
|
||||
.menu-box--noicons li:not([role=button]) {
|
||||
padding-left: 0;
|
||||
}
|
||||
.menu-box--noicons [role=button] {
|
||||
padding-left: 10px;
|
||||
color: inherit;
|
||||
}
|
||||
.menu-box [role=button]:hover {
|
||||
border-left-color: #A66BBE;
|
||||
}
|
||||
.menu-box .disabled[role=button] {
|
||||
cursor: not-allowed;
|
||||
background: none;
|
||||
border-color: transparent !important;
|
||||
opacity: .5;
|
||||
}
|
||||
.menu-box li.menu-box-sub {
|
||||
padding-right: 34px; /* 10 + 14 + 10 */
|
||||
}
|
||||
.menu-box .menu-box-sub > ul,
|
||||
.menu-box .menu-box-sub > .sub {
|
||||
display: none;
|
||||
}
|
||||
.menu-box .menu-box-sub:hover > ul,
|
||||
.menu-box .menu-box-sub:hover > .sub {
|
||||
display: block;
|
||||
}
|
||||
.menu-box [role*=button] > .icon,
|
||||
.menu-box li > .icon {
|
||||
font-size: 16px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
left: 8px; /* 10 - 2 */
|
||||
top: 50%;
|
||||
margin-top: -8px;
|
||||
}
|
||||
.menu-box .menu-box-sub > .icon {
|
||||
left: auto;
|
||||
right: 10px;
|
||||
}
|
||||
.menu-box .menu-box-sub ul,
|
||||
.menu-box .menu-box-sub .sub {
|
||||
cursor: default;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 100%;
|
||||
}
|
||||
.menu-box .meta {
|
||||
font-size: 0.93em;
|
||||
display: block;
|
||||
}
|
||||
.menu-box .empty {
|
||||
font-size: 1em;
|
||||
text-align: center;
|
||||
padding: 40px 20px;
|
||||
}
|
||||
.menu-box .empty > .icon {
|
||||
font-size: 64px;
|
||||
margin-bottom: 10px;
|
||||
display: block;
|
||||
color: #EBEBEB;
|
||||
position: static;
|
||||
}
|
||||
.menu-box a,
|
||||
.menu-box a:hover {
|
||||
/*text-decoration: none;*/
|
||||
}
|
||||
|
||||
/*
|
||||
* ARROW NAVIGATOR
|
||||
* ---------------------------------------------
|
||||
|
@ -4163,6 +4415,22 @@ img.user-image.size-40 , .default-user-image.size-40 {
|
|||
top: 10px;
|
||||
}
|
||||
|
||||
.flex-center {
|
||||
margin: auto;
|
||||
}
|
||||
.width-full {
|
||||
width: 100%;
|
||||
}
|
||||
.height-full {
|
||||
height: 100%;
|
||||
}
|
||||
.width-min-full {
|
||||
min-width: 100%;
|
||||
}
|
||||
.height-min-full {
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
/*
|
||||
* FULL SCREENESQUE
|
||||
* ---------------------------------------------
|
||||
|
@ -4329,6 +4597,33 @@ img.user-image.size-40 , .default-user-image.size-40 {
|
|||
height: 70px;
|
||||
resize: none;
|
||||
}
|
||||
.fancy-box {
|
||||
padding: 20px;
|
||||
background: #FFF;
|
||||
box-shadow: 0 5px 20px 0 rgba(0,0,0,.2);
|
||||
border-radius: 3px;
|
||||
}
|
||||
.tone-dark .fancy-box {
|
||||
color: #FFF;
|
||||
background-color: #0b0b0b;
|
||||
}
|
||||
.fancy-box p {
|
||||
margin-block-start: 1em;
|
||||
margin-block-end: 1em;
|
||||
}
|
||||
.fancy-box .or-separator {
|
||||
height: 1px;
|
||||
margin: 0;
|
||||
}
|
||||
/* .fancy-box p:last-child {
|
||||
margin-bottom: 0;
|
||||
} */
|
||||
/* .tone-dark .fancy-box .or-separator {
|
||||
border-color: #333;
|
||||
}
|
||||
.tone-dark .fancy-box .or-separator span {
|
||||
background-color: #1E1E1E;
|
||||
} */
|
||||
|
||||
/* Discard / commit changes */
|
||||
#fullscreen-changes-confirm {
|
||||
|
@ -4518,6 +4813,152 @@ img.user-image.size-40 , .default-user-image.size-40 {
|
|||
}*/
|
||||
}
|
||||
|
||||
/* Peafowl max static cols 24x30 = 950 */
|
||||
.col-1-min {
|
||||
min-width: 30px;
|
||||
}
|
||||
.col-2-min {
|
||||
min-width: 70px;
|
||||
}
|
||||
.col-3-min {
|
||||
min-width: 110px;
|
||||
}
|
||||
.col-4-min {
|
||||
min-width: 150px;
|
||||
}
|
||||
.col-5-min {
|
||||
min-width: 190px;
|
||||
}
|
||||
.col-6-min {
|
||||
min-width: 230px;
|
||||
}
|
||||
.col-7-min {
|
||||
min-width: 270px;
|
||||
}
|
||||
.col-8-min {
|
||||
min-width: 310px;
|
||||
}
|
||||
.col-9-min {
|
||||
min-width: 350px;
|
||||
}
|
||||
.col-10-min {
|
||||
min-width: 390px;
|
||||
}
|
||||
.col-11-min {
|
||||
min-width: 430px;
|
||||
}
|
||||
.col-12-min {
|
||||
min-width: 470px;
|
||||
}
|
||||
.col-13-min {
|
||||
min-width: 510px;
|
||||
}
|
||||
.col-14-min {
|
||||
min-width: 550px;
|
||||
}
|
||||
.col-15-min {
|
||||
min-width: 590px;
|
||||
}
|
||||
.col-16-min {
|
||||
min-width: 630px;
|
||||
}
|
||||
.col-17-min {
|
||||
min-width: 670px;
|
||||
}
|
||||
.col-18-min {
|
||||
min-width: 710px;
|
||||
}
|
||||
.col-19-min {
|
||||
min-width: 750px;
|
||||
}
|
||||
.col-20-min {
|
||||
min-width: 790px;
|
||||
}
|
||||
.col-21-min {
|
||||
min-width: 830px;
|
||||
}
|
||||
.col-22-min {
|
||||
min-width: 870px;
|
||||
}
|
||||
.col-23-min {
|
||||
min-width: 910px;
|
||||
}
|
||||
.col-24-min {
|
||||
min-width: 950px;
|
||||
}
|
||||
.col-1-max {
|
||||
max-width: 30px;
|
||||
}
|
||||
.col-2-max {
|
||||
max-width: 70px;
|
||||
}
|
||||
.col-3-max {
|
||||
max-width: 110px;
|
||||
}
|
||||
.col-4-max {
|
||||
max-width: 150px;
|
||||
}
|
||||
.col-5-max {
|
||||
max-width: 190px;
|
||||
}
|
||||
.col-6-max {
|
||||
max-width: 230px;
|
||||
}
|
||||
.col-7-max {
|
||||
max-width: 270px;
|
||||
}
|
||||
.col-8-max {
|
||||
max-width: 310px;
|
||||
}
|
||||
.col-9-max {
|
||||
max-width: 350px;
|
||||
}
|
||||
.col-10-max {
|
||||
max-width: 390px;
|
||||
}
|
||||
.col-11-max {
|
||||
max-width: 430px;
|
||||
}
|
||||
.col-12-max {
|
||||
max-width: 470px;
|
||||
}
|
||||
.col-13-max {
|
||||
max-width: 510px;
|
||||
}
|
||||
.col-14-max {
|
||||
max-width: 550px;
|
||||
}
|
||||
.col-15-max {
|
||||
max-width: 590px;
|
||||
}
|
||||
.col-16-max {
|
||||
max-width: 630px;
|
||||
}
|
||||
.col-17-max {
|
||||
max-width: 670px;
|
||||
}
|
||||
.col-18-max {
|
||||
max-width: 710px;
|
||||
}
|
||||
.col-19-max {
|
||||
max-width: 750px;
|
||||
}
|
||||
.col-20-max {
|
||||
max-width: 790px;
|
||||
}
|
||||
.col-21-max {
|
||||
max-width: 830px;
|
||||
}
|
||||
.col-22-max {
|
||||
max-width: 870px;
|
||||
}
|
||||
.col-23-max {
|
||||
max-width: 910px;
|
||||
}
|
||||
.col-24-max {
|
||||
max-width: 950px;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
|
||||
/* grid columns */
|
||||
|
@ -4583,9 +5024,6 @@ img.user-image.size-40 , .default-user-image.size-40 {
|
|||
.fluid-column.c23 { width: 95.789%; }
|
||||
.fluid-column.c24 { width: 100%; }
|
||||
|
||||
.top-btn-text .btn-text {
|
||||
/*display: inline;*/
|
||||
}
|
||||
.top-btn-text .btn-text {
|
||||
margin-left: 7px;
|
||||
}
|
||||
|
@ -4655,6 +5093,16 @@ img.user-image.size-40 , .default-user-image.size-40 {
|
|||
.height-100p { height: 100%; }
|
||||
.width-100p { width: 100%; }
|
||||
|
||||
.color-facebook { color: #3b5998; }
|
||||
.color-twitter { color: #1da1f2; }
|
||||
.color-google { color: #ea4335; }
|
||||
.color-vk { color: #45668e; }
|
||||
|
||||
.border-color-facebook { border-color: #3b5998; }
|
||||
.border-color-twitter { border-color: #1da1f2; }
|
||||
.border-color-google { border-color: #ea4335; }
|
||||
.border-color-vk { border-color: #45668e; }
|
||||
|
||||
.opacity-10 { opacity: .1; }
|
||||
.opacity-20 { opacity: .2; }
|
||||
.opacity-30 { opacity: .3; }
|
||||
|
@ -4740,6 +5188,11 @@ img.user-image.size-40 , .default-user-image.size-40 {
|
|||
.display-none-forced { display: none !important; }
|
||||
.display-block { display: block; }
|
||||
.display-block-forced { display: block !important;}
|
||||
.display-flex {
|
||||
display: -webkit-flex;
|
||||
display: -moz-flex;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.visibility-hidden {
|
||||
visibility: hidden;
|
||||
|
@ -4892,6 +5345,9 @@ img.user-image.size-40 , .default-user-image.size-40 {
|
|||
.text-transform-capitalize {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
.text-transform-uppercase {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* some defaults */
|
||||
.default-margin-top { margin-top: 20px; }
|
||||
|
|
Loading…
Reference in New Issue