Commit 6d6bfa7f by Frances Botsford Committed by Daniel Friedman

added incontext option to system message styles for teams

parent db6755fa
...@@ -150,7 +150,7 @@ $yellow: rgb(255, 252, 221); ...@@ -150,7 +150,7 @@ $yellow: rgb(255, 252, 221);
// ==================== // ====================
// COLORS: old variables // COLORS: old variables
// DEPRECATED: use colors in lists above // DEPRECATED: use colors in lists above
$error-red: rgb(253, 87, 87); $error-red: rgb(253, 87, 87);
$danger-red: rgb(212, 64, 64); $danger-red: rgb(212, 64, 64);
$light-gray: rgb(221, 221, 221); $light-gray: rgb(221, 221, 221);
...@@ -163,7 +163,7 @@ $light-gray: rgb(221,221,221); // #dddddd ...@@ -163,7 +163,7 @@ $light-gray: rgb(221,221,221); // #dddddd
// ==================== // ====================
// used by descriptor css // used by descriptor css
// DEPRECATED: use colors in lists above // DEPRECATED: use colors in lists above
$lightGrey: rgb(237,241,245); // #edf1f5 $lightGrey: rgb(237,241,245); // #edf1f5
$darkGrey: rgb(136,145,161); // #8891a1 $darkGrey: rgb(136,145,161); // #8891a1
$lightGrey1: $gray-l3; $lightGrey1: $gray-l3;
...@@ -355,7 +355,7 @@ $highlight-color: rgb(255,255,0); ...@@ -355,7 +355,7 @@ $highlight-color: rgb(255,255,0);
// Notifications // Notifications
$notify-banner-bg-1: rgb(56,56,56); $notify-banner-bg-1: rgb(56,56,56);
$notify-banner-bg-2: rgb(136,136,136); $notify-banner-bg-2: rgb(136,136,136);
$notify-banner-bg-3: rgb(223,223,223); $notify-banner-bg-3: $shadow-l2;
$alert-color: rgb(212, 64, 64); //rich red $alert-color: rgb(212, 64, 64); //rich red
$warning-color: rgb(237, 189, 60); //rich yellow $warning-color: rgb(237, 189, 60); //rich yellow
......
// lms - elements - system feedback // lms - elements - system feedback
// ==================== // ====================
// messages // pre-pattern library messages
// UI : message // UI : message
.wrapper-msg { .wrapper-msg {
...@@ -111,6 +111,7 @@ ...@@ -111,6 +111,7 @@
&.urgency-low { &.urgency-low {
background: $notify-banner-bg-3; background: $notify-banner-bg-3;
box-shadow: 0 1px 2px $shadow;
.msg { .msg {
color: $black; color: $black;
...@@ -132,6 +133,16 @@ ...@@ -132,6 +133,16 @@
&.success { &.success {
border-top: 3px solid $success-color; border-top: 3px solid $success-color;
} }
&.is-incontext {
margin: $baseline;
.msg {
max-width: unset;
min-width: auto;
}
}
} }
......
...@@ -151,6 +151,15 @@ Teams | Course name ...@@ -151,6 +151,15 @@ Teams | Course name
</div> </div>
</div> </div>
</header> </header>
<div class="wrapper-msg is-incontext urgency-low warning">
<div class="msg">
<div class="msg-content">
<div class="copy">
<p>We couldn't find the team "blah".</p>
</div>
</div>
</div>
</div>
<div class="page-content"> <div class="page-content">
<nav class="page-content-nav" aria-label="Team"> <nav class="page-content-nav" aria-label="Team">
...@@ -159,7 +168,6 @@ Teams | Course name ...@@ -159,7 +168,6 @@ Teams | Course name
</nav> </nav>
<div class="page-content-main"> <div class="page-content-main">
<!-- may need a form with submit here -->
<div class="listing-tools"> <div class="listing-tools">
<span class="listing-count">1-10 of 24 topics</span> | <span class="listing-count">1-10 of 24 topics</span> |
<span class="field listing-sort"> <span class="field listing-sort">
......
...@@ -139,7 +139,16 @@ Create New Team | [Course name] ...@@ -139,7 +139,16 @@ Create New Team | [Course name]
<p class="page-description">If you cannot find an existing team to join or would like to team up with a group of friends, create a new team.</p> <p class="page-description">If you cannot find an existing team to join or would like to team up with a group of friends, create a new team.</p>
</div> </div>
</header> </header>
<div class="wrapper-msg is-incontext urgency-low warning">
<div class="msg">
<div class="msg-content">
<h3 class="title">Oops!</h3>
<div class="copy">
<p>We couldn't create your team because something needs to be fixed below.</p>
</div>
</div>
</div>
</div>
<div class="page-content"> <div class="page-content">
<form class="create-team"> <form class="create-team">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment