product. Messages can be dismissed by including an optional <a.dismiss>. Requires the Icons module for type and dismiss icons. // // .inverted - Inverted version of the default info message. // .success - Used for communications where we want to connotate a successful operation. // .success.inverted - Inverted version of the success message. // .error - Used for communications where we want to connotate a failed operation. // .error.inverted - Inverted version of the error message. // // Styleguide 5.1.
product. Messages can be dismissed by including an optional <a.dismiss>. Requires the Icons module for type and dismiss icons. // // .inverted - Inverted version of the default info message. // .success - Used for communications where we want to connotate a successful operation (e.g. Save completed, Workspace created, settings changed). // .success.inverted - Inverted version of the success message. // .error - Used for communications where we want to connotate a failed operation (e.g. Action could not complete, required field missing). // .error.inverted - Inverted version of the error message. // // Styleguide 5.1. .message { background-color: lighten($blue, 35%); border: 1px solid lighten($blue, 30%); @include clearfix; clear: both; color: $medium-grey; color: rgba(0, 0, 0, .6); padding: 15px 46px 15px 54px; position: relative; p { line-height: 1.5; margin: 0; } &.success { background-color: lighten($oh-green-alt, 45%); border-color: lighten($oh-green-alt, 35%); p a { color: darken($oh-green, 10%); } } ... } /stylesheets/modules/_messages.scss
message"> <span class="icon" aria-hidden=”true”></span> <p>This is a test of the emergency broadcast system. <a href="#">This is a link</a>.</p> <a href="#" class="dismiss icon icon-delete-mini">Dismiss</a> </div> <% end %>