Closed kevincrafts closed 1 month ago
The Campus News block was built completely differently from our other blocks due to the unique challenge of the configuration form connecting to CU Boulder Today to pull in the available filters. We'll need to discuss the feasibility and importance of doing this.
Icon Settings: (Accordion)
Icon (allowed options)
Icon Position (Select option : class)
bs-icon-position-default
bs-icon-position-offset
bs-icon-position-top
Icon Color (Select option : class)
bs-icon-color-default
bs-icon-color-gray
bs-icon-color-gold
bs-icon-color-blue
bs-icon-color-green
bs-icon-color-orange
bs-icon-color-purple
bs-icon-color-red
bs-icon-color-yellow
Icon Size (Select option : class)
bs-icon-size-default
bs-icon-size-increase
Block Heading: (Accordion)
Heading (Select option : tag)
<h2>
<h3>
<h4>
<h5>
<h6>
<strong>
Heading Alignment (Select option : class)
bs-heading-align-default
bs-heading-align-centered
Heading Style (Select option : class)
bs-heading-style-default
hero
hero strong
supersize
supersize bold
Block Style: (Accordion)
Background Style (Select option : class)
bs-background-unstyled bs-background-none
bs-background-styled bs-background-white
bs-background-styled bs-background-gray
bs-background-styled bs-background-dark-gray
bs-background-styled bs-background-tan
bs-background-styled bs-background-light-blue
bs-background-styled bs-background-medium-blue
bs-background-styled bs-background-dark-blue
bs-background-styled bs-background-light-green
bs-background-styled bs-background-brick
bs-background-styled bs-background-outline
bs-background-styled bs-background-underline
Block Typography: (Accordion)
Title Font Scale (Select option : class)
bs-title-scale-default
bs-title-scale-increase
bs-title-scale-decrease
Content Font Scale (Select option : class)
bs-content-scale-default
bs-content-scale-increase
bs-content-scale-decrease
This is the basic html layout for those classes
<div class="{{attributes}} {{Title Font Scale}} {{Content Font Scale}} {{Icon Position}} {{Heading Alignment}} ">
{{ title_prefix }}
{% if label %}
<div class="block-title-outer">
<{{Heading Tag}}{{title_attributes}} class="block-title {{ Heading Style }}">
<span class='block-title-icon {{ Icon Color }} {{ Icon Position }} {{ Icon Size }}'>
{{ FONT AWESOME ICON }}
</span>
<span class="block-title-text">
{{ label }}
</span>
</{{Heading Tag}}>
</div>
{% endif %}
{{ title_suffix }}
<div class="text-block-body block-content">
{{ content.field_text_block_body }}
</div>
</div>
The campus news block should be able to have styles like the other blocks, so if they are added to a page together they can have similar displays.