You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/documents/modules/dimmer.html.eco
+52-17Lines changed: 52 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ themes : ['Default']
69
69
<div class="example">
70
70
<h4 class="ui header">Content Dimmer</h4>
71
71
<p>A dimmer can display content</p>
72
-
<div class="ui ignored info message">Content must be included inside <code>.content .center</code> to display centered correctly in the dimmer.</div>
72
+
<div class="ui ignored info message">Since <div class="ui horizontal label">2.3</div> dimmers with content now only need a single wrapping <code>content</code> container.</div>
73
73
<div class="ui segment">
74
74
<h3 class="ui header">
75
75
Overlayable Section
@@ -82,12 +82,10 @@ themes : ['Default']
82
82
<img class="ui medium wireframe image" src="/images/wireframe/media-paragraph.png">
83
83
<div class="ui dimmer">
84
84
<div class="content">
85
-
<div class="center">
86
-
<h2 class="ui inverted icon header">
87
-
<i class="heart icon"></i>
88
-
Dimmed Message!
89
-
</h2>
90
-
</div>
85
+
<h2 class="ui inverted icon header">
86
+
<i class="heart icon"></i>
87
+
Dimmed Message!
88
+
</h2>
91
89
</div>
92
90
</div>
93
91
</div>
@@ -103,7 +101,7 @@ themes : ['Default']
103
101
<div class="existing code" data-preview="true">
104
102
<div class="ui page dimmer">
105
103
<div class="content">
106
-
<div class="center">Hello</div>
104
+
Hello
107
105
</div>
108
106
</div>
109
107
</div>
@@ -166,6 +164,47 @@ themes : ['Default']
166
164
</div>
167
165
</div>
168
166
167
+
<h3>Alignment</h3>
168
+
<div class="example">
169
+
<h4 class="ui header">
170
+
Vertical Alignment
171
+
<span class="ui teal label">New in 2.3</span>
172
+
</h4>
173
+
<p>A dimmer can have its content top or bottom aligned.</p>
<div class="ui horizontal teal label">New in 2.3</div>
557
+
</h4>
558
+
<p>When your modal has dynamic content, or multiple steps, it can make sense to disable centering so content doesn't jump around vertically when its height changes.</p>
559
+
<div class="code" data-demo="true">
560
+
$('.special.modal')
561
+
.modal({
562
+
centered: false
563
+
})
564
+
.modal('show')
565
+
;
566
+
</div>
567
+
</div>
568
+
529
569
<div class="no example">
530
570
<h4 class="ui header">Scrolling Modal</h4>
531
571
<p>When your modal content exceeds the height of the browser the scrollable area will automatically expand to include just enough space for scrolling, without scrolling the page below.</p>
0 commit comments