Skip to content

Commit a5451f9

Browse files
committed
apply feedback
1 parent 73bcb27 commit a5451f9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

app/assets/stylesheets/hotsheet/application.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
:root {
1111
--sidebar-width: 12rem;
1212
--main-padding-x: 2rem;
13-
--main-padding-y: 3rem;
13+
--main-padding-y: 2rem;
1414

1515
--bg-color: lightgray;
1616
--success-color: green;
@@ -92,22 +92,22 @@ table {
9292
}
9393
}
9494

95-
#flash-container {
95+
.flash-container {
9696
position: fixed;
9797
display: flex;
9898
flex-direction: column;
99-
top: 1rem;
99+
bottom: 1rem;
100+
right: 1rem;
100101
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));
104103

105104
.flash {
106105
border-radius: 0.4rem;
107106
padding: 0.75rem 1.25rem;
108107
display: flex;
109108
justify-content: space-between;
110109
align-items: center;
110+
gap: 1rem;
111111

112112
&.success {
113113
background-color: rgb(from var(--success-color) r g b / 80%);
@@ -125,7 +125,7 @@ table {
125125
background-color: rgb(from var(--error-color) r g b / 80%);
126126
}
127127

128-
button.close {
128+
.btn-close {
129129
background-color: transparent;
130130
border: none;
131131
cursor: pointer;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<%# locals: () %>
22

3-
<div id='flash-container'>
3+
<div class='flash-container'>
44
<% flash.each do |type, msg| %>
55
<div class='flash <%= type %>' data-controller='flash'>
66
<span><%= msg %></span>
7-
<button class='close' data-action='click->flash#close'>&times;</button>
7+
<button class='btn-close' data-action='click->flash#close'>&times;</button>
88
</div>
99
<% end %>
1010
</div>

0 commit comments

Comments
 (0)