DK Loading Indicator

Adding the classname `dk-loading` to the body tag of a page will add an animated red bar below the header to indicate loading progress. This is just an animated background color set that will continue to loop until the classname is removed. Toggle dk-loading classname. or Toggle dk-loading-circle classname. Not 100% ready for production use, added for example only.

New dk-layout Classnames

These new layouts use a clearer classname structure indicating their amout of columns and column sizes. Each layout is resposive and two column layouts will stack on smaller screens. Spacing to the left and right of the layouts is 36px at largest size, 24px for tablet sizes and 16px for phone sizes.Gray backgrounds are added to this page for visual reference only and will not appear when used within DigiKey web projects.

Each dk-layout div also contains 24px of padding on the top and bottom. If stacked layouts with less spacing between is required overrides can be added using the classnames pb-0 to the first layout and pt-0 to the second one.

The dk-layout classname will add the minimum required css for a single column 1440px wide layout. This classname is also required for all the following layout variations.

<div class="dk-layout">
    content goes here
</div>

The dk-layout__fullpage classname will override the base layout width and make it extend to 100% the page width instead of stopping at 1440px.

<div class="dk-layout dk-layout__fullpage">
    content goes here
</div>

The dk-layout__thinpage classname will override the base layout max-width to be 900px wide.

<div class="dk-layout dk-layout__thinpage">
    content goes here
</div>

Multi-Column dk-layout Classnames

The two column layouts have 5 options that can be set via classname and are represented by the percentage values of each column in order. Available are 7525, 2575, 6633, 3366, 5050. The number gets added to the twocolumn--#### div classname. For example below would be a 75% left column and 25% right column. All two column layouts have a 32px gap between columns and have responsive styles to stack columns on smaller screens.

<div class="dk-layout dk-layout__twocolumn">
    <div class="twocolumn--7525">
        <div class="dk-layout--leftcolumn">
          left column content goes here
        </div>
        <div class="dk-layout--rightcolumn">
          right column content goes here
        </div>
    </div>
</div>

dk-layout__1024-wrap this class makes the layout wrap early at 1024px page width to help with data dense pages.

twocolumn--7525

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae justo eget magna fermentum iaculis.

 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae justo eget magna fermentum iaculis.

twocolumn--7525

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae justo eget magna fermentum iaculis.

 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae justo eget magna fermentum iaculis.

twocolumn--2575

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae justo eget magna fermentum iaculis.

 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae justo eget magna fermentum iaculis.

twocolumn--6633

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae justo eget magna fermentum iaculis.

 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae justo eget magna fermentum iaculis.

twocolumn--3366

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae justo eget magna fermentum iaculis.

 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae justo eget magna fermentum iaculis.

twocolumn--5050

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae justo eget magna fermentum iaculis.

 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae justo eget magna fermentum iaculis.

Grids in dk-layouts

For more complex layouts a dk-grid can be added to further the options available.

1/12 Column

8/12 Column

3/12 Column

twocolumn--7525

1/6 Column

3/6 Column

2/6 Column

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae justo eget magna fermentum iaculis.

 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae justo eget magna fermentum iaculis.

Full Bleed in dk-layouts

The full bleed background is still available to pair with the new layout options using light or dark options.

<div class="dk-layout full-bleed--dark">
    content goes here
</div>
<div class="dk-layout full-bleed--light">
    content goes here
</div>

Old Layout Classnames

Below are examples of the two older used layout classnames of layout-onecolumn and layout-twocolumn. Note the layouts are slightly wider due to a smaller left and right margin. The layouts above should be able to replace any current usage of this older layout template.

Full Column
Left Column
Right Column