From fa5f6555f07f1cb06079dd4281bb04c1503848d8 Mon Sep 17 00:00:00 2001 From: Blerim Sheqa Date: Tue, 11 Jun 2019 15:14:54 +0200 Subject: [PATCH] Add events to the header --- theme/css/theme.css | 99 +++++++++++++++++++++++++++++++++++++- theme/partials/header.html | 17 +++++++ 2 files changed, 114 insertions(+), 2 deletions(-) diff --git a/theme/css/theme.css b/theme/css/theme.css index 6a7096b..a24a7a4 100644 --- a/theme/css/theme.css +++ b/theme/css/theme.css @@ -106,13 +106,108 @@ body{ padding-bottom: 10rem; } + +/* Events */ + +.md-events { + width: 100%; + margin-top: 2%; + max-width: 122rem; + margin-left: auto; + margin-right: auto; +} + +.md-events-inner { + position: relative; + margin: auto; + width: 100%; + max-width: 1255px; + overflow: auto; + border-bottom: 1px solid #ddd; + margin-left: 1.4rem; +} + +#events-header span{ + float: left; + font-size: 12px; + line-height: 30px; + color: #8d8d8d; + padding-right: 1.5rem; +} + +#events-list { + padding: 0; + padding-bottom: 0.5em; + margin: 0; +} + +#events-list li:not(:last-child) { + list-style-type: none; + display: inline-block; + margin-right: 3em; + padding-top: 0.5em; + padding-bottom: 0.5em; +} + +#events-list li:last-child { + list-style-type: none; + display: inline-block; + padding-top: 0.5em; + padding-bottom: 0.5em; +} + +#events-list li a > *:not(.event-date) { + display: inline-block; + font-size: 12px; + margin: 0; + margin-right: 0.25em; + font-weight: normal; +} + +#events-list li a { + color: #333; +} + +.event-date { + background-color: #ddd; + color: #333; + border-radius: 4px; + padding: 0.25em 0.7em; + font-size: 1em; + text-transform: uppercase; + letter-spacing: 0.2px; +} + +.event-city { + color: #8d8d8d; +} + +#events-list li a:hover { + opacity: 0.6; +} + +#event-more-link { + float: right; +} + +#event-more-link a { + color: #0095bf !important; + line-height: 18px; + font-size: 12px; +} + +/* END Events */ + + +.md-container { + padding-top: 0; +} + .icinga-footer{ background: #f7f7f7; color: #777; } - - #icinga-footer-menu { width: 100%; padding-top: 31px; diff --git a/theme/partials/header.html b/theme/partials/header.html index 081fea4..0623d4e 100644 --- a/theme/partials/header.html +++ b/theme/partials/header.html @@ -83,3 +83,20 @@ + +
+
+
+ Upcoming Events + +
+ +
+