Skip to content

Commit d9e4eec

Browse files
committed
Style the site setting category links. Required and Basic Setup are bigger and all other links are to the right of them.
1 parent c57232b commit d9e4eec

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

app/assets/javascripts/admin/templates/site_settings.js.handlebars

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
</div>
1111
</div>
1212

13-
<ul class="nav nav-pills">
13+
<ul class="nav nav-pills site-settings-nav">
1414
{{#each category in controller}}
15-
<li>{{#link-to 'adminSiteSettingsCategory' category.nameKey}}{{category.name}}{{/link-to}}</li>
15+
<li {{bindAttr class="category.nameKey"}}>{{#link-to 'adminSiteSettingsCategory' category.nameKey class=category.nameKey}}{{category.name}}{{/link-to}}</li>
1616
{{/each}}
1717
</ul>
1818

app/assets/stylesheets/common/admin/admin_base.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,24 @@ td {border-bottom: 1px solid #ddd; border-top: 1px solid #ddd;}
143143
}
144144
}
145145

146+
.site-settings-nav {
147+
li {
148+
background-color: grayscale($nav-pills-background-color-hover);
149+
margin-bottom: 5px;
150+
151+
&.required, &.basic {
152+
margin-bottom: 20px; // so nothing floats underneath these ones
153+
}
154+
155+
> a {
156+
font-size: 13px;
157+
&.required, &.basic {
158+
font-size: 16px;
159+
}
160+
}
161+
}
162+
}
163+
146164
.settings {
147165
.setting {
148166
padding-bottom: 20px;

0 commit comments

Comments
 (0)