File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
assets/stylesheets/hotsheet Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 10
10
: root {
11
11
--sidebar-width : 12rem ;
12
12
--main-padding-x : 2rem ;
13
- --main-padding-y : 3 rem ;
13
+ --main-padding-y : 2 rem ;
14
14
15
15
--bg-color : lightgray;
16
16
--success-color : green;
@@ -92,22 +92,22 @@ table {
92
92
}
93
93
}
94
94
95
- # flash-container {
95
+ . flash-container {
96
96
position : fixed;
97
97
display : flex;
98
98
flex-direction : column;
99
- top : 1rem ;
99
+ bottom : 1rem ;
100
+ right : 1rem ;
100
101
gap : 1rem ;
101
- justify-content : center;
102
- width : calc (100% - var (--sidebar-width ) - var (--main-padding-x ) * 2 );
103
-
102
+ max-width : calc (100% - var (--sidebar-width ) - var (--main-padding-x ));
104
103
105
104
.flash {
106
105
border-radius : 0.4rem ;
107
106
padding : 0.75rem 1.25rem ;
108
107
display : flex;
109
108
justify-content : space-between;
110
109
align-items : center;
110
+ gap : 1rem ;
111
111
112
112
& .success {
113
113
background-color : rgb (from var (--success-color ) r g b / 80% );
@@ -125,7 +125,7 @@ table {
125
125
background-color : rgb (from var (--error-color ) r g b / 80% );
126
126
}
127
127
128
- button . close {
128
+ . btn- close {
129
129
background-color : transparent;
130
130
border : none;
131
131
cursor : pointer;
Original file line number Diff line number Diff line change 1
1
<%# locals: () %>
2
2
3
- < div id ='flash-container '>
3
+ < div class ='flash-container '>
4
4
<% flash . each do |type , msg | %>
5
5
< div class ='flash <%= type %> ' data-controller ='flash '>
6
6
< span > <%= msg %> </ span >
7
- < button class ='close ' data-action ='click->flash#close '> ×</ button >
7
+ < button class ='btn- close ' data-action ='click->flash#close '> ×</ button >
8
8
</ div >
9
9
<% end %>
10
10
</ div >
You can’t perform that action at this time.
0 commit comments