Skip to content

Commit

Permalink
moving css to layout.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Jan 20, 2020
1 parent 48dd750 commit 608e396
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
15 changes: 0 additions & 15 deletions templates/cassiopeia/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,6 @@

$stickyHeader = $this->params->get('stickyHeader') ? 'sticky-header' : '';

// Stick the header
if ($stickyHeader === 'sticky-header')
{
$css = '
.sticky-header {
margin: 0 0 20px 0 !important;
position: -webkit-sticky !important;
position: sticky !important;
top: 0;
}
';

$this->addStyleDeclaration($css);
}

?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
Expand Down
6 changes: 6 additions & 0 deletions templates/cassiopeia/scss/blocks/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@
.system-debug {
display: block;
}
}

.sticky-header {
margin: 0 0 20px 0 !important;
position: -webkit-sticky !important;
position: sticky !important;
top: 0;
}

header {
Expand Down

0 comments on commit 608e396

Please sign in to comment.