Skip to content

Commit

Permalink
Merge 22a2ebe into cbdbd70
Browse files Browse the repository at this point in the history
  • Loading branch information
marykatefain committed Mar 14, 2020
2 parents cbdbd70 + 22a2ebe commit 7c569ea
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions project_tier/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,15 @@ class Meta:
"""


class HightlightBlock(StructBlock):
body = RichTextBlock(icon='fa-paragraph')

class Meta:
icon = 'fa-square'
template = 'blocks/highlightblock.html'
help_text = 'A rich text block with a tan background.'


class LimitedStreamBlock(StreamBlock):
paragraph = RichTextBlock(icon='fa-paragraph')
smaller_heading = TextBlock(
Expand All @@ -146,6 +155,7 @@ class ContentStreamBlock(StreamBlock):
simple_flow_boxes = SimpleFlowBlockList()
detailed_flow_boxes = DetailedFlowBlockList()
periodic_boxes = PeriodicBlockList()
highlight_block = HightlightBlock()

class Meta:
template = 'blocks/streamfield.html'
Expand Down
5 changes: 5 additions & 0 deletions project_tier/static/css/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,8 @@ ul.accordion {
}
}
}

.highlight-block {
padding: 20px;
background-color: #F4E3D7;
}
5 changes: 5 additions & 0 deletions project_tier/templates/blocks/highlightblock.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<section>
<div class="highlight-block">
{{self.body}}
</div>
</section>

0 comments on commit 7c569ea

Please sign in to comment.