Mobile-friendly Smooth Scroll To Plugin Example

Css3/html5

Built-on CSS3 and HTML5 semantics to allow you to start captializing on a next generation standard.

Quick Start

First, clone the AdaptGrid from Github. Then add the grid and class in your web. Lastly, compile the Less and view the awesome changes in your browser

Semantic

Everything is now semantic. Now you can have the cleanest markup without sacrificing the utility and speed of AdaptGrid.

Mobile Fisrt

Now you can build for small devices first. Then, as devices get larger and larger, layer in more complexity.

Responsive

Make Responsive Theme part of your website design, or upgrade your current one to a mobile friendly Theme that automatically adapts to any screen resolution or device.

Less

You don't have to know a ton about Less to take this class. The first hour covers an introduction, with the second hour focused on implementing it. You'll be writing Less in no time.

Basic Grid

For a simple two column layout, create a row and add the appropriate number of span- columns. As this is a 12-column grid, each span- spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent).

1
11
2
10
3
9
4
8
5
7
6
6
7
5
8
4
9
3
10
2
11
1

Offsetting columns

Offsets allow you to create additional space between columns in a row. Like the rest of the grid, they're nestable. You can use classes like prefix-4 and suffix-8 to manipulate your column positions in different ways. You can offset up to 11 since you wouldn't ever offset a full-width column. Also you can add no-gutter class to eliminate the gutter.

pre-6 span-6
span-6 suf-6
pre-1 span-4 suf-1
pre-1 span-4 suf-1
pre-2 span-8 suf-2

Centered columns

Centered columns are placed in the middle of the row. This is accomplished by adding a class of center depending on which breakpoint you want the row to center on.

span-7 center
span-9 center
span-11 center

Infinitely Nest columns

8
8 Nested
8 Nested Again
4
4
4

Responsive

Resize the browser to see the example layouts change. There is two breakpoints currently.

For tablet device, you can add tablet- prefix to the previous classes. e.g: tablet-span-x, tablet-prefix-x, tablet-suffix-x.

The mobile is the same: mobile-span-x, mobile-prefix-x, mobile-suffix-x.

s-4 pre-1 suf-1 t-s-10 t-pre-0 t-suf-0
s-3 t-s-5 m-s-2
s-3 t-s-5 m-s-4
s-4 t-s-8 t-pre-2 m-s-6 m-pre-0
s-4 t-s-6 m-s-3
s-4 t-s-4 m-s-3

Tiles Grid

Tiles are an awesome new way to lay out elements on a page that you want to maintain their “grid" style layout. This allows you to preserve the look and feel of things like a grid of profile images in a friends list, or other block-style content generated by your application across devices. Tiles are invoked using the has- class in association with a columns class to determine the layout.

Also, it support differenet device with the prefix tablet- and mobile-.

eq
eq
eq
eq
eq
eq
eq
eq
  • eq
  • eq
  • eq
  • eq
  • eq
  • eq
  • eq
  • eq
  • eq
  • eq
  • eq
  • eq

Phrase Grid

Phrase Grid use fraction phrase to define the column width instead of number. It's easier to read and understand.

full
half
half
two-third
third
three-fourth
fourth

The classes are: full, half, two-fourth, three-sixth, third, two-sixth, two-third, fourth, three-fourth, fifth, two-fifth, three-fifth, four-fifth, sixth, five-sixth.

Infinitely Nest columns

two-third
two-third
half
half
third
third

Responsive

You can add table- and mobile- prefix to make them adapt different viewports.

fourth tablet-half mobile-full
fourth tablet-half mobile-half
fourth tablet-half mobile-half
fourth tablet-half mobile-full

Adapt grid system uses fluid item widths and fixed gutters.

The column widths have percentage values, and the gutters have px values.

Semantic Grid

Set span and gutter widths, choose the number of spans, and switch between pixels and percentages. All without any span-x classes in your markup.

Your Markup

<section>
    <article>
        <p>I’m using Semantic Grid.</p>
    </article>
    <aside>
        <p>Good Good</p>
    </aside>
</section>

The Less

section {
    #semantic > .row();
}
article {
    #semantic > .span(8);
}
aside {
    #semantic > .span(4);
}

Prefix and Suffix

The .prefix() and .suffix() mixins allow you apply left and right indents to your columns.

// LESS
article {
   .prefix(2);
}
// Compiled CSS
article {
   margin-left: 170px;
}
// LESS
article {
   .suffix(2);
}
// Compiled CSS
article {
   margin-right: 170px;
}

How Use It?

First, you should download the latest version.

Then, you have to do is include the grid file: use CSS or LESS.

If you are using the CSS:

// CSS
<link rel="stylesheet" href="css/grid-full.css">

But if you are using the LESS:

You should import the mixins file

// import
@import "adaptGrid/mixins.less";

And link the grid

// LESS
<link rel="stylesheet/less" type="text/css" href="adaptGrid/grid.less">

Do this all, you can use the grid system in you site. Just like that introduced before.

Clone or fork via GitHub

Clone the entire project or fork your own version of Bootstrap to make it your own by visiting us on GitHub.