Files
nairobi/app/assets/stylesheets/admin/budgets/groups_and_headings.scss
Javi Martín f460d3bc31 Add and apply function-calculation-no-interpolation rule
This stylelint-scss rule is useful because we were inconsistent when
using calc(); sometimes we added interpolation to Sass variables, and
sometimes we didn't. The reason why we originally added interpolation
was that it was necessary until we migrated to Dart Sass in commit
d54971e53. Since then, we can omit the interpolation, which is also what
the Sass documentation recommends [1].

[1] https://sass-lang.com/documentation/values/calculations/
2025-03-05 14:39:16 +01:00

73 lines
1.0 KiB
SCSS

.admin .groups-and-headings {
$gap: rem-calc(map-get($grid-column-gutter, medium));
@include admin-action-icons;
> section + section {
margin-top: $line-height * 1.5;
}
dt,
dd {
display: inline;
}
dt {
font-weight: normal;
}
dd {
font-weight: bold;
}
th:last-child {
text-align: $global-right;
}
.table-actions {
justify-content: flex-end;
}
.groups-actions {
@include flex-with-gap($gap);
align-items: flex-start;
+ * {
margin-top: calc($line-height / 2);
}
.edit-link,
.destroy-link {
@include icon-on-top;
}
.new-link {
@include hollow-button;
flex-shrink: 0;
}
> :nth-last-child(2) {
margin-#{$global-right}: $gap;
}
> :last-child {
margin-#{$global-left}: auto;
}
button {
cursor: pointer;
}
}
.new-link {
@include has-fa-icon(plus-square, solid);
&::before {
margin-#{$global-right}: $font-icon-margin;
}
}
> .new-link {
@include regular-button;
}
}