Merge pull request #9039 from MrPetovan/task/frio-accent-scheme

[frio] Add accented schemes including dark scheme and black scheme
This commit is contained in:
Tobias Diekershoff 2020-08-20 07:01:40 +02:00 committed by GitHub
commit 0d1fa70e2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
28 changed files with 1471 additions and 846 deletions

View File

@ -105,6 +105,11 @@ function cal_content(App $a)
// get the translation strings for the callendar // get the translation strings for the callendar
$i18n = Event::getStrings(); $i18n = Event::getStrings();
DI::page()->registerStylesheet('view/asset/fullcalendar/dist/fullcalendar.min.css');
DI::page()->registerStylesheet('view/asset/fullcalendar/dist/fullcalendar.print.min.css', 'print');
DI::page()->registerFooterScript('view/asset/moment/min/moment-with-locales.min.js');
DI::page()->registerFooterScript('view/asset/fullcalendar/dist/fullcalendar.min.js');
$htpl = Renderer::getMarkupTemplate('event_head.tpl'); $htpl = Renderer::getMarkupTemplate('event_head.tpl');
DI::page()['htmlhead'] .= Renderer::replaceMacros($htpl, [ DI::page()['htmlhead'] .= Renderer::replaceMacros($htpl, [
'$module_url' => '/cal/' . $a->data['user']['nickname'], '$module_url' => '/cal/' . $a->data['user']['nickname'],

View File

@ -256,6 +256,11 @@ function events_content(App $a)
// get the translation strings for the callendar // get the translation strings for the callendar
$i18n = Event::getStrings(); $i18n = Event::getStrings();
DI::page()->registerStylesheet('view/asset/fullcalendar/dist/fullcalendar.min.css');
DI::page()->registerStylesheet('view/asset/fullcalendar/dist/fullcalendar.print.min.css', 'print');
DI::page()->registerFooterScript('view/asset/moment/min/moment-with-locales.min.js');
DI::page()->registerFooterScript('view/asset/fullcalendar/dist/fullcalendar.min.js');
$htpl = Renderer::getMarkupTemplate('event_head.tpl'); $htpl = Renderer::getMarkupTemplate('event_head.tpl');
DI::page()['htmlhead'] .= Renderer::replaceMacros($htpl, [ DI::page()['htmlhead'] .= Renderer::replaceMacros($htpl, [
'$module_url' => '/events', '$module_url' => '/events',

View File

@ -165,11 +165,10 @@ class Page implements ArrayAccess
* The path can be absolute or relative to the Friendica installation base folder. * The path can be absolute or relative to the Friendica installation base folder.
* *
* @param string $path * @param string $path
* * @param string $media
* @see Page::initHead() * @see Page::initHead()
*
*/ */
public function registerStylesheet($path) public function registerStylesheet($path, string $media = 'screen')
{ {
$path = Network::appendQueryParam($path, ['v' => FRIENDICA_VERSION]); $path = Network::appendQueryParam($path, ['v' => FRIENDICA_VERSION]);
@ -177,7 +176,7 @@ class Page implements ArrayAccess
$path = mb_substr($path, mb_strlen($this->basePath . DIRECTORY_SEPARATOR)); $path = mb_substr($path, mb_strlen($this->basePath . DIRECTORY_SEPARATOR));
} }
$this->stylesheets[] = trim($path, '/'); $this->stylesheets[trim($path, '/')] = $media;
} }
/** /**
@ -252,7 +251,7 @@ class Page implements ArrayAccess
'$shortcut_icon' => $shortcut_icon, '$shortcut_icon' => $shortcut_icon,
'$touch_icon' => $touch_icon, '$touch_icon' => $touch_icon,
'$block_public' => intval($config->get('system', 'block_public')), '$block_public' => intval($config->get('system', 'block_public')),
'$stylesheets' => array_unique($this->stylesheets), '$stylesheets' => $this->stylesheets,
]) . $this->page['htmlhead']; ]) . $this->page['htmlhead'];
} }

View File

@ -32,19 +32,17 @@ class Theme extends BaseModule
{ {
public static function rawContent(array $parameters = []) public static function rawContent(array $parameters = [])
{ {
header("Content-Type: text/css"); header('Content-Type: text/css');
$a = DI::app(); $theme = Strings::sanitizeFilePathItem($parameters['theme']);
if ($a->argc == 4) { if (file_exists("view/theme/$theme/theme.php")) {
$theme = $a->argv[2]; require_once "view/theme/$theme/theme.php";
$theme = Strings::sanitizeFilePathItem($theme); }
// set the path for later use in the theme styles // set the path for later use in the theme styles
$THEMEPATH = "view/theme/$theme"; if (file_exists("view/theme/$theme/style.php")) {
if (file_exists("view/theme/$theme/style.php")) { require_once "view/theme/$theme/style.php";
require_once("view/theme/$theme/style.php");
}
} }
exit(); exit();

View File

@ -1,9 +1,3 @@
<link rel="stylesheet" type="text/css" href="{{$baseurl}}/view/asset/fullcalendar/dist/fullcalendar.min.css?v={{$smarty.const.FRIENDICA_VERSION}}" />
<link rel="stylesheet" type="text/css" href="{{$baseurl}}/view/asset/fullcalendar/dist/fullcalendar.print.min.css?v={{$smarty.const.FRIENDICA_VERSION}}" media="print" />
<script type="text/javascript" src="{{$baseurl}}/view/asset/moment/min/moment-with-locales.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
<script type="text/javascript" src="{{$baseurl}}/view/asset/fullcalendar/dist/fullcalendar.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
<script> <script>
function showEvent(eventid) { function showEvent(eventid) {
$.get( $.get(

View File

@ -8,8 +8,8 @@
<link rel="stylesheet" href="view/asset/jquery-datetimepicker/build/jquery.datetimepicker.min.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen" /> <link rel="stylesheet" href="view/asset/jquery-datetimepicker/build/jquery.datetimepicker.min.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen" />
<link rel="stylesheet" href="view/asset/perfect-scrollbar/dist/css/perfect-scrollbar.min.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen" /> <link rel="stylesheet" href="view/asset/perfect-scrollbar/dist/css/perfect-scrollbar.min.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen" />
{{foreach $stylesheets as $stylesheetUrl}} {{foreach $stylesheets as $stylesheetUrl => $media}}
<link rel="stylesheet" href="{{$stylesheetUrl}}" type="text/css" media="screen" /> <link rel="stylesheet" href="{{$stylesheetUrl}}" type="text/css" media="{{$media}}" />
{{/foreach}} {{/foreach}}
<link rel="shortcut icon" href="{{$shortcut_icon}}" /> <link rel="shortcut icon" href="{{$shortcut_icon}}" />

View File

@ -32,14 +32,25 @@ function theme_post(App $a)
} }
if (isset($_POST['frio-settings-submit'])) { if (isset($_POST['frio-settings-submit'])) {
DI::pConfig()->set(local_user(), 'frio', 'scheme', $_POST['frio_scheme'] ?? ''); foreach ([
DI::pConfig()->set(local_user(), 'frio', 'nav_bg', $_POST['frio_nav_bg'] ?? ''); 'scheme',
DI::pConfig()->set(local_user(), 'frio', 'nav_icon_color', $_POST['frio_nav_icon_color'] ?? ''); 'scheme_accent',
DI::pConfig()->set(local_user(), 'frio', 'link_color', $_POST['frio_link_color'] ?? ''); 'nav_bg',
DI::pConfig()->set(local_user(), 'frio', 'background_color', $_POST['frio_background_color'] ?? ''); 'nav_icon_color',
DI::pConfig()->set(local_user(), 'frio', 'contentbg_transp', $_POST['frio_contentbg_transp'] ?? ''); 'link_color',
DI::pConfig()->set(local_user(), 'frio', 'background_image', $_POST['frio_background_image'] ?? ''); 'background_color',
DI::pConfig()->set(local_user(), 'frio', 'bg_image_option', $_POST['frio_bg_image_option'] ?? ''); 'contentbg_transp',
'background_image',
'bg_image_option',
'login_bg_image',
'login_bg_color'
] as $field) {
if (isset($_POST['frio_' . $field])) {
DI::pConfig()->set(local_user(), 'frio', $field, $_POST['frio_' . $field]);
}
}
DI::pConfig()->set(local_user(), 'frio', 'css_modified', time()); DI::pConfig()->set(local_user(), 'frio', 'css_modified', time());
} }
} }
@ -51,16 +62,24 @@ function theme_admin_post(App $a)
} }
if (isset($_POST['frio-settings-submit'])) { if (isset($_POST['frio-settings-submit'])) {
DI::config()->set('frio', 'scheme', $_POST['frio_scheme'] ?? ''); foreach ([
DI::config()->set('frio', 'nav_bg', $_POST['frio_nav_bg'] ?? ''); 'scheme',
DI::config()->set('frio', 'nav_icon_color', $_POST['frio_nav_icon_color'] ?? ''); 'scheme_accent',
DI::config()->set('frio', 'link_color', $_POST['frio_link_color'] ?? ''); 'nav_bg',
DI::config()->set('frio', 'background_color', $_POST['frio_background_color'] ?? ''); 'nav_icon_color',
DI::config()->set('frio', 'contentbg_transp', $_POST['frio_contentbg_transp'] ?? ''); 'link_color',
DI::config()->set('frio', 'background_image', $_POST['frio_background_image'] ?? ''); 'background_color',
DI::config()->set('frio', 'bg_image_option', $_POST['frio_bg_image_option'] ?? ''); 'contentbg_transp',
DI::config()->set('frio', 'login_bg_image', $_POST['frio_login_bg_image'] ?? ''); 'background_image',
DI::config()->set('frio', 'login_bg_color', $_POST['frio_login_bg_color'] ?? ''); 'bg_image_option',
'login_bg_image',
'login_bg_color'
] as $field) {
if (isset($_POST['frio_' . $field])) {
DI::config()->set('frio', $field, $_POST['frio_' . $field]);
}
}
DI::config()->set('frio', 'css_modified', time()); DI::config()->set('frio', 'css_modified', time());
} }
} }
@ -75,6 +94,7 @@ function theme_content(App $a)
$node_scheme = DI::config()->get('frio', 'scheme', DI::config()->get('frio', 'scheme')); $node_scheme = DI::config()->get('frio', 'scheme', DI::config()->get('frio', 'scheme'));
$arr['scheme'] = DI::pConfig()->get(local_user(), 'frio', 'scheme', DI::pConfig()->get(local_user(), 'frio', 'schema', $node_scheme)); $arr['scheme'] = DI::pConfig()->get(local_user(), 'frio', 'scheme', DI::pConfig()->get(local_user(), 'frio', 'schema', $node_scheme));
$arr['scheme_accent'] = DI::pConfig()->get(local_user(), 'frio', 'scheme_accent' , DI::config()->get('frio', 'scheme_accent'));
$arr['share_string'] = ''; $arr['share_string'] = '';
$arr['nav_bg'] = DI::pConfig()->get(local_user(), 'frio', 'nav_bg' , DI::config()->get('frio', 'nav_bg')); $arr['nav_bg'] = DI::pConfig()->get(local_user(), 'frio', 'nav_bg' , DI::config()->get('frio', 'nav_bg'));
$arr['nav_icon_color'] = DI::pConfig()->get(local_user(), 'frio', 'nav_icon_color' , DI::config()->get('frio', 'nav_icon_color')); $arr['nav_icon_color'] = DI::pConfig()->get(local_user(), 'frio', 'nav_icon_color' , DI::config()->get('frio', 'nav_icon_color'));
@ -95,6 +115,7 @@ function theme_admin(App $a)
$arr = []; $arr = [];
$arr['scheme'] = DI::config()->get('frio', 'scheme', DI::config()->get('frio', 'schema')); $arr['scheme'] = DI::config()->get('frio', 'scheme', DI::config()->get('frio', 'schema'));
$arr['scheme_accent'] = DI::config()->get('frio', 'scheme_accent');
$arr['share_string'] = ''; $arr['share_string'] = '';
$arr['nav_bg'] = DI::config()->get('frio', 'nav_bg'); $arr['nav_bg'] = DI::config()->get('frio', 'nav_bg');
$arr['nav_icon_color'] = DI::config()->get('frio', 'nav_icon_color'); $arr['nav_icon_color'] = DI::config()->get('frio', 'nav_icon_color');
@ -112,23 +133,23 @@ function theme_admin(App $a)
function frio_form($arr) function frio_form($arr)
{ {
require_once 'view/theme/frio/php/scheme.php'; require_once 'view/theme/frio/php/scheme.php';
require_once 'view/theme/frio/theme.php';
$scheme_info = get_scheme_info($arr['scheme']); $scheme_info = get_scheme_info($arr['scheme']);
$disable = $scheme_info['overwrites']; $disable = $scheme_info['overwrites'];
if (!is_array($disable)) {
$disable = [];
}
$scheme_choices = []; $schemes = [
$scheme_choices['---'] = DI::l10n()->t('Custom'); 'light' => DI::l10n()->t('Light (Accented)'),
$files = glob('view/theme/frio/scheme/*.php'); 'dark' => DI::l10n()->t('Dark (Accented)'),
if ($files) { 'black' => DI::l10n()->t('Black (Accented)'),
foreach ($files as $file) { ];
$f = basename($file, '.php');
if ($f != 'default') { $legacy_schemes = [];
$scheme_name = ucfirst($f); foreach (glob('view/theme/frio/scheme/*.php') ?: [] as $file) {
$scheme_choices[$f] = $scheme_name; $scheme = basename($file, '.php');
} if (!in_array($scheme, ['default', 'light', 'dark', 'black'])) {
$scheme_name = ucfirst($scheme);
$legacy_schemes[$scheme] = $scheme_name;
} }
} }
@ -138,13 +159,17 @@ function frio_form($arr)
$ctx = [ $ctx = [
'$submit' => DI::l10n()->t('Submit'), '$submit' => DI::l10n()->t('Submit'),
'$title' => DI::l10n()->t('Theme settings'), '$title' => DI::l10n()->t('Theme settings'),
'$scheme' => ['frio_scheme', DI::l10n()->t('Select color scheme'), $arr['scheme'], '', $scheme_choices], '$custom' => DI::l10n()->t('Custom'),
'$share_string' => ['frio_share_string', DI::l10n()->t('Copy or paste schemestring'), $arr['share_string'], DI::l10n()->t('You can copy this string to share your theme with others. Pasting here applies the schemestring'), false, false], '$legacy' => DI::l10n()->t('Legacy'),
'$accented' => DI::l10n()->t('Accented'),
'$scheme' => ['frio_scheme', DI::l10n()->t('Select color scheme'), $arr['scheme'], $schemes, $legacy_schemes],
'$scheme_accent' => !$scheme_info['accented'] ? '' : ['frio_scheme_accent', DI::l10n()->t('Select scheme accent'), $arr['scheme_accent'], ['blue' => DI::l10n()->t('Blue'), 'red' => DI::l10n()->t('Red'), 'purple' => DI::l10n()->t('Purple'), 'green' => DI::l10n()->t('Green'), 'pink' => DI::l10n()->t('Pink')]],
'$share_string' => $arr['scheme'] != '---' ? '' : ['frio_share_string', DI::l10n()->t('Copy or paste schemestring'), $arr['share_string'], DI::l10n()->t('You can copy this string to share your theme with others. Pasting here applies the schemestring'), false, false],
'$nav_bg' => array_key_exists('nav_bg', $disable) ? '' : ['frio_nav_bg', DI::l10n()->t('Navigation bar background color'), $arr['nav_bg'], '', false], '$nav_bg' => array_key_exists('nav_bg', $disable) ? '' : ['frio_nav_bg', DI::l10n()->t('Navigation bar background color'), $arr['nav_bg'], '', false],
'$nav_icon_color' => array_key_exists('nav_icon_color', $disable) ? '' : ['frio_nav_icon_color', DI::l10n()->t('Navigation bar icon color '), $arr['nav_icon_color'], '', false], '$nav_icon_color' => array_key_exists('nav_icon_color', $disable) ? '' : ['frio_nav_icon_color', DI::l10n()->t('Navigation bar icon color '), $arr['nav_icon_color'], '', false],
'$link_color' => array_key_exists('link_color', $disable) ? '' : ['frio_link_color', DI::l10n()->t('Link color'), $arr['link_color'], '', false], '$link_color' => array_key_exists('link_color', $disable) ? '' : ['frio_link_color', DI::l10n()->t('Link color'), $arr['link_color'], '', false],
'$background_color' => array_key_exists('background_color', $disable) ? '' : ['frio_background_color', DI::l10n()->t('Set the background color'), $arr['background_color'], '', false], '$background_color' => array_key_exists('background_color', $disable) ? '' : ['frio_background_color', DI::l10n()->t('Set the background color'), $arr['background_color'], '', false],
'$contentbg_transp' => array_key_exists('contentbg_transp', $disable) ? '' : ['frio_contentbg_transp', DI::l10n()->t('Content background opacity'), ($arr['contentbg_transp'] ?? 0) ?: 100, ''], '$contentbg_transp' => array_key_exists('contentbg_transp', $disable) ? '' : ['frio_contentbg_transp', DI::l10n()->t('Content background opacity'), $arr['contentbg_transp'] ?? 100, ''],
'$background_image' => array_key_exists('background_image', $disable) ? '' : ['frio_background_image', DI::l10n()->t('Set the background image'), $arr['background_image'], $background_image_help, false], '$background_image' => array_key_exists('background_image', $disable) ? '' : ['frio_background_image', DI::l10n()->t('Set the background image'), $arr['background_image'], $background_image_help, false],
'$bg_image_options_title' => DI::l10n()->t('Background image style'), '$bg_image_options_title' => DI::l10n()->t('Background image style'),
'$bg_image_options' => Image::get_options($arr), '$bg_image_options' => Image::get_options($arr),

View File

@ -1,302 +1,345 @@
.hovercard { .hovercard {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
z-index: 1040; z-index: 1040;
display: none; display: none;
/*max-width: 276px;*/ max-width: 400px;
max-width: 400px; padding: 1px;
padding: 1px; text-align: left;
text-align: left; background-color: #ffffff;
background-color: #ffffff; background-clip: padding-box;
background-clip: padding-box; border: 1px solid #cccccc;
border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.2);
border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 200px;
border-radius: 200px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); white-space: normal;
white-space: normal; }
}
.hovercard.top { .hovercard.top {
margin-top: -10px; margin-top: -10px;
} }
.hovercard.right {
margin-left: 10px; .hovercard.right {
} margin-left: 10px;
.hovercard.bottom { }
margin-top: 10px;
} .hovercard.bottom {
.hovercard.left { margin-top: 10px;
margin-left: -10px; }
}
.hovercard-title { .hovercard.left {
margin: 0; margin-left: -10px;
padding: 8px 14px; }
font-size: 14px;
font-weight: normal; .hovercard-title {
line-height: 18px; margin: 0;
background-color: #f7f7f7; padding: 8px 14px;
border-bottom: 1px solid #ebebeb; font-size: 14px;
border-radius: 199px 199px 0 0; font-weight: normal;
display: none; line-height: 18px;
} background-color: #f7f7f7;
.hovercard-content { border-bottom: 1px solid #ebebeb;
color: #777; border-radius: 199px 199px 0 0;
padding: 0; display: none;
} }
.hovercard > .arrow,
.hovercard > .arrow:after { .hovercard-content {
position: absolute; padding: 0;
display: block; }
width: 0;
height: 0; .hovercard > .arrow,
border-color: transparent; .hovercard > .arrow:after {
border-style: solid; position: absolute;
} display: block;
.hovercard > .arrow { width: 0;
border-width: 11px; height: 0;
} border-color: transparent;
.hovercard > .arrow:after { border-style: solid;
border-width: 10px; }
content: "";
} .hovercard > .arrow {
.hovercard.top > .arrow { border-width: 11px;
left: 50%; }
margin-left: -11px;
border-bottom-width: 0; .hovercard > .arrow:after {
border-top-color: #999999; border-width: 10px;
border-top-color: rgba(0, 0, 0, 0.25); content: "";
bottom: -11px; }
}
.hovercard.top > .arrow:after { .hovercard.top > .arrow {
content: " "; left: 50%;
bottom: 1px; margin-left: -11px;
margin-left: -10px; border-bottom-width: 0;
border-bottom-width: 0; border-top-color: #999999;
border-top-color: #ffffff; border-top-color: rgba(0, 0, 0, 0.25);
} bottom: -11px;
.hovercard.right > .arrow { }
top: 50%;
left: -11px; .hovercard.top > .arrow:after {
margin-top: -11px; content: " ";
border-left-width: 0; bottom: 1px;
border-right-color: #999999; margin-left: -10px;
border-right-color: rgba(0, 0, 0, 0.25); border-bottom-width: 0;
} border-top-color: #ffffff;
.hovercard.right > .arrow:after { }
content: " ";
left: 1px; .hovercard.right > .arrow {
bottom: -10px; top: 50%;
border-left-width: 0; left: -11px;
border-right-color: #ffffff; margin-top: -11px;
} border-left-width: 0;
.hovercard.bottom > .arrow { border-right-color: #999999;
left: 50%; border-right-color: rgba(0, 0, 0, 0.25);
margin-left: -11px; }
border-top-width: 0;
border-bottom-color: #999999; .hovercard.right > .arrow:after {
border-bottom-color: rgba(0, 0, 0, 0.25); content: " ";
top: -11px; left: 1px;
} bottom: -10px;
.hovercard.bottom > .arrow:after { border-left-width: 0;
content: " "; border-right-color: #ffffff;
top: 1px; }
margin-left: -10px;
border-top-width: 0; .hovercard.bottom > .arrow {
border-bottom-color: #ffffff; left: 50%;
} margin-left: -11px;
.hovercard.left > .arrow { border-top-width: 0;
top: 50%; border-bottom-color: #999999;
right: -11px; border-bottom-color: rgba(0, 0, 0, 0.25);
margin-top: -11px; top: -11px;
border-right-width: 0; }
border-left-color: #999999;
border-left-color: rgba(0, 0, 0, 0.25); .hovercard.bottom > .arrow:after {
} content: " ";
.hovercard.left > .arrow:after { top: 1px;
content: " "; margin-left: -10px;
right: 1px; border-top-width: 0;
border-right-width: 0; border-bottom-color: #ffffff;
border-left-color: #ffffff; }
bottom: -10px;
} .hovercard.left > .arrow {
top: 50%;
.right-aligned { right: -11px;
float: right !important; margin-top: -11px;
} border-right-width: 0;
.left-align { border-left-color: #999999;
float: left !important; border-left-color: rgba(0, 0, 0, 0.25);
} }
.hidden {
display: none !important; .hovercard.left > .arrow:after {
visibility: hidden !important; content: " ";
} right: 1px;
.hovercard h1, border-right-width: 0;
.hovercard .h1, border-left-color: #ffffff;
.hovercard h2, bottom: -10px;
.hovercard .h2, }
.hovercard h3,
.hovercard .h3 { .right-aligned {
margin: 0; float: right !important;
padding: 0; }
}
.hovercard h3 { .left-align {
font-size: 24px; float: left !important;
} }
.hovercard h4,
.hovercard .h4, .hidden {
.hovercard h5, display: none !important;
.hovercard .h5, visibility: hidden !important;
.hovercard h6, }
.hovercard .h6 {
margin: 0; .hovercard h1,
padding: 0; .hovercard .h1,
} .hovercard h2,
.hovercard h4.text-center { .hovercard .h2,
margin-top: 10px; .hovercard h3,
margin-bottom: 5px; .hovercard .h3 {
} margin: 0;
.hovercard sup { padding: 0;
top: 0; }
}
.hovercard small, .hovercard h3 {
.hovercard .small { font-size: 24px;
font-size: 85%; }
}
.hovercard ul, .hovercard h4,
.hovercard ol { .hovercard .h4,
margin: 0; .hovercard h5,
padding: 0; .hovercard .h5,
margin-bottom: 0; .hovercard h6,
} .hovercard .h6 {
.hovercard a:hover, margin: 0;
.hovercard a:active, padding: 0;
.hovercard a:focus, }
.hovercard a:visited {
text-decoration: none !important; .hovercard h4.text-center {
} margin-top: 10px;
margin-bottom: 5px;
}
/* Basic hovercard */
.basic-content { .hovercard sup {
padding: 9px; top: 0;
} }
.image-wrapper {
background: #fff; .hovercard small,
border: 2px #fff solid; .hovercard .small {
display: block; font-size: 85%;
overflow: hidden; }
}
.image-wrapper > a, .hovercard ul,
.image-wrapper > span { .hovercard ol {
background-size: 100% !important; margin: 0;
} padding: 0;
.image-wrapper.medium > a, margin-bottom: 0;
.image-wrapper.medium > span { }
content: " ";
display: block; .hovercard a:hover,
} .hovercard a:active,
.image-wrapper.medium > a img { .hovercard a:focus,
height: 80px; .hovercard a:visited {
width: 80px; text-decoration: none !important;
margin-bottom: 0; }
}
.hovercard {
-webkit-border-radius: 4px; /* Basic hovercard */
-moz-border-radius: 4px; .basic-content {
border-radius: 4px; padding: 9px;
/*max-width: 250px;*/ }
max-width: 400px;
width: 350px; .image-wrapper {
-webkit-box-shadow: 0 10px 100px rgba(0, 0, 0, 0.25); display: block;
-moz-box-shadow: 0 10px 100px rgba(0, 0, 0, 0.25); overflow: hidden;
box-shadow: 0 10px 100px rgba(0, 0, 0, 0.25); }
border: 1px solid rgba(0, 0, 0, 0);
} .image-wrapper > a,
.hovercard a:hover { .image-wrapper > span {
text-decoration: none; background-size: 100% !important;
} }
.hovercard.right > .arrow {
border-right-color: rgba(0, 0, 0, 0.05); .image-wrapper.medium > a,
} .image-wrapper.medium > span {
.hovercard.left > .arrow { content: " ";
border-left-color: rgba(0, 0, 0, 0.05); display: block;
} }
.hovercard.bottom > .arrow {
border-bottom-color: rgba(0, 0, 0, 0.05); .image-wrapper.medium > a img {
} height: 80px;
.hovercard.top > .arrow { width: 80px;
border-top-color: rgba(0, 0, 0, 0.05); margin-bottom: 0;
} }
.advance-hovercard + .hovercard {
max-width: 445px; .hovercard {
} -webkit-border-radius: 4px;
.advance-hovercard + .hovercard .hovercard-content { -moz-border-radius: 4px;
padding: 5px; border-radius: 4px;
} /*max-width: 250px;*/
max-width: 400px;
.basic-hovercard + .hovercard { width: 350px;
max-width: 445px; -webkit-box-shadow: 0 10px 100px rgba(0, 0, 0, 0.25);
} -moz-box-shadow: 0 10px 100px rgba(0, 0, 0, 0.25);
.basic-hovercard + .hovercard .hovercard-content { box-shadow: 0 10px 100px rgba(0, 0, 0, 0.25);
padding: 5px; border: 1px solid rgba(0, 0, 0, 0);
} }
.hover-card-header { .hovercard a:hover {
width: 100%; text-decoration: none;
} }
.hover-card-header h4 {
display: block; .hovercard.right > .arrow {
border-right-color: rgba(0, 0, 0, 0.05);
} }
.hover-card-header h4 a {
font-size: 18px; .hovercard.left > .arrow {
font-weight: bold; border-left-color: rgba(0, 0, 0, 0.05);
letter-spacing: 0.03rem; }
}
.hover-card-details { .hovercard.bottom > .arrow {
width: 100%; border-bottom-color: rgba(0, 0, 0, 0.05);
} }
.hover-card-pic {
margin-top: 0px; .hovercard.top > .arrow {
display: block; border-top-color: rgba(0, 0, 0, 0.05);
} }
.hover-card-pic .image-wrapper {
margin-right: 0.75em; .advance-hovercard + .hovercard {
float: left; max-width: 445px;
position: relative; }
}
.hover-card-content { .advance-hovercard + .hovercard .hovercard-content {
list-style-type: none; padding: 5px;
width: 100%; }
display: block;
background: #fff; .basic-hovercard + .hovercard {
padding: 0.3em 0 1em; max-width: 445px;
} }
.hover-card-content .profile-details {
font-size: 13px; .basic-hovercard + .hovercard .hovercard-content {
} padding: 5px;
.hover-card-content .profile-addr { }
overflow: hidden;
display: block; .hover-card-header {
text-overflow: ellipsis; width: 100%;
} }
.hovercard-content .hover-card-details .hover-card-content .profile-details > .profile-network a {
color: #777; .hover-card-header h4 {
} display: block;
.hover-card-actions {
display: flex; }
}
.hover-card-actions-connection { .hover-card-header h4 a {
margin-left: 10px; font-size: 18px;
} font-weight: bold;
.hovercard .hovercard-content .hover-card-actions a.btn { letter-spacing: 0.03rem;
display: inline-block; }
}
.hover-card-footer { .hover-card-details {
background-color: #f7f7f7; width: 100%;
border-top: 1px solid #ebebeb; }
padding: 0 10px;
} .hover-card-pic {
margin-top: 0px;
display: block;
}
.hover-card-pic .image-wrapper {
margin-right: 0.75em;
float: left;
position: relative;
}
.hover-card-content {
list-style-type: none;
width: 100%;
display: block;
padding: 0.3em 0 1em;
}
.hover-card-content .profile-details {
font-size: 13px;
}
.hover-card-content .profile-addr {
overflow: hidden;
display: block;
text-overflow: ellipsis;
}
.hover-card-actions {
display: flex;
}
.hover-card-actions-connection {
margin-left: 10px;
}
.hovercard .hovercard-content .hover-card-actions a.btn {
display: inline-block;
}
.hover-card-footer {
background-color: #f7f7f7;
border-top: 1px solid #ebebeb;
padding: 0 10px;
}

View File

@ -1,118 +0,0 @@
/**
* @file view/theme/frio/css/mod_event.css
*/
/**
* The different views of js fullcalendar
*/
#fc-header {
margin-top: 20px;
margin-bottom: 10px;
}
#fc-header-left,
#fc-header-right,
#event-calendar-title {
display: inline-block;
}
#fc-title {
margin: 0;
padding-left: 20px;
}
#fc-header-right {
margin-top: -4px;
}
#fc-header-right .dropdown > button {
color: inherit;
}
#event-calendar-title {
vertical-align: middle;
}
#event-calendar-views {
padding: 6px 9px;
font-size: 14px
}
.fc .fc-toolbar {
display: none;
}
.fc .fc-month-view td.fc-widget-content,
.fc .fc-list-view,
.fc .fc-list-view .fc-list-table td,
.fc .fc-body td {
border-style: none;
}
.fc td.fc-widget-header,
.fc th.fc-widget-header {
border-left: none;
border-right: none;
border-top: none;
}
.fc .fc-month-view td.fc-day {
border-left: none;
border-right: none;
border-bottom: 1px solid;
padding: 0 6px;
}
.fc .fc-day-grid-container .fc-row {
border-bottom: 1px solid;
border-color: #ddd;
}
.fc .fc-day-grid-event .fc-content {
/*white-space: normal;*/
}
.fc tr td.fc-today {
border-style: none;
}
.fc .fc-month-view .fc-content .fc-title .item-desc {
font-size: 11px;
}
.fc .fc-view-container {
margin-top: 25px;
}
.fc .fc-list-view td {
padding: 0;
}
#events-calendar.fc-ltr .fc-basic-view .fc-day-top .fc-day-number {
float: left;
font-size: 12px;
}
.fc .fc-event {
background-color: transparent;
background-color: #E3F2FD;
border: 1px solid #BBDEFB;
color: #555;
}
.fc .fc-month-view .fc-time,
.fc .fc-listMonth-view .fc-list-item-time,
.fc .fc-listMonth-view .fc-list-item-marker,
.fc .fc-listMonth-view .fc-widget-header {
display: none;
}
.fc .fc-listMonth-view .fc-list-item:hover td {
background: transparent;
cursor: pointer;
}
.fc .fc-listMonth-view .seperator {
margin-left: 30px;
width: 60px;
}
/**
* The event-card
*/
.event-card {
width: auto;
}
.event-card .event-label,
.event-card .location-label {
font-weight: bold;
}
.popover.event-card .event-card-basic-content {
margin-top: 0;
padding: 9px;
padding-left: 0px;
}
.event-card .event-hover-location .location {
color: #777;
font-size: 13px;
}

View File

@ -1,27 +1,8 @@
/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* /*
Created on : 17.02.2016, 23:55:45 Created on : 17.02.2016, 23:55:45
Author : rabuzarus Author : rabuzarus
*/ */
/* Imports */
/*@import url("frameworks/bootstrap/css/bootstrap.min.css");
@import url("frameworks/bootstrap/css/bootstrap-theme.min.css");
@import url("frameworks/font-awesome/css/font-awesome.min.css");
@import url("frameworks/jasny/css/jasny-bootstrap.min.css");
@import url("frameworks/bootstrap-select/css/bootstrap-select.min.css");
@import url("frameworks/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css");
@import url("frameworks/ekko-lightbox/ekko-lightbox.min.css");
@import url("frameworks/justifiedGallery/justifiedGallery.min.css");
@import url("frameworks/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css");
@import url("font/open_sans/open-sans.css");
@import url("css/hovercard.css");*/
body { body {
padding-top: 110px; padding-top: 110px;
background-color: $background_color; background-color: $background_color;
@ -29,8 +10,7 @@ body {
background-size: $background_size_img; background-size: $background_size_img;
background-repeat: $background_repeat; background-repeat: $background_repeat;
background-attachment: fixed; background-attachment: fixed;
color: #777; color: $font_color;
/*color: #555;*/
font-family: 'Open Sans',sans-serif; font-family: 'Open Sans',sans-serif;
} }
body.minimal { body.minimal {
@ -38,8 +18,6 @@ body.minimal {
} }
body a { body a {
/*color: #555;*/
/*color: #6fdbe8;*/
color: $link_color; color: $link_color;
text-decoration: none; text-decoration: none;
} }
@ -203,7 +181,7 @@ blockquote {
.btn-default { .btn-default {
background: #ededed; background: #ededed;
color: #7a7a7a; color: $font_color;
} }
.btn-sm { .btn-sm {
padding: 4px 8px; padding: 4px 8px;
@ -289,7 +267,6 @@ blockquote {
} }
.form-control-sm, .input-group-sm>.form-control, .input-group-sm>.input-group-addon, .input-group-sm>.input-group-btn>.btn { .form-control-sm, .input-group-sm>.form-control, .input-group-sm>.input-group-addon, .input-group-sm>.input-group-btn>.btn {
padding: .275rem .75rem; padding: .275rem .75rem;
/*font-size: .875rem;*/
line-height: 1.5; line-height: 1.5;
height: 30px; height: 30px;
border-radius: .2rem; border-radius: .2rem;
@ -418,7 +395,6 @@ header #banner #logo-img,
} }
.topbar .dropdown-header .dropdown-header-link a, .topbar .dropdown-header .dropdown-header-link a,
.topbar .dropdown-header .dropdown-header-link .btn-link { .topbar .dropdown-header .dropdown-header-link .btn-link {
/*color: #6fdbe8!important;*/
color: $link_color !important; color: $link_color !important;
font-size: 12px; font-size: 12px;
font-weight: 400 font-weight: 400
@ -440,12 +416,15 @@ nav.navbar .nav > li > button
{ {
color: $nav_icon_color; color: $nav_icon_color;
} }
#topbar-first .nav > .open > a,
#topbar-first .nav > .open > button
{
background-color: $nav_bg;
}
#topbar-first .nav > li > a:hover, #topbar-first .nav > li > a:hover,
#topbar-first .nav > li > a:focus, #topbar-first .nav > li > a:focus,
#topbar-first .nav > li > button:hover, #topbar-first .nav > li > button:not(#main-menu):hover,
#topbar-first .nav > li > button:focus, #topbar-first .nav > li > button:not(#main-menu):focus,
#topbar-first .nav > .open > a,
#topbar-first .nav > .open > button,
nav.navbar .nav > li > a:hover, nav.navbar .nav > li > a:hover,
nav.navbar .nav > li > a:focus nav.navbar .nav > li > a:focus
nav.navbar .nav > li > button:hover, nav.navbar .nav > li > button:hover,
@ -596,11 +575,11 @@ nav.navbar .nav > li > button:focus
max-height: 400px; max-height: 400px;
} }
#topbar-first #nav-notifications-menu a { #topbar-first #nav-notifications-menu a {
color: #555; color: $font_color_darker;
padding: 0; padding: 0;
} }
#topbar-first #nav-notifications-menu li.notif-entry { #topbar-first #nav-notifications-menu li.notif-entry {
color: #555; color: $font_color_darker;
padding: 10px; padding: 10px;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
position: relative; position: relative;
@ -614,23 +593,11 @@ nav.navbar .nav > li > button:focus
} }
#topbar-first #nav-notifications-menu li.notif-entry:hover { #topbar-first #nav-notifications-menu li.notif-entry:hover {
background-color: #f7f7f7; background-color: #f7f7f7;
/*border-left: 3px solid #6fdbe8;*/
border-left: 3px solid $link_color; border-left: 3px solid $link_color;
} }
/*#topbar-first #nav-notifications-menu i.accepted {
color: #6fdbe8!important
}
#topbar-first #nav-notifications-menu i.declined {
color: #ff8989!important
}*/
#topbar-first #nav-notifications-menu li.placeholder { #topbar-first #nav-notifications-menu li.placeholder {
border-bottom: none border-bottom: none
} }
#topbar-first #nav-notifications-menu .media .media-body {
font-size: 13px!important;
font-weight: 600!important;
cursor: pointer;
}
#topbar-first #nav-notifications-menu .media .media-body .contactname { #topbar-first #nav-notifications-menu .media .media-body .contactname {
font-weight: bold; font-weight: bold;
} }
@ -664,14 +631,6 @@ nav.navbar .nav > li > button:focus
#myNavmenu li.nav-sitename { #myNavmenu li.nav-sitename {
font-weight: bold; font-weight: bold;
} }
#topbar-first .dropdown.account > a,
#topbar-first .dropdown.account.open > a,
#topbar-first .dropdown.account > button,
#topbar-first .dropdown.account.open > button,
#topbar-first .dropdown.account > :hover,
#topbar-first .dropdown.account.open > :hover {
background-color: $nav_bg;
}
#topbar-first .dropdown.account li#nav-sitename { #topbar-first .dropdown.account li#nav-sitename {
padding-left: 15px; padding-left: 15px;
padding-right: 15px; padding-right: 15px;
@ -710,7 +669,7 @@ nav.navbar .nav > li > button:focus
-webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, .1); -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, .1);
-moz-box-shadow: 0 1px 10px rgba(0, 0, 0, .1); -moz-box-shadow: 0 1px 10px rgba(0, 0, 0, .1);
box-shadow: 0 1px 10px rgba(0, 0, 0, .1); box-shadow: 0 1px 10px rgba(0, 0, 0, .1);
border-bottom: 1px solid #d4d4d4 border-bottom: 1px solid #d4d4d4;
} }
#topbar-second > .container { #topbar-second > .container {
height: 100%; height: 100%;
@ -757,64 +716,6 @@ nav.navbar .nav > li > button:focus
display: none; display: none;
cursor: pointer cursor: pointer
} }
#topbar-second .nav>li>a {
padding: 6px 13px 0;
text-decoration: none;
text-shadow: none;
font-weight: 600;
font-size: 10px;
text-transform: uppercase;
text-align: center;
min-height: 49px
}
#topbar-second .nav>li>a:hover,
#topbar-second .nav>li>a:active,
#topbar-second .nav>li>a:focus {
/*border-bottom: 3px solid #6fdbe8;*/
border-bottom: 3px solid $link_color;
background-color: #f7f7f7;
color: #555;
text-decoration: none
}
#topbar-second .nav>li>a i {
font-size: 14px
}
#topbar-second .nav>li>a .caret {
border-top-color: #7a7a7a
}
#topbar-second .nav>li>ul>li>a {
border-left: 3px solid #fff;
background-color: #fff;
color: #555
}
#topbar-second .nav>li>ul>li>a:hover,
#topbar-second .nav>li>ul>li>a.active {
/*border-left: 3px solid #6fdbe8;*/
border-left: 3px solid $link_color;
background-color: #f7f7f7;
color: #555
}
#topbar-second .nav>li.active>a {
min-height: 46px
}
#topbar-second .nav>li>a#space-menu {
padding-right: 13px;
border-right: 1px solid #ededed
}
#topbar-second .nav>li>a#search-menu {
padding-top: 15px
}
#topbar-second .nav>li>a:hover,
#topbar-second .nav .open>a,
#topbar-second .nav>li.active {
/*border-bottom: 3px solid #6fdbe8;*/
border-left: 3px solid $link_color;
background-color: #f7f7f7;
color: #555
}
#topbar-second .nav>li.active>a:hover {
border-bottom: none
}
#topbar-second #space-menu-dropdown li>ul>li>a>.media .media-body p { #topbar-second #space-menu-dropdown li>ul>li>a>.media .media-body p {
color: #bebebe; color: #bebebe;
font-size: 11px; font-size: 11px;
@ -864,10 +765,10 @@ nav.navbar .nav > li > button:focus
border-bottom: none; border-bottom: none;
margin: 9px 1px!important margin: 9px 1px!important
} }
.nav-pills .dropdown-menu li, .nav-pills .dropdown-menu li > a,
.nav-tabs .dropdown-menu li, .nav-tabs .dropdown-menu li > a,
.account .dropdown-menu li, .account .dropdown-menu li > a,
.contact-photo-wrapper .dropdown-menu li { .contact-photo-wrapper .dropdown-menu li > a {
border-left: 3px solid $nav_bg; border-left: 3px solid $nav_bg;
} }
.nav-pills .dropdown-menu li a, .nav-pills .dropdown-menu li .btn-link, .nav-pills .dropdown-menu li a, .nav-pills .dropdown-menu li .btn-link,
@ -891,39 +792,20 @@ nav.navbar .nav > li > button:focus
display: inline-block; display: inline-block;
width: 14px width: 14px
} }
.nav-pills .dropdown-menu li a:hover, .nav-pills .dropdown-menu li .btn-link:hover, .nav-pills .dropdown-menu li > a:hover,
.nav-tabs .dropdown-menu li a:hover, .nav-tabs .dropdown-menu li .btn-link:hover, .nav-tabs .dropdown-menu li > a:hover,
.account .dropdown-menu li a:hover, .account .dropdown-menu li .btn-link:hover, .account .dropdown-menu li > a:hover,
.contact-photo-wrapper .dropdown-menu li a:hover, .contact-photo-wrapper .dropdown-menu li .btn-link:hover, .contact-photo-wrapper .dropdown-menu li > a:hover,
.nav-pills .dropdown-menu li a:visited, .nav-pills .dropdown-menu li .btn-link:visited, .nav-pills .dropdown-menu li.selected a,
.nav-tabs .dropdown-menu li a:visited, .nav-tabs .dropdown-menu li .btn-link:visited, .nav-tabs .dropdown-menu li.selected a,
.account .dropdown-menu li a:visited, .account .dropdown-menu li .btn-link:visited, .account .dropdown-menu li.selected a,
.contact-photo-wrapper .dropdown-menu li a:visited, .contact-photo-wrapper .dropdown-menu li .btn-link:visited, .contact-photo-wrapper .dropdown-menu li.selected a {
.nav-pills .dropdown-menu li a:hover, .nav-pills .dropdown-menu li .btn-link:hover,
.nav-tabs .dropdown-menu li a:hover, .nav-tabs .dropdown-menu li .btn-link:hover,
.account .dropdown-menu li a:hover, .account .dropdown-menu li .btn-link:hover,
.contact-photo-wrapper .dropdown-menu li a:hover, .contact-photo-wrapper .dropdown-menu li .btn-link:hover,
.nav-pills .dropdown-menu li a:focus, .nav-pills .dropdown-menu li .btn-link:focus,
.nav-tabs .dropdown-menu li a:focus, .nav-tabs .dropdown-menu li .btn-link:focus,
.account .dropdown-menu li a:focus, .account .dropdown-menu li .btn-link:focus,
.contact-photo-wrapper .dropdown-menu li a:focus, .contact-photo-wrapper .dropdown-menu li .btn-link:focus {
background: 0 0
}
.nav-pills .dropdown-menu li:hover,
.nav-tabs .dropdown-menu li:hover,
.account .dropdown-menu li:hover,
.contact-photo-wrapper .dropdown-menu li:hover,
.nav-pills .dropdown-menu li.selected,
.nav-tabs .dropdown-menu li.selected,
.account .dropdown-menu li.selected,
.contact-photo-wrapper .dropdown-menu li.selected {
/*border-left: 3px solid #6fdbe8;*/
border-left: 3px solid $link_color; border-left: 3px solid $link_color;
color: #fff!important; color: #fff;
background-color: $menu_background_hover_color !important; background: $menu_background_hover_color;
} }
#photo-edit-link-wrap { #photo-edit-link-wrap {
color: #555; color: $font_color_darker;
margin-bottom: 15px; margin-bottom: 15px;
} }
@ -940,9 +822,8 @@ nav.navbar .nav > li > button:focus
aside .widget, aside .widget,
.nav-container .widget { .nav-container .widget {
border: none; border: none;
color: #777; color: $font_color;
/*background-color: #fff;*/ background-color: rgba(255, 255, 255, $contentbg_transp);
background-color: rgba(255,255,255,$contentbg_transp);
box-shadow: 0 0 3px #dadada; box-shadow: 0 0 3px #dadada;
-webkit-box-shadow: 0 0 3px #dadada; -webkit-box-shadow: 0 0 3px #dadada;
-moz-box-shadow: 0 0 3px #dadada; -moz-box-shadow: 0 0 3px #dadada;
@ -968,7 +849,6 @@ aside .widget ul,
margin-bottom: 0px; margin-bottom: 0px;
margin-left: -10px; margin-left: -10px;
margin-right: -10px; margin-right: -10px;
/*padding-left: 10px;*/
list-style: none; list-style: none;
} }
@ -983,16 +863,14 @@ aside .widget li:hover,
aside .widget li.selected, aside .widget li.selected,
.nav-container .widget li:hover { .nav-container .widget li:hover {
z-index: 2; z-index: 2;
color: #555; color: $font_color_darker;
/*background-color: #f7f7f7;*/
background-color: rgba(247, 247, 247, $contentbg_transp); background-color: rgba(247, 247, 247, $contentbg_transp);
/*border-left: 3px solid #6fdbe8!important;*/
border-left: 3px solid $link_color !important; border-left: 3px solid $link_color !important;
padding-left: 17px; padding-left: 17px;
} }
aside .widget li a, aside .widget li a,
aside .widget li a:hover { aside .widget li a:hover {
color: #555; color: $font_color_darker;
} }
/* forumlist widget */ /* forumlist widget */
@ -1166,12 +1044,12 @@ aside .vcard #wallmessage-link {
font-weight: bold; font-weight: bold;
} }
#nav-short-info .contact-wrapper .media-heading a { #nav-short-info .contact-wrapper .media-heading a {
color: #555; color: $font_color_darker;
font-size: 14px !important; font-size: 14px !important;
} }
#vcard-short-desc > .vcard-short-addr, #vcard-short-desc > .vcard-short-addr,
#nav-short-info .contact-wrapper #contact-entry-url-network { #nav-short-info .contact-wrapper #contact-entry-url-network {
color: #777; color: $font_color;
font-size: 12px; font-size: 12px;
} }
.network-content-wrapper > #viewcontact_wrapper-network, .network-content-wrapper > #viewcontact_wrapper-network,
@ -1207,16 +1085,16 @@ div#sidebar-group-list {
} }
.group-edit-tool { .group-edit-tool {
color: #555; color: $font_color_darker;
} }
.faded-icon { .faded-icon {
color: #555; color: $font_color_darker;
opacity: 0.3; opacity: 0.3;
transition: all 0.1s ease-in-out; transition: all 0.1s ease-in-out;
} }
.faded-icon:hover { .faded-icon:hover {
color: #555; color: $font_color_darker;
opacity: 1; opacity: 1;
} }
.icon-padding { .icon-padding {
@ -1253,8 +1131,6 @@ aside #group-sidebar li .group-edit-tool:first-child {
.contact-block-div { .contact-block-div {
float: left; float: left;
margin: 0px 5px 5px 0px; margin: 0px 5px 5px 0px;
/* height: 90px;
width: 90px;*/
} }
.contact-block-link { .contact-block-link {
@ -1285,9 +1161,6 @@ section #jotOpen {
#jot-content { #jot-content {
display: none; display: none;
} }
.jothidden {
/*display: none;*/
}
.modal #jot-sections { .modal #jot-sections {
max-height: calc(100vh - 22px); max-height: calc(100vh - 22px);
} }
@ -1306,14 +1179,13 @@ section #jotOpen {
#jot-modal #item-Q0, #jot-modal #item-Q0,
#jot-modal #profile-jot-acl-wrapper, #jot-modal #profile-jot-acl-wrapper,
#jot-modal #acl-wrapper { #jot-modal #acl-wrapper {
overflow: hidden;
display: flex; display: flex;
flex: auto; flex: auto;
flex-direction: column; flex-direction: column;
} }
#jot-modal .modal-header a, #jot-modal .modal-header .btn-link, #jot-modal .modal-header a, #jot-modal .modal-header .btn-link,
#profile-jot-submit-wrapper a, #profile-jot-submit-wrapper .btn-link { #profile-jot-submit-wrapper a, #profile-jot-submit-wrapper .btn-link {
color: #555; color: $font_color_darker;
text-transform: capitalize; text-transform: capitalize;
} }
#jot-modal .modal-header { #jot-modal .modal-header {
@ -1334,9 +1206,6 @@ section #jotOpen {
overflow-y: auto !important; overflow-y: auto !important;
overflow-y: overlay !important; overflow-y: overlay !important;
} }
/*#jot-attachment-preview {
display: none;
}*/
#jot-text-wrap .preview textarea { #jot-text-wrap .preview textarea {
width: 100%; width: 100%;
} }
@ -1350,7 +1219,7 @@ section #jotOpen {
box-shadow: none; box-shadow: none;
border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px;
background: #fff; background: #fff;
color: #555; color: $font_color_darker;
} }
textarea#profile-jot-text:focus + #preview_profile-jot-text, textarea#profile-jot-text:focus + #preview_profile-jot-text,
textarea.comment-edit-text:focus + .comment-edit-form .preview { textarea.comment-edit-text:focus + .comment-edit-form .preview {
@ -1432,7 +1301,7 @@ textarea.comment-edit-text:focus + .comment-edit-form .preview {
padding: 0; padding: 0;
} }
.fbrowser .breadcrumb > li:last-of-type a{ .fbrowser .breadcrumb > li:last-of-type a{
color: #777; color: $font_color;
pointer-events: none; pointer-events: none;
cursor: default; cursor: default;
} }
@ -1462,14 +1331,14 @@ textarea.comment-edit-text:focus + .comment-edit-form .preview {
} }
.fbrowser .folders li:hover { .fbrowser .folders li:hover {
z-index: 2; z-index: 2;
color: #555; color: $font_color_darker;
background-color: rgba(247, 247, 247, $contentbg_transp); background-color: rgba(247, 247, 247, $contentbg_transp);
border-left: 3px solid $link_color !important; border-left: 3px solid $link_color;
padding-left: 17px; padding-left: 17px;
} }
.fbrowser .folders li a, .fbrowser .folders li a,
.fbrowser .folders li a:hover { .fbrowser .folders li a:hover {
color: #555; color: $font_color_darker;
font-size: 13px; font-size: 13px;
} }
.fbrowser .folders + .list { .fbrowser .folders + .list {
@ -1506,7 +1375,6 @@ textarea.comment-edit-text:focus + .comment-edit-form .preview {
*/ */
.panel { .panel {
border: none; border: none;
/*background-color: #fff;*/
background-color: rgba(255,255,255,$contentbg_transp); background-color: rgba(255,255,255,$contentbg_transp);
box-shadow: 0 0 3px #dadada; box-shadow: 0 0 3px #dadada;
-webkit-box-shadow: 0 0 3px #dadada; -webkit-box-shadow: 0 0 3px #dadada;
@ -1523,9 +1391,6 @@ textarea.comment-edit-text:focus + .comment-edit-form .preview {
.panel .panel-body { .panel .panel-body {
word-wrap: break-word; word-wrap: break-word;
} }
.panel .panel-body .wall-item-content {
color: #555;
}
.tread-wrapper .media { .tread-wrapper .media {
overflow: visible; overflow: visible;
word-wrap: break-word; word-wrap: break-word;
@ -1536,11 +1401,11 @@ aside .panel-body {
/* Thread hover effects */ /* Thread hover effects */
.desktop-view .wall-item-container .wall-item-content a, .desktop-view .wall-item-container .wall-item-content a,
.desktop-view .wall-item-container a, .desktop-view .wall-item-name,
.desktop-view .wall-item-container .fakelink, .desktop-view .wall-item-container .fakelink,
.desktop-view .toplevel_item .fakelink, .desktop-view .toplevel_item .fakelink,
.desktop-view .toplevel_item .wall-item-container .wall-item-responses a { .desktop-view .toplevel_item .wall-item-container .wall-item-responses a {
color: #555; color: $font_color;
-webkit-transition: all 0.25s ease-in-out; -webkit-transition: all 0.25s ease-in-out;
-moz-transition: all 0.25s ease-in-out; -moz-transition: all 0.25s ease-in-out;
-o-transition: all 0.25s ease-in-out; -o-transition: all 0.25s ease-in-out;
@ -1555,7 +1420,6 @@ aside .panel-body {
.wall-item-container:hover .wall-item-content a, .wall-item-container:hover .wall-item-content a,
.wall-item-container:hover .wall-item-name, .wall-item-container:hover .wall-item-name,
.wall-item-container:hover .wall-item-location a { .wall-item-container:hover .wall-item-location a {
/*color: #6fdbe8;*/
color: $link_color; color: $link_color;
-webkit-transition: all 0.25s ease-in-out; -webkit-transition: all 0.25s ease-in-out;
-moz-transition: all 0.25s ease-in-out; -moz-transition: all 0.25s ease-in-out;
@ -1655,7 +1519,7 @@ aside .panel-body {
.media .media-body h4.media-heading { .media .media-body h4.media-heading {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: #555; color: $font_color_darker;
} }
.media .media-body .addional-info a, .media .media-body h5.media-heading > a { .media .media-body .addional-info a, .media .media-body h5.media-heading > a {
display: block; display: block;
@ -1738,11 +1602,11 @@ aside .panel-body {
border-radius: 3px; border-radius: 3px;
} }
.wall-item-body .body-attach > a { .wall-item-body .body-attach > a {
color: #555; color: $font_color_darker;
display: inline-block; display: inline-block;
} }
.wall-item-body .body-attach > a div { .wall-item-body .body-attach > a div {
color: #555; color: $font_color_darker;
width: 20px; width: 20px;
} }
@ -1832,7 +1696,7 @@ code > .hl-main {
} }
.wall-item-tags a { .wall-item-tags a {
color: #555; color: $font_color_darker;
} }
.wall-item-tags a:hover { .wall-item-tags a:hover {
@ -1855,7 +1719,7 @@ code > .hl-main {
} }
.wall-item-actions a, .wall-item-actions button { .wall-item-actions a, .wall-item-actions button {
font-size: 13px; font-size: 13px;
color: #555; color: $font_color_darker;
} }
.wall-item-actions .active { .wall-item-actions .active {
font-weight: bold; font-weight: bold;
@ -1878,7 +1742,7 @@ code > .hl-main {
text-transform: capitalize; text-transform: capitalize;
} }
.wall-item-actions button:hover { .wall-item-actions button:hover {
color: #555; color: $font_color_darker;
text-decoration: underline; text-decoration: underline;
} }
.wall-item-actions .separator { .wall-item-actions .separator {
@ -1923,7 +1787,6 @@ code > .hl-main {
wall-item-comment-wrapper.well { wall-item-comment-wrapper.well {
border: none; border: none;
box-shadow: none; box-shadow: none;
/*background-color: #ededed;*/
background-color: rgba(237, 237, 237, $contentbg_transp); background-color: rgba(237, 237, 237, $contentbg_transp);
background-image: none; background-image: none;
margin-bottom: 1px; margin-bottom: 1px;
@ -1967,7 +1830,8 @@ wall-item-comment-wrapper.well hr {
padding: 10px; padding: 10px;
border-top: 1px solid rgba(255, 255, 255, 0.8); border-top: 1px solid rgba(255, 255, 255, 0.8);
background-color: rgba(0, 0, 0, 0.03); background-color: rgba(0, 0, 0, 0.03);
border-radius: 0 0 10px 10px; border-radius: 0 0 4px 4px;
margin-bottom: 0;
} }
.comment-fake-form { .comment-fake-form {
@ -1996,7 +1860,6 @@ wall-item-comment-wrapper.well hr {
/* acpopup + textcompletion*/ /* acpopup + textcompletion*/
.acpopup { .acpopup {
/* max-height: 150px; */
background-color: #ffffff; background-color: #ffffff;
border-radius: 4px; border-radius: 4px;
overflow: auto; overflow: auto;
@ -2004,13 +1867,12 @@ wall-item-comment-wrapper.well hr {
box-shadow: 0 6px 12px rgba(0,0,0,.175); box-shadow: 0 6px 12px rgba(0,0,0,.175);
} }
nav .acpopup { nav .acpopup {
/*top: 35px !important;*/
margin-left: -23px; margin-left: -23px;
} }
/** @todo: we schould consider the possebility to overwrite bootstrap dropdowns /** @todo: we schould consider the possebility to overwrite bootstrap dropdowns
at the beginning of this file to get rid of the !important */ at the beginning of this file to get rid of the !important */
.textcomplete-item > a { .textcomplete-item > a {
color: #555 !important; color: $font_color_darker !important;
padding: 5px 20px !important; padding: 5px 20px !important;
} }
.textcomplete-item.active > a { .textcomplete-item.active > a {
@ -2028,27 +1890,6 @@ img.acpopup-img {
/* The wall-item thread levels */ /* The wall-item thread levels */
/*.wall-item-container.thread_level_3 {
margin-left: 80px;
width: calc(100% - 90px);
}
.wall-item-container.thread_level_4 {
margin-left: 95px;
width: calc(100% - 105px);
}
.wall-item-container.thread_level_5 {
margin-left: 110px;
width: calc(100% - 120px);
}
.wall-item-container.thread_level_6 {
margin-left: 125px;
width: calc(100% - 135px);
}
.wall-item-container.thread_level_7 {
margin-left: 140px;
width: calc(100% - 150px);
}*/
.wall-item-container.thread_level_3, .wall-item-container.thread_level_3,
.wall-item-container.thread_level_4, .wall-item-container.thread_level_4,
.wall-item-container.thread_level_5, .wall-item-container.thread_level_5,
@ -2081,7 +1922,6 @@ moved it to the nav through js */
.tabbar, .tabbar,
.tabbar > li { .tabbar > li {
height: 100%; height: 100%;
/*margin-left: -15px;*/
padding: 0; padding: 0;
} }
#tabmenu .search-heading { #tabmenu .search-heading {
@ -2100,20 +1940,14 @@ ul.tabs li {
float: left; float: left;
margin: 0; margin: 0;
padding: 0; padding: 0;
/*border-bottom: 0 solid #6fdbe8;*/
border-bottom: 0 solid $link_color; border-bottom: 0 solid $link_color;
font-size: 13px; font-size: 13px;
height: 102%; height: 102%;
transition: all .15s ease; transition: all .15s ease;
} }
/*ul.tabs.visible-xs > li.active {
min-width: 150px; This is a workaround to make the topbar-second dropdown better visible on mobile. We need something better here
}*/
ul.tabs li a { ul.tabs li a {
margin-left: 10px; margin-left: 10px;
margin-right: 10px; margin-right: 10px;
/*color: #6fdbe8;*/
color: $link_color !important;
} }
ul.tabs li:hover, ul.tabs li.active { ul.tabs li:hover, ul.tabs li.active {
border-bottom-width: 4px; border-bottom-width: 4px;
@ -2158,13 +1992,12 @@ ul.dropdown-menu li:hover {
.media .location, .media .location,
.media .location a { .media .location a {
font-size: 11px; font-size: 11px;
color: #bebebe; color: $font_color_darker;
} }
.media-list > li { .media-list > li {
padding: 10px; padding: 10px;
border-bottom: 1px solid rgba(238, 238, 238, $contentbg_transp); border-bottom: 1px solid rgba(238, 238, 238, $contentbg_transp);
position: relative; position: relative;
/* border-left: 3px solid rgba(255,255,255,$contentbg_transp);*/
border-left: 3px solid rgba(255,255,255,0); border-left: 3px solid rgba(255,255,255,0);
font-size: 12px; font-size: 12px;
} }
@ -2177,7 +2010,6 @@ ul.dropdown-menu li:hover {
/* Forms */ /* Forms */
.form-control { .form-control {
border: 2px solid #ededed;
box-shadow: none; box-shadow: none;
} }
.form-control:focus { .form-control:focus {
@ -2185,11 +2017,31 @@ ul.dropdown-menu li:hover {
box-shadow: none; box-shadow: none;
} }
.radio label::before,
.checkbox label::before {
background-color: $background_color;
}
.radio label::after {
background-color: $link_color;
}
.checkbox label::after {
color: $link_color;
}
.checkbox input[type="checkbox"]:focus + label::before, .checkbox input[type="checkbox"]:focus + label::before,
.radio input[type="radio"]:focus + label::before { .radio input[type="radio"]:focus + label::before {
outline-color: $link_hover_color; outline-color: $link_hover_color;
} }
.help-block {
color: $font_color_darker;
}
input[type=range].form-control {
padding-left: 0;
padding-right: 0;
}
/* Search form */ /* Search form */
.form-control.form-search { .form-control.form-search {
border-radius: 30px; border-radius: 30px;
@ -2232,12 +2084,10 @@ ul.dropdown-menu li:hover {
padding-bottom: 20px; padding-bottom: 20px;
margin-bottom: 20px; margin-bottom: 20px;
border: none; border: none;
/*background-color: #fff;*/
background-color: rgba(255,255,255,$contentbg_transp); background-color: rgba(255,255,255,$contentbg_transp);
border-radius: 4px; border-radius: 4px;
position: relative; position: relative;
/*overflow: hidden;*/ color: $font_color_darker;
color: #555;
box-shadow: 0 0 3px #dadada; box-shadow: 0 0 3px #dadada;
-webkit-box-shadow: 0 0 3px #dadada; -webkit-box-shadow: 0 0 3px #dadada;
-moz-box-shadow: 0 0 3px #dadada; -moz-box-shadow: 0 0 3px #dadada;
@ -2262,12 +2112,10 @@ section > .generic-page-wrapper, .videos-content-wrapper,
padding-bottom: 20px; padding-bottom: 20px;
margin-bottom: 20px; margin-bottom: 20px;
border: none; border: none;
/*background-color: #fff;*/
background-color: rgba(255,255,255,$contentbg_transp); background-color: rgba(255,255,255,$contentbg_transp);
border-radius: 4px; border-radius: 4px;
position: relative; position: relative;
/*overflow: hidden;*/ color: $font_color_darker;
color: #555;
box-shadow: 0 0 3px #dadada; box-shadow: 0 0 3px #dadada;
-webkit-box-shadow: 0 0 3px #dadada; -webkit-box-shadow: 0 0 3px #dadada;
-moz-box-shadow: 0 0 3px #dadada; -moz-box-shadow: 0 0 3px #dadada;
@ -2312,12 +2160,6 @@ ul.viewcontact_wrapper {
ul.viewcontact_wrapper > li { ul.viewcontact_wrapper > li {
padding-left: 15px; padding-left: 15px;
} }
.contact-wrapper {
/* padding: 10px;
border-bottom: 1px solid rgba(238, 238, 238, $contentbg_transp);;
position: relative;*/
/*border-left: 3px solid white;*/
}
.contact-wrapper .contact-photo-wrapper button { .contact-wrapper .contact-photo-wrapper button {
padding: 0; padding: 0;
} }
@ -2356,7 +2198,7 @@ ul.viewcontact_wrapper > li {
} }
.contact-entry-desc { .contact-entry-desc {
color: #555; color: $font_color_darker;
} }
.contact-entry-checkbox { .contact-entry-checkbox {
margin-top: -20px; margin-top: -20px;
@ -2373,7 +2215,7 @@ ul.viewcontact_wrapper > li {
.contact-wrapper .contact-action-link:hover, .contact-wrapper .contact-action-link:hover,
.textcomplete-item .contact-wrapper .contact-action-link { .textcomplete-item .contact-wrapper .contact-action-link {
padding: 0 5px; padding: 0 5px;
color: #555; color: $font_color_darker;
border: 0; border: 0;
} }
.contact-wrapper .contact-action-link { .contact-wrapper .contact-action-link {
@ -2406,20 +2248,11 @@ ul li:hover .contact-wrapper .contact-action-link:hover {
} }
#contact-edit-status-wrapper { #contact-edit-status-wrapper {
border: none; border: none;
background-color: #E1F5FE; background-color: rgba(225, 245, 254, $contentbg_transp);
margin: 15px -15px; margin: 15px -15px;
} }
#contact-edit-tools {
margin-left: -15px;
margin-right: -15px;
}
#contact-edit-tools > .panel {
padding-left: 15px;
padding-right: 15px;
}
#contact-edit-settings { #contact-edit-settings {
display: block; display: block;
margin: 0;
} }
/* directory page */ /* directory page */
@ -2504,14 +2337,9 @@ ul li:hover .contact-wrapper .contact-action-link:hover {
overflow-y: auto; overflow-y: auto;
max-height: calc(100vh - 400px); max-height: calc(100vh - 400px);
max-height: auto; max-height: auto;
/*height: 500px;*/
margin-bottom: 0px; margin-bottom: 0px;
padding: 0 15px; padding: 0 15px;
} }
#mail-conversation.can-reply {
/* border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;*/
}
.mail-conv-wrapper .media .contact-photo-wrapper img { .mail-conv-wrapper .media .contact-photo-wrapper img {
height: 48px; height: 48px;
width: 48px; width: 48px;
@ -2524,10 +2352,6 @@ ul li:hover .contact-wrapper .contact-action-link:hover {
display:none; display:none;
} }
.mail-thread #prvmail-message-label textarea { .mail-thread #prvmail-message-label textarea {
/* border-top: none;
margin-top: -10px;
border-top-left-radius: 0px;
border-top-right-radius: 0px;*/
max-height: 120px; max-height: 120px;
} }
.mail-conv-wrapper { .mail-conv-wrapper {
@ -2538,7 +2362,6 @@ ul li:hover .contact-wrapper .contact-action-link:hover {
height: calc(100vh - 150px); height: calc(100vh - 150px);
} }
#message-preview { #message-preview {
/*padding: 0 10px;*/
height: calc(100% - 20px); height: calc(100% - 20px);
} }
#message-preview ul { #message-preview ul {
@ -2595,9 +2418,6 @@ ul li:hover .contact-wrapper .contact-action-link:hover {
color: $link_hover_color; color: $link_hover_color;
text-decoration: none; text-decoration: none;
} }
/*.event-date-wrapper.medium .event-hover-short-month {
color: $link_color;
}*/
.event-wrapper .event-owner { .event-wrapper .event-owner {
margin-bottom: 15px; margin-bottom: 15px;
} }
@ -2625,7 +2445,7 @@ ul li:hover .contact-wrapper .contact-action-link:hover {
padding-top: 15px; padding-top: 15px;
} }
#event-nav a { #event-nav a {
color: #555; color: $font_color_darker;
} }
#event-edit-form-wrapper #event-edit-time { #event-edit-form-wrapper #event-edit-time {
padding: 10px 0; padding: 10px 0;
@ -2682,7 +2502,7 @@ ul li:hover .contact-wrapper .contact-action-link:hover {
width: 100%; width: 100%;
padding: 0 5px 0 15px; padding: 0 5px 0 15px;
box-shadow: 1.5px 0 0 0 rgba(0, 0, 0, .1) inset; box-shadow: 1.5px 0 0 0 rgba(0, 0, 0, .1) inset;
color: #777; color: $font_color;
position: relative; position: relative;
} }
.event-card .event-card-content .event-map-btn { .event-card .event-card-content .event-map-btn {
@ -2693,7 +2513,7 @@ ul li:hover .contact-wrapper .contact-action-link:hover {
} }
.event-card .event-card-title { .event-card .event-card-title {
font-size: 14px; font-size: 14px;
color: #555; color: $font_color_darker;
line-height: 15px; line-height: 15px;
font-weight: bold; font-weight: bold;
margin: 0; margin: 0;
@ -2738,7 +2558,6 @@ ul li:hover .contact-wrapper .contact-action-link:hover {
top: 50%; top: 50%;
transform: translateZ(0); transform: translateZ(0);
transition: opacity .2s; transition: opacity .2s;
/*width: 27px;*/
width: 100px; width: 100px;
z-index: 11; z-index: 11;
font-size: 64px; font-size: 64px;
@ -2774,7 +2593,7 @@ ul li:hover .contact-wrapper .contact-action-link:hover {
position: relative; position: relative;
} }
.photo-comment-wrapper .wall-item-content { .photo-comment-wrapper .wall-item-content {
color: #555; color: $font_color_darker;
font-size: 13px; font-size: 13px;
} }
.photo-comment-wrapper .comment-wwedit-wrapper, .photo-comment-wrapper .comment-wwedit-wrapper,
@ -2841,8 +2660,7 @@ details.profile-jot-net[open] summary:before {
/* Emulates Bootstrap display */ /* Emulates Bootstrap display */
.settings-block { .settings-block {
margin: 0 0 5px; margin: 0 0 5px;
color: #333; background-color: rgba(255, 255, 255, $contentbg_transp);
background-color: rgba(255,255,255,0.95);
border-radius: 4px; border-radius: 4px;
padding: 10px 15px; padding: 10px 15px;
box-shadow: 0 0 3px #dadada; box-shadow: 0 0 3px #dadada;
@ -2927,7 +2745,7 @@ ul.notif-network-list > li {
.intro-wrapper button.intro-action-link:hover { .intro-wrapper button.intro-action-link:hover {
padding-right: 5px; padding-right: 5px;
padding-left: 5px; padding-left: 5px;
color: #555; color: $font_color_darker;
} }
ul li:hover .intro-wrapper button.intro-action-link { ul li:hover .intro-wrapper button.intro-action-link {
opacity: 0.8; opacity: 0.8;
@ -2938,13 +2756,11 @@ ul li:hover .intro-wrapper button.intro-action-link:hover {
} }
.intro-action-buttons { .intro-action-buttons {
margin-top: 15px; margin-top: 15px;
/*display: none;*/
max-height: 0px; max-height: 0px;
overflow: hidden; overflow: hidden;
transition: max-height 0.1s ease-out; transition: max-height 0.1s ease-out;
} }
ul.notif-network-list > li:hover .intro-action-buttons { ul.notif-network-list > li:hover .intro-action-buttons {
/*display: block;*/
max-height: 30px; max-height: 30px;
transition: max-height 0.1s ease-in; transition: max-height 0.1s ease-in;
} }
@ -2976,7 +2792,7 @@ ul.notif-network-list li.unseen {
.notif-item .notif-desc-wrapper a { .notif-item .notif-desc-wrapper a {
height: 100%; height: 100%;
display: block; display: block;
color: #555; color: $font_color_darker;
font-size: 13px; font-size: 13px;
font-weight: 600; font-weight: 600;
} }
@ -2994,12 +2810,10 @@ little modifications to emulate a standard page template */
margin: 0; margin: 0;
margin-bottom: 20px; margin-bottom: 20px;
border: none; border: none;
/*background-color: #fff;*/
background-color: rgba(255,255,255,$contentbg_transp); background-color: rgba(255,255,255,$contentbg_transp);
border-radius: 4px; border-radius: 4px;
position: relative; position: relative;
/*overflow: hidden;*/ color: $font_color_darker;
color: #555;
box-shadow: 0 0 3px #dadada; box-shadow: 0 0 3px #dadada;
-webkit-box-shadow: 0 0 3px #dadada; -webkit-box-shadow: 0 0 3px #dadada;
-moz-box-shadow: 0 0 3px #dadada; -moz-box-shadow: 0 0 3px #dadada;
@ -3073,7 +2887,7 @@ section.help-content-wrapper li {
margin-top: 2px; margin-top: 2px;
border: 1px solid #cccccc; border: 1px solid #cccccc;
border-radius: 3px; border-radius: 3px;
background-color: #fff; background-color: $background_color;
-webkit-transition: border 0.15s ease-in-out, color 0.15s ease-in-out; -webkit-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
-o-transition: border 0.15s ease-in-out, color 0.15s ease-in-out; -o-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
transition: border 0.15s ease-in-out, color 0.15s ease-in-out; transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
@ -3092,14 +2906,14 @@ section.help-content-wrapper li {
padding-left: 3px; padding-left: 3px;
padding-top: 1px; padding-top: 1px;
font-size: 11px; font-size: 11px;
color: #555555; color: $link_color;
} }
#adminpage .addon .desc { #adminpage .addon .desc {
padding-left: 10px; padding-left: 10px;
} }
.adminpage .admin-settings-action-link, .adminpage .admin-settings-action-link,
.adminpage .admin-settings-action-link:hover { .adminpage .admin-settings-action-link:hover {
color: #555; color: $font_color_darker;
} }
.adminpage .admin-settings-action-link:hover { .adminpage .admin-settings-action-link:hover {
opacity: 1; opacity: 1;
@ -3272,6 +3086,11 @@ body .tread-wrapper .hovercard:hover .hover-card-content a {
display: none; display: none;
} }
.pagination li > a,
.pager li > a {
background-color: rgba(255, 255, 255, $contentbg_transp);
}
/* /*
* some temporary workarounds until this will solved * some temporary workarounds until this will solved
* elsewhere (e.g. new templates) * elsewhere (e.g. new templates)
@ -3388,6 +3207,117 @@ section .profile-match-wrapper {
margin-top: 15px !important; margin-top: 15px !important;
} }
/**
* The different views of js fullcalendar
*/
#fc-header {
margin-top: 20px;
margin-bottom: 10px;
}
#fc-header-left,
#fc-header-right,
#event-calendar-title {
display: inline-block;
}
#fc-title {
margin: 0;
padding-left: 20px;
}
#fc-header-right {
margin-top: -4px;
}
#fc-header-right .dropdown > button {
color: inherit;
}
#event-calendar-title {
vertical-align: middle;
}
#event-calendar-views {
padding: 6px 9px;
font-size: 14px
}
.fc .fc-toolbar {
display: none;
}
.fc .fc-month-view td.fc-widget-content,
.fc .fc-list-view,
.fc .fc-list-view .fc-list-table td,
.fc .fc-body td {
border-style: none;
}
.fc td.fc-widget-header,
.fc th.fc-widget-header {
border-left: none;
border-right: none;
border-top: none;
}
.fc .fc-month-view td.fc-day {
border-left: none;
border-right: none;
border-bottom: 1px solid;
padding: 0 6px;
}
.fc .fc-day-grid-container .fc-row {
border-bottom: 1px solid;
border-color: #ddd;
}
.fc tr td.fc-today {
border-style: none;
}
.fc .fc-month-view .fc-content .fc-title .item-desc {
font-size: 11px;
}
.fc .fc-view-container {
margin-top: 25px;
}
.fc .fc-list-view td {
padding: 0;
}
#events-calendar.fc-ltr .fc-basic-view .fc-day-top .fc-day-number {
float: left;
font-size: 12px;
}
.fc .fc-event {
background-color: #E3F2FD;
border: 1px solid #BBDEFB;
color: $font_color_darker;
}
.fc .fc-month-view .fc-time,
.fc .fc-listMonth-view .fc-list-item-time,
.fc .fc-listMonth-view .fc-list-item-marker,
.fc .fc-listMonth-view .fc-widget-header {
display: none;
}
.fc .fc-listMonth-view .fc-list-item:hover td {
background: transparent;
cursor: pointer;
}
.fc .fc-listMonth-view .seperator {
margin-left: 30px;
width: 60px;
}
/**
* The event-card
*/
.event-card {
width: auto;
}
.event-card .event-label,
.event-card .location-label {
font-weight: bold;
}
.popover.event-card .event-card-basic-content {
margin-top: 0;
padding: 9px;
padding-left: 0px;
}
.event-card .event-hover-location .location {
color: $font_color;
font-size: 13px;
}
/* Medium devices (desktops, 992px and up) */ /* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) { @media (min-width: 992px) {
.mod-home.is-not-singleuser #content, .mod-home.is-not-singleuser #content,

View File

@ -702,7 +702,7 @@ function scrollToItem(elementId) {
scrollTop: itemPos scrollTop: itemPos
}, 400).promise().done( function() { }, 400).promise().done( function() {
// Highlight post/commenent with ID (GUID) // Highlight post/commenent with ID (GUID)
$el.animate(colWhite, 1000).animate(colShiny).animate(colWhite, 600); $el.animate(colWhite, 1000).animate(colShiny).animate({backgroundColor: 'transparent'}, 600);
}); });
} }

View File

@ -27,6 +27,7 @@
use Friendica\DI; use Friendica\DI;
use Friendica\Model\Profile; use Friendica\Model\Profile;
require_once 'view/theme/frio/theme.php';
require_once 'view/theme/frio/php/frio_boot.php'; require_once 'view/theme/frio/php/frio_boot.php';
// $minimal = is_modal(); // $minimal = is_modal();
@ -62,19 +63,15 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
if ($scheme && is_string($scheme) && $scheme != '---') { if ($scheme && is_string($scheme) && $scheme != '---') {
if (file_exists('view/theme/frio/scheme/' . $scheme . '.php')) { if (file_exists('view/theme/frio/scheme/' . $scheme . '.php')) {
$schemefile = 'view/theme/frio/scheme/' . $scheme . '.php'; $schemefile = 'view/theme/frio/scheme/' . $scheme . '.php';
$scheme_accent =
DI::pConfig()->get($uid, 'frio', 'scheme_accent') ?:
DI::config()->get('frio', 'scheme_accent') ?: FRIO_SCHEME_ACCENT_BLUE;
require_once $schemefile; require_once $schemefile;
} }
} else {
$nav_bg = DI::pConfig()->get($uid, 'frio', 'nav_bg');
} }
if (empty($nav_bg)) { $nav_bg = $nav_bg ?: DI::pConfig()->get($uid, 'frio', 'nav_bg', DI::config()->get('frio', 'nav_bg', '#708fa0'));
$nav_bg = DI::config()->get('frio', 'nav_bg');
}
if (empty($nav_bg) || !is_string($nav_bg)) {
$nav_bg = "#708fa0";
}
echo '<meta name="theme-color" content="' . $nav_bg . '" />'; echo '<meta name="theme-color" content="' . $nav_bg . '" />';
?> ?>

View File

@ -52,7 +52,8 @@ function get_scheme_info($scheme)
'description' => '', 'description' => '',
'author' => [], 'author' => [],
'version' => '', 'version' => '',
'overwrites' => [] 'overwrites' => [],
'accented' => false,
]; ];
if (!is_file($themepath . 'scheme/' . $scheme . '.php')) return $info; if (!is_file($themepath . 'scheme/' . $scheme . '.php')) return $info;
@ -84,6 +85,8 @@ function get_scheme_info($scheme)
foreach ($theme_settings as $key => $value) { foreach ($theme_settings as $key => $value) {
$info['overwrites'][$value] = true; $info['overwrites'][$value] = true;
} }
} elseif ($k == 'accented') {
$info['accented'] = $v && $v != 'false' && $v != 'no';
} else { } else {
if (array_key_exists($k, $info)) { if (array_key_exists($k, $info)) {
$info[$k] = $v; $info[$k] = $v;

View File

@ -0,0 +1,347 @@
/*
Licence : AGPL
Created on : 11.08.2020
Author : Hypolite Petovan <hypolite@friendica.mrpetovan.com>
*/
#topbar-first {
background-color: $background_color;
}
#topbar-first .dropdown.account > a,
#topbar-first .dropdown.account.open > a,
#topbar-first .dropdown.account > button,
#topbar-first .dropdown.account.open > button {
background: none;
}
#topbar-first #nav-notifications-menu li.notif-entry:hover {
background-color: $nav_bg;
}
#topbar-second {
background-color: $nav_bg;
border-color: $link_color;
}
#topbar-second ul.tabs li {
border_color: $link_color;
}
.dropdown-menu, .account .dropdown-menu {
background-color: $background_color;
}
.dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover {
color: $link_color;
}
.account .dropdown-menu li {
border-color: $background_color;
}
.dropdown-menu > li > a:focus, .dropdown-menu > li > a:hover {
background-image: none;
background-color: rgba(232, 232, 232, $contentbg_transp);
}
.breadcrumb,
.panel-footer,
.list-group-item {
background-color: rgba(245, 245, 245, $contentbg_transp);
}
.panel-group .panel-footer {
border-top: 1px solid $nav_bg;
}
.well {
background-image: none;
background-color: $nav_bg;
box-shadow: 0 0 3px #dadada;
-webkit-box-shadow: 0 0 3px #dadada;
border-color: #a0a0a0;
}
input[type=text],
input[type=submit],
button[type=submit]:not(.btn),
select,
textarea,
.form-control {
border: none;
background-color: $nav_bg;
color: $font_color;
box-shadow: 0 0 3px #dadada;
-webkit-box-shadow: 0 0 3px #dadada;
}
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
background-color: $background_color;
color: $font_color_darker;
}
.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover,
main .nav-tabs>li.active>a,
main .nav-tabs>li.active>a:focus,
main .nav-tabs>li.active>a:hover {
background-color: $nav_bg;
color: $font_color_darker;
}
.nav > li > a:focus, .nav > li > a:hover {
background-color: rgba(238, 238, 238, $contentbg_transp);
}
.modal-content {
background-color: $background_color;
}
.pager li > a,
.pager li > span {
border-color: #a0a0a0;
}
.pager li > a:focus,
.pager li > a:hover {
background-color: #303030;
}
.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
border-color: $link_color;
background-color: $nav_bg;
color: $font_color;
}
.pagination>li>a:hover, .pagination>li>span:hover {
background-color: $nav_bg;
}
#jotOpen {
border: none;
background-color: $background_color;
}
.close {
color: $font_color;
text-shadow: 0 1px 0 $nav_bg;
}
.close:focus, .close:hover {
color: $link_color;
}
.input-group-addon {
color: $font_color;
background-color: $nav_bg;
box-shadow: 0 0 3px #dadada;
-webkit-box-shadow: 0 0 3px #dadada;
border: none;
}
#topbar-first #nav-notifications-menu li.notif-entry,
.panel-footer,
.panel-group .panel-heading + .panel-collapse > .list-group,
.panel-group .panel-heading + .panel-collapse > .panel-body,
.wall-item-container,
.comment-fake-form {
border-color: $nav_bg;
}
.wall-item-comment-wrapper {
border: 0;
}
.badge {
background-color: $nav_bg;
}
.btn {
box-shadow: 0 0 2px #dadada;
-webkit-box-shadow: 0 0 2px #dadada;
background: none;
color: $font_color_darker;
}
.btn.focus, .btn:focus, .btn:hover {
color: $font_color;
}
.btn-default:focus, .btn-default:hover {
background: $nav_bg;
}
.btn-default.active, .btn-default:active {
background-color: $nav_bg;
color: $font_color;
}
button[type=submit]:not(.btn),
input[type=submit],
.btn.btn-primary {
border: 1px solid $link_color;
}
.label-primary {
background-color: $background_color;
color: $link_color;
}
.panel-default>.panel-heading {
background: none;
background-color: $nav_bg;
color: $font_color;
}
.btn-success,
.label-success,
.alert-success,
.panel-success > .panel-heading {
background: rgba(60, 118, 61, 0.4);
color: #dff0d8;
}
.fc .fc-event,
.btn-info,
.label-info,
.alert-info,
.panel-info > .panel-heading,
.table > tbody > tr.info > td,
.table > tbody > tr.info > th,
.table > tbody > tr > td.info,
.table > tbody > tr > th.info,
.table > tfoot > tr.info > td,
.table > tfoot > tr.info > th,
.table > tfoot > tr > td.info,
.table > tfoot > tr > th.info,
.table > thead > tr.info > td,
.table > thead > tr.info > th,
.table > thead > tr > td.info,
.table > thead > tr > th.info {
background: rgba(49, 112, 143, 0.4);
color: #d9edf7;
}
.btn-warning,
.label-warning,
.alert-warning,
.panel-warning > .panel-heading {
background: rgba(139, 109, 59, 0.4);
color: #fcf8e3;
}
.btn-danger,
.label-danger,
.alert-danger,
.panel-danger > .panel-heading {
background: rgba(169, 68, 66, 0.4);
color: #f2dede;
}
.wall-item-actions a, .wall-item-actions button {
color: $link_color;
}
@media (min-width: 768px) {
.wall-item-container .wall-item-links,
.wall-item-container .wall-item-actions button,
.wall-item-container .body-attach > a {
opacity: 0.3;
-webkit-transition: all 0.25s ease-in-out;
-moz-transition: all 0.25s ease-in-out;
-o-transition: all 0.25s ease-in-out;
-ms-transition: all 0.25s ease-in-out;
transition: all 0.25s ease-in-out;
color: $font_color;
}
.wall-item-container:hover .wall-item-links,
.wall-item-container:hover .wall-item-actions button,
.wall-item-container:hover .body-attach > a {
opacity: 1;
-webkit-transition: all 0.25s ease-in-out;
-moz-transition: all 0.25s ease-in-out;
-o-transition: all 0.25s ease-in-out;
-ms-transition: all 0.25s ease-in-out;
transition: all 0.25s ease-in-out;
color: $link_color;
}
.wall-item-container .wall-item-body .body-attach > a:hover {
opacity: 1;
}
}
.fc-unthemed td.fc-today {
background-color: $nav_bg;
}
.nav .open > .btn-link {
background-color: $nav_bg;
}
.hovercard {
box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}
.hovercard, .hover-card-footer {
background-color: $nav_bg;
}
.hovercard.top > .arrow:after {
border-top-color: $nav_bg;
}
.hovercard.right > .arrow:after {
border-right-color: $nav_bg;
}
.hovercard.bottom > .arrow:after {
border-bottom-color: $nav_bg;
}
.hovercard.left > .arrow:after {
border-left-color: $nav_bg;
}
.friendica-tagsinput .tag {
color: inherit;
}
code {
color: $font_color;
background-color: rgba(255, 255, 255, .2);
}
pre {
color: $font_color_darker;
background-color: rgba(255, 255, 255, .05);
}
legend {
color: $font_color;
}
.table-striped>tbody>tr:nth-of-type(odd),
.table-hover > tbody > tr:hover,
.adminpage .table-hover > tbody > tr:hover + tr.details {
background-color: $nav_bg;
}
section > .generic-page-wrapper,
.videos-content-wrapper,
.suggest-content-wrapper,
.help-content-wrapper,
.match-content-wrapper,
.dirfind-content-wrapper,
.delegation-content-wrapper,
.notes-content-wrapper,
.message-content-wrapper,
.apps-content-wrapper, #adminpage,
.delegate-content-wrapper,
.uexport-content-wrapper,
.dfrn_request-content-wrapper,
.friendica-content-wrapper,
.credits-content-wrapper,
.nogroup-content-wrapper,
.profperm-content-wrapper,
.invite-content-wrapper,
.tos-content-wrapper,
.fsuggest-content-wrapper,
.panel,
aside .widget,
.nav-container .widget{
box-shadow: 0 0 3px $link_color;
-webkit-box-shadow: 0 0 3px $link_color;
}

View File

@ -0,0 +1,21 @@
<?php
/*
* Name: Black
* Licence: AGPL
* Author: Hypolite Petovan <hypolite@friendica.mrpetovan.com>
* Overwrites: nav_bg, nav_icon_color, link_color, background_color, contentbg_transp
* Accented: yes
*/
require_once 'view/theme/frio/php/PHPColors/Color.php';
$accentColor = new Color($scheme_accent);
$menu_background_hover_color = '#' . $accentColor->darken(45);
$nav_bg = '#202020';
$link_color = '#' . $accentColor->lighten(10);
$nav_icon_color = '#d4d4d4';
$background_color = '#000000';
$contentbg_transp = '0';
$font_color = '#cccccc';
$font_color_darker = '#acacac';

View File

@ -0,0 +1,320 @@
/*
Licence : AGPL
Created on : 11.08.2020
Author : Hypolite Petovan <hypolite@friendica.mrpetovan.com>
*/
#topbar-first {
background-color: $background_color;
}
#topbar-first .dropdown.account > a,
#topbar-first .dropdown.account.open > a,
#topbar-first .dropdown.account > button,
#topbar-first .dropdown.account.open > button {
background: none;
}
#topbar-first #nav-notifications-menu li.notif-entry:hover {
background-color: $nav_bg;
}
#topbar-second {
background-color: $nav_bg;
border-color: $link_color;
}
#topbar-second ul.tabs li {
border_color: $link_color;
}
.dropdown-menu, .account .dropdown-menu {
background-color: $background_color;
}
.dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover {
color: $link_color;
}
.account .dropdown-menu li {
border-color: $background_color;
}
.dropdown-menu > li > a:focus, .dropdown-menu > li > a:hover {
background-image: none;
background-color: rgba(232, 232, 232, $contentbg_transp);
}
.breadcrumb,
.panel-footer,
.list-group-item {
background-color: rgba(245, 245, 245, $contentbg_transp);
}
.panel-group .panel-footer {
border-top: 1px solid $nav_bg;
}
.well {
background-image: none;
background-color: $nav_bg;
box-shadow: 0 0 3px #dadada;
-webkit-box-shadow: 0 0 3px #dadada;
}
input[type=text],
input[type=submit],
button[type=submit]:not(.btn),
select,
textarea,
.form-control {
border: none;
background-color: $nav_bg;
color: $font_color;
box-shadow: 0 0 3px #dadada;
-webkit-box-shadow: 0 0 3px #dadada;
}
.form-control[disabled],
.form-control[readonly],
.ieldset[disabled] .form-control {
background-color: $background_color;
color: $font_color_darker;
}
.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover,
main .nav-tabs>li.active>a,
main .nav-tabs>li.active>a:focus,
main .nav-tabs>li.active>a:hover {
background-color: $nav_bg;
color: $font_color_darker;
}
.nav > li > a:focus,
.nav > li > a:hover {
background-color: rgba(238, 238, 238, $contentbg_transp);
}
.modal-content {
background-color: $background_color;
}
.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
border-color: $link_color;
background-color: $nav_bg;
color: $font_color;
}
.pagination>li>a:hover,
.pagination>li>span:hover {
background-color: $nav_bg;
}
#jotOpen {
border: none;
background-color: $background_color;
}
.close {
color: $font_color;
text-shadow: 0 1px 0 $nav_bg;
}
.close:focus,
.close:hover {
color: $link_color;
}
.input-group-addon {
color: $font_color;
background-color: $nav_bg;
box-shadow: 0 0 3px #dadada;
-webkit-box-shadow: 0 0 3px #dadada;
border: none;
}
#topbar-first #nav-notifications-menu li.notif-entry,
.panel-footer,
.panel-group .panel-heading + .panel-collapse > .list-group,
.panel-group .panel-heading + .panel-collapse > .panel-body,
.wall-item-container,
.comment-fake-form {
border-color: $nav_bg;
}
.wall-item-comment-wrapper {
border: 0;
}
.badge {
background-color: $nav_bg;
}
.btn {
box-shadow: 0 0 2px #dadada;
-webkit-box-shadow: 0 0 2px #dadada;
background: none;
color: $font_color_darker;
}
.btn.focus,
.btn:focus,
.btn:hover {
color: $font_color;
}
.btn-default:focus,
.btn-default:hover {
background: $nav_bg;
}
.btn-default.active,
.btn-default:active {
background-color: $nav_bg;
color: $font_color;
}
button[type=submit]:not(.btn),
input[type=submit],
.btn.btn-primary {
border: 1px solid $link_color;
}
.label-primary {
background-color: $background_color;
color: $link_color;
}
.panel-default>.panel-heading {
background: none;
background-color: $nav_bg;
color: $font_color;
}
.btn-success,
.label-success,
.alert-success,
.panel-success > .panel-heading {
background: rgba(60, 118, 61, 0.4);
color: #dff0d8;
}
.fc .fc-event,
.btn-info,
.label-info,
.alert-info,
.panel-info > .panel-heading,
.table > tbody > tr.info > td,
.table > tbody > tr.info > th,
.table > tbody > tr > td.info,
.table > tbody > tr > th.info,
.table > tfoot > tr.info > td,
.table > tfoot > tr.info > th,
.table > tfoot > tr > td.info,
.table > tfoot > tr > th.info,
.table > thead > tr.info > td,
.table > thead > tr.info > th,
.table > thead > tr > td.info,
.table > thead > tr > th.info {
background: rgba(49, 112, 143, 0.4);
color: #d9edf7;
}
.btn-warning,
.label-warning,
.alert-warning,
.panel-warning > .panel-heading {
background: rgba(139, 109, 59, 0.4);
color: #fcf8e3;
}
.btn-danger,
.label-danger,
.alert-danger,
.panel-danger > .panel-heading {
background: rgba(169, 68, 66, 0.4);
color: #f2dede;
}
.wall-item-actions a,
.wall-item-actions button {
color: $link_color;
}
@media (min-width: 768px) {
.wall-item-container .wall-item-links,
.wall-item-container .wall-item-actions button,
.wall-item-container .body-attach > a {
opacity: 0.3;
-webkit-transition: all 0.25s ease-in-out;
-moz-transition: all 0.25s ease-in-out;
-o-transition: all 0.25s ease-in-out;
-ms-transition: all 0.25s ease-in-out;
transition: all 0.25s ease-in-out;
color: $font_color;
}
.wall-item-container:hover .wall-item-links,
.wall-item-container:hover .wall-item-actions button,
.wall-item-container:hover .body-attach > a {
opacity: 1;
-webkit-transition: all 0.25s ease-in-out;
-moz-transition: all 0.25s ease-in-out;
-o-transition: all 0.25s ease-in-out;
-ms-transition: all 0.25s ease-in-out;
transition: all 0.25s ease-in-out;
color: $link_color;
}
.wall-item-container .wall-item-body .body-attach > a:hover {
opacity: 1;
}
}
.fc-unthemed td.fc-today {
background-color: $nav_bg;
}
.nav .open > .btn-link {
background-color: $nav_bg;
}
.hovercard {
box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}
.hovercard,
.hover-card-footer {
background-color: $nav_bg;
}
.hovercard.top > .arrow:after {
border-top-color: $nav_bg;
}
.hovercard.right > .arrow:after {
border-right-color: $nav_bg;
}
.hovercard.bottom > .arrow:after {
border-bottom-color: $nav_bg;
}
.hovercard.left > .arrow:after {
border-left-color: $nav_bg;
}
.friendica-tagsinput .tag {
color: inherit;
}
code {
color: $font_color;
background-color: rgba(255, 255, 255, .2);
}
pre {
color: $font_color_darker;
background-color: rgba(255, 255, 255, .05);
}
legend {
color: $font_color;
}
.table-striped>tbody>tr:nth-of-type(odd),
.table-hover > tbody > tr:hover,
.adminpage .table-hover > tbody > tr:hover + tr.details {
background-color: $nav_bg;
}

View File

@ -0,0 +1,34 @@
<?php
/*
* Name: Dark
* Licence: AGPL
* Author: Hypolite Petovan <hypolite@friendica.mrpetovan.com>
* Overwrites: nav_bg, nav_icon_color, link_color, background_color, contentbg_transp
* Accented: yes
*/
require_once 'view/theme/frio/php/PHPColors/Color.php';
$accentColor = new Color($scheme_accent);
$menu_background_hover_color = '#' . $accentColor->darken(20);
switch ($scheme_accent) {
default:
$link_color = '#' . $accentColor->lighten(25);
}
$nav_icon_color = $scheme_accent;
$nav_icon_hover_color = '#' . $accentColor->darken(20);
switch ($scheme_accent) {
case FRIO_SCHEME_ACCENT_GREEN:
case FRIO_SCHEME_ACCENT_RED:
$nav_bg = '#' . $accentColor->darken(25);
$background_color = '#' . $accentColor->darken(27);
break;
default:
$nav_bg = '#' . $accentColor->darken(30);
$background_color = '#' . $accentColor->darken(33);
}
$contentbg_transp = 4;
$font_color = '#e4e4e4';
$font_color_darker = '#dcdcdc';

View File

@ -0,0 +1,20 @@
<?php
/*
* Name: Light
* Licence: AGPL
* Author: Hypolite Petovan <hypolite@friendica.mrpetovan.com>
* Overwrites: nav_bg, nav_icon_color, link_color, background_color, login_bg_color, contentbg_transp
* Accented: yes
*/
require_once 'view/theme/frio/php/PHPColors/Color.php';
$accentColor = new Color($scheme_accent);
$nav_bg = '#' . $accentColor->darken(10);
$menu_background_hover_color = '#' . $accentColor->darken(5);
$nav_icon_color = "#fff";
$link_color = '#' . $accentColor->getHex();
$background_color = "#ededed";
$login_bg_color = "#ededed";
$contentbg_transp = 100;

View File

@ -22,6 +22,7 @@
use Friendica\DI; use Friendica\DI;
use Friendica\Util\Strings; use Friendica\Util\Strings;
require_once 'view/theme/frio/theme.php';
require_once 'view/theme/frio/php/PHPColors/Color.php'; require_once 'view/theme/frio/php/PHPColors/Color.php';
$scheme = ''; $scheme = '';
@ -33,11 +34,12 @@ DI::config()->load('frio');
// Default to hard-coded values for empty settings // Default to hard-coded values for empty settings
$scheme = DI::config()->get('frio', 'scheme', DI::config()->get('frio', 'schema')); $scheme = DI::config()->get('frio', 'scheme', DI::config()->get('frio', 'schema'));
$scheme_accent = DI::config()->get('frio', 'scheme_accent') ?: FRIO_SCHEME_ACCENT_BLUE;
$nav_bg = DI::config()->get('frio', 'nav_bg') ?: '#708fa0'; $nav_bg = DI::config()->get('frio', 'nav_bg') ?: '#708fa0';
$nav_icon_color = DI::config()->get('frio', 'nav_icon_color') ?: '#ffffff'; $nav_icon_color = DI::config()->get('frio', 'nav_icon_color') ?: '#ffffff';
$link_color = DI::config()->get('frio', 'link_color') ?: '#6fdbe8'; $link_color = DI::config()->get('frio', 'link_color') ?: '#6fdbe8';
$background_color = DI::config()->get('frio', 'background_color') ?: '#ededed'; $background_color = DI::config()->get('frio', 'background_color') ?: '#ededed';
$contentbg_transp = DI::config()->get('frio', 'contentbg_transp') ?: ''; $contentbg_transp = DI::config()->get('frio', 'contentbg_transp') ?? 100;
$background_image = DI::config()->get('frio', 'background_image') ?: 'img/none.png'; $background_image = DI::config()->get('frio', 'background_image') ?: 'img/none.png';
$bg_image_option = DI::config()->get('frio', 'bg_image_option') ?: ''; $bg_image_option = DI::config()->get('frio', 'bg_image_option') ?: '';
$login_bg_image = DI::config()->get('frio', 'login_bg_image') ?: ''; $login_bg_image = DI::config()->get('frio', 'login_bg_image') ?: '';
@ -56,11 +58,12 @@ if ($uid) {
// Only override display settings that have actually been set // Only override display settings that have actually been set
$scheme = DI::pConfig()->get($uid, 'frio', 'scheme', DI::pConfig()->get($uid, 'frio', 'schema')) ?: $scheme; $scheme = DI::pConfig()->get($uid, 'frio', 'scheme', DI::pConfig()->get($uid, 'frio', 'schema')) ?: $scheme;
$scheme_accent = DI::pConfig()->get($uid, 'frio', 'scheme_accent') ?: $scheme_accent;
$nav_bg = DI::pConfig()->get($uid, 'frio', 'nav_bg') ?: $nav_bg; $nav_bg = DI::pConfig()->get($uid, 'frio', 'nav_bg') ?: $nav_bg;
$nav_icon_color = DI::pConfig()->get($uid, 'frio', 'nav_icon_color') ?: $nav_icon_color; $nav_icon_color = DI::pConfig()->get($uid, 'frio', 'nav_icon_color') ?: $nav_icon_color;
$link_color = DI::pConfig()->get($uid, 'frio', 'link_color') ?: $link_color; $link_color = DI::pConfig()->get($uid, 'frio', 'link_color') ?: $link_color;
$background_color = DI::pConfig()->get($uid, 'frio', 'background_color') ?: $background_color; $background_color = DI::pConfig()->get($uid, 'frio', 'background_color') ?: $background_color;
$contentbg_transp = DI::pConfig()->get($uid, 'frio', 'contentbg_transp') ?: $contentbg_transp; $contentbg_transp = DI::pConfig()->get($uid, 'frio', 'contentbg_transp') ?? $contentbg_transp;
$background_image = DI::pConfig()->get($uid, 'frio', 'background_image') ?: $background_image; $background_image = DI::pConfig()->get($uid, 'frio', 'background_image') ?: $background_image;
$bg_image_option = DI::pConfig()->get($uid, 'frio', 'bg_image_option') ?: $bg_image_option; $bg_image_option = DI::pConfig()->get($uid, 'frio', 'bg_image_option') ?: $bg_image_option;
$modified = DI::pConfig()->get($uid, 'frio', 'css_modified') ?: $modified; $modified = DI::pConfig()->get($uid, 'frio', 'css_modified') ?: $modified;
@ -123,7 +126,7 @@ if (!isset($nav_icon_hover_color)) {
if ($nihc->isLight()) { if ($nihc->isLight()) {
$nav_icon_hover_color = '#' . $nihc->darken(10); $nav_icon_hover_color = '#' . $nihc->darken(10);
} else { } else {
$nav_icon_hover_color = '#' . $nihc->lighten(10); $nav_icon_hover_color = '#' . $nihc->lighten(20);
} }
} }
if (!isset($link_hover_color)) { if (!isset($link_hover_color)) {
@ -184,7 +187,9 @@ $options = [
'$background_size_img' => $background_size_img, '$background_size_img' => $background_size_img,
'$background_repeat' => $background_repeat, '$background_repeat' => $background_repeat,
'$login_bg_image' => $login_bg_image, '$login_bg_image' => $login_bg_image,
'$login_bg_color' => $login_bg_color '$login_bg_color' => $login_bg_color,
'$font_color_darker' => $font_color_darker ?? '#555',
'$font_color' => $font_color ?? '#777',
]; ];
$css_tpl = file_get_contents('view/theme/frio/css/style.css'); $css_tpl = file_get_contents('view/theme/frio/css/style.css');

View File

@ -9,7 +9,7 @@
<div class="panel-group panel-group-settings" id="admin-settings" role="tablist" aria-multiselectable="true"> <div class="panel-group panel-group-settings" id="admin-settings" role="tablist" aria-multiselectable="true">
{{* The form for entering user profile which should be blocked *}} {{* The form for entering user profile which should be blocked *}}
<div class="panel"> <div class="panel">
<div class="section-subtitle-wrapper" role="tab" id="admin-settings-contactblock-block"> <div class="panel-heading section-subtitle-wrapper" role="tab" id="admin-settings-contactblock-block">
<h4> <h4>
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-contactblock-block-collapse" aria-expanded="false" aria-controls="admin-settings-contactblock-block-collapse"> <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-contactblock-block-collapse" aria-expanded="false" aria-controls="admin-settings-contactblock-block-collapse">
{{$h_newblock}} {{$h_newblock}}
@ -17,7 +17,7 @@
</h4> </h4>
</div> </div>
<div id="admin-settings-contactblock-block-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-contactblock-block"> <div id="admin-settings-contactblock-block-collapse" class="panel-body panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-contactblock-block">
<form action="{{$baseurl}}/admin/blocklist/contact" method="post"> <form action="{{$baseurl}}/admin/blocklist/contact" method="post">
<input type="hidden" name="form_security_token" value="{{$form_security_token}}"> <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
@ -34,7 +34,7 @@
{{* The list of blocked user profiles with the possibility to unblock them *}} {{* The list of blocked user profiles with the possibility to unblock them *}}
<div class="panel"> <div class="panel">
<div class="section-subtitle-wrapper" role="tab" id="admin-settings-contactblock-blocked"> <div class="panel-heading section-subtitle-wrapper" role="tab" id="admin-settings-contactblock-blocked">
<h4> <h4>
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-contactblock-blocked-collapse" aria-expanded="{{if count($contacts) > 0}}true{{else}}false{{/if}}" aria-controls="admin-settings-contactblock-blocked-collapse"> <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-contactblock-blocked-collapse" aria-expanded="{{if count($contacts) > 0}}true{{else}}false{{/if}}" aria-controls="admin-settings-contactblock-blocked-collapse">
{{$h_contacts}} ({{$total_contacts}}) {{$h_contacts}} ({{$total_contacts}})
@ -42,7 +42,7 @@
</h4> </h4>
</div> </div>
<div id="admin-settings-contactblock-blocked-collapse" class="panel-collapse collapse {{if count($contacts) > 0}}in{{/if}}" role="tabpanel" aria-labelledby="admin-settings-contactblock-blocked"> <div id="admin-settings-contactblock-blocked-collapse" class="panel-body panel-collapse collapse {{if count($contacts) > 0}}in{{/if}}" role="tabpanel" aria-labelledby="admin-settings-contactblock-blocked">
<form action="{{$baseurl}}/admin/blocklist/contact" method="post"> <form action="{{$baseurl}}/admin/blocklist/contact" method="post">
<input type="hidden" name="form_security_token" value="{{$form_security_token}}"> <input type="hidden" name="form_security_token" value="{{$form_security_token}}">

View File

@ -67,14 +67,14 @@
{{* Some information about the contact from the profile *}} {{* Some information about the contact from the profile *}}
<div class="panel"> <div class="panel">
<div class="section-subtitle-wrapper" role="tab" id="contact-edit-profile"> <div class="section-subtitle-wrapper panel-heading" role="tab" id="contact-edit-profile">
<h4> <h4>
<a class="accordion-toggle" data-toggle="collapse" data-parent="#contact-edit-tools" href="#contact-edit-profile-collapse" aria-expanded="true" aria-controls="contact-edit-profile-collapse"> <a class="accordion-toggle" data-toggle="collapse" data-parent="#contact-edit-tools" href="#contact-edit-profile-collapse" aria-expanded="true" aria-controls="contact-edit-profile-collapse">
{{$contact_profile_label}} {{$contact_profile_label}}
</a> </a>
</h4> </h4>
</div> </div>
<div id="contact-edit-profile-collapse" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="contact-edit-profile"> <div id="contact-edit-profile-collapse" class="panel-body panel-collapse collapse in" role="tabpanel" aria-labelledby="contact-edit-profile">
<div class="section-content-tools-wrapper"> <div class="section-content-tools-wrapper">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$profileurllabel}}</div><a target="blank" href="{{$url}}">{{$profileurl}}</a> <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$profileurllabel}}</div><a target="blank" href="{{$url}}">{{$profileurl}}</a>
@ -118,14 +118,14 @@
{{if $contact_settings_label}} {{if $contact_settings_label}}
<div class="panel"> <div class="panel">
<div class="section-subtitle-wrapper" role="tab" id="contact-edit-settings"> <div class="section-subtitle-wrapper panel-heading" role="tab" id="contact-edit-settings">
<h4> <h4>
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#contact-edit-tools" href="#contact-edit-settings-collapse" aria-expanded="false" aria-controls="contact-edit-settings-collapse"> <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#contact-edit-tools" href="#contact-edit-settings-collapse" aria-expanded="false" aria-controls="contact-edit-settings-collapse">
{{$contact_settings_label}} {{$contact_settings_label}}
</a> </a>
</h4> </h4>
</div> </div>
<div id="contact-edit-settings-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="contact-edit-settings"> <div id="contact-edit-settings-collapse" class="panel-body panel-collapse collapse" role="tabpanel" aria-labelledby="contact-edit-settings">
<div class="section-content-tools-wrapper"> <div class="section-content-tools-wrapper">
<input type="hidden" name="contact_id" value="{{$contact_id}}"> <input type="hidden" name="contact_id" value="{{$contact_id}}">
@ -137,7 +137,7 @@
{{/if}} {{/if}}
{{include file="field_checkbox.tpl" field=$hidden}} {{include file="field_checkbox.tpl" field=$hidden}}
<div class="form-group pull-right settings-submit-wrapper" > <div class="pull-right settings-submit-wrapper" >
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button> <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
@ -148,19 +148,19 @@
{{if $lbl_info1}} {{if $lbl_info1}}
<div class="panel"> <div class="panel">
<div class="section-subtitle-wrapper" role="tab" id="contact-edit-info"> <div class="section-subtitle-wrapper panel-heading" role="tab" id="contact-edit-info">
<h4> <h4>
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#contact-edit-tools" href="#contact-edit-info-collapse" aria-expanded="false" aria-controls="contact-edit-info-collapse"> <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#contact-edit-tools" href="#contact-edit-info-collapse" aria-expanded="false" aria-controls="contact-edit-info-collapse">
{{$lbl_info1}} {{$lbl_info1}}
</a> </a>
</h4> </h4>
</div> </div>
<div id="contact-edit-info-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="contact-edit-info"> <div id="contact-edit-info-collapse" class="panel-body panel-collapse collapse" role="tabpanel" aria-labelledby="contact-edit-info">
<div class="section-content-tools-wrapper"> <div class="section-content-tools-wrapper">
{{include file="field_textarea.tpl" field=$cinfo}} {{include file="field_textarea.tpl" field=$cinfo}}
<div class="form-group pull-right settings-submit-wrapper" > <div class="pull-right settings-submit-wrapper" >
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button> <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
</div> </div>
<div class="clear"></div> <div class="clear"></div>

View File

@ -1,9 +1,4 @@
<link rel="stylesheet" type="text/css" href="{{$baseurl}}/view/asset/fullcalendar/dist/fullcalendar.min.css?v={{$smarty.const.FRIENDICA_VERSION}}" />
<link rel="stylesheet" type="text/css" href="{{$baseurl}}/view/asset/fullcalendar/dist/fullcalendar.print.min.css?v={{$smarty.const.FRIENDICA_VERSION}}" media="print" />
<link rel="stylesheet" type="text/css" href="view/theme/frio/css/mod_events.css?v={{$smarty.const.FRIENDICA_VERSION}}" />
<script type="text/javascript" src="{{$baseurl}}/view/asset/moment/min/moment-with-locales.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
<script type="text/javascript" src="{{$baseurl}}/view/asset/fullcalendar/dist/fullcalendar.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
<script type="text/javascript" src="view/theme/frio/js/mod_events.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script> <script type="text/javascript" src="view/theme/frio/js/mod_events.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
<script type="text/javascript"> <script type="text/javascript">

View File

@ -1,6 +1,7 @@
<div class="form-group field textarea"> <div class="form-group field textarea">
{{if $field.1}}
<label for="id_{{$field.0}}">{{$field.1}}</label> <label for="id_{{$field.0}}">{{$field.1}}</label>
{{/if}}
<textarea class="form-control text-autosize" name="{{$field.0}}" id="id_{{$field.0}}" {{if $field.4}}{{$field.4 nofilter}}{{/if}} aria-describedby="{{$field.0}}_tip">{{$field.2}}</textarea> <textarea class="form-control text-autosize" name="{{$field.0}}" id="id_{{$field.0}}" {{if $field.4}}{{$field.4 nofilter}}{{/if}} aria-describedby="{{$field.0}}_tip">{{$field.2}}</textarea>
{{if $field.3}} {{if $field.3}}
<span class="help-block" id="{{$field.0}}_tip" role="tooltip">{{$field.3 nofilter}}</span> <span class="help-block" id="{{$field.0}}_tip" role="tooltip">{{$field.3 nofilter}}</span>

View File

@ -51,7 +51,7 @@
</div> </div>
<div class="upload"> <div class="upload">
<button id="upload-{{$type}}">{{$upload}}</button> <button id="upload-{{$type}}" type="button" class="btn btn-primary">{{$upload}}</button>
</div> </div>
</div> </div>

View File

@ -25,14 +25,14 @@
<link rel="stylesheet" href="view/theme/frio/frameworks/bootstrap-toggle/css/bootstrap-toggle.min.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen"/> <link rel="stylesheet" href="view/theme/frio/frameworks/bootstrap-toggle/css/bootstrap-toggle.min.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen"/>
<link rel="stylesheet" href="view/theme/frio/font/open_sans/open-sans.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen"/> <link rel="stylesheet" href="view/theme/frio/font/open_sans/open-sans.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen"/>
{{foreach $stylesheets as $stylesheetUrl}}
<link rel="stylesheet" href="{{$stylesheetUrl}}" type="text/css" media="screen" />
{{/foreach}}
{{* own css files *}} {{* own css files *}}
<link rel="stylesheet" href="view/theme/frio/css/hovercard.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen"/> <link rel="stylesheet" href="view/theme/frio/css/hovercard.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen"/>
<link rel="stylesheet" href="view/theme/frio/css/font-awesome.custom.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen"/> <link rel="stylesheet" href="view/theme/frio/css/font-awesome.custom.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen"/>
{{foreach $stylesheets as $stylesheetUrl => $media}}
<link rel="stylesheet" href="{{$stylesheetUrl}}" type="text/css" media="{{$media}}" />
{{/foreach}}
<link rel="shortcut icon" href="{{$shortcut_icon}}" /> <link rel="shortcut icon" href="{{$shortcut_icon}}" />
<link rel="apple-touch-icon" href="{{$touch_icon}}"/> <link rel="apple-touch-icon" href="{{$touch_icon}}"/>

View File

@ -44,9 +44,6 @@
{{/if}} {{/if}}
</div> </div>
<div class="panel-footer">
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
</div>
</div> </div>
</div> </div>

View File

@ -1,9 +1,55 @@
<script src="{{$baseurl}}/view/theme/quattro/jquery.tools.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script> <script src="{{$baseurl}}/view/theme/quattro/jquery.tools.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
<script type="text/javascript" src="{{$baseurl}}/view/js/ajaxupload.js?v={{$smarty.const.FRIENDICA_VERSION}}" ></script> <script type="text/javascript" src="{{$baseurl}}/view/js/ajaxupload.js?v={{$smarty.const.FRIENDICA_VERSION}}" ></script>
{{include file="field_select.tpl" field=$scheme}} <div class="form-group field select">
<label for="id_{{$scheme.0}}">{{$scheme.1}}</label>
<select name="{{$scheme.0}}" id="id_{{$scheme.0}}" class="form-control">
<option value="---" {{if '---' == $scheme.2}}selected="selected"{{/if}}>{{$custom}}</option>
<optgroup label="{{$accented}}">
{{foreach $scheme.3 as $value => $label}}
<option value="{{$value}}" {{if $value == $scheme.2}}selected="selected"{{/if}}>{{$label}}</option>
{{/foreach}}
</optgroup>
<optgroup label="{{$legacy}}">
{{foreach $scheme.4 as $value => $label}}
<option value="{{$value}}" {{if $value == $scheme.2}}selected="selected"{{/if}}>{{$label}}</option>
{{/foreach}}
</optgroup>
</select>
</div>
{{if $nav_bg}}{{include file="field_input.tpl" field=$share_string}}{{/if}} {{if $scheme_accent}}
<div class="form-group">
<p><label>{{$scheme_accent.1}}</label></p>
<label class="radio-inline">
<input type="radio" name="{{$scheme_accent.0}}" value="{{$smarty.const.FRIO_SCHEME_ACCENT_BLUE}}" {{if $scheme_accent.2 == $smarty.const.FRIO_SCHEME_ACCENT_BLUE}} checked{{/if}}>
<span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_BLUE}}; width: 20px; display: inline-block">&nbsp;</span>
{{$scheme_accent.3.blue}}
</label>
<label class="radio-inline">
<input type="radio" name="{{$scheme_accent.0}}" value="{{$smarty.const.FRIO_SCHEME_ACCENT_RED}}" {{if $scheme_accent.2 == $smarty.const.FRIO_SCHEME_ACCENT_RED}} checked{{/if}}>
<span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_RED}}; width: 20px; display: inline-block">&nbsp;</span>
{{$scheme_accent.3.red}}
</label>
<label class="radio-inline">
<input type="radio" name="{{$scheme_accent.0}}" value="{{$smarty.const.FRIO_SCHEME_ACCENT_PURPLE}}" {{if $scheme_accent.2 == $smarty.const.FRIO_SCHEME_ACCENT_PURPLE}} checked{{/if}}>
<span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_PURPLE}}; width: 20px; display: inline-block">&nbsp;</span>
{{$scheme_accent.3.purple}}
</label>
<label class="radio-inline">
<input type="radio" name="{{$scheme_accent.0}}" value="{{$smarty.const.FRIO_SCHEME_ACCENT_GREEN}}" {{if $scheme_accent.2 == $smarty.const.FRIO_SCHEME_ACCENT_GREEN}} checked{{/if}}>
<span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_GREEN}}; width: 20px; display: inline-block">&nbsp;</span>
{{$scheme_accent.3.green}}
</label>
<label class="radio-inline">
<input type="radio" name="{{$scheme_accent.0}}" value="{{$smarty.const.FRIO_SCHEME_ACCENT_PINK}}" {{if $scheme_accent.2 == $smarty.const.FRIO_SCHEME_ACCENT_PINK}} checked{{/if}}>
<span style="border-radius: 10px; background-color: {{$smarty.const.FRIO_SCHEME_ACCENT_PINK}}; width: 20px; display: inline-block">&nbsp;</span>
{{$scheme_accent.3.pink}}
</label>
</div>
{{/if}}
{{if $share_string}}{{include file="field_input.tpl" field=$share_string}}{{/if}}
{{if $nav_bg}}{{include file="field_colorinput.tpl" field=$nav_bg}}{{/if}} {{if $nav_bg}}{{include file="field_colorinput.tpl" field=$nav_bg}}{{/if}}
{{if $nav_icon_color}}{{include file="field_colorinput.tpl" field=$nav_icon_color}}{{/if}} {{if $nav_icon_color}}{{include file="field_colorinput.tpl" field=$nav_icon_color}}{{/if}}
{{if $link_color}}{{include file="field_colorinput.tpl" field=$link_color}}{{/if}} {{if $link_color}}{{include file="field_colorinput.tpl" field=$link_color}}{{/if}}
@ -17,7 +63,7 @@
<div class="row"> <div class="row">
<div class="col-xs-9"> <div class="col-xs-9">
<input type="range" class="form-control color" id="{{$contentbg_transp.0}}_range" min="0" max="100" step="1" value="{{$contentbg_transp.2}}" onchange="{{$contentbg_transp.0}}.value = this.value" oninput="{{$contentbg_transp.0}}.value = this.value"> <input type="range" class="form-control" id="{{$contentbg_transp.0}}_range" min="0" max="100" step="1" value="{{$contentbg_transp.2}}" onchange="{{$contentbg_transp.0}}.value = this.value" oninput="{{$contentbg_transp.0}}.value = this.value">
</div> </div>
<div class="col-xs-3"> <div class="col-xs-3">
<div class="input-group"> <div class="input-group">
@ -183,7 +229,7 @@
}); });
</script> </script>
<div class="settings-submit-wrapper form-group pull-right"> <div class="settings-submit-wrapper pull-right">
<button type="submit" value="{{$submit}}" class="settings-submit btn btn-primary" name="frio-settings-submit">{{$submit}}</button> <button type="submit" value="{{$submit}}" class="settings-submit btn btn-primary" name="frio-settings-submit">{{$submit}}</button>
</div> </div>
<div class="clearfix"></div> <div class="clearfix"></div>

View File

@ -21,6 +21,12 @@ use Friendica\Model\Contact;
use Friendica\Module; use Friendica\Module;
use Friendica\Util\Strings; use Friendica\Util\Strings;
const FRIO_SCHEME_ACCENT_BLUE = '#1e87c2';
const FRIO_SCHEME_ACCENT_RED = '#b50404';
const FRIO_SCHEME_ACCENT_PURPLE = '#a54bad';
const FRIO_SCHEME_ACCENT_GREEN = '#218f39';
const FRIO_SCHEME_ACCENT_PINK = '#d900a9';
function frio_init(App $a) function frio_init(App $a)
{ {
global $frio; global $frio;
@ -319,51 +325,3 @@ function frio_display_item(App $a, &$arr)
} }
$arr['output']['subthread'] = $subthread; $arr['output']['subthread'] = $subthread;
} }
/**
* @param int|null $uid
* @return string
* @see \Friendica\Core\Theme::getBackgroundColor()
*/
function frio_get_background_color(int $uid = null)
{
$background_color = DI::config()->get('frio', 'background_color') ?: '#ededed';
if ($uid) {
$background_color = DI::pConfig()->get($uid, 'frio', 'background_color') ?: $background_color;
}
$scheme = DI::config()->get('frio', 'scheme', DI::config()->get('frio', 'schema'));
$scheme = Strings::sanitizeFilePathItem($scheme);
if ($scheme && ($scheme != '---') && file_exists('view/theme/frio/scheme/' . $scheme . '.php')) {
$schemefile = 'view/theme/frio/scheme/' . $scheme . '.php';
require_once $schemefile;
}
return $background_color;
}
/**
* @param int|null $uid
* @return string
* @see \Friendica\Core\Theme::getThemeColor()
*/
function frio_get_theme_color(int $uid = null)
{
$nav_bg = DI::config()->get('frio', 'nav_bg') ?: '#708fa0';
if ($uid) {
$nav_bg = DI::pConfig()->get($uid, 'frio', 'background_color') ?: $nav_bg;
}
$scheme = DI::config()->get('frio', 'scheme', DI::config()->get('frio', 'schema'));
$scheme = Strings::sanitizeFilePathItem($scheme);
if ($scheme && ($scheme != '---') && file_exists('view/theme/frio/scheme/' . $scheme . '.php')) {
$schemefile = 'view/theme/frio/scheme/' . $scheme . '.php';
require_once $schemefile;
}
return $nav_bg;
}