Align project description with project name

pull/5981/head
Wieland Lindenthal 7 years ago
parent 891e8d4634
commit 13c5b01851
  1. 32
      app/assets/stylesheets/content/_projects_list.sass

@ -30,10 +30,14 @@ $project-table--start-indentation: 0.5em
$project-table--child-indentation: 1.1em $project-table--child-indentation: 1.1em
$project-table--icon-distance: 5px $project-table--icon-distance: 5px
@mixin calc-indentation($indentation) @mixin calc-indentation-name($indentation)
// This does not work for big font-sizes // This does not work for big font-sizes
padding-left: calc(#{$indentation} * #{$project-table--child-indentation} + #{$project-table--start-indentation} - #{$project-table--icon-distance}) padding-left: calc(#{$indentation} * #{$project-table--child-indentation} + #{$project-table--start-indentation} - #{$project-table--icon-distance})
@mixin calc-indentation-description($indentation)
// This does not work for big font-sizes
padding-left: calc(#{$indentation} * #{$project-table--child-indentation} + #{$project-table--start-indentation} + 9px)
form.project-filters form.project-filters
display: none display: none
&.-expanded &.-expanded
@ -145,24 +149,14 @@ form.project-filters
td.name a td.name a
white-space: nowrap white-space: nowrap
tr.idnt-1 td.project--hierarchy td.project--hierarchy
@include calc-indentation(1) white-space: nowrap
tr.idnt-2 td.project--hierarchy
@include calc-indentation(2) @for $i from 1 through 9
tr.idnt-3 td.project--hierarchy tr.idnt-#{$i} td.project--hierarchy
@include calc-indentation(3) @include calc-indentation-name($i)
tr.idnt-4 td.project--hierarchy tr.idnt-#{$i}.project-description td.project--hierarchy
@include calc-indentation(4) @include calc-indentation-description($i)
tr.idnt-5 td.project--hierarchy
@include calc-indentation(5)
tr.idnt-6 td.project--hierarchy
@include calc-indentation(6)
tr.idnt-7 td.project--hierarchy
@include calc-indentation(7)
tr.idnt-8 td.project--hierarchy
@include calc-indentation(8)
tr.idnt-9 td.project--hierarchy
@include calc-indentation(9)
#project-table--hierarchy-header #project-table--hierarchy-header
font-size: 1rem font-size: 1rem

Loading…
Cancel
Save