File tree Expand file tree Collapse file tree 2 files changed +31
-6
lines changed
adhocracy-plus/assets/scss/components Expand file tree Collapse file tree 2 files changed +31
-6
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ $messages-margin-bottom: 25px;
1111}
1212
1313.alert {
14+ position : relative ;
1415 margin : 0 ;
1516 padding : (1.2 * $padding ) $padding ;
1617 background-color : $brand-primary-tint ;
@@ -20,6 +21,32 @@ $messages-margin-bottom: 25px;
2021 flex : 1 1 auto ;
2122}
2223
24+ .alert__content {
25+ position : relative ;
26+ max-width : 100% ;
27+ margin : 0 auto ;
28+ padding-right : 2.5rem ;
29+ }
30+
31+ .alert__close {
32+ position : absolute ;
33+ top : 0 ;
34+ right : 0 ;
35+ padding : 0.5rem ;
36+ background : transparent ;
37+ border : none ;
38+ cursor : pointer ;
39+ color : inherit ;
40+
41+ & :hover {
42+ opacity : 0.8 ;
43+ }
44+
45+ .fa-times {
46+ font-size : 1.2rem ;
47+ }
48+ }
49+
2350.alert--success {
2451 background-color : lighten ($brand-success , 15 );
2552 color : $text-color ;
@@ -36,12 +63,6 @@ $messages-margin-bottom: 25px;
3663 color : $text-color ;
3764}
3865
39- .alert__close {
40- float : right ;
41- color : inherit ;
42- margin-right : $spacer ;
43- }
44-
4566.alert--small {
4667 padding : 0.5em ;
4768}
@@ -52,3 +73,4 @@ $messages-margin-bottom: 25px;
5273 margin-top : - $messages-margin-bottom ;
5374 }
5475}
76+
Original file line number Diff line number Diff line change 1+ ### Changed
2+
3+ - Fixed styling of alert close button
You can’t perform that action at this time.
0 commit comments