Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion assets/scss/_boxes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,33 @@

@include td-box-height-modifiers(".td-box");

// Styling for section boxes
.td-box {
.row {
padding-left: 5rem;
padding-right: 5rem;
flex-direction: column;

> table {
@extend .table-striped;

@extend .table-responsive;

@extend .table;
}
}

.row.features {
flex-direction: row;
}
}

// Styling for community page link boxes

.td-box.linkbox {
padding: 5rem;
}

// This allows "painting by numbers"
@for $i from 1 through length($td-box-colors) {
$c: nth($td-box-colors, $i);
Expand All @@ -96,4 +123,4 @@

@each $color, $value in $grays {
@include box-variant(".td-box", $color, $value);
}
}
5 changes: 3 additions & 2 deletions layouts/shortcodes/blocks/section.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{{ $col_id := .Get "color" | default .Ordinal }}
{{ $height := .Get "height" | default "auto" }}
{{ $type := .Get "type" | default "" }}
<a id="td-block-{{ .Ordinal }}" class="td-offset-anchor"></a>
<section class="row td-box td-box--{{ $col_id }} td-box--gradient td-box--height-{{ $height }}">
<div class="col">
<div class="row">
<div class="row {{ $type }}">
{{ .Inner }}
</div>
</div>
</section>
</section>