This series of tools can be added to elements margin with padding, The default values are all multiples of 8px.
The format of the class name is:.mdui-{Attributes}-{direction}-{size}
Attributes:
m - Set up marginp - Set up paddingdirection:
t - Set up margin-top or padding-topb - Set up margin-bottom or padding-bottoml - Set up margin-left or padding-leftr - Set up margin-right or padding-rightx - Set up margin-leftmargin-right or padding-leftpadding-righty - Set up margin-topmargin-bottom or padding-toppadding-bottoma - Set up margin or paddingsize:
0 - 0px1 - 8px2 - 16px3 - 24px4 - 32px5 - 40px.mdui-m-t-0 {
margin-top: 0 !important;
}
.mdui-m-l-1 {
margin-left: 8px !important;
}
.mdui-p-x-2 {
padding-left: 16px !important;
padding-right: 16px !important;
}
.mdui-p-a-5 {
padding: 40px !important;
}
.mdui-float-left Float the element to the left.mdui-float-right Float the element to the right<div class="mdui-float-left">float left</div>
<div class="mdui-float-right">float right</div>
Add a class to any element .mdui-center You can make it horizontally centered.
Add a class to any element .mdui-valign, You can center the child elements of the element vertically.
This should be vertically aligned
<div class="mdui-valign">
<p class="mdui-center">This should be vertically aligned</p>
</div>
.mdui-text-left Align the text to the left..mdui-text-center Center the text..mdui-text-right Align the text to the right.<div class="mdui-text-left">This should be left aligned</div>
<div class="mdui-text-center">This should be center aligned</div>
<div class="mdui-text-right">This should be right aligned</div>
.mdui-text-lowercase Convert the text to lowercase..mdui-text-uppercase Convert the text to uppercase..mdui-text-capitalize Convert the text to capitalize the first letter of a word.Lowercased text.
Uppercased text.
Capitalized text.
<p class="mdui-text-lowercase">Lowercased text.</p>
<p class="mdui-text-uppercase">Uppercased text.</p>
<p class="mdui-text-capitalize">Capitalized text.</p>
.mdui-text-truncate When the length of the text exceeds the limit, it can be automatically truncated and replaced with an ellipsis.
This is a very very very very very very very very very very very very long text.
<p class="mdui-text-truncate" style="max-width: 200px;">This is a very very very very very very very very very very very very long text.</p>
<div class="mdui-clearfix">
<div class="mdui-float-left">mdui-float-left</div>
<div class="mdui-float-right">mdui-float-right</div>
</div>
.mdui-hidden The class is used to hide elements, which is equivalent to adding styles display: none;, The hidden elements do not occupy page space..mdui-invisible The class is used to make the element invisible, but still occupy space on the page, which is equivalent to adding styles visibility: hidden;。These tools use media queries to hide content for different devices. These tools include:
.mdui-hidden-*: Hide on the device of the specified width..mdui-hidden-*-up: Hide on devices with a specified width and above..mdui-hidden-*-down: Hide on devices with a specified width and below.| Ultra-small screen <600px |
Small screen >=600px - <1024px |
Medium screen >=1024px - <1440px |
big screen >=1440px - <1920px |
Large screen >=1920px |
|
|---|---|---|---|---|---|
.mdui-hidden-xs |
hide | visible | visible | visible | visible |
.mdui-hidden-sm |
visible | hide | visible | visible | visible |
.mdui-hidden-md |
visible | visible | hide | visible | visible |
.mdui-hidden-lg |
visible | visible | visible | hide | visible |
.mdui-hidden-xl |
visible | visible | visible | visible | hide |
.mdui-hidden-xs-down |
hide | visible | visible | visible | visible |
.mdui-hidden-sm-down |
hide | hide | visible | visible | visible |
.mdui-hidden-md-down |
hide | hide | hide | visible | visible |
.mdui-hidden-lg-down |
hide | hide | hide | hide | visible |
.mdui-hidden-xl-down |
hide | hide | hide | hide | hide |
.mdui-hidden-xs-up |
hide | hide | hide | hide | hide |
.mdui-hidden-sm-up |
visible | hide | hide | hide | hide |
.mdui-hidden-md-up |
visible | visible | hide | hide | hide |
.mdui-hidden-lg-up |
visible | visible | visible | hide | hide |
.mdui-hidden-xl-up |
visible | visible | visible | visible | hide |
Adjust the browser window, or view the following examples on different devices. The dark part means it is visible in the current browser window.
Theme color
Main color
Accent color