SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit c284e744 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Get rid of childish bootstrap alert-styling

parent 5707ce52
No related branches found
No related tags found
No related merge requests found
...@@ -152,6 +152,7 @@ def add_event(request, stream_id): ...@@ -152,6 +152,7 @@ def add_event(request, stream_id):
prodevent.event = constants.EVENT_HOUR_REGISTRATION prodevent.event = constants.EVENT_HOUR_REGISTRATION
prodevent.noted_by = request.user.production_user prodevent.noted_by = request.user.production_user
prodevent.save() prodevent.save()
messages.success(request, 'Comment added to Stream.')
else: else:
messages.warning(request, 'The form was invalidly filled.') messages.warning(request, 'The form was invalidly filled.')
return redirect(reverse('production:production')) return redirect(reverse('production:production'))
......
.alert { .alert {
padding: 0.75rem 1.25rem; padding: 0.75rem 2.5rem 0.75rem 1.25rem;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
position: relative; position: relative;
clear: both; clear: both;
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
} }
} }
.alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0.
.alert-dismissible { .alert-dismissible {
// Adjust close link position // Adjust close link position
.close { .close {
...@@ -27,3 +26,15 @@ ...@@ -27,3 +26,15 @@
cursor: pointer; cursor: pointer;
} }
} }
@mixin scipost-alert-variant($background, $border, $color) {
background-color: $white;
border-top: 3px solid $color;
}
@each $color, $value in $theme-colors {
.alert-#{$color} {
@include scipost-alert-variant(theme-color-level($color, -10), theme-color-level($color, -9), theme-color-level($color, 6));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment