mirror of
https://github.com/jgthms/bulma.git
synced 2024-12-12 13:28:30 +00:00
1523ce8527
* Replace variables.json with colors.json and update related files accordingly * Add variables data files * Update variables include template and all related files to use new variables data * Fix mobile breakpoint id typo in responsivness docs page * Fix Liquid syntax error in made-with-bulma docs page * Update bulma sass files count in modular docs page * Use breakpoints data in responsiveness helpers docs page * Use breakpoints and variables data in typography helpers docs page * Add missing page titles in docs pages front matter
156 lines
7.1 KiB
HTML
156 lines
7.1 KiB
HTML
---
|
|
title: Message
|
|
layout: documentation
|
|
doc-tab: components
|
|
doc-subtab: message
|
|
---
|
|
|
|
{% capture message_example %}
|
|
<article class="message">
|
|
<div class="message-header">
|
|
<p>Hello World</p>
|
|
<button class="delete" aria-label="delete"></button>
|
|
</div>
|
|
<div class="message-body">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Aenean ac <em>eleifend lacus</em>, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.
|
|
</div>
|
|
</article>
|
|
{% endcapture %}
|
|
|
|
{% capture message_colors_example %}
|
|
<article class="message is-dark">
|
|
<div class="message-header">
|
|
<p>Dark</p>
|
|
<button class="delete" aria-label="delete"></button>
|
|
</div>
|
|
<div class="message-body">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Aenean ac <em>eleifend lacus</em>, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.
|
|
</div>
|
|
</article>
|
|
{% for color in site.data.colors.justColors %}
|
|
<article class="message is-{{ color }}">
|
|
<div class="message-header">
|
|
<p>{{ color | capitalize }}</p>
|
|
<button class="delete" aria-label="delete"></button>
|
|
</div>
|
|
<div class="message-body">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Aenean ac <em>eleifend lacus</em>, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.
|
|
</div>
|
|
</article>
|
|
{% endfor %}
|
|
{% endcapture %}
|
|
|
|
{% capture message_small %}
|
|
<article class="message is-small">
|
|
<div class="message-header">
|
|
<p>Small message</p>
|
|
<button class="delete is-small" aria-label="delete"></button>
|
|
</div>
|
|
<div class="message-body">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla.Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Aenean ac <em>eleifend lacus</em>, in mollis lectus.
|
|
</div>
|
|
</article>
|
|
{% endcapture %}
|
|
|
|
{% capture message_normal %}
|
|
<article class="message">
|
|
<div class="message-header">
|
|
<p>Normal message</p>
|
|
<button class="delete" aria-label="delete"></button>
|
|
</div>
|
|
<div class="message-body">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla.Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Aenean ac <em>eleifend lacus</em>, in mollis lectus.
|
|
</div>
|
|
</article>
|
|
{% endcapture %}
|
|
|
|
{% capture message_medium %}
|
|
<article class="message is-medium">
|
|
<div class="message-header">
|
|
<p>Medium message</p>
|
|
<button class="delete is-medium" aria-label="delete"></button>
|
|
</div>
|
|
<div class="message-body">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla.Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Aenean ac <em>eleifend lacus</em>, in mollis lectus.
|
|
</div>
|
|
</article>
|
|
{% endcapture %}
|
|
|
|
{% capture message_large %}
|
|
<article class="message is-large">
|
|
<div class="message-header">
|
|
<p>Large message</p>
|
|
<button class="delete is-large" aria-label="delete"></button>
|
|
</div>
|
|
<div class="message-body">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla.Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Aenean ac <em>eleifend lacus</em>, in mollis lectus.
|
|
</div>
|
|
</article>
|
|
{% endcapture %}
|
|
|
|
{% capture message_body_example %}
|
|
<article class="message">
|
|
<div class="message-body">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Aenean ac <em>eleifend lacus</em>, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.
|
|
</div>
|
|
</article>
|
|
<article class="message is-dark">
|
|
<div class="message-body">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Aenean ac <em>eleifend lacus</em>, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.
|
|
</div>
|
|
</article>
|
|
{% for color in site.data.colors.justColors %}
|
|
<article class="message is-{{ color }}">
|
|
<div class="message-body">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Aenean ac <em>eleifend lacus</em>, in mollis lectus. Donec sodales, arcu et sollicitudin porttitor, tortor urna tempor ligula, id porttitor mi magna a neque. Donec dui urna, vehicula et sem eget, facilisis sodales sem.
|
|
</div>
|
|
</article>
|
|
{% endfor %}
|
|
{% endcapture %}
|
|
|
|
{% include subnav-components.html %}
|
|
|
|
<section class="section">
|
|
<div class="container">
|
|
<h1 class="title">Messages</h1>
|
|
<h2 class="subtitle">
|
|
Colored <strong>message</strong> blocks, to emphasize part of your page
|
|
</h2>
|
|
{%
|
|
include meta.html
|
|
colors=true
|
|
sizes=true
|
|
variables=true
|
|
%}
|
|
|
|
<hr>
|
|
|
|
{% include snippet.html content=message_example %}
|
|
|
|
{% include anchor.html name="Colors" %}
|
|
|
|
{% include snippet.html content=message_colors_example %}
|
|
|
|
{% include anchor.html name="Message body only" %}
|
|
|
|
<div class="content">
|
|
<p>You can <strong>omit</strong> the message header:</p>
|
|
</div>
|
|
|
|
{% include snippet.html content=message_body_example %}
|
|
|
|
{% include anchor.html name="Sizes" %}
|
|
|
|
{% include snippet.html content=message_small %}
|
|
|
|
{% include snippet.html content=message_normal %}
|
|
|
|
{% include snippet.html content=message_medium %}
|
|
|
|
{% include snippet.html content=message_large %}
|
|
|
|
{% include variables.html type='component' %}
|
|
|
|
</div>
|
|
</section>
|