From cad2ca8c7aa1fd18e9a2ffc69da3e11c5cd9e58a Mon Sep 17 00:00:00 2001 From: zeke-witter Date: Tue, 22 Aug 2017 10:21:27 -0500 Subject: [PATCH 1/9] Sentence-case username --- uw-frame-components/css/buckyless/directives/username-menu.less | 1 + uw-frame-components/css/buckyless/md-generated.less | 1 + uw-frame-components/portal/main/controllers.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/uw-frame-components/css/buckyless/directives/username-menu.less b/uw-frame-components/css/buckyless/directives/username-menu.less index c7519ac3d..7ad88cd87 100644 --- a/uw-frame-components/css/buckyless/directives/username-menu.less +++ b/uw-frame-components/css/buckyless/directives/username-menu.less @@ -11,6 +11,7 @@ portal-header { min-width: initial; margin-left: 8px; padding: 4px; + text-transform: uppercase; > span { color: @username-menu-color; diff --git a/uw-frame-components/css/buckyless/md-generated.less b/uw-frame-components/css/buckyless/md-generated.less index f66a61735..8a098dda5 100644 --- a/uw-frame-components/css/buckyless/md-generated.less +++ b/uw-frame-components/css/buckyless/md-generated.less @@ -90,6 +90,7 @@ md-menu-content.top-bar-menu-content { .display-name { font-weight: 600; margin: 0; + text-transform: capitalize; } .campus-id { diff --git a/uw-frame-components/portal/main/controllers.js b/uw-frame-components/portal/main/controllers.js index 2bb84feb2..354d264fc 100644 --- a/uw-frame-components/portal/main/controllers.js +++ b/uw-frame-components/portal/main/controllers.js @@ -109,7 +109,7 @@ define(['angular', 'require'], function(angular, require) { if (vm.user.firstName || vm.user.displayName) { vm.username = vm.user.firstName ? - vm.user.firstName : vm.user.displayName; + vm.user.firstName.toLowerCase() : vm.user.displayName.toLowerCase(); } vm.firstLetter = vm.username.substring(0, 1); From 75090fd54da11f800eadb9bf42bae40f748ca980 Mon Sep 17 00:00:00 2001 From: zeke-witter Date: Tue, 22 Aug 2017 11:02:01 -0500 Subject: [PATCH 2/9] Remodel priority notifications --- uw-frame-components/css/buckyless/header.less | 8 ++----- .../css/buckyless/notifications.less | 23 ++++++++++++------- .../css/themes/common-variables.less | 8 ++++++- .../messages/partials/notifications-bell.html | 2 +- 4 files changed, 25 insertions(+), 16 deletions(-) diff --git a/uw-frame-components/css/buckyless/header.less b/uw-frame-components/css/buckyless/header.less index 7d3adec83..5c882300e 100644 --- a/uw-frame-components/css/buckyless/header.less +++ b/uw-frame-components/css/buckyless/header.less @@ -15,7 +15,7 @@ portal-header { min-height: 56px; position: fixed; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12); - z-index: 98; + z-index: 80; top: 0; overflow-y: hidden; @@ -65,10 +65,6 @@ portal-header { &.has-priority-nots { @media (min-width: @xs) { padding-top: 46px; - - md-toolbar { - top: 46px; - } } } @@ -77,7 +73,7 @@ portal-header { width: 100%; position: absolute; top: 56px; - z-index: 98; + z-index: 80; overflow: hidden; transition: @search-transition; background: rgba(0, 0, 0, 0.4); diff --git a/uw-frame-components/css/buckyless/notifications.less b/uw-frame-components/css/buckyless/notifications.less index 5f3d6cbfe..2b53e016e 100644 --- a/uw-frame-components/css/buckyless/notifications.less +++ b/uw-frame-components/css/buckyless/notifications.less @@ -101,7 +101,7 @@ border-radius: 50%; padding: 0; color: @color1; - z-index: 98; + z-index: 80; top: 0; right: 26px; @@ -123,7 +123,7 @@ color: @color1; font-weight: 400; font-size: 20px; - z-index: 98; + z-index: 80; position: absolute; line-height: 40px; left: 14px; @@ -160,17 +160,23 @@ .priority-gt-xs .priority-notifications { height: 46px; width: 100%; - background-color: @grayscale2; - z-index: 98; - position: fixed; + z-index: 80; + padding: 4px; display: flex; justify-content: center; align-items: center; - border: 1px solid @black; top: 0; + .priority-bubble { + box-shadow: @box-shadow-4; + background-color: @grayscale2; + border-radius: 6px; + } + .notification-message { - font-size: 15px; + padding: 4px 26px; + font-size: 14px; + line-height: 1; } p { @@ -229,8 +235,9 @@ width: 30px; padding: 0; - .md-icon { + .material-icons { font-size: 22px; + color: @grayscale10; } } } diff --git a/uw-frame-components/css/themes/common-variables.less b/uw-frame-components/css/themes/common-variables.less index 953fe11b0..70b649850 100644 --- a/uw-frame-components/css/themes/common-variables.less +++ b/uw-frame-components/css/themes/common-variables.less @@ -25,7 +25,12 @@ @md: 1280px; @lg: 1920px; -@border: 1px solid @grayscale3; +/* Shadow depths */ +@box-shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); +@box-shadow-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); +@box-shadow-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); +@box-shadow-4: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22); +@box-shadow-5: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22); /* Footer */ @footer-background-color: #404040; @@ -44,3 +49,4 @@ .border (@color: @grayscale3, @size: 1px) { border: @size solid @color; } +@border: 1px solid @grayscale3; diff --git a/uw-frame-components/portal/messages/partials/notifications-bell.html b/uw-frame-components/portal/messages/partials/notifications-bell.html index f52130dd4..3d4790dbe 100644 --- a/uw-frame-components/portal/messages/partials/notifications-bell.html +++ b/uw-frame-components/portal/messages/partials/notifications-bell.html @@ -87,7 +87,7 @@
-
+
{{ priority.title }}
Date: Tue, 22 Aug 2017 12:48:24 -0500 Subject: [PATCH 3/9] Add animations, rename transitions --- .../css/buckyless/features.less | 2 +- uw-frame-components/css/buckyless/frame.less | 5 +-- uw-frame-components/css/buckyless/header.less | 21 ++++++---- .../css/buckyless/notifications.less | 41 ++++++------------- uw-frame-components/css/buckyless/widget.less | 4 +- .../css/themes/common-variables.less | 6 +-- .../messages/partials/notifications-bell.html | 17 +++++--- .../portal/misc/partials/app-header.html | 4 +- .../portal/misc/partials/frame-page.html | 1 - .../staticFeeds/sample-messages.json | 26 ------------ 10 files changed, 45 insertions(+), 82 deletions(-) diff --git a/uw-frame-components/css/buckyless/features.less b/uw-frame-components/css/buckyless/features.less index 00551dcd3..95b6aae38 100644 --- a/uw-frame-components/css/buckyless/features.less +++ b/uw-frame-components/css/buckyless/features.less @@ -64,7 +64,7 @@ portal-header md-toolbar .md-toolbar-tools mascot-announcement { position: relative; img { - transition: @mascot-transition; + transition: @transition-all; position: relative; top: 26px; } diff --git a/uw-frame-components/css/buckyless/frame.less b/uw-frame-components/css/buckyless/frame.less index 871834b2c..281588d75 100644 --- a/uw-frame-components/css/buckyless/frame.less +++ b/uw-frame-components/css/buckyless/frame.less @@ -5,12 +5,9 @@ min-height: 90vh; .page-content { + transition: @transition-all; padding: 56px 0 48px; - &.has-priority-nots { - padding: 102px 0 48px; - } - .white-page { background-color: @white; margin-left: 1%; diff --git a/uw-frame-components/css/buckyless/header.less b/uw-frame-components/css/buckyless/header.less index 5c882300e..56a54fafa 100644 --- a/uw-frame-components/css/buckyless/header.less +++ b/uw-frame-components/css/buckyless/header.less @@ -1,5 +1,11 @@ portal-header { display: block; + position: fixed; + width: 100%; + z-index: 80; + top: 0; + overflow-y: hidden; + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12); a { &:not(.md-button):not(.btn):not(.launch-app-button):not(.full-width) { @@ -13,16 +19,12 @@ portal-header { md-toolbar { min-height: 56px; - position: fixed; - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12); - z-index: 80; - top: 0; - overflow-y: hidden; .md-toolbar-tools { padding-left: 0; height: 56px; max-height: 56px; + overflow-y: hidden; .title-link { h1 { @@ -62,9 +64,10 @@ portal-header { } } - &.has-priority-nots { - @media (min-width: @xs) { - padding-top: 46px; + @media (min-width: @xs) { + &.has-priority-nots + + .page-content { + padding-top: 102px; } } @@ -75,7 +78,7 @@ portal-header { top: 56px; z-index: 80; overflow: hidden; - transition: @search-transition; + transition: @transition-height; background: rgba(0, 0, 0, 0.4); &:not(.search-expanded) { diff --git a/uw-frame-components/css/buckyless/notifications.less b/uw-frame-components/css/buckyless/notifications.less index 2b53e016e..84d030196 100644 --- a/uw-frame-components/css/buckyless/notifications.less +++ b/uw-frame-components/css/buckyless/notifications.less @@ -161,11 +161,17 @@ height: 46px; width: 100%; z-index: 80; - padding: 4px; + padding: 4px 4px 0 4px; display: flex; justify-content: center; align-items: center; top: 0; + transition: @transition-all; + + &.animate-hide { + opacity: 0; + height: 0; + } .priority-bubble { box-shadow: @box-shadow-4; @@ -174,46 +180,23 @@ } .notification-message { + color: @black; padding: 4px 26px; font-size: 14px; line-height: 1; - } - - p { - margin-bottom: 0; - } -} - -.priority-xs .priority-notifications { - min-height: 40px; - position: relative; - top: 0; - margin: 0 -15px; - padding: 12px 20px; - background-color: @grayscale2; - - .notification-message { - font-size: 13px; - } -} - -.priority-gt-xs .priority-notifications, -.priority-xs .priority-notifications { - .notification-message { - color: @black; text-align: center; display: block; margin-bottom: 0; - - a { - color: @link-color; - } } a.notification-message { color: @link-color; } + p { + margin-bottom: 0; + } + .notification-buttons { margin-left: 26px; diff --git a/uw-frame-components/css/buckyless/widget.less b/uw-frame-components/css/buckyless/widget.less index b614e8375..c2f114838 100644 --- a/uw-frame-components/css/buckyless/widget.less +++ b/uw-frame-components/css/buckyless/widget.less @@ -52,7 +52,7 @@ color: @grayscale8; border-radius: 0 0 4px 4px; box-shadow: none; - transition: @mascot-transition; + transition: @transition-all; &:hover { background-color: @color1; @@ -441,7 +441,7 @@ opacity: 0; top: 0; margin: 0; - transition: @opacity-transition; + transition: @transition-opacity; &.widget-info { left: 0; diff --git a/uw-frame-components/css/themes/common-variables.less b/uw-frame-components/css/themes/common-variables.less index 70b649850..77faf5fee 100644 --- a/uw-frame-components/css/themes/common-variables.less +++ b/uw-frame-components/css/themes/common-variables.less @@ -40,10 +40,10 @@ Transitions */ @background-transition: background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); +@transition-height: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); +@transition-opacity: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); +@transition-all: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); @link-hover-transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); -@search-transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); -@mascot-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); -@opacity-transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Custom mix-ins */ .border (@color: @grayscale3, @size: 1px) { diff --git a/uw-frame-components/portal/messages/partials/notifications-bell.html b/uw-frame-components/portal/messages/partials/notifications-bell.html index 3d4790dbe..b84e44d93 100644 --- a/uw-frame-components/portal/messages/partials/notifications-bell.html +++ b/uw-frame-components/portal/messages/partials/notifications-bell.html @@ -86,8 +86,13 @@ -
-
+
+ -

- You have {{ vm.priorityNotifications.length }} important notifications. View your notifications. -

+
+

+ You have {{ vm.priorityNotifications.length }} important notifications. View your notifications. +

+
diff --git a/uw-frame-components/portal/misc/partials/app-header.html b/uw-frame-components/portal/misc/partials/app-header.html index aa6b115f3..36485ac36 100644 --- a/uw-frame-components/portal/misc/partials/app-header.html +++ b/uw-frame-components/portal/misc/partials/app-header.html @@ -1,11 +1,11 @@ -

+

{{ ::icon }} {{::title}}

-