Skip to content

Commit

Permalink
page header fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
codecalm committed Nov 2, 2020
1 parent 7402edc commit 7949f92
Show file tree
Hide file tree
Showing 17 changed files with 41 additions and 51 deletions.
3 changes: 2 additions & 1 deletion src/pages/_includes/layout/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
{% assign actions = page.page-header-actions | default: layout.page-header-actions %}
{% assign pretitle = page.page-header-pretitle | default: layout.page-header-pretitle %}
{% assign class = page.page-header-class | default: layout.page-header-class %}
{% assign icon = page.page-header-icon | default: layout.page-header-icon %}

{% include layout/page-header.html title=page-header description=description actions=actions pretitle=pretitle class=class %}
{% include layout/page-header.html title=page-header description=description actions=actions pretitle=pretitle icon=icon class=class %}
{% endif %}

{{ content }}
Expand Down
3 changes: 3 additions & 0 deletions src/pages/_includes/layout/page-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
</div>
{% endif %}
<h2 class="page-title">
{% if include.icon %}
{% include ui/icon.html icon=include.icon %}
{% endif %}
{{ include.title }}
</h2>

Expand Down
6 changes: 2 additions & 4 deletions src/pages/layout-combo.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@
layout-navbar-hide-menu: true
layout-navbar-class: "d-none d-lg-flex"
layout-navbar-condensed: true
libs: jquery, apexcharts, peity, jqvmap, jqvmap-world
---

{% include layout/homepage.html %}
layout: homepage
---
6 changes: 2 additions & 4 deletions src/pages/layout-condensed-dark.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@
menu: layout.condensed-dark
layout-navbar-condensed: true
layout-navbar-dark: true
libs: jquery, apexcharts, peity, jqvmap, jqvmap-world
---

{% include layout/homepage.html %}
layout: homepage
---
6 changes: 2 additions & 4 deletions src/pages/layout-condensed.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
page-header: Condensed layout
menu: layout.condensed
layout-navbar-condensed: true
libs: jquery, apexcharts, peity, jqvmap, jqvmap-world
---

{% include layout/homepage.html %}
layout: homepage
---
6 changes: 2 additions & 4 deletions src/pages/layout-dark.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
page-header: Dark mode
menu: layout.dark-mode
layout-dark: true
libs: jquery, apexcharts, peity, jqvmap, jqvmap-world
---

{% include layout/homepage.html %}
layout: homepage
---
4 changes: 1 addition & 3 deletions src/pages/layout-fluid-vertical.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
layout-sidebar: true
layout-sidebar-dark: true
layout-hide-topbar: true
libs: jquery, apexcharts, peity, jqvmap, jqvmap-world
layout: homepage
---

{% include layout/homepage.html %}
4 changes: 1 addition & 3 deletions src/pages/layout-fluid.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
page-header: Fluid layout
menu: layout.fluid
layout-fluid: true
libs: jquery, apexcharts, peity, jqvmap, jqvmap-world
layout: homepage
---

{% include layout/homepage.html %}
5 changes: 2 additions & 3 deletions src/pages/layout-horizontal.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
page-header: Horizontal layout
menu: layout.horizontal
libs: jquery, apexcharts, peity, jqvmap, jqvmap-world
---

{% include layout/homepage.html %}
layout: homepage
---
6 changes: 2 additions & 4 deletions src/pages/layout-navbar-dark.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
page-header: Navbar dark
menu: layout.navbar-dark
layout-navbar-dark: true
libs: jquery, apexcharts, peity, jqvmap, jqvmap-world
---

{% include layout/homepage.html %}
layout: homepage
---
4 changes: 1 addition & 3 deletions src/pages/layout-navbar-overlap.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
layout-navbar-condensed: true
layout-navbar-dark: true
page-header-class: text-white
libs: jquery, apexcharts, peity, jqvmap, jqvmap-world
layout: homepage
---

{% include layout/homepage.html %}
5 changes: 2 additions & 3 deletions src/pages/layout-rtl.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
page-header: RTL mode
menu: home
rtl: true
layout: homepage
title: RTL mode
layout: homepage
---

{% include layout/homepage.html %}
4 changes: 1 addition & 3 deletions src/pages/layout-vertical-right.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@
layout-sidebar: true
layout-sidebar-right: true
layout-hide-topbar: true
libs: jquery, apexcharts, peity, jqvmap, jqvmap-world
layout: homepage
---

{% include layout/homepage.html %}
4 changes: 1 addition & 3 deletions src/pages/layout-vertical.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@
layout-sidebar: true
layout-sidebar-dark: true
layout-hide-topbar: true
libs: jquery, apexcharts, peity, jqvmap, jqvmap-world
layout: homepage
---

{% include layout/homepage.html %}
2 changes: 1 addition & 1 deletion src/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ $light: #f5f7fb !default;
$dark: #354052 !default;

$body-bg: $light !default;
$body-color: #252f3f !default;
$body-color: $dark !default;

$color-contrast-dark: $dark !default;
$color-contrast-light: $light !default;
Expand Down
8 changes: 8 additions & 0 deletions src/scss/layout/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,12 @@
line-height: $h2-line-height;
font-weight: $font-weight-medium;
color: inherit;
display: flex;
align-items: center;

svg {
width: 1.5rem;
height: 1.5rem;
margin-inline-end: .25rem;
}
}
16 changes: 8 additions & 8 deletions src/scss/ui/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
display: inline-flex;
align-items: center;
justify-content: center;
color: inherit;
color: $body-color;
background-color: $white;
border-color: $border-color-dark-transparent;

&:hover {
color: inherit;
color: $body-color;
border-color: $text-muted-light;
}

Expand All @@ -24,22 +24,22 @@
svg {
width: 1.25rem;
height: 1.25rem;
margin: 0 .5rem 0;
margin-inline-start: -.25rem;
margin: 0 .25rem 0;
margin-inline-start: -.5rem;
vertical-align: bottom;
}

.avatar {
width: 1.25rem;
height: 1.25rem;
vertical-align: text-top;
margin: 0 .5rem 0;
margin-inline-start: -.25rem;
margin: 0 .25rem 0;
margin-inline-start: -.5rem;
}

.icon-right {
margin: 0 .5rem 0;
margin-inline-end: -.25rem;
margin: 0 .25rem 0;
margin-inline-end: -.5rem;
}

.badge {
Expand Down

0 comments on commit 7949f92

Please sign in to comment.