diff --git a/agnosticui-css/header.css b/agnosticui-css/header.css index 4ebf6a66f..d917e3214 100644 --- a/agnosticui-css/header.css +++ b/agnosticui-css/header.css @@ -14,9 +14,9 @@ .header, .header-skin { --agnosticui-default-header-font-family: -apple-system, BlinkMacSystemFont, - "Segoe UI", "Open Sans", "Ubuntu", "Fira Sans", Helvetica, "Droid Sans", - "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", - "Segoe UI Symbol"; + "Segoe UI", "Open Sans", "Ubuntu", "Fira Sans", Helvetica, "Droid Sans", + "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", + "Segoe UI Symbol"; --agnosticui-default-header-box-shadow-hor: 0px; --agnosticui-default-header-box-shadow-ver: 1px; --agnosticui-default-header-box-shadow-blur: 5px; @@ -78,6 +78,7 @@ .header .header-content { display: flex; + flex-direction: column; justify-content: space-around; align-items: center; flex-wrap: wrap; @@ -100,22 +101,24 @@ */ .header-sticky { - position: sticky; + position: relative; top: 0; z-index: 10; } -@media (min-width: 599px) { +@media (min-width: 960px) { + .header-sticky { + position: sticky; + } + + .header .header-content { + flex-direction: row; + justify-content: space-between; + } .header { height: var( --agnosticui-header-height, var(--agnosticui-default-header-height) ); } -} - -@media (min-width: 960px) { - .header .header-content { - justify-content: space-between; - } } \ No newline at end of file diff --git a/agnosticui-css/headernav.css b/agnosticui-css/headernav.css index bffab3b85..63e152dc7 100644 --- a/agnosticui-css/headernav.css +++ b/agnosticui-css/headernav.css @@ -11,6 +11,9 @@ .header-nav ul { margin: 0; padding: 0; + display: flex; + flex-direction: column; + align-items: center; } .header-nav li { @@ -18,8 +21,18 @@ } .header-nav li:not(:last-child) { - margin-right: var( - --agnosticui-header-nav-spacing, - var(--agnosticui-default-header-nav-spacing) - ); + margin-right: initial; +} + +@media (min-width: 960px) { + .header-nav ul { + flex-direction: row; + } + + .header-nav li:not(:last-child) { + margin-right: var( + --agnosticui-header-nav-spacing, + var(--agnosticui-default-header-nav-spacing) + ); + } } \ No newline at end of file diff --git a/agnosticui-react/src/stories/header.css b/agnosticui-react/src/stories/header.css index 4ebf6a66f..d917e3214 100644 --- a/agnosticui-react/src/stories/header.css +++ b/agnosticui-react/src/stories/header.css @@ -14,9 +14,9 @@ .header, .header-skin { --agnosticui-default-header-font-family: -apple-system, BlinkMacSystemFont, - "Segoe UI", "Open Sans", "Ubuntu", "Fira Sans", Helvetica, "Droid Sans", - "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", - "Segoe UI Symbol"; + "Segoe UI", "Open Sans", "Ubuntu", "Fira Sans", Helvetica, "Droid Sans", + "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", + "Segoe UI Symbol"; --agnosticui-default-header-box-shadow-hor: 0px; --agnosticui-default-header-box-shadow-ver: 1px; --agnosticui-default-header-box-shadow-blur: 5px; @@ -78,6 +78,7 @@ .header .header-content { display: flex; + flex-direction: column; justify-content: space-around; align-items: center; flex-wrap: wrap; @@ -100,22 +101,24 @@ */ .header-sticky { - position: sticky; + position: relative; top: 0; z-index: 10; } -@media (min-width: 599px) { +@media (min-width: 960px) { + .header-sticky { + position: sticky; + } + + .header .header-content { + flex-direction: row; + justify-content: space-between; + } .header { height: var( --agnosticui-header-height, var(--agnosticui-default-header-height) ); } -} - -@media (min-width: 960px) { - .header .header-content { - justify-content: space-between; - } } \ No newline at end of file diff --git a/agnosticui-react/src/stories/headernav.css b/agnosticui-react/src/stories/headernav.css index bffab3b85..63e152dc7 100644 --- a/agnosticui-react/src/stories/headernav.css +++ b/agnosticui-react/src/stories/headernav.css @@ -11,6 +11,9 @@ .header-nav ul { margin: 0; padding: 0; + display: flex; + flex-direction: column; + align-items: center; } .header-nav li { @@ -18,8 +21,18 @@ } .header-nav li:not(:last-child) { - margin-right: var( - --agnosticui-header-nav-spacing, - var(--agnosticui-default-header-nav-spacing) - ); + margin-right: initial; +} + +@media (min-width: 960px) { + .header-nav ul { + flex-direction: row; + } + + .header-nav li:not(:last-child) { + margin-right: var( + --agnosticui-header-nav-spacing, + var(--agnosticui-default-header-nav-spacing) + ); + } } \ No newline at end of file diff --git a/agnosticui-svelte/src/stories/Header.svelte b/agnosticui-svelte/src/stories/Header.svelte index 96d347283..062dfac3b 100644 --- a/agnosticui-svelte/src/stories/Header.svelte +++ b/agnosticui-svelte/src/stories/Header.svelte @@ -30,9 +30,9 @@ .header, .header-skin { --agnosticui-default-header-font-family: -apple-system, BlinkMacSystemFont, - "Segoe UI", "Open Sans", "Ubuntu", "Fira Sans", Helvetica, "Droid Sans", - "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", - "Segoe UI Symbol"; + "Segoe UI", "Open Sans", "Ubuntu", "Fira Sans", Helvetica, "Droid Sans", + "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", + "Segoe UI Symbol"; --agnosticui-default-header-box-shadow-hor: 0px; --agnosticui-default-header-box-shadow-ver: 1px; --agnosticui-default-header-box-shadow-blur: 5px; @@ -94,6 +94,7 @@ .header .header-content { display: flex; + flex-direction: column; justify-content: space-around; align-items: center; flex-wrap: wrap; @@ -116,12 +117,20 @@ */ .header-sticky { - position: sticky; + position: relative; top: 0; z-index: 10; } -@media (min-width: 599px) { +@media (min-width: 960px) { + .header-sticky { + position: sticky; + } + + .header .header-content { + flex-direction: row; + justify-content: space-between; + } .header { height: var( --agnosticui-header-height, @@ -129,12 +138,6 @@ ); } } - -@media (min-width: 960px) { - .header .header-content { - justify-content: space-between; - } -}
diff --git a/agnosticui-svelte/src/stories/HeaderNav.svelte b/agnosticui-svelte/src/stories/HeaderNav.svelte index 98d1721aa..1349f3c8d 100644 --- a/agnosticui-svelte/src/stories/HeaderNav.svelte +++ b/agnosticui-svelte/src/stories/HeaderNav.svelte @@ -19,6 +19,9 @@ .header-nav :global(ul) { margin: 0; padding: 0; + display: flex; + flex-direction: column; + align-items: center; } .header-nav :global(li) { @@ -26,10 +29,20 @@ } .header-nav :global(li:not(:last-child)) { - margin-right: var( - --agnosticui-header-nav-spacing, - var(--agnosticui-default-header-nav-spacing) - ); + margin-right: initial; +} + +@media (min-width: 960px) { + .header-nav ul { + flex-direction: row; + } + + .header-nav li:not(:last-child) { + margin-right: var( + --agnosticui-header-nav-spacing, + var(--agnosticui-default-header-nav-spacing) + ); + } } diff --git a/agnosticui-vue/src/stories/Header.vue b/agnosticui-vue/src/stories/Header.vue index cf7c44554..fcafbe6c8 100644 --- a/agnosticui-vue/src/stories/Header.vue +++ b/agnosticui-vue/src/stories/Header.vue @@ -15,9 +15,9 @@ .header, .header-skin { --agnosticui-default-header-font-family: -apple-system, BlinkMacSystemFont, - "Segoe UI", "Open Sans", "Ubuntu", "Fira Sans", Helvetica, "Droid Sans", - "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", - "Segoe UI Symbol"; + "Segoe UI", "Open Sans", "Ubuntu", "Fira Sans", Helvetica, "Droid Sans", + "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", + "Segoe UI Symbol"; --agnosticui-default-header-box-shadow-hor: 0px; --agnosticui-default-header-box-shadow-ver: 1px; --agnosticui-default-header-box-shadow-blur: 5px; @@ -79,6 +79,7 @@ .header .header-content { display: flex; + flex-direction: column; justify-content: space-around; align-items: center; flex-wrap: wrap; @@ -101,12 +102,20 @@ */ .header-sticky { - position: sticky; + position: relative; top: 0; z-index: 10; } -@media (min-width: 599px) { +@media (min-width: 960px) { + .header-sticky { + position: sticky; + } + + .header .header-content { + flex-direction: row; + justify-content: space-between; + } .header { height: var( --agnosticui-header-height, @@ -114,12 +123,6 @@ ); } } - -@media (min-width: 960px) { - .header .header-content { - justify-content: space-between; - } -}