Skip to content

Commit

Permalink
Merge pull request #53 from nadjak77/release-joomlatemplate
Browse files Browse the repository at this point in the history
Release joomlatemplate
  • Loading branch information
nadjak77 authored Feb 17, 2019
2 parents f0d8770 + ef9d15d commit a0d367a
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 24 deletions.
1 change: 0 additions & 1 deletion administrator/modules/mod_status/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<a class="nav-link link-title" href="<?php echo Uri::root(); ?>"
title="<?php echo Text::sprintf('MOD_STATUS_PREVIEW', $sitename); ?>"
target="_blank">
<span class="fa fa-eye" aria-hidden="true"></span>
<span class="sr-only"><?php echo HTMLHelper::_('string.truncate', $sitename, 28, false, false); ?></span>
<?php echo $sitename ?>
</a>
Expand Down
9 changes: 8 additions & 1 deletion administrator/templates/atum/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,14 @@

if ($this->params->get('bg-dark'))
{
$root[] = '--atum-bg-dark: ' . $this->params->get('bg-dark') . ';';

$bgcolor = trim($this->params->get('bg-dark'), '#');

list($red, $green, $blue) = str_split($bgcolor, 2);

$root[] = '--atum-bg-dark: #' . $bgcolor . ';';
$root[] = '--atum-bg-dark-light: ' . atum_brightness($bgcolor, +20) . ';';
$root[] = '--atum-bg-dark-bright: ' . atum_brightness($bgcolor, +40) . ';';
}

if ($this->params->get('bg-light'))
Expand Down
10 changes: 6 additions & 4 deletions administrator/templates/atum/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ $theme-colors: map-merge((

$colors: (
// @TODO REMOVE THIS VARIABLES AND THEIR USAGE AND REPLACE WITH THE DIFFERENT SUBCOLORS
primary-dark: #2b5c91,
primary-light: #3a87cb,
primary-bright: #45a0f1,
//primary-dark: #2b5c91,
// primary-light: #3a87cb,
// primary-bright: #45a0f1,
// END @TODO
success-border: darken(theme-color("success"), 5%),
info-border: darken(theme-color("info"), 7%),
warning-border: darken(theme-color("warning"), 5%),
danger-border: darken(theme-color("danger"), 5%),
sidebar-sub-bg: #1b3654,
sidebar-text-color: #7189a4,
// sidebar-text-color: #7189a4,
sidebar-link-color: #e3eaf1,
sidebar-link-color-hover: var(--white),
sidebar-child-link-color: #cbd6e2,
Expand All @@ -70,6 +70,8 @@ $colors: (
atum-special-color:$dark-blue,
atum-link-color: $blue-a700,
atum-link-hover-color: darken($blue-a700, 15%),
atum-bg-dark-light:lighten($blue, 20%),
atum-bg-dark-bright:lighten($blue, 40%),
);

// Global
Expand Down
11 changes: 11 additions & 0 deletions administrator/templates/atum/scss/blocks/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ label, caption{
font-size: $label-font-size;
}

.btn-primary:hover{
background-color:$link-hover-color;
border-color:$link-hover-color;
}

.logo{
img path{
fill:var(--atum-text-dark);
}
}




15 changes: 8 additions & 7 deletions administrator/templates/atum/scss/blocks/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
.nav-link {
position: relative;
padding: 0;
margin: 0 0.6rem;
margin: 0 0.8rem;
line-height: $header-height;
min-width: $header-height - 0.3125rem;

.fa {
width: $header-height + 0.125rem;
width: 1.5rem;
font-size: 1.2rem;
color: var(--atum-special-color);
vertical-align: middle;
Expand Down Expand Up @@ -72,7 +72,7 @@
padding: 0;
border: 0;
z-index: 1041;
background-color: var(--primary-light);
background-color: var(--atum-bg-dark-light);

h2 {
font-size: $h5-font-size;
Expand All @@ -86,7 +86,7 @@

.dropdown-item {
color: $white;
background-color: var(--primary-light);
background-color: var(--atum-bg-dark-light);
padding: 0;

@include hover-focus {
Expand All @@ -96,13 +96,14 @@
a {
display: inline-block;
width: 100%;
color: $white;
color: var(--atum-text-light);
padding-left: 0.75rem;
line-height: 3;

&:hover {
color: var(--primary-dark);
color: var(--atum-text-light);
text-decoration: none;
background:var(--atum-bg-dark);
}

.fa {
Expand All @@ -112,7 +113,7 @@

.fa {
padding: 1rem;
background-color: lighten(color("primary-light"), 5%);
background-color: var(--atum-bg-dark-bright);//lighten(color("primary-light"), 5%);
width: 3rem;
}

Expand Down
24 changes: 13 additions & 11 deletions administrator/templates/atum/scss/blocks/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,32 +67,34 @@

// All list items
li {
color: var(--sidebar-text-color);
color: var(--atum-text-light);
list-style-type: none;
}

// All links
a {
position: relative;
color: var(--sidebar-link-color);
color: var(--atum-text-light);

&:hover {
color: var(--sidebar-link-color-hover);
color: var(--atum-text-light);
text-decoration: none;

}
}

// 1st level items
> li {
> ul {
background-color: var(--sidebar-sub-bg);
background-color: var(--atum-bg-dark-light);
}
> a {
display: block;
padding: 10px 6px;

&:hover {
background-color: rgba(0,0,0,.4);
//background-color: rgba(0,0,0,.4);
background-color: var(--atum-bg-dark-light);
}
}
&.active > a {
Expand All @@ -105,7 +107,7 @@
left: 0;
width: 3px;
content: "";
background-color: var(--primary);
background-color: var(--atum-bg-dark);
}
}
}
Expand All @@ -122,7 +124,7 @@
a {
display: block;
padding: 4px 5px 4px 34px;
color: var(--sidebar-child-link-color);
color: var(--atum-text-light);
flex-basis: 100%;

&:hover {
Expand All @@ -132,7 +134,7 @@

&.active {
color: $white;
background-color: var(--primary);
background-color: var(--atum-bg-dark);
}

&::before {
Expand Down Expand Up @@ -162,7 +164,7 @@
top: 16px;
width: .4rem;
height: .4rem;
border-color: var(--sidebar-text-color);
border-color: var(--atum-text-light);
}

// 3rd level items
Expand All @@ -189,7 +191,7 @@
.divider {
height: 1px;
margin: 4px 18px;
background-color: var(--sidebar-text-color);
background-color: var(--atum-text-light);
opacity: .2;
}

Expand Down Expand Up @@ -222,7 +224,7 @@
right: 1em;
width: .5rem;
height: .5rem;
color: $white;
color: va(--atum-text-light);
content: "";
border-color: initial;
border-style: solid;
Expand Down

0 comments on commit a0d367a

Please sign in to comment.