Skip to content

Commit 6436b8a

Browse files
committed
Ensure consistent appearance of btn-link
After migrating `link_to` to `button_to` (in commit d4ecdb5), we need to adjust the styles for a uniform and correct appearance. Amends d4ecdb5
1 parent 2eb77ec commit 6436b8a

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

app/assets/stylesheets/base.css.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,16 @@ table.vertical-table {
181181
background-color: #eeeeee;
182182
}
183183

184-
a {
184+
a,
185+
.btn-link {
185186
padding: 10px 60px;
186187
background-color: #f5f5f5;
187188
display: inline-block;
188189
}
189190
a:hover,
190-
a:focus {
191+
a:focus,
192+
.btn-link:hover,
193+
.btn-link:focus {
191194
background-color: #f0f0f0;
192195
color: black;
193196
text-decoration: none;

app/assets/stylesheets/bootstrap_and_overrides.css.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,7 @@ a.no-border:visited {
196196
border-radius: 2px;
197197
}
198198
}
199+
200+
.btn-link {
201+
font-size: 14px;
202+
}

app/assets/stylesheets/scaffolds.css.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ blockquote {
3030
padding: 0 16px;
3131
}
3232

33-
a {
33+
a,
34+
.btn-link {
3435
color: #333;
3536

3637
&:hover {

app/views/users/shared/_links.html.slim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222
- if devise_mapping.omniauthable?
2323
- resource_class.omniauth_providers.each do |provider|
2424
= button_to(t('devise.shared.links.sign_in_with_provider', provider: OmniAuth::Utils.camelize(provider)),
25-
omniauth_authorize_path(resource_name, provider), method: :post)
26-
br
25+
omniauth_authorize_path(resource_name, provider),
26+
class: 'btn btn-link p-0 border-0',
27+
method: :post)

0 commit comments

Comments
 (0)