A Pen by Matt Daniel Brown on CodePen.
Created
February 25, 2021 20:05
-
-
Save matt-daniel-brown/4d19391831cb40755b1aeda0b996f8dd to your computer and use it in GitHub Desktop.
Uisual
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header role="banner" class="ui-section-header"> | |
<div class="ui-layout-container"> | |
<div class="ui-section-header__layout ui-layout-flex"> | |
<!-- LOGO --> | |
<a href="#" role="link" aria-label="#" class="ui-section-header--logo"> | |
<svg viewBox="0 0 18 18" height="18" width="18" role="img" aria-label="#"> | |
<path fill="#353535" d="M0 0h4.5v9a4.5 4.5 0 109 0V6H18v3A9 9 0 110 9V0zm18 4.5V0h-4.5v4.5H18z" /> | |
</svg> | |
</a> | |
<!-- HAMBURGER --> | |
<input type="checkbox" id="ui-section-header--menu-id"> | |
<label for="ui-section-header--menu-id" class="ui-section-header--menu-icon"></label> | |
<!-- MENU --> | |
<nav role="navigation" class="ui-section-header--nav ui-layout-flex"> | |
<a href="#" role="link" aria-label="#" class="ui-section-header--nav-link">Features</a> | |
<a href="#" role="link" aria-label="#" class="ui-section-header--nav-link">Pricing</a> | |
<a href="#" role="link" aria-label="#" class="ui-section-header--nav-link">About</a> | |
</nav> | |
</div> | |
</div> | |
</header> | |
<main role="main"> | |
<section class="ui-section-hero"> | |
<div class="ui-layout-container"> | |
<div class="ui-section-hero__layout ui-layout-grid ui-layout-grid-2"> | |
<!-- COPYWRITING --> | |
<div> | |
<h1>Design better.</h1> | |
<p class="ui-text-intro">Lorem ipsum dolor sit amet, consectetur lit, enimad eiusmod tempor incididunt ut labore et dolore magna aliqua ullamco laboris nisi.</p> | |
<!-- CTA --> | |
<div class="ui-component-cta ui-layout-flex"> | |
<a href="#" role="link" aria-label="#" class="ui-component-button ui-component-button-normal ui-component-button-primary">Get Started for Free</a> | |
<p class="ui-text-note"><small>30 days free trial.</small></p> | |
</div> | |
</div> | |
<!-- IMAGE --> | |
<img src="https://res.cloudinary.com/uisual/image/upload/assets/devices/ipad.png" loading="lazy" alt="#" class="ui-image-half-right"> | |
</div> | |
</div> | |
</section> | |
<section class="ui-section-customer"> | |
<div class="ui-layout-container"> | |
<div class="ui-section-customer__layout ui-layout-flex"> | |
<img src="https://res.cloudinary.com/uisual/image/upload/assets/logos/facebook.svg" alt="#" class="ui-section-customer--logo"> | |
<img src="https://res.cloudinary.com/uisual/image/upload/assets/logos/pinterest.svg" alt="#" class="ui-section-customer--logo"> | |
<img src="https://res.cloudinary.com/uisual/image/upload/assets/logos/stripe.svg" alt="#" class="ui-section-customer--logo ui-section-customer--logo-str"> | |
<img src="https://res.cloudinary.com/uisual/image/upload/assets/logos/dribbble.svg" alt="#" class="ui-section-customer--logo"> | |
<img src="https://res.cloudinary.com/uisual/image/upload/assets/logos/behance.svg" alt="#" class="ui-section-customer--logo ui-section-customer--logo-bhn"> | |
</div> | |
</div> | |
</section> | |
<section class="ui-section-feature"> | |
<div class="ui-layout-container"> | |
<div class="ui-section-feature__layout ui-layout-grid ui-layout-grid-3"> | |
<div class="ui-component-card ui-component-card--feature"> | |
<img src="https://res.cloudinary.com/uisual/image/upload/assets/graphics/notification.png" alt="#" loading="lazy"> | |
<div class="ui-component-card--feature-content"> | |
<h4 class="ui-component-card--feature-title">Lorem ipsum dolor.</h4> | |
<p>Lorem ipsum dolor sit amet sed eiusmod tempor incididunt.</p> | |
</div> | |
</div> | |
<div class="ui-component-card ui-component-card--feature"> | |
<img src="https://res.cloudinary.com/uisual/image/upload/assets/graphics/notification.png" alt="#" loading="lazy"> | |
<div class="ui-component-card--feature-content"> | |
<h4 class="ui-component-card--feature-title">Lorem ipsum dolor.</h4> | |
<p>Lorem ipsum dolor sit amet sed eiusmod tempor incididunt.</p> | |
</div> | |
</div> | |
<div class="ui-component-card ui-component-card--feature"> | |
<img src="https://res.cloudinary.com/uisual/image/upload/assets/graphics/notification.png" alt="#" loading="lazy"> | |
<div class="ui-component-card--feature-content"> | |
<h4 class="ui-component-card--feature-title">Lorem ipsum dolor.</h4> | |
<p>Lorem ipsum dolor sit amet sed eiusmod tempor incididunt.</p> | |
</div> | |
</div> | |
</div> | |
</div> | |
</section> | |
<section class="ui-section-testimonial"> | |
<div class="ui-layout-container"> | |
<div class="ui-layout-column-4 ui-layout-column-center"> | |
<img src="https://res.cloudinary.com/uisual/image/upload/assets/icons/avatar.svg" alt="#" class="ui-section-testimonial--avatar"> | |
<p class="ui-section-testimonial--quote ui-text-intro">“Lorem ipsum dolor sit amet, consec adipiscing elit, sed do eiusmod tempor incididunt labore dolore magna.”</p> | |
<p class="ui-section-testimonial--author"><strong>Jane Doe</strong><br><small class="ui-text-note">CEO of Company</small></p> | |
</div> | |
</div> | |
</section> | |
<section class="ui-section-pricing"> | |
<div class="ui-layout-container"> | |
<h2>Fair Prices</h2> | |
<p class="ui-text-intro">Lorem ipsum dolor sit amet.</p> | |
<!-- TOGGLE --> | |
<input type="radio" name="toggle" id="ui-component-toggle__monthly" checked> | |
<input type="radio" name="toggle" id="ui-component-toggle__yearly"> | |
<div class="ui-component-toggle ui-layout-flex"> | |
<label for="ui-component-toggle__monthly" class="ui-component-toggle--label">Billed Monthly</label> | |
<label for="ui-component-toggle__yearly" class="ui-component-toggle--label">Billed Yearly</label> | |
</div> | |
<p class="ui-text-note"><small>Save 15% with a yearly plan.</small></p> | |
<!-- PRICING --> | |
<div class="ui-section-pricing__layout ui-layout-grid ui-layout-grid-3"> | |
<div class="ui-component-card ui-component-card--pricing"> | |
<span><strong>Basic</strong></span> | |
<!-- AMOUNT --> | |
<div class="ui-component-card--pricing-price"> | |
<span class="ui-component-card--pricing-amount ui-component-card--pricing-amount-1"></span> | |
<span>/</span> | |
<span>month</span> | |
</div> | |
<span><small>Perfect for early-stage startups.</small></span> | |
<!-- LIST --> | |
<ul class="ui-component-list ui-component-list--pricing ui-layout-grid"> | |
<li class="ui-component-list--item ui-component-list--item-check">1 domain name.</li> | |
<li class="ui-component-list--item ui-component-list--item-check">HTML components.</li> | |
<li class="ui-component-list--item ui-component-list--item-cross">Priority support.</li> | |
</ul> | |
<!-- CTA --> | |
<a href="#" class="ui-component-button ui-component-button-big ui-component-button-secondary" role="link" aria-label="#">Get Started</a> | |
</div> | |
<div class="ui-component-card ui-component-card--pricing"> | |
<span><strong>Standard</strong></span> | |
<!-- AMOUNT --> | |
<div class="ui-component-card--pricing-price"> | |
<span class="ui-component-card--pricing-amount ui-component-card--pricing-amount-2"></span> | |
<span>/</span> | |
<span>month</span> | |
</div> | |
<span><small>Perfect for early-stage startups.</small></span> | |
<!-- LIST --> | |
<ul class="ui-component-list ui-component-list--pricing ui-layout-grid"> | |
<li class="ui-component-list--item ui-component-list--item-check">1 domain name.</li> | |
<li class="ui-component-list--item ui-component-list--item-check">HTML components.</li> | |
<li class="ui-component-list--item ui-component-list--item-check">Priority support.</li> | |
</ul> | |
<!-- CTA --> | |
<a href="#" class="ui-component-button ui-component-button-big ui-component-button-primary" role="link" aria-label="#">Get Started</a> | |
</div> | |
<div class="ui-component-card ui-component-card--pricing"> | |
<span><strong>Special</strong></span> | |
<!-- AMOUNT --> | |
<div class="ui-component-card--pricing-price"> | |
<span class="ui-component-card--pricing-amount ui-component-card--pricing-amount-3"></span> | |
<span>/</span> | |
<span>month</span> | |
</div> | |
<span><small>Perfect for early-stage startups.</small></span> | |
<!-- LIST --> | |
<ul class="ui-component-list ui-component-list--pricing ui-layout-grid"> | |
<li class="ui-component-list--item ui-component-list--item-check">1 domain name.</li> | |
<li class="ui-component-list--item ui-component-list--item-check">HTML components.</li> | |
<li class="ui-component-list--item ui-component-list--item-check">Priority support.</li> | |
</ul> | |
<!-- CTA --> | |
<a href="#" class="ui-component-button ui-component-button-big ui-component-button-secondary" role="link" aria-label="#">Get Started</a> | |
</div> | |
</div> | |
</div> | |
</section> | |
<section class="ui-section-faq"> | |
<div class="ui-layout-container"> | |
<div class="ui-section-faq__layout ui-layout-grid ui-layout-grid-2"> | |
<div> | |
<h4 class="ui-component-list--item ui-section-faq--question">Lorem ipsum dolor?</h4> | |
<p class="ui-section-faq--answer">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> | |
</div> | |
<div> | |
<h4 class="ui-component-list--item ui-section-faq--question">Lorem ipsum dolor?</h4> | |
<p class="ui-section-faq--answer">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> | |
</div> | |
<div> | |
<h4 class="ui-component-list--item ui-section-faq--question">Lorem ipsum dolor?</h4> | |
<p class="ui-section-faq--answer">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> | |
</div> | |
<div> | |
<h4 class="ui-component-list--item ui-section-faq--question">Lorem ipsum dolor?</h4> | |
<p class="ui-section-faq--answer">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> | |
</div> | |
</div> | |
<p class="ui-section-faq--note">Still have questions? <a href="#" role="link" aria-label="#">Contact us</a>.</p> | |
</div> | |
</section> | |
<section class="ui-section-close"> | |
<div class="ui-layout-container"> | |
<div class="ui-section-close__layout ui-layout-flex"> | |
<div> | |
<h2>Ready to start?</h2> | |
<p class="ui-text-intro">Lorem ipsum dolor sit amet consectetur.</p> | |
</div> | |
<!-- CTA --> | |
<div class="ui-component-cta ui-layout-flex"> | |
<a href="#" role="link" aria-label="#" class="ui-component-button ui-component-button-normal ui-component-button-primary">Get Started for Free</a> | |
<p class="ui-text-note"><small>30 days free trial.</small></p> | |
</div> | |
</div> | |
</div> | |
</section> | |
</main> | |
<footer role="contentinfo" class="ui-section-footer"> | |
<div class="ui-layout-container"> | |
<div class="ui-section-footer__layout ui-layout-flex"> | |
<!-- COPYRIGHT --> | |
<p class="ui-section-footer--copyright ui-text-note"><small>© 0000 Uisual</small></p> | |
<!-- MENU --> | |
<a href="#" role="link" aria-label="#"> | |
<svg viewBox="0 0 24 24" height="16" width="16" fill="none" stroke="#AEAEAE" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" role="img" aria-label="#"> | |
<path d="M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z" /> | |
</svg> | |
</a> | |
<a href="#" role="link" aria-label="#"> | |
<svg viewBox="0 0 24 24" height="16" width="16" fill="none" stroke="#AEAEAE" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" role="img" aria-label="#"> | |
<rect width="20" height="20" x="2" y="2" rx="5" ry="5" /> | |
<path d="M16 11.37A4 4 0 1112.63 8 4 4 0 0116 11.37zM17.5 6.5h.01" /> | |
</svg> | |
</a> | |
<a href="#" role="link" aria-label="#"> | |
<svg viewBox="0 0 24 24" height="16" width="16" fill="none" stroke="#AEAEAE" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" role="img" aria-label="#"> | |
<circle cx="12" cy="12" r="10" /> | |
<path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32" /> | |
</svg> | |
</a> | |
</div> | |
</div> | |
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*-------------------------------------------------------------- | |
TABLE OF CONTENT | |
---------------------------------------------------------------- | |
1.0 VARIABLE | |
| 1.1 COLOR | |
| 1.2 TYPOGRAPHY | |
| 1.3 LAYOUT | |
2.0 FOUNDATION | |
3.0 TYPOGRAPHY | |
4.0 IMAGE | |
5.0 LAYOUT | |
6.0 COMPONENT | |
| 6.1 CTA | |
| 6.2 BUTTON | |
| 6.3 TOGGLE | |
| 6.4 CARD | |
| 6.5 LIST | |
7.0 SECTION | |
| 7.1 HEADER | |
| 7.2 HERO | |
| 7.3 CUSTOMER | |
| 7.4 FEATURE | |
| 7.5 TESTIMONIAL | |
| 7.6 PRICING | |
| 7.7 FAQ | |
| 7.8 CLOSE | |
| 7.9 FOOTER | |
8.0 MEDIA | |
| 8.1 768PX | |
| 8.2 1024PX | |
| 8.3 1200PX | |
--------------------------------------------------------------*/ | |
/*-------------------------------------------------------------- | |
1.0 VARIABLE | |
--------------------------------------------------------------*/ | |
:root { | |
/*------------------------------------------------------------ | |
| | |
| 1.1 COLOR | |
| | |
------------------------------------------------------------*/ | |
--ui-color-brand: #353535; | |
/* COLOR PALETTE */ | |
--ui-color-n-000: #fff; | |
--ui-color-n-050: #f5f5f5; | |
--ui-color-n-100: #ebebeb; | |
--ui-color-n-300: #aeaeae; | |
--ui-color-n-500: #353535; | |
--ui-color-n-700: #282828; | |
--ui-color-n-900: #1a1a1a; | |
/* BACKGROUND COLOR */ | |
--ui-color-background-primary: var(--ui-color-n-000); | |
--ui-color-background-secondary: var(--ui-color-n-050); | |
--ui-color-background-tertiary: var(--ui-color-n-100); | |
/* BORDER COLOR */ | |
--ui-color-border: var(--ui-color-n-100); | |
/* TYPOGRAPHY COLOR */ | |
--ui-color-typography-heading: var(--ui-color-n-500); | |
--ui-color-typography-body: var(--ui-color-n-900); | |
--ui-color-typography-note: var(--ui-color-n-300); | |
--ui-color-typography-button: var(--ui-color-n-000); | |
/*------------------------------------------------------------ | |
| | |
| 1.2 TYPOGRAPHY | |
| | |
------------------------------------------------------------*/ | |
--ui-typography-typeface: "Inter", sans-serif; | |
/* FONT SIZE */ | |
--ui-typography-h1: 1.9375rem; | |
--ui-typography-h2: 1.5625rem; | |
--ui-typography-h3: 1.25rem; | |
--ui-typography-h4: 1rem; | |
--ui-typography-p: 1rem; | |
--ui-typography-s: 0.8125rem; | |
/* LEADING */ | |
--ui-typography-h1-leading: 1.2; | |
--ui-typography-h2-leading: 1.2; | |
--ui-typography-h4-leading: 1.25; | |
--ui-typography-p-leading: 1.5; | |
/* MARGIN */ | |
--ui-typography-margin-heading: 0.75rem; | |
--ui-typography-margin-body: 1.125rem; | |
/*------------------------------------------------------------ | |
| | |
| 1.3 LAYOUT | |
| | |
------------------------------------------------------------*/ | |
--ui-layout-container: 1.25rem; | |
--ui-layout-grid: 3.625rem; | |
--ui-layout-gutter: 1rem; | |
/* GAP */ | |
--ui-gap-header: 1rem; | |
--ui-gap-cta: 0.75rem; | |
--ui-gap-hero: 2rem; | |
--ui-gap-customer: 2rem; | |
--ui-gap-card: 1.25rem; | |
--ui-gap-pricing: 2rem; | |
--ui-gap-faq: 1.5rem; | |
/* BORDER RADIUS */ | |
--ui-radius-avatar: 5rem; | |
--ui-radius-button: 5rem; | |
--ui-radius-card: 0.5rem; | |
} | |
/*-------------------------------------------------------------- | |
2.0 FOUNDATION | |
--------------------------------------------------------------*/ | |
html { | |
box-sizing: border-box; | |
} | |
*, | |
*:before, | |
*:after { | |
box-sizing: inherit; | |
} | |
body { | |
background-color: var(--ui-color-background-primary); | |
color: var(--ui-color-typography-body); | |
font-family: var(--ui-typography-typeface); | |
font-feature-settings: "liga", "kern"; | |
font-size: var(--ui-typography-p); | |
font-weight: 400; | |
line-height: var(--ui-typography-p-leading); | |
margin: 0 auto; | |
text-rendering: optimizeLegibility; | |
-webkit-font-smoothing: antialiased; | |
} | |
/*-------------------------------------------------------------- | |
3.0 TYPOGRAPHY | |
--------------------------------------------------------------*/ | |
a { | |
color: var(--ui-color-brand); | |
text-decoration-color: var(--ui-color-typography-note); | |
} | |
h1, | |
h2, | |
h4, | |
p, | |
ul { | |
margin-top: 0; | |
} | |
h1, | |
h2, | |
h4 { | |
color: var(--ui-color-typography-heading); | |
} | |
h1, | |
h2 { | |
margin-bottom: var(--ui-typography-margin-heading); | |
} | |
h1 { | |
font-size: var(--ui-typography-h1); | |
line-height: var(--ui-typography-h1-leading); | |
} | |
h2 { | |
font-size: var(--ui-typography-h2); | |
line-height: var(--ui-typography-h2-leading); | |
} | |
h4 { | |
font-size: var(--ui-typography-h4); | |
line-height: var(--ui-typography-h4-leading); | |
} | |
p, | |
ul { | |
margin-bottom: var(--ui-typography-margin-body); | |
} | |
p:last-child, | |
ul:last-child { | |
margin-bottom: 0; | |
} | |
ul { | |
padding-left: 0; | |
} | |
strong { | |
font-weight: 700; | |
} | |
small { | |
font-size: var(--ui-typography-s); | |
} | |
.ui-text-note { | |
color: var(--ui-color-typography-note); | |
line-height: 1; | |
} | |
/*-------------------------------------------------------------- | |
4.0 IMAGE | |
--------------------------------------------------------------*/ | |
img, | |
svg { | |
display: block; | |
height: auto; | |
margin: 0 auto; | |
max-width: 100%; | |
} | |
/*-------------------------------------------------------------- | |
5.0 LAYOUT | |
--------------------------------------------------------------*/ | |
.ui-layout-container { | |
padding-left: var(--ui-layout-container); | |
padding-right: var(--ui-layout-container); | |
} | |
.ui-layout-flex, | |
.ui-layout-grid { | |
align-items: center; | |
justify-content: center; | |
} | |
.ui-layout-flex { | |
display: flex; | |
} | |
.ui-layout-grid { | |
display: grid; | |
} | |
/*-------------------------------------------------------------- | |
6.0 COMPONENT | |
--------------------------------------------------------------*/ | |
/*-------------------------------------------------------------- | |
| | |
| 6.1 CTA | |
| | |
--------------------------------------------------------------*/ | |
.ui-component-cta { | |
flex-direction: column; | |
row-gap: var(--ui-gap-cta); | |
} | |
/*-------------------------------------------------------------- | |
| | |
| 6.2 BUTTON | |
| | |
--------------------------------------------------------------*/ | |
.ui-component-button { | |
border: 0.0625rem solid var(--ui-color-brand); | |
border-radius: var(--ui-radius-button); | |
display: block; | |
font-weight: 700; | |
line-height: 1; | |
text-align: center; | |
text-decoration: none; | |
} | |
.ui-component-button-primary { | |
background-color: var(--ui-color-brand); | |
color: var(--ui-color-typography-button); | |
} | |
.ui-component-button-secondary { | |
background-color: var(--ui-color-background-primary); | |
color: var(--ui-color-brand); | |
} | |
.ui-component-button-big, | |
.ui-component-button-normal { | |
padding: 0.75rem 1rem 0.875rem; | |
} | |
.ui-component-button-big { | |
width: 100%; | |
} | |
.ui-component-button-normal { | |
width: fit-content; | |
} | |
/*-------------------------------------------------------------- | |
| | |
| 6.3 TOGGLE | |
| | |
--------------------------------------------------------------*/ | |
input[name="toggle"] { | |
display: none; | |
} | |
.ui-component-toggle { | |
background-color: var(--ui-color-background-tertiary); | |
border-radius: var(--ui-radius-button); | |
color: var(--ui-color-typography-note); | |
font-size: var(--ui-typography-s); | |
font-weight: 700; | |
line-height: 1; | |
margin: var(--ui-gap-pricing) auto 0.5rem; | |
padding: 0.25rem; | |
width: max-content; | |
} | |
.ui-component-toggle--label { | |
border-radius: var(--ui-radius-button); | |
cursor: pointer; | |
padding: 0.5rem 0.625rem; | |
} | |
#ui-component-toggle__monthly:checked | |
~ div | |
label[for="ui-component-toggle__monthly"], | |
#ui-component-toggle__yearly:checked | |
~ div | |
label[for="ui-component-toggle__yearly"] { | |
background-color: var(--ui-color-background-primary); | |
color: var(--ui-color-typography-body); | |
} | |
/*-------------------------------------------------------------- | |
| | |
| 6.4 CARD | |
| | |
--------------------------------------------------------------*/ | |
.ui-component-card { | |
border: 0.0625rem solid var(--ui-color-border); | |
border-radius: var(--ui-radius-card); | |
overflow: hidden; | |
width: 100%; | |
} | |
/*-------------------------------------------------------------- | |
| | |
| 6.5 LIST | |
| | |
--------------------------------------------------------------*/ | |
.ui-component-list { | |
grid-template-columns: 1fr; | |
row-gap: 0.75rem; | |
} | |
.ui-component-list--item { | |
background-position: left center; | |
background-repeat: no-repeat; | |
background-size: 1.125rem; | |
list-style: none; | |
padding-left: 1.875rem; | |
} | |
.ui-component-list--item-check { | |
background-image: url(https://res.cloudinary.com/uisual/image/upload/assets/icons/check.svg); | |
} | |
.ui-component-list--item-cross { | |
background-image: url(https://res.cloudinary.com/uisual/image/upload/assets/icons/cross.svg); | |
} | |
/*-------------------------------------------------------------- | |
7.0 SECTION | |
--------------------------------------------------------------*/ | |
/*-------------------------------------------------------------- | |
| | |
| 7.1 HEADER | |
| | |
--------------------------------------------------------------*/ | |
.ui-section-header { | |
padding-bottom: 1.25rem; | |
padding-top: 1.25rem; | |
} | |
.ui-section-header__layout { | |
justify-content: space-between; | |
} | |
/* LOGO */ | |
.ui-section-header--logo { | |
z-index: 1; | |
} | |
/* HAMBURGER */ | |
#ui-section-header--menu-id { | |
display: none; | |
} | |
.ui-section-header--menu-icon { | |
cursor: pointer; | |
display: block; | |
height: 1.125rem; | |
padding-bottom: 0.25rem; | |
padding-top: 0.25rem; | |
position: relative; | |
width: 1.125rem; | |
z-index: 1; | |
} | |
.ui-section-header--menu-icon::before, | |
.ui-section-header--menu-icon::after { | |
background: var(--ui-color-brand); | |
content: ""; | |
height: 0.125rem; | |
left: 0; | |
position: absolute; | |
transition: all 250ms cubic-bezier(0.785, 0.135, 0.15, 0.86); | |
width: 1.125rem; | |
} | |
.ui-section-header--menu-icon::before { | |
top: 0.3125rem; | |
} | |
.ui-section-header--menu-icon::after { | |
top: 0.6875rem; | |
} | |
#ui-section-header--menu-id:checked ~ .ui-section-header--menu-icon::before { | |
transform: translateY(3px) rotate(135deg); | |
} | |
#ui-section-header--menu-id:checked ~ .ui-section-header--menu-icon::after { | |
transform: translateY(-3px) rotate(45deg); | |
} | |
/* MENU */ | |
.ui-section-header--nav { | |
background-color: var(--ui-color-background-primary); | |
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05); | |
flex-direction: column; | |
gap: var(--ui-gap-header); | |
left: 0; | |
opacity: 0; | |
padding: 7.375rem var(--ui-layout-container) 5rem; | |
position: absolute; | |
right: 0; | |
top: -1rem; | |
transition: all 250ms cubic-bezier(0.785, 0.135, 0.15, 0.86); | |
visibility: hidden; | |
} | |
#ui-section-header--menu-id:checked ~ .ui-section-header--nav { | |
opacity: 1; | |
top: 0; | |
visibility: visible; | |
} | |
.ui-section-header--nav-link { | |
font-size: var(--ui-typography-h3); | |
padding: 0.5rem; | |
text-decoration: none; | |
} | |
/*-------------------------------------------------------------- | |
| | |
| 7.2 HERO | |
| | |
--------------------------------------------------------------*/ | |
.ui-section-hero { | |
padding-bottom: 5rem; | |
padding-top: 5rem; | |
text-align: center; | |
} | |
.ui-section-hero__layout { | |
row-gap: var(--ui-gap-hero); | |
} | |
/*-------------------------------------------------------------- | |
| | |
| 7.3 CUSTOMER | |
| | |
--------------------------------------------------------------*/ | |
.ui-section-customer__layout { | |
flex-direction: column; | |
row-gap: var(--ui-gap-customer); | |
} | |
.ui-section-customer--logo { | |
height: 1.5rem; | |
width: auto; | |
} | |
.ui-section-customer--logo-str { | |
height: 1.75rem; | |
} | |
.ui-section-customer--logo-bhn { | |
height: 1.375rem; | |
} | |
/*-------------------------------------------------------------- | |
| | |
| 7.4 FEATURE | |
| | |
--------------------------------------------------------------*/ | |
.ui-section-feature { | |
padding-bottom: 5rem; | |
padding-top: 5rem; | |
} | |
.ui-section-feature__layout { | |
row-gap: var(--ui-gap-card); | |
} | |
/* CARD */ | |
.ui-component-card--feature { | |
text-align: center; | |
} | |
.ui-component-card--feature-content { | |
padding: 2.25rem 1.5rem; | |
} | |
.ui-component-card--feature-title { | |
margin-bottom: 0.5rem; | |
} | |
/*-------------------------------------------------------------- | |
| | |
| 7.5 TESTIMONIAL | |
| | |
--------------------------------------------------------------*/ | |
.ui-section-testimonial { | |
background-color: var(--ui-color-background-secondary); | |
padding-bottom: 5rem; | |
padding-top: 5rem; | |
text-align: center; | |
} | |
.ui-section-testimonial--avatar { | |
border-radius: var(--ui-radius-avatar); | |
height: 5rem; | |
width: 5rem; | |
} | |
.ui-section-testimonial--quote { | |
margin-bottom: 1rem; | |
margin-top: 1rem; | |
} | |
.ui-section-testimonial--author { | |
line-height: 1.25; | |
} | |
/*-------------------------------------------------------------- | |
| | |
| 7.6 PRICING | |
| | |
--------------------------------------------------------------*/ | |
.ui-section-pricing { | |
padding-bottom: 5rem; | |
padding-top: 5rem; | |
text-align: center; | |
} | |
.ui-section-pricing__layout { | |
justify-content: initial; | |
margin-top: var(--ui-gap-pricing); | |
row-gap: var(--ui-gap-card); | |
} | |
/* CARD */ | |
.ui-component-card--pricing { | |
padding: 1.5rem 1.5rem 1.75rem; | |
text-align: left; | |
} | |
.ui-component-card--pricing-price { | |
line-height: 1; | |
margin-bottom: 1.25rem; | |
margin-top: 1.25rem; | |
} | |
.ui-component-card--pricing-amount { | |
font-size: var(--ui-typography-h1); | |
font-weight: 700; | |
} | |
/* AMOUNT */ | |
.ui-component-card--pricing-amount-1::before { | |
content: "$5"; | |
} | |
#ui-component-toggle__yearly:checked | |
~ div | |
.ui-component-card--pricing-amount-1::before { | |
content: "$3"; | |
} | |
.ui-component-card--pricing-amount-2::before { | |
content: "$15"; | |
} | |
#ui-component-toggle__yearly:checked | |
~ div | |
.ui-component-card--pricing-amount-2::before { | |
content: "$13"; | |
} | |
.ui-component-card--pricing-amount-3::before { | |
content: "$25"; | |
} | |
#ui-component-toggle__yearly:checked | |
~ div | |
.ui-component-card--pricing-amount-3::before { | |
content: "$23"; | |
} | |
/* LIST */ | |
.ui-component-list--pricing { | |
margin-bottom: 1.5rem; | |
margin-top: 1.25rem; | |
} | |
/*-------------------------------------------------------------- | |
| | |
| 7.7 FAQ | |
| | |
--------------------------------------------------------------*/ | |
.ui-section-faq { | |
padding-bottom: 5rem; | |
} | |
.ui-section-faq__layout { | |
margin-bottom: 2rem; | |
row-gap: var(--ui-gap-faq); | |
text-align: left; | |
} | |
.ui-section-faq--question { | |
background-image: url(https://res.cloudinary.com/uisual/image/upload/assets/icons/question.svg); | |
margin-bottom: 0.5rem; | |
} | |
.ui-section-faq--answer { | |
padding-left: 1.875rem; | |
} | |
.ui-section-faq--note { | |
text-align: center; | |
} | |
/*-------------------------------------------------------------- | |
| | |
| 7.8 CLOSE | |
| | |
--------------------------------------------------------------*/ | |
.ui-section-close { | |
background-color: var(--ui-color-background-secondary); | |
padding-bottom: 5rem; | |
padding-top: 5rem; | |
text-align: center; | |
} | |
.ui-section-close__layout { | |
align-items: stretch; | |
flex-direction: column; | |
row-gap: var(--ui-typography-margin-body); | |
} | |
/*-------------------------------------------------------------- | |
| | |
| 7.9 FOOTER | |
| | |
--------------------------------------------------------------*/ | |
.ui-section-footer { | |
padding-bottom: 1.25rem; | |
padding-top: 1.25rem; | |
} | |
.ui-section-footer__layout { | |
column-gap: var(--ui-layout-gutter); | |
} | |
.ui-section-footer--copyright { | |
margin-bottom: 0; | |
margin-right: auto; | |
} | |
/*-------------------------------------------------------------- | |
8.0 MEDIA | |
--------------------------------------------------------------*/ | |
/*-------------------------------------------------------------- | |
| | |
| 8.1 768PX | |
| | |
--------------------------------------------------------------*/ | |
@media screen and (min-width: 48rem) { | |
/*------------------------------------------------------------ | |
VARIABLE | |
------------------------------------------------------------*/ | |
:root { | |
/*---------------------------------------------------------- | |
| | |
| TYPOGRAPHY | |
| | |
----------------------------------------------------------*/ | |
/* FONT SIZE */ | |
--ui-typography-h1: 2.1875rem; | |
--ui-typography-h2: 1.75rem; | |
--ui-typography-h4: 1.125rem; | |
--ui-typography-p: 1.125rem; | |
--ui-typography-s: 0.875rem; | |
/* MARGIN */ | |
--ui-typography-margin-body: 1.25rem; | |
/*---------------------------------------------------------- | |
| | |
| LAYOUT | |
| | |
----------------------------------------------------------*/ | |
--ui-layout-container: 4.25rem; | |
--ui-layout-gutter: 1.5rem; | |
/* GAP */ | |
--ui-gap-header: 1.5rem; | |
--ui-gap-card: 1.5rem; | |
--ui-gap-faq: 2rem; | |
} | |
/*------------------------------------------------------------ | |
IMAGE | |
------------------------------------------------------------*/ | |
.ui-image-half-right { | |
padding-left: var(--ui-layout-gutter); | |
} | |
/*------------------------------------------------------------ | |
LAYOUT | |
------------------------------------------------------------*/ | |
.ui-layout-container, | |
.ui-layout-column-center { | |
margin-left: auto; | |
margin-right: auto; | |
} | |
.ui-layout-grid-2, | |
.ui-layout-grid-3 { | |
column-gap: var(--ui-layout-gutter); | |
grid-template-columns: repeat(2, 1fr); | |
justify-items: center; | |
} | |
.ui-layout-grid-3 div:nth-of-type(3) { | |
left: calc(50% + (var(--ui-layout-gutter) / 2)); | |
position: relative; | |
} | |
.ui-layout-column-4 { | |
width: calc((var(--ui-layout-grid) * 4) + (var(--ui-layout-gutter) * 3)); | |
} | |
/*------------------------------------------------------------ | |
COMPONENT | |
------------------------------------------------------------*/ | |
/*------------------------------------------------------------ | |
| | |
| LIST | |
| | |
------------------------------------------------------------*/ | |
.ui-component-list--item { | |
background-size: 1.25rem; | |
padding-left: 2rem; | |
} | |
/*------------------------------------------------------------ | |
SECTION | |
------------------------------------------------------------*/ | |
/*------------------------------------------------------------ | |
| | |
| HEADER | |
| | |
------------------------------------------------------------*/ | |
.ui-section-header { | |
padding-bottom: 0; | |
padding-top: 2rem; | |
} | |
/* ICON */ | |
.ui-section-header--menu-icon { | |
display: none; | |
} | |
/* NAV */ | |
.ui-section-header--nav { | |
background-color: transparent; | |
box-shadow: none; | |
flex-direction: row; | |
opacity: 1; | |
padding: 0; | |
position: static; | |
visibility: visible; | |
} | |
.ui-section-header--nav-link { | |
font-size: var(--ui-typography-p); | |
padding: 0; | |
} | |
/*------------------------------------------------------------ | |
| | |
| HERO | |
| | |
------------------------------------------------------------*/ | |
.ui-section-hero { | |
text-align: left; | |
} | |
.ui-section-hero .ui-component-cta { | |
align-items: start; | |
} | |
/*------------------------------------------------------------ | |
| | |
| CUSTOMER | |
| | |
------------------------------------------------------------*/ | |
.ui-section-customer__layout { | |
column-gap: var(--ui-gap-customer); | |
flex-direction: row; | |
} | |
.ui-section-customer--logo { | |
margin-left: 0; | |
margin-right: 0; | |
} | |
/*------------------------------------------------------------ | |
| | |
| FEATURE | |
| | |
------------------------------------------------------------*/ | |
.ui-component-card--feature-content { | |
padding-left: 2.25rem; | |
padding-right: 2.25rem; | |
} | |
/*------------------------------------------------------------ | |
| | |
| PRICING | |
| | |
------------------------------------------------------------*/ | |
.ui-component-card--pricing { | |
padding: 2rem 2rem 2.25rem; | |
} | |
/*------------------------------------------------------------ | |
| | |
| FAQ | |
| | |
------------------------------------------------------------*/ | |
.ui-section-faq__layout { | |
margin-bottom: 3rem; | |
} | |
.ui-section-faq--answer { | |
padding-left: 2rem; | |
} | |
/*------------------------------------------------------------ | |
| | |
| CLOSE | |
| | |
------------------------------------------------------------*/ | |
.ui-section-close__layout { | |
align-items: center; | |
column-gap: var(--ui-layout-gutter); | |
flex-direction: row; | |
justify-content: space-between; | |
text-align: left; | |
} | |
/*------------------------------------------------------------ | |
| | |
| FOOTER | |
| | |
------------------------------------------------------------*/ | |
.ui-section-footer { | |
padding-bottom: 2rem; | |
padding-top: 2rem; | |
} | |
} | |
/*-------------------------------------------------------------- | |
| | |
| 8.2 1024PX | |
| | |
--------------------------------------------------------------*/ | |
@media screen and (min-width: 64rem) { | |
/*------------------------------------------------------------ | |
VARIABLE | |
------------------------------------------------------------*/ | |
:root { | |
/*---------------------------------------------------------- | |
| | |
| LAYOUT | |
| | |
----------------------------------------------------------*/ | |
--ui-layout-container: 0; | |
} | |
/*------------------------------------------------------------ | |
LAYOUT | |
------------------------------------------------------------*/ | |
.ui-layout-container { | |
width: 60rem; | |
} | |
.ui-layout-grid-3 { | |
grid-template-columns: repeat(3, 1fr); | |
} | |
.ui-layout-grid-3 div:nth-of-type(3) { | |
position: static; | |
} | |
/*------------------------------------------------------------ | |
SECTION | |
------------------------------------------------------------*/ | |
/*------------------------------------------------------------ | |
| | |
| HERO | |
| | |
------------------------------------------------------------*/ | |
.ui-section-hero .ui-component-cta { | |
align-items: center; | |
column-gap: var(--ui-gap-cta); | |
flex-direction: row; | |
justify-content: start; | |
} | |
} | |
/*-------------------------------------------------------------- | |
| | |
| 8.3 1200PX | |
| | |
--------------------------------------------------------------*/ | |
@media screen and (min-width: 75rem) { | |
/*------------------------------------------------------------ | |
VARIABLE | |
------------------------------------------------------------*/ | |
:root { | |
/*---------------------------------------------------------- | |
| | |
| TYPOGRAPHY | |
| | |
----------------------------------------------------------*/ | |
/* FONT SIZE */ | |
--ui-typography-h1: 2.75rem; | |
--ui-typography-h2: 2.1875rem; | |
--ui-typography-h4: 1.4375rem; | |
/* MARGIN */ | |
--ui-typography-margin-heading: 1rem; | |
--ui-typography-margin-body: 1.75rem; | |
/*---------------------------------------------------------- | |
| | |
| LAYOUT | |
| | |
----------------------------------------------------------*/ | |
--ui-layout-grid: 4rem; | |
--ui-layout-gutter: 2rem; | |
/* GAP */ | |
--ui-gap-header: 2rem; | |
--ui-gap-customer: 4rem; | |
--ui-gap-card: 2rem; | |
--ui-gap-pricing: 3rem; | |
} | |
/*------------------------------------------------------------ | |
TYPOGRAPHY | |
------------------------------------------------------------*/ | |
.ui-text-intro { | |
font-size: var(--ui-typography-h4); | |
} | |
/*------------------------------------------------------------ | |
LAYOUT | |
------------------------------------------------------------*/ | |
.ui-layout-container { | |
width: 70rem; | |
} | |
/*------------------------------------------------------------ | |
COMPONENT | |
------------------------------------------------------------*/ | |
/*------------------------------------------------------------ | |
| | |
| BUTTON | |
| | |
------------------------------------------------------------*/ | |
.ui-component-button-big, | |
.ui-component-button-normal { | |
padding-bottom: 1.125rem; | |
padding-top: 1rem; | |
} | |
/*------------------------------------------------------------ | |
SECTION | |
------------------------------------------------------------*/ | |
/*------------------------------------------------------------ | |
| | |
| HEADER | |
| | |
------------------------------------------------------------*/ | |
.ui-section-header { | |
padding-top: 3rem; | |
} | |
/*------------------------------------------------------------ | |
| | |
| HERO | |
| | |
------------------------------------------------------------*/ | |
.ui-section-hero { | |
padding-bottom: 7.5rem; | |
padding-top: 7.5rem; | |
} | |
/*------------------------------------------------------------ | |
| | |
| CUSTOMER | |
| | |
------------------------------------------------------------*/ | |
.ui-section-customer--logo { | |
height: 2rem; | |
} | |
.ui-section-customer--logo-str { | |
height: 2.25rem; | |
} | |
.ui-section-customer--logo-bhn { | |
height: 1.75rem; | |
} | |
/*------------------------------------------------------------ | |
| | |
| FEATURE | |
| | |
------------------------------------------------------------*/ | |
.ui-section-feature { | |
padding-bottom: 7.5rem; | |
padding-top: 7.5rem; | |
} | |
/*------------------------------------------------------------ | |
| | |
| TESTIMONIAL | |
| | |
------------------------------------------------------------*/ | |
.ui-section-testimonial { | |
padding-bottom: 7.5rem; | |
padding-top: 7.5rem; | |
} | |
/*------------------------------------------------------------ | |
| | |
| PRICING | |
| | |
------------------------------------------------------------*/ | |
.ui-section-pricing { | |
padding-bottom: 7.5rem; | |
padding-top: 7.5rem; | |
} | |
.ui-component-card--pricing { | |
padding: 3rem; | |
} | |
/*------------------------------------------------------------ | |
| | |
| FAQ | |
| | |
------------------------------------------------------------*/ | |
.ui-section-faq { | |
padding-bottom: 7.5rem; | |
} | |
.ui-section-faq__layout { | |
margin-bottom: 5rem; | |
} | |
/*------------------------------------------------------------ | |
| | |
| CLOSE | |
| | |
------------------------------------------------------------*/ | |
.ui-section-close { | |
padding-bottom: 7.5rem; | |
padding-top: 7.5rem; | |
} | |
/*------------------------------------------------------------ | |
| | |
| FOOTER | |
| | |
------------------------------------------------------------*/ | |
.ui-section-footer { | |
padding-bottom: 3rem; | |
padding-top: 3rem; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment