diff --git a/css/date.css b/css/date.css index 94fcf211..f5290d72 100644 --- a/css/date.css +++ b/css/date.css @@ -9,7 +9,7 @@ min-height: 2.5em; display: flex; flex-direction: row; - justify-content: center; + justify-content: flex-start; flex-wrap: nowrap; } @@ -20,7 +20,7 @@ .date-year { font-size: 1.5em; display: flex; - justify-content: center; + justify-content: flex-start; align-items: center; } diff --git a/css/greeting.css b/css/greeting.css new file mode 100644 index 00000000..a00653b4 --- /dev/null +++ b/css/greeting.css @@ -0,0 +1,28 @@ +.greeting { + margin: 0; + padding: 0; + border-radius: var(--radius); + font-size: 1em; + font-family: var(--font-fjalla); + color: rgb(var(--white)); + width: 100%; + min-height: 2.5em; + display: flex; + flex-direction: row; + justify-content: center; + flex-wrap: nowrap; +} + +.greeting-item { + font-size: 1.5em; + max-width: 100%; + display: flex; + justify-content: center; + align-items: center; +} + +.greeting-item-text { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} diff --git a/css/header.css b/css/header.css index a7f246ce..426e6e4b 100644 --- a/css/header.css +++ b/css/header.css @@ -51,9 +51,10 @@ .header-item { margin: var(--gutter); + max-width: calc(100% - var(--gutter) * 2); display: flex; flex-wrap: nowrap; - justify-content: center; + justify-content: flex-start; align-items: center; position: relative; } @@ -102,6 +103,7 @@ .header-search, .header-edit-add, .header-accent, +.header-greeting, .header-menu { display: none; } @@ -111,6 +113,7 @@ .is-header-clock-show .header-clock, .is-header-edit-add .header-edit-add, .is-header-accent .header-accent, +.is-header-greeting .header-greeting, .is-menu .header-menu { display: flex; } diff --git a/index.html b/index.html index cf8f3e77..44fd8812 100644 --- a/index.html +++ b/index.html @@ -1,3 +1,4 @@ + @@ -25,6 +26,7 @@ + @@ -42,6 +44,9 @@