- Recommended
- All
- Joined
- Created
Stylekit useful Classes
There is some shorthand classes predefined in Stylekit:
Displays:
.gu-display-none
for display: none
.gu-relative-block
for position: relative and display: block
.gu-absolute-block
for position: absolute and display: block
Margins and Paddings
You can use specified classes like .gu-p*-**
and .gu-m*-**
gu is prefix, p for padding, m for margin
Where * is for direction (a - all, t - top, b - bottom, l - left, r - right)
And ** for value which is with step of 4px (0 - 0px, 1 - 4px, 2 - 8px, 3 - 12px, 4 - 16px, 5 - 20px)
Flexbox classes
.gu-d-flex
is for display: flex
Requirement: all next classes should be used with .gu-d-flex
class in pair
for example:
<div class="gu-d-flex gu-justify-around" style="background: #cecece; width: 330px">
<div class="gu-d-flex gu-direction-column gu-justify-center gu-align-center" style="height: 150px; width: 150px; background: #29b6f6">
<div class="gu-pa-3" style="background: aqua">Content</div>
</div>
<div class="gu-ml-2 gu-d-flex gu-direction-column gu-justify-end gu-align-center" style="height: 150px; width: 150px; background: #29b6f6">
<div class="gu-pa-3" style="background: aqua">Content</div>
</div>
</div>
.gu-direction-row
for flex-direction: row
.gu-direction-row-reverse
for flex-direction: row-reverse
.gu-direction-column
for flex-direction: column
.gu-direction-column-reverse
for flex-direction: column-reverse
.gu-justify-center
for justify-content: center
.gu-justify-center
for justify-content: center
.gu-justify-between
for justify-content: space-between
.gu-justify-around
for justify-content: space-around
.gu-justify-start
for justify-content: flex-start
.gu-justify-end
for justify-content: flex-end
.gu-align-center
for align-items: center
Cards in column on mobile
Block gu-circle-card__top-image
It hasgu-card-hover-area
class. You can show it on hover on the gu-circle-card__top-image
element or
show it always by adding a class
gu-card-hover-area-always-visible
to class gu-card-hover-area
(example:
class="gu-card-hover-area gu-card-hover-area-always-visible"
Block gu-card-content
This block is main column of card for content partFor deleting image banner just remove
gu-card-banner
block and so on.
For changing content within
gu-card-content
you can cut gu-circle-text-preview
block from code
examples below
and paste it in your card by replacing standard
gu-circle-text-preview
block.
Multiline block gu-circle-text-preview__text
This block has automatic ellipsis ending for multiline block, based on parent's height andgu-circle-text-preview__text
line-height value.
The
-webkit-line-clamp
css parameter is calculated by (parent's height / line-height)
<div class="gu-circle-card">
<div class="gu-circle-card__top-image">
<img src="images/V1/laptop.png" alt="circle_image" />
<div class="gu-card-hover-area">
<!-- You can place here whatever hoverable elements you want-->
<div class="gu-card-hover-area__left gu-d-flex">
<div class="gu-close-icon gu-round-btn"><i class="fal fa-times fa-lg"></i></div>
<div class="gu-share-icon gu-round-btn"><i class="far fa-share-alt fa-lg"></i></div>
</div>
<div class="gu-card-hover-area__right gu-d-flex">
<div class="gu-post-bookmark gu-round-btn"><i class="far fa-bookmark fa-lg"></i></div>
</div>
</div>
</div>
<div class="gu-card gu-card-content">
<div class="gu-card-banner elevation-1">
<img src="images/V1/curriculum-banner.jpg" />
<div class="gu-card-banner__badge">#1</div>
</div>
<div class="gu-rating-wrapper">
<div class="gu-rating-block">
<div class="gu-main-card-middle-rating-block">
<div class="gu-main-card-middle-rating">
<span style="width: 66%"></span>
</div>
<div class="gu-main-card-middle-rating-number">3.6</div>
</div>
<div class="gu-rating-block-reviews"><a href="">(75 Reviews)</a></div>
</div>
</div>
<div class="gu-circle-text-preview">
<div class="gu-circle-text-preview__header">Genius Test</div>
<div class="gu-circle-location gu-mb-3">
<i class="fal fa-map-marker-alt gu-btn-icon gu-ml-0 gu-mr-1"></i>
Wellington, New Zealand
</div>
<div class="gu-circle-text-preview__text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi asperiores autem esse, fugiat fugit hic magni minima
numquam quasi qui tempora, unde voluptatem? Ab accusamus, alias amet consequatur corporis culpa, deserunt error
explicabo, facilis fugit inventore ipsam repellat. Neque, voluptas.
</div>
</div>
</div>
<div class="gu-card gu-card-bottom">
<div class="gu-card-bottom__members">Members: <b>1234421</b></div>
<div class="gu-card-bottom__button">
<button class="gu-main-link-form-fill gu-bg-orange">VIEW</button>
</div>
</div>
</div>
<!---->
<div class="gu-circle-card">
<div class="gu-circle-card__top-image">
<img src="images/V1/laptop.png" alt="circle_image" />
<div class="gu-card-hover-area">
<!-- You can place here whatever hoverable elements you want-->
<div class="gu-card-hover-area__left gu-d-flex">
<div class="gu-close-icon gu-round-btn"><i class="fal fa-times fa-lg"></i></div>
<div class="gu-share-icon gu-round-btn"><i class="far fa-share-alt fa-lg"></i></div>
</div>
<div class="gu-card-hover-area__right gu-d-flex">
<div class="gu-post-bookmark gu-round-btn"><i class="far fa-bookmark fa-lg"></i></div>
</div>
</div>
</div>
<div class="gu-card gu-card-content">
<div class="gu-card-banner elevation-1">
<img src="images/V1/curriculum-banner.jpg" />
<div class="gu-card-banner__badge">#1</div>
</div>
<div class="gu-rating-wrapper">
<div class="gu-rating-block">
<div class="gu-main-card-middle-rating-block">
<div class="gu-main-card-middle-rating">
<span style="width: 66%"></span>
</div>
<div class="gu-main-card-middle-rating-number">3.6</div>
</div>
<div class="gu-rating-block-reviews"><a href="">(75 Reviews)</a></div>
</div>
</div>
<div class="gu-circle-text-preview">
<div class="gu-circle-text-preview__header">Genius Test</div>
<div class="gu-circle-location gu-mb-3">
<i class="fal fa-map-marker-alt gu-btn-icon gu-ml-0 gu-mr-1"></i>
Wellington, New Zealand
</div>
<div class="gu-d-flex gu-direction-column gu-justify-around">
<div class="gu-d-flex gu-mt-1">
<div class="gu-svg-icon">
<object type="image/svg+xml" data="images/V1/icon-building-yellow.svg"></object>
</div>
<div class="gu-line-ellipsis">Type: <span>Lorem ipsum dolor sit amet, consectetur adipisicing.</span></div>
</div>
<div class="gu-d-flex gu-mt-1">
<div class="gu-svg-icon">
<object type="image/svg+xml" data="images/V1/icon-purpose.svg"></object>
</div>
<div class="gu-line-ellipsis">Purpose: <span>Lorem ipsum dolor sit amet, consectetur adipisicing.</span></div>
</div>
<div class="gu-d-flex gu-mt-1">
<div class="gu-svg-icon">
<object type="image/svg+xml" data="images/V1/icon-person.svg"></object>
</div>
<div class="gu-d-flex gu-direction-row">
<span>Owner: </span>
<div class="elevation-1 gu-round-image-block">
<img width="20px" src="images/V1/avatar.png" />
</div>
<a href=""><span>Roger Hamilton</span></a>
</div>
</div>
</div>
</div>
</div>
<div class="gu-card gu-card-bottom">
<div class="gu-card-bottom__members"></div>
<div class="gu-card-bottom__button">
<button class="gu-main-link-form-fill gu-bg-orange">VIEW</button>
</div>
</div>
</div>
<!---->
<div class="gu-circle-card">
<div class="gu-circle-card__top-image">
<img src="images/V1/laptop.png" alt="circle_image" />
<div class="gu-card-hover-area gu-card-hover-area-always-visible">
<!-- You can place here whatever hoverable elements you want-->
<div class="gu-card-hover-area__left gu-d-flex">
<div class="gu-close-icon gu-round-btn"><i class="fal fa-times fa-lg"></i></div>
<div class="gu-share-icon gu-round-btn"><i class="far fa-share-alt fa-lg"></i></div>
</div>
<div class="gu-card-hover-area__right gu-d-flex">
<div class="gu-post-bookmark gu-round-btn"><i class="far fa-bookmark fa-lg"></i></div>
</div>
</div>
</div>
<div class="gu-card gu-card-content">
<div class="gu-card-banner elevation-1">
<img src="images/V1/curriculum-banner.jpg" />
<div class="gu-card-banner__badge badge-checkmark">
<div class="badge-checkmark-wrapper checkmark-done">
<object type="image/svg+xml" data="images/V1/icon-checkmark.svg"></object>
</div>
</div>
</div>
<div class="gu-rating-wrapper">
<div class="gu-rating-block">
<div class="gu-main-card-middle-rating-block">
<div class="gu-main-card-middle-rating">
<span style="width: 66%"></span>
</div>
<div class="gu-main-card-middle-rating-number">3.6</div>
</div>
<div class="gu-rating-block-reviews"><a href="">(75 Reviews)</a></div>
</div>
</div>
<div class="gu-circle-text-preview">
<div class="gu-circle-text-preview__header">Michelle Nolting</div>
<div class="gu-circle-location gu-mb-3">
<i class="fal fa-map-marker-alt gu-btn-icon gu-ml-0 gu-mr-1"></i>
Wellington, New Zealand
</div>
<div class="gu-circle-text-preview__text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi asperiores autem esse, fugiat fugit hic magni minima
numquam quasi qui tempora, unde voluptatem? Ab accusamus, alias amet consequatur corporis culpa, deserunt error
explicabo, facilis fugit inventore ipsam repellat. Neque, voluptas.
</div>
</div>
</div>
<div class="gu-card gu-card-bottom">
<div class="gu-card-bottom__members">
<div class="gu-overlap-area">
<div class="gu-overlap-icon gu-round-btn gu-overlap-element gu-bg-yellow">
<img src="images/V1/icon-building.svg" />
<span class="gu-round-btn__number">1</span>
</div>
<div class="gu-overlap-icon gu-round-btn gu-overlap-element gu-bg-orange">
<img src="images/V1/icon-education.svg" />
<span class="gu-round-btn__number">8</span>
</div>
<div class="gu-overlap-icon gu-round-btn gu-overlap-element gu-bg-blue">
<img src="images/V1/icon-circle.svg" />
<span class="gu-round-btn__number">13</span>
</div>
<div class="gu-overlap-icon gu-round-btn gu-overlap-element gu-bg-green">
<img src="images/V1/icon-shop-bag.svg" />
<span class="gu-round-btn__number">140</span>
</div>
<div class="gu-overlap-icon gu-round-btn gu-overlap-element gu-bg-purple">
<img src="images/V1/icon-calendar.svg" />
<span class="gu-round-btn__number">10</span>
</div>
</div>
</div>
<div class="gu-card-bottom__button">
<button class="gu-main-link-form-fill gu-bg-orange">VIEW</button>
</div>
</div>
</div>
<!---->
<div class="gu-circle-card">
<div class="gu-circle-card__top-image">
<img src="images/V1/laptop.png" alt="circle_image" />
<div class="gu-card-hover-area gu-card-hover-area-always-visible">
<!-- You can place here whatever hoverable elements you want-->
<div class="gu-card-hover-area__left gu-d-flex">
<div class="gu-close-icon gu-round-btn"><i class="fal fa-times fa-lg"></i></div>
<div class="gu-share-icon gu-round-btn"><i class="far fa-share-alt fa-lg"></i></div>
</div>
<div class="gu-card-hover-area__right gu-d-flex">
<div class="gu-post-bookmark gu-bookmark-active gu-round-btn"><i class="far fa-bookmark fa-lg"></i></div>
</div>
</div>
</div>
<div class="gu-card gu-card-content">
<div class="gu-card-banner elevation-1">
<img src="images/V1/curriculum-banner.jpg" />
<div class="gu-card-banner__badge">#1</div>
</div>
<div class="gu-rating-wrapper">
<div class="gu-rating-block">
<div class="gu-main-card-middle-rating-block">
<div class="gu-main-card-middle-rating">
<span style="width: 66%"></span>
</div>
<div class="gu-main-card-middle-rating-number">3.6</div>
</div>
<div class="gu-rating-block-reviews"><a href="">(75 Reviews)</a></div>
</div>
</div>
<div class="gu-circle-text-preview">
<div class="gu-circle-text-preview__header">Genius Test</div>
<div class="gu-circle-location gu-mb-3">
<i class="fal fa-map-marker-alt gu-btn-icon gu-ml-0 gu-mr-1"></i>
Wellington, New Zealand
</div>
<div class="gu-circle-text-preview__text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi asperiores autem esse, fugiat fugit hic magni minima
numquam quasi qui tempora, unde voluptatem? Ab accusamus, alias amet consequatur corporis culpa, deserunt error
explicabo, facilis fugit inventore ipsam repellat. Neque, voluptas.
</div>
</div>
</div>
<div class="gu-card gu-card-bottom">
<div class="gu-card-bottom__members gu-d-flex gu-direction-column">
<div>Team members: <b>30</b></div>
<div>Followers: <b>300 000</b></div>
</div>
<div class="gu-card-bottom__button">
<button class="gu-main-link-form-fill gu-bg-orange">VIEW</button>
</div>
</div>
</div>
<!---->
<div class="gu-circle-card">
<div class="gu-circle-card__top-image">
<img src="images/V1/laptop.png" alt="circle_image" />
<div class="gu-card-hover-area gu-card-hover-area-always-visible">
<!-- You can place here whatever hoverable elements you want-->
<div class="gu-card-hover-area__left gu-d-flex">
<div class="gu-close-icon gu-round-btn"><i class="fal fa-times fa-lg"></i></div>
<div class="gu-share-icon gu-round-btn"><i class="far fa-share-alt fa-lg"></i></div>
</div>
<div class="gu-card-hover-area__right gu-d-flex">
<div class="gu-post-bookmark gu-bookmark-active gu-round-btn"><i class="far fa-bookmark fa-lg"></i></div>
</div>
</div>
</div>
<div class="gu-card gu-card-content">
<div class="gu-d-flex gu-justify-between">
<div class="gu-tag-block">
<div>Mentoring Programs</div>
</div>
<div class="gu-rating-wrapper">
<div class="gu-rating-block">
<div class="gu-main-card-middle-rating-block">
<div class="gu-main-card-middle-rating">
<span style="width: 66%"></span>
</div>
<div class="gu-main-card-middle-rating-number">3.6</div>
</div>
<div class="gu-rating-block-reviews"><a href="">(75 Reviews)</a></div>
</div>
</div>
</div>
<div class="gu-circle-text-preview">
<div class="gu-circle-text-preview__header">Passion Test Consultant Certification</div>
<div class="gu-circle-text-preview__text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi asperiores autem esse, fugiat fugit hic magni minima
numquam quasi qui tempora, unde voluptatem? Ab accusamus, alias amet consequatur corporis culpa, deserunt error
explicabo, facilis fugit inventore ipsam repellat. Neque, voluptas.
</div>
<div class="gu-pt-2">
<span class="gu-member-count gu-date">364</span>
<span class="gu-middle-dot-divider">·</span>
<span class="gu-date">12 jan 2020</span>
</div>
</div>
</div>
<div class="gu-card gu-card-bottom">
<div class="gu-card-bottom__members gu-d-flex gu-direction-column">
<div class="gu-old-price">$ 1325</div>
<div class="gu-price">$ 325</div>
</div>
<div class="gu-card-bottom__button">
<button class="gu-main-link-form-fill gu-bg-orange">VIEW</button>
</div>
</div>
</div>
<!---->
<div class="gu-circle-card">
<div class="gu-circle-card__top-image">
<img src="images/V1/laptop.png" alt="circle_image" />
<div class="gu-card-hover-area gu-card-hover-area-always-visible">
<!-- You can place here whatever hoverable elements you want-->
<div class="gu-card-hover-area__left gu-d-flex">
<div class="gu-close-icon gu-round-btn"><i class="fal fa-times fa-lg"></i></div>
<div class="gu-share-icon gu-round-btn"><i class="far fa-share-alt fa-lg"></i></div>
</div>
<div class="gu-card-hover-area__right gu-d-flex">
<div class="gu-post-bookmark gu-bookmark-active gu-round-btn"><i class="far fa-bookmark fa-lg"></i></div>
</div>
</div>
</div>
<div class="gu-card gu-card-content">
<div class="gu-d-flex gu-tags-line-grey gu-mb-3">
<div class="gu-tag-block gu-mr-1">
<div>Mentoring Programs</div>
</div>
<div class="gu-tag-block gu-mr-1">
<div>Coaching</div>
</div>
<div class="gu-ellipsis-svg">
<div>
<object type="image/svg+xml" data="images/V1/icon-ellipsis.svg"></object>
</div>
</div>
</div>
<div class="gu-circle-text-preview">
<div class="gu-circle-text-preview__header">Join me to lead my Startup!</div>
<div class="gu-tag-online gu-mr-1 gu-mb-2">
<div>Online</div>
</div>
<div class="gu-card-row__image-n-text-block gu-d-flex gu-direction-row">
<div
class="elevation-1 gu-card-row__image gu-card-row__image-36 gu-card-banner gu-card-banner-header gu-static gu-mb-0 gu-mr-3"
>
<img src="images/V1/avatar.png" />
</div>
<div class="gu-card-row__name gu-card-row__name-in-card gu-d-flex gu-direction-column">
<span class="header">Amanda Brown</span>
<div class="subheader">1 month ago</div>
</div>
</div>
<div class="gu-pt-2">
<span class="gu-member-count gu-date">364</span>
<span class="gu-middle-dot-divider">·</span>
<span class="gu-date">12 jan 2020</span>
</div>
</div>
</div>
<div class="gu-card gu-card-bottom">
<div class="gu-card-bottom__members gu-d-flex gu-direction-column">
<div class="gu-old-price">$ 1325</div>
<div class="gu-price">$ 325</div>
</div>
<div class="gu-card-bottom__button">
<button class="gu-main-link-form-fill gu-bg-orange">VIEW</button>
</div>
</div>
</div>
<!---->
<div class="gu-circle-card">
<div class="gu-circle-card__top-image">
<img src="images/V1/laptop.png" alt="circle_image" />
<div class="gu-card-hover-area">
<!-- You can place here whatever hoverable elements you want-->
<div class="gu-card-hover-area__left gu-d-flex">
<div class="gu-close-icon gu-round-btn"><i class="fal fa-times fa-lg"></i></div>
<div class="gu-share-icon gu-round-btn"><i class="far fa-share-alt fa-lg"></i></div>
</div>
<div class="gu-card-hover-area__right gu-d-flex">
<div class="gu-post-bookmark gu-round-btn"><i class="far fa-bookmark fa-lg"></i></div>
</div>
</div>
</div>
<div class="gu-card gu-card-content">
<div class="gu-card-banner elevation-1">
<img src="images/V1/curriculum-banner.jpg" />
<div class="gu-card-banner__badge badge-checkmark">
<div class="badge-checkmark-wrapper">
<object type="image/svg+xml" data="images/V1/icon-checkmark.svg"></object>
</div>
</div>
</div>
<div class="gu-rating-wrapper">
<div class="gu-rating-block">
<div class="gu-main-card-middle-rating-block">
<div class="gu-main-card-middle-rating">
<span style="width: 66%"></span>
</div>
<div class="gu-main-card-middle-rating-number">3.6</div>
</div>
<div class="gu-rating-block-reviews"><a href="">(75 Reviews)</a></div>
</div>
</div>
<div class="gu-circle-text-preview">
<div class="gu-circle-text-preview__header">InSight-U Coaching Programme</div>
</div>
<div class="gu-learning-progress-block gu-mt-4">
<div class="gu-learning-progress-block-top">
<div class="gu-progress-header">Your Learning Progress:</div>
<div class="gu-progress-steps">Steps 20/30</div>
</div>
<div class="gu-progress-bar">
<span class="gu-progress-bar-fill" style="width: 70%"></span>
</div>
</div>
</div>
<div class="gu-card gu-card-bottom">
<div class="gu-card-bottom__button gu-width-full">
<button class="gu-main-link-form-fill gu-bg-orange">VIEW</button>
</div>
</div>
</div>
Cards in scrollable row on mobile
gu-card-wrapper-scrollable
to gu-circle-card-wrapper
Genius Test
Genius Test
Genius Test
Genius Test
<div class="gu-circle-card-wrapper gu-card-wrapper-scrollable">
<div class="gu-circle-card">
<!-- Circle card -->
</div>
<!-- Another cards -->
</div>
Post and messages
Posts wrapper
<div class="gu-posts-wrapper">
<div class="gu-d-flex gu-post-row">
<div class="elevation-1 gu-card-row__image gu-card-banner gu-card-banner-header gu-static gu-mb-0">
<img src="./images/avatar.png" />
</div>
<input type="text" class="gu-posts-input input-lg gu-input" id="exmpl" placeholder="Your Circle name" />
<button class="gu-posts-btn gu-main-link-form-fill gu-bg-orange">POST</button>
</div>
<div class="gu-d-flex gu-post-row">
<div class="gu-tags-wrapper">
<button class="gu-tag gu-main-link-form-fill gu-border-green gu-color-green">
<div class="btn-content">
<i class="far fa-star gu-btn-icon"></i>
General
</div>
</button>
<button class="gu-tag gu-main-link-form-fill gu-border-green gu-color-green">
<div class="btn-content">
<i class="far fa-clipboard-list gu-btn-icon"></i>
Announcements
</div>
</button>
<button class="gu-tag gu-main-link-form-fill gu-border-green gu-color-green">
<div class="btn-content">
<i class="far fa-graduation-cap gu-btn-icon"></i>
Circle Microdegree
</div>
</button>
</div>
</div>
</div>
Pinned post
gu-bookmark-active
<div class="gu-posts-wrapper gu-post-pinned">
<div class="gu-d-flex gu-post-row gu-justify-between gu-align-center">
<div class="gu-card-row__image-n-text-block gu-d-flex gu-direction-row">
<div class="elevation-1 gu-card-row__image gu-card-banner gu-card-banner-header gu-static gu-mb-0 gu-mr-3">
<img src="images/V1/avatar.png" />
</div>
<div class="gu-card-row__name gu-d-flex gu-direction-column">
<span class="header">Roger Hamilton</span>
<div class="subheader">Mentor</div>
</div>
</div>
<div class="gu-post-bookmark gu-round-btn"><i class="far fa-bookmark fa-lg"></i></div>
</div>
<div class="gu-post-bookmark gu-round-btn gu-bookmark-active"><i class="far fa-bookmark fa-lg"></i></div>
Active bookmark with class <code class="language-html">gu-bookmark-active</code>
</div>
Header with "View all" for cards
Mentor row for cards
Default size on image wrapper 44px; You can specify 36px or 60px by adding to classgu-card-row__image
class gu-card-row__image-60
or
gu-card-row__image-36
Example
<div class="gu-card-row__image gu-card-row__image-36 gu-card-banner gu-static">
<img src="images/V1/neon.png" alt="neon" />
</div>
Separator added by adding class
gu-with-separator
to
gu-side-card__rows-block
<div class="gu-side-card gu-d-flex gu-direction-column">
<div class="gu-side-card__header gu-d-flex gu-direction-row gu-justify-between gu-align-center gu-mb-2">
<span class="header">Circle Mentor</span>
<a class="view-all" href="">View All</a>
</div>
<div class="gu-side-card__rows-block gu-with-separator">
<div class="gu-side-card-row gu-d-flex gu-direction-row gu-justify-between gu-mt-3 gu-mb-2">
<div class="gu-card-row__image-n-text-block gu-d-flex gu-direction-row">
<div class="elevation-1 gu-card-row__image gu-card-banner gu-card-banner-header gu-static gu-mb-0 gu-mr-3">
<img src="./images/avatar.png" />
</div>
<div class="gu-card-row__name gu-d-flex gu-direction-column">
<span class="header">Roger Hamilton</span>
<div class="subheader">Mentor</div>
</div>
</div>
<div class="gu-rating-block">
<div class="gu-main-card-middle-rating-block">
<div class="gu-main-card-middle-rating">
<span style="width: 66%"></span>
</div>
<div class="gu-main-card-middle-rating-number">3.6</div>
</div>
<div class="gu-rating-block-reviews"><a href="">(75 Reviews)</a></div>
</div>
</div>
<div class="gu-side-card-row gu-d-flex gu-direction-row gu-justify-between gu-mt-3 gu-mb-2 ">
<div class="gu-card-row__image-n-text-block gu-d-flex gu-direction-row">
<div
class="elevation-1 gu-card-row__image gu-card-row__image-60 gu-card-banner gu-card-banner-header gu-static gu-mb-0 gu-mr-3"
>
<img src="./images/neon.png" />
</div>
<div class="gu-card-row__name gu-d-flex gu-direction-column">
<span class="header low">The Personalised Education Movement</span>
<div class="subheader">
<i class="far fa-user-friends gu-date"></i>
<span class="gu-member-count gu-date">364</span>
<span class="gu-middle-dot-divider">·</span>
<span class="gu-date">12 jan 2020</span>
</div>
</div>
</div>
</div>
<div class="gu-side-card-row gu-d-flex gu-direction-row gu-justify-between gu-mt-3 gu-mb-2 ">
<div class="gu-card-row__image-n-text-block gu-d-flex gu-direction-row">
<div
class="elevation-1 gu-card-row__image gu-card-row__image-60 gu-card-banner gu-card-banner-header gu-static gu-mb-0 gu-mr-3"
>
<img src="./images/circle-badge.png" />
</div>
<div class="gu-card-row__name gu-d-flex gu-direction-column">
<span class="header low">The Personalised Education</span>
<div class="subheader">
<span class="gu-date">11 jan 2020</span>
<span class="gu-date">-</span>
<span class="gu-date">12 jan 2020</span>
</div>
</div>
</div>
<button class="gu-main-link-form-fill gu-bg-green">Start</button>
</div>
</div>
</div>
Website-card-link
<div class="gu-side-card">
<!-- GU LINK CARD -->
<div class="gu-link-card gu-d-flex">
<div class="gu-link-card__image-block gu-card-banner gu-card-banner-header gu-static elevation-0 gu-mb-0 gu-mr-0">
<img src="./images/circle-badge.png" />
</div>
<div class="gu-link-card__link-block">
<div class="gu-link-block__header">
<i class="fad fa-link gu-mr-1"></i>
<span class="header">Health Dynamics</span>
</div>
<div class="gu-link-block__link">
<a href="https://healthdynamics.geniusu.com/">https://healthdynamics.geniusu.com/</a>
</div>
</div>
</div>
<!-- -->
</div>
Round image badge
*Wrapper with
position: relative;
using class
gu-relative-block
This image has position absolute with
top: -88px; left: calc(50% - 70px); @media (min-width: 768px) { top: -112px; left: 70px; }
so it requires a wrapper with position: relative;
Override position values for
positioning.
For discarding absolute positioned image - use class
gu-static
Control the size with width and height of image wrapper (gu-card-banner-* or gu-card-banner(if no gu-card-banner-header class)),
width and height should be equal.
<div class="gu-relative-block gu-border-orange gu-pa-5" style="min-height: 70px">
<div class="gu-card-banner gu-card-banner-header elevation-1"><img src="./images/circle-badge.png" /></div>
</div>
<div class="gu-relative-block gu-border-orange gu-pa-5" style="min-height: 70px">
<div class="gu-card-banner gu-card-banner-header gu-static elevation-1"><img src="./images/circle-badge.png" /></div>
</div>
Pagination
<div>
<nav class="gu-pagination">
<span class="prev change-active">
<a rel="prev" href=""
><img
src="https://d27hl5wikuj24b.cloudfront.net/assets/2020/genius_institute/left-green-arrow-b6779c6808e5fd57da394c2959e3d0d8bd33c8823ada17b67d48720e9d3b4179.svg"
alt="Left green arrow"
/></a>
</span>
<span class="page active">
<a rel="prev" href="">1</a>
</span>
<span class="page current active"> 2 </span>
<span class="page active"> 3 </span>
<span class="page active"> 4 </span>
<span class="next change-active">
<a rel="next" href=""
><img
src="https://d27hl5wikuj24b.cloudfront.net/assets/2020/genius_institute/left-green-arrow-b6779c6808e5fd57da394c2959e3d0d8bd33c8823ada17b67d48720e9d3b4179.svg"
alt="Left green arrow"
/></a>
</span>
</nav>
</div>
Rating Stars
Control the fulfilling of stars with value of style="width: 80%"
<div class="gu-rating-block">
<div class="gu-main-card-middle-rating-block">
<div class="gu-main-card-middle-rating">
<span style="width: 80%"></span>
</div>
<div class="gu-main-card-middle-rating-number">4</div>
</div>
</div>
Rating with review
<div class="gu-rating-block">
<div class="gu-main-card-middle-rating-block">
<div class="gu-main-card-middle-rating">
<span style="width: 66%"></span>
</div>
<div class="gu-main-card-middle-rating-number">3.6</div>
</div>
<div class="gu-rating-block-reviews"><a href="">(75 Reviews)</a></div>
</div>
One line rating
Add class gu-rating-one-line
<div class="gu-rating-block gu-rating-one-line">
<div class="gu-main-card-middle-rating-block">
<div class="gu-main-card-middle-rating">
<span style="width: 66%"></span>
</div>
<div class="gu-main-card-middle-rating-number">3.6</div>
</div>
<div class="gu-rating-block-reviews"><a href="">(75 Reviews)</a></div>
</div>
Tabs
- Recommended
- All
- Joined
- Created
- Created
- Created
<div class="gu-main-content-container">
<!-- GU tabs component-->
<div class="gu-tabs-container">
<ul class="gu-tabs-list gu-relative-block">
<li class="gu-tab">
<a href="1" data-tab-name="created-1" class="gu-tab-text">Created</a>
</li>
<li class="gu-tab gu-tab-active">
<a href="2" data-tab-name="created-2" class="gu-tab-text">Created</a>
</li>
<li class="gu-tab">
<a href="3" data-tab-name="created-3" class="gu-tab-text">Created</a>
</li>
<li class="gu-tab">
<a href="4" data-tab-name="created-4" class="gu-tab-text">Created</a>
</li>
<li class="gu-tab">
<a href="5" data-tab-name="created-5" class="gu-tab-text">Created</a>
</li>
<li class="gu-tab">
<a href="6" data-tab-name="created-6" class="gu-tab-text">Created</a>
</li>
</ul>
</div>
<!---->
</div>
Main content container climbing on top
<div class="gu-container-wrapper">
<div class="gu-main-content-container"><div>some content</div></div>
</div>
Select2 component
To enable Select2 component class js-no-search-basic-single should be registered in app like this:
From the docs:
Select2 will register itself as a jQuery function if you use any of the distribution builds, so you can call
.select2()
on any jQuery
selector where you would like to initialize Select2.
Basic usage | Select2 (WebCache)
// In your Javascript (external .js resource or <script> tag or import select2register.js from stylekit)
$(function () {
$(".js-no-search-basic-single").select2({
minimumResultsForSearch: -1,
dropdownCssClass: "gu-select-dropdown",
});
});
$(function () {
$(".js-with-search-basic-single").select2({
dropdownCssClass: "gu-select-dropdown",
});
});
$(function () {
$(".js-form-select-no-search-single").select2({
minimumResultsForSearch: -1,
dropdownCssClass: "gu-select-form-dropdown",
});
});
Select without search
Added with class js-no-search-basic-single
Should be registered in js as class .js-no-search-basic-single
or imported file from stylekit with predefined
select2 options
Select with search
Added with class js-with-search-basic-single
Should be registered in js as class .js-with-search-basic-single
or imported file from stylekit with predefined
select2 options
Select without search for form
Added with class js-form-select-no-search-single
Should be registered in js as class .js-form-select-no-search-single
or imported file from stylekit with predefined
select2 options
<div class="gu-select">
<select class="js-no-search-basic-single" name="state">
<option value="AL">Alabama</option>
<option value="AL1">Alabama1</option>
<option value="AL2">Alabama2</option>
<option value="WY">Wyoming</option>
</select>
</div>
<div class="gu-select">
<select class="js-with-search-basic-single" name="state">
<option value="AL">Alabama</option>
<option value="AL1">Alabama1</option>
<option value="AL2">Alabama2</option>
<option value="WY">Wyoming</option>
</select>
</div>
<div class="gu-select-form-input">
<select class="js-form-select-no-search-single" name="state">
<option value="AL">Alabama</option>
<option value="AL1">Alabama1</option>
<option value="AL2">Alabama2</option>
<option value="WY">Wyoming</option>
</select>
</div>
Dropdown
Use bootstrap options for positioning
Dropdowns BS3.3
<div class="dropdown">
<a href="#" data-toggle="dropdown" class="gu-dropdown-active-area">
Dropdown
<i class="fas fa-fw fa-caret-down gu-dropdown-icon-rotate"></i>
</a>
<ul class="dropdown-menu">
<li><a href="#">Profile</a></li>
<li><a href="#">Dashboard</a></li>
<li><a href="#">Messages</a></li>
<li><a href="#">Notifications</a></li>
<li><a href="#">Settings / Preferences</a></li>
<li><a href="#">Stream</a></li>
<li><a href="#">Logout</a></li>
</ul>
</div>
Form
<form class="gu-form">
<div class="form-group">
<label for="circle_name2">Circle Name</label>
<input type="text" class="form-control input-lg gu-input" id="circle_name2" placeholder="Your Circle name" />
</div>
<div class="form-group gu-mt-4">
<label for="circle_name3">Input with Button</label>
<div class="gu-input-with-btn-wrapper">
<input type="text" class="form-control input-lg gu-input" id="circle_name3" placeholder="Your Circle name" />
<button class="gu-main-link-form gu-ml-3">Back</button>
</div>
</div>
<div class="form-group gu-mt-4">
<label for="circle_name4">Input with Button (with icon)</label>
<div class="gu-input-with-btn-wrapper">
<input type="text" class="form-control input-lg gu-input" id="circle_name4" placeholder="Your Circle name" />
<button class="gu-main-link-form gu-ml-3">
<i class="fal fa-arrow-left gu-btn-icon"></i>
Back
</button>
</div>
</div>
<div class="gu-select-form-input">
<select class="js-form-select-no-search-single" name="state">
<option value="AL">Alabama</option>
<option value="AL1">Alabama1</option>
<option value="AL2">Alabama2</option>
<option value="WY">Wyoming</option>
</select>
</div>
<div class="form-group">
<label for="description_example">Short description</label>
<textarea class="form-control gu-input gu-input-textarea" rows="3" id="description_example"></textarea>
</div>
<div class="form-group gu-image-loader gu-pl-0">
<input type="file" id="cover_image_example" class="gu-visually-hidden" />
<p class="gu-pl-0 gu-mb-1">Choose your image to show it on Circle with the following dimensions: 310x140 px wide</p>
<div class="gu-image-wrapper gu-pl-0 gu-mt-5 gu-mb-5">
<div class="gu-image">
<div class="gu-cover-image-preview"></div>
</div>
</div>
<label for="cover_image_example" class="gu-image-loader-label gu-main-link-orange-form gu-pl-0">Choose Image</label>
</div>
<div class="form-group gu-image-loader gu-pl-0">
<h3>Cover Image</h3>
<input type="file" id="badge_image" class="gu-visually-hidden" />
<p class="gu-pl-0 gu-mb-1">Upload your image, please make sure your image is the following dimensions: 90Ñ…90</p>
<div class="gu-image-wrapper gu-pl-0 gu-mt-5 gu-mb-5">
<div class="gu-image">
<div class="gu-round-image-preview"></div>
</div>
</div>
<label for="badge_image" class="gu-image-loader-label gu-main-link-orange-form gu-pl-0">Choose Image</label>
</div>
<h3>Icon with hover popup</h3>
<div class="gu-creation-label gu-creation-label-with-icon gu-mb-5">
<div class="gu-create-label-hint">
<span><i class="fas fa-question fa-sm"></i></span>
<div class="gu-hover-label-hint">
Activating the Store for your circle means you will be able to link Products to your circle. These are visible from the
Product tab in your circle once added. Select this box if you want to activate the store
</div>
</div>
</div>
<div class="gu-vertical-space"></div>
<div class="gu-input-radio">
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-radio__container gu-mr-2">
One
<input type="radio" checked="checked" name="radio" />
<span class="gu-checkmark"></span>
</label>
<div class="gu-creation-label gu-creation-label-with-icon">
<div class="gu-create-label-hint">
<span><i class="fas fa-question fa-sm"></i></span>
<div class="gu-hover-label-hint">
Activating the Store for your circle means you will be able to link Products to your circle. These are visible from
the Product tab in your circle once added. Select this box if you want to activate the store
</div>
</div>
</div>
</div>
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-radio__container">
Two
<input type="radio" name="radio" />
<span class="gu-checkmark"></span>
</label>
</div>
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-radio__container"
>Three
<input type="radio" name="radio" />
<span class="gu-checkmark"></span>
</label>
</div>
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-radio__container"
>Four
<input type="radio" name="radio" />
<span class="gu-checkmark"></span>
</label>
</div>
</div>
<div class="gu-vertical-space"></div>
<div class="gu-input-checkbox">
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-checkbox__container"
>One
<input type="checkbox" checked="checked" />
<span class="gu-checkmark"></span>
</label>
</div>
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-checkbox__container"
>Two
<input type="checkbox" />
<span class="gu-checkmark"></span>
</label>
</div>
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-checkbox__container"
>Three
<input type="checkbox" />
<span class="gu-checkmark"></span>
</label>
</div>
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-checkbox__container"
>Four
<input type="checkbox" />
<span class="gu-checkmark"></span>
</label>
</div>
</div>
</form>
Text Search Input
<div class="form-group">
<label for="circle_name">Circle Name</label>
<input type="text" class="form-control input-lg gu-input" id="circle_name" placeholder="Your Circle name" />
</div>
Text Input
<div class="form-group">
<label for="circle_name">Circle Name</label>
<input type="text" class="form-control input-lg gu-input" id="circle_name" placeholder="Your Circle name" />
</div>
Text Input with buttons
<div class="form-group gu-mt-4">
<label for="circle_name3">Input with Button</label>
<div class="gu-input-with-btn-wrapper">
<input type="text" class="form-control input-lg gu-input" id="circle_name3" placeholder="Your Circle name" />
<button class="gu-main-link-form">Back</button>
</div>
</div>
<div class="form-group gu-mt-4">
<label for="circle_name4">Input with Button (with icon)</label>
<div class="gu-input-with-btn-wrapper">
<input type="text" class="form-control input-lg gu-input" id="circle_name4" placeholder="Your Circle name" />
<button class="gu-main-link-form">
<i class="fal fa-arrow-left gu-btn-icon"></i>
Back
</button>
</div>
</div>
Select
<div class="gu-select-form-input">
<select class="js-form-select-no-search-single" name="state">
<option value="AL">Alabama</option>
<option value="AL1">Alabama1</option>
<option value="AL2">Alabama2</option>
<option value="WY">Wyoming</option>
</select>
</div>
Textarea
<div class="form-group">
<label for="description">Short description</label>
<textarea class="form-control gu-input gu-input-textarea" rows="3" id="description"></textarea>
</div>
Input File - Image Loader
Choose your image to show it on Circle with the following dimensions: 310x140 px wide
<div class="form-group gu-image-loader gu-pl-0">
<input type="file" id="cover_image" class="gu-visually-hidden" />
<p class="gu-pl-0 gu-mb-1">Choose your image to show it on Circle with the following dimensions: 310x140 px wide</p>
<div class="gu-image-wrapper gu-pl-0 gu-mt-5 gu-mb-5">
<div class="gu-image">
<div class="gu-cover-image-preview"></div>
</div>
</div>
<label for="cover_image" class="gu-image-loader-label gu-main-link-orange-form gu-pl-0">Choose Image</label>
</div>
Radiobuttons & Checkboxes
<div class="gu-input-radio">
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-radio__container gu-mr-2">
One
<input type="radio" checked="checked" name="radio" />
<span class="gu-checkmark"></span>
</label>
<div class="gu-creation-label gu-creation-label-with-icon">
<div class="gu-create-label-hint">
<span><i class="fas fa-question fa-sm"></i></span>
<div class="gu-hover-label-hint">
Activating the Store for your circle means you will be able to link Products to your circle. These are visible from
the Product tab in your circle once added. Select this box if you want to activate the store
</div>
</div>
</div>
</div>
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-radio__container">
Two
<input type="radio" name="radio" />
<span class="gu-checkmark"></span>
</label>
</div>
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-radio__container"
>Three
<input type="radio" name="radio" />
<span class="gu-checkmark"></span>
</label>
</div>
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-radio__container"
>Four
<input type="radio" name="radio" />
<span class="gu-checkmark"></span>
</label>
</div>
</div>
<div class="gu-vertical-space"></div>
<div class="gu-input-checkbox">
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-checkbox__container"
>One
<input type="checkbox" checked="checked" />
<span class="gu-checkmark"></span>
</label>
</div>
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-checkbox__container"
>Two
<input type="checkbox" />
<span class="gu-checkmark"></span>
</label>
</div>
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-checkbox__container"
>Three
<input type="checkbox" />
<span class="gu-checkmark"></span>
</label>
</div>
<div class="gu-d-flex gu-mb-3">
<label class="gu-input-checkbox__container"
>Four
<input type="checkbox" />
<span class="gu-checkmark"></span>
</label>
</div>
</div>