# Layout

Layouts is important for uimini works correct.

# Introduction

Uimini provided classes for correct work with others frameworks.

This approach makes it easy to change or combine different frameworks in an application or a website.

# Html class

First required class is ui-html.

Using for control main sizes, fonts and layout.

Example:

<html class="ui-html" lang="en">
  <!-- content -->
</html>

# Body class

Second required class is ui-body.

Using for create colors and themes.

Example:

<body class="ui-body">
  <!-- content -->
</body>

# Responsive meta tag

Uimini is developed mobile first. We optimize code for mobile devices first and then scale up components as necessary using CSS media queries.

Add the responsive viewport meta tag to your <head> to ensure proper rendering and touch zooming for all devices:

<head>
  <!-- ... -->
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <!-- ... -->
</head>

# Optionals classes

Other optionals classes for make view of the page better:

  • ui-wrapper - use for main content for make heder in the top and footer on the bottom;
  • ui-content-wrapper - use for make content on the center between header and footer.

# Default layout

Be sure you put main classes: ui-html and ui-body in your template to have your pages set up with the latest design and development standards.

Put it all together and your pages should look like this:

Header
Content
Footer
<!DOCTYPE html>

<!-- class="ui-html" is required! -->
<html class="ui-html" lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Uimini title</title>
  </head>
  <!-- class="ui-body" is required! -->
  <body class="ui-body">
    <div class="ui-wrapper">
      <header><!-- ... --></header>

      <div class="ui-content-wrapper">
        <!-- content is here -->
      </div>

      <footer><!-- ... --></footer>
    </div>
  </body>
</html>

# Section

Sections for make space between blocks on the page. Use: ui-section for div or section tag.

Example section #1

Example section #2
<section class="ui-section">
  <div class="ui-container">Example section #1</div>
</section>

<section class="ui-section">
  <div class="ui-container">Example section #2</div>
</section>

# Container

Containers are a fundamental building block. For contain, pad, and align your content within a given viewport or device.

container view

<div class="ui-container">
  <p>container view</p>
</div>