-
Notifications
You must be signed in to change notification settings - Fork 45
/
00-text-paragraph.twig
55 lines (50 loc) · 2.52 KB
/
00-text-paragraph.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{% extends "_drupal-admin-ui-template.twig" %}
{% block ui_component_name %}
Text Paragraph
{% endblock %}
{% block description %}
Text is for writing multiple headlines or text paragraphs, however, there is no support for advanced icon and link options.
{% endblock %}
{% block main %}
{% embed '_main-content.twig' %}
{% block settings %}
<legend>Text</legend>
<div>
<label>
<div><strong><small>Content</small></strong></div>
<div>
<textarea cols="30" rows="5" placeholder="Enter content."></textarea>
</div>
</label>
<div class="c-drupal-admin-ui__grid" style="align-items: center;">
<label>
<select name="format">
<option value="rich-text">Rich text (CKEditor)</option>
<option value="plain-text">Plain text</option>
<option value="raw-html">Raw HTML</option>
</select>
</label>
<small style="text-align: right;">
About text format <i><svg viewBox="0 0 512 512" width="100" title="info-circle"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z" /></svg></i>
</small>
</div>
</div>
{% endblock %}
{% endembed %}
{% endblock %}
{% block code_snippet %}
<h1 class="e-bolt-text e-bolt-text--headline e-bolt-text--xxxlarge">H1 and xxxlarge headline</h1>
<h2 class="e-bolt-text e-bolt-text--headline e-bolt-text--xxlarge">H2 and xxlarge headline</h2>
<h3 class="e-bolt-text e-bolt-text--headline e-bolt-text--xlarge">H3 and xlarge headline</h3>
<h4 class="e-bolt-text e-bolt-text--headline e-bolt-text--large">H4 and large headline</h4>
<h5 class="e-bolt-text e-bolt-text--headline e-bolt-text--small">H5 and small headline</h5>
<h6 class="e-bolt-text e-bolt-text--headline e-bolt-text--xsmall">H6 and xsmall headline</h6>
<p>Paragraph.</p>
{% endblock %}
{% block dev_notes %}
<ol>
<li>Plain Text format: escape all special characters, print as exactly typed.</li>
<li>Overrides maps up to utility classes, these classes will either go on the svg element or the span element with the shape classes (if a shape is chosen).</li>
<li>Raw HTML format: print HTML.</li>
</ol>
{% endblock %}