Block / Content Block - 图1

Block / Content Block

Content blocks designed (mostly) to add extra formatting and required spacing for text content:

Block

To add content block element just add <div> with block class:

  1. <div class="block">
  2. <!-- block content -->
  3. </div>

To add extra highlighting to block element we need additional block-strong class

  1. <div class="block block-strong">
  2. <!-- block content -->
  3. </div>

To remove hairlines around strong block we need additional no-harilines class

  1. <div class="block block-strong no-hairlines">
  2. <!-- block content -->
  3. </div>

To make block inset we need additional inset class

  1. <div class="block block-strong inset">
  2. <!-- inset block content -->
  3. </div>

To make block inset only on large screens we need to use tablet-inset class instead

  1. <div class="block block-strong tablet-inset">
  2. <!-- inset block content -->
  3. </div>

Block Title

To add block title before Block or List View we need element with block-title class:

  1. <div class="block-title">Here comes block title</div>
  2. <div class="block">
  3. <!-- block content -->
  4. </div>
  5. <div class="block-title">Here comes the list</div>
  6. <div class="list">
  7. <!-- list content -->
  8. </div>

Block Header / Footer

If we need and extra heading and footer texts we can use Block Header element. It can be used both inside and outside of block elements (Block, List View)

  1. <!-- Inside of block -->
  2. <div class="block">
  3. <!-- Block header -->
  4. <div class="block-header">Block Header</div>
  5. ...
  6. <!-- Block footer -->
  7. <div class="block-footer">Block Footer</div>
  8. </div>
  9. <!-- Outside of block -->
  10. <div class="block-header">Block Header</div>
  11. <div class="block">
  12. ...
  13. </div>
  14. <div class="block-footer">Block Footer</div>
  15. <!-- After Block Title -->
  16. <div class="block-title">Block Title Here</div>
  17. <div class="block-header">Block Header</div>
  18. <div class="block">
  19. ...
  20. </div>
  21. <div class="block-footer">Block Footer</div>

Examples

  1. <p>This paragraph is outside of content block. Not cool, but useful for any custom elements with custom styling.</p>
  2. <!-- Content block -->
  3. <div class="block">
  4. <p>Here comes paragraph within content block. Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  5. </div>
  6. <!-- Additional "block-strong" class for extra highlighting -->
  7. <div class="block block-strong">
  8. <p>Here comes another text block with additional "<b>block-strong</b>" class. Praesent nec imperdiet diam. Maecenas vel lectus porttitor, consectetur magna nec, viverra sem. Aliquam sed risus dolor. Morbi tincidunt ut libero id sodales. Integer blandit varius nisi quis consectetur. </p>
  9. </div>
  10. <!-- Block Title -->
  11. <div class="block-title">Block title</div>
  12. <div class="block">
  13. <p>Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  14. </div>
  15. <div class="block-title">Another ultra long content block title</div>
  16. <div class="block block-strong">
  17. <p>Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  18. </div>
  19. <div class="block-title">Inset</div>
  20. <!-- Inset content block -->
  21. <div class="block block-strong inset">
  22. <p>Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  23. </div>
  24. <div class="block-title">Tablet Inset</div>
  25. <!-- This block will be inset only on tablets (large screens) -->
  26. <div class="block block-strong tablet-inset">
  27. <p>Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  28. </div>
  29. <div class="block-title">With Header & Footer</div>
  30. <div class="block">
  31. <!-- Block footer -->
  32. <div class="block-header">Block Header</div>
  33. <p>Here comes paragraph within content block. Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  34. <!-- Block header -->
  35. <div class="block-footer">Block Footer</div>
  36. </div>
  37. <div class="block-header">Block Header</div>
  38. <div class="block">
  39. <p>Here comes paragraph within content block. Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  40. </div>
  41. <div class="block-footer">Block Footer</div>
  42. <div class="block block-strong">
  43. <div class="block-header">Block Header</div>
  44. <p>Here comes paragraph within content block. Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  45. <div class="block-footer">Block Footer</div>
  46. </div>
  47. <div class="block-header">Block Header</div>
  48. <div class="block block-strong">
  49. <p>Here comes paragraph within content block. Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  50. </div>
  51. <div class="block-footer">Block Footer</div>
  1. ...
  2. <div class="page-content">
  3. <p>This paragraph is outside of content block. Not cool, but useful for any custom elements with custom styling.</p>
  4. <!-- Content block -->
  5. <div class="block">
  6. <p>Here comes paragraph within content block. Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel. </p>
  7. </div>
  8. <!-- We can wrap content with additional "content-block-inner" element for additional highlighting -->
  9. <div class="block">
  10. <div class="content-block-inner">Here comes another text block additionaly wrapped with "content-block-inner". Praesent nec imperdiet diam. Maecenas vel lectus porttitor, consectetur magna nec, viverra sem. Aliquam sed risus dolor. Morbi tincidunt ut libero id sodales. Integer blandit varius nisi quis consectetur. </div>
  11. </div>
  12. <!-- Add ".content-block-title" to add block's title -->
  13. <div class="block-title">Content block title</div>
  14. <div class="block">
  15. <p>Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  16. </div>
  17. <div class="block-title">Another ultra long content block title</div>
  18. <div class="block">
  19. <div class="content-block-inner">
  20. <p>Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  21. </div>
  22. </div>
  23. <div class="block-title">Inset</div>
  24. <!-- Inset content block -->
  25. <div class="content-block inset">
  26. <div class="content-block-inner">
  27. <p>Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  28. </div>
  29. </div>
  30. <div class="block-title">Tablet Inset</div>
  31. <!-- This block will be inset only on tablets -->
  32. <div class="block block-strong tablet-inset">
  33. <p>Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  34. </div>
  35. </div>
  36. ...