1-base

b_reset   

Normalise all the things

Copy
Edit
<!-- components/1-base/b_reset.txp -->
Copy
Copy
Edit
/* scss/1-base/_b_reset.scss */ /* Box sizing rules */ *, *::before, *::after { box-sizing: border-box; } /* Remove default margin */ body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, code, pre { margin: 0; } /* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */ ul[role='list'], ol[role='list'] { list-style: none; } /* Set core root defaults */ html:focus-within { scroll-behavior: smooth; } /* Set core body defaults */ body { min-height: 100vh; font-smoothing: antialiased; text-rendering: optimizeLegibility; } /* A elements that don't have a class get default styles */ a:not([class]) { text-decoration-skip-ink: auto; } /* Make images easier to work with */ img, picture { max-width: 100%; display: block; } /* Inherit fonts for inputs and buttons */ input, button, textarea, select { font: inherit; background: transparent; border: 0; } /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */ @media (prefers-reduced-motion: reduce) { html:focus-within { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
Copy
Edit
/* js/b_reset.js */

b_fonts   

Copy
Edit
<!-- components/1-base/b_fonts.txp -->
Copy
Copy
Edit
/* scss/1-base/_b_fonts.scss */ :root { --sans: 'Helvetica Neue', Helvetica, sans; --serif: 'Baskerville', serif; }

b_typeset   

Lorem Khaled Ipsum is a major key to success.

To succeed you must believe. When you believe, you will succeed. The key to more success is to have a lot of pillows.

Egg whites, turkey sausage, wheat toast, water.

Of course they don’t want us to eat our breakfast, so we are going to enjoy our breakfast. They key is to have every key, the key to open every door.

It’s on you how you want to live your life. Everyone has a choice. I pick my choice, squeaky clean.

Let’s see what Chef Dee got that they don’t want us to eat.

Life is what you make it, so let’s make it. They key is to have every key, the key to open every door. We don’t see them, we will never see them. The first of the month is coming, we have to get money, we have no choice.

The weather is amazing.

It cost money to eat and they don’t want you to eat. Walk with me through the pathway of more success.

Take this journey with me, Lion! In life there will be road blocks but we will over come it. Let’s see what Chef Dee got that they don’t want us to eat.

Copy
Edit
<!-- components/1-base/b_typeset.txp --> <div class="u_baseline-grid"> <div> <h1>Lorem Khaled Ipsum is a major key to success.</h1> <p>To succeed you must believe. When you believe, you will succeed. The key to more success is to have a lot of pillows.</p> <h2>Egg whites, turkey sausage, wheat toast, water.</h2> <p>Of course they don’t want us to eat our breakfast, so we are going to enjoy our breakfast. They key is to have every key, the key to open every door.</p> <p>It’s on you how you want to live your life. Everyone has a choice. I pick my choice, squeaky clean.</p> <h3>Let’s see what Chef Dee got that they don’t want us to eat.</h3> <p>Life is what you make it, so let’s make it. They key is to have every key, the key to open every door. We don’t see them, we will never see them. The first of the month is coming, we have to get money, we have no choice.</p> <h4>The weather is amazing.</h4> <p>It cost money to eat and they don’t want you to eat. Walk with me through the pathway of more success.</p> <p><small>Take this journey with me, Lion! In life there will be road blocks but we will over come it. Let’s see what Chef Dee got that they don’t want us to eat.</p></small> </div> </div>
Copy
Copy
Edit
/* scss/1-base/_b_typeset.scss */ html {font-size: 100%;} /*16px*/ // Using Shevy to control vertical ryhthm of any text copy // https://kyleshevlin.github.io/shevy/ @include headings($shevy-small); @include body($shevy-small); @include content($shevy-small); @media (min-width: $medium) { @include headings; @include body; @include content; } body { font-family: var(--sans); font-weight: 300; color: var(--black); background: var(--white); font-smoothing: antialiased; text-rendering: optimizeLegibility; //@include fluid-type(font-size, $minScreen, $maxScreen, $minFont, $maxFont); } .b_typeset { overflow: auto; // allow for any floated elements p, li { max-width: var(--type-measure); } ul,ol { list-style-position: outside; list-style-type: square; } &--lede { @include content($shevy-lede); @extend .a_heading; // &:not([itemprop="articleBody"]) { // @extend .a_heading, .h5-styled, .h2-styled\@medium; // } // &[itemprop="articleBody"] { // > p { // @extend .a_heading, .h5-style, .h2-style\@medium; // } // } } a { text-decoration: underline; } blockquote p { &:before { content: '“'; } &:after { content: '”'; } @include heading($h5-shevy); margin: var(--base-unit--b); } } .b_hyphenate { hyphens: auto; } .b_centered { text-align: center; } small,.b_small { font-size: .875rem; letter-spacing: initial; } .b_small > * { @extend small; } .b_small--min { font-size: .65rem; }

b_colours   

Colour Palette

by Le Corbusier

Neutrals

LCwhite blancivoire
silver grisclair31
grey grismoyen
grey1 grisclair59
grey2 gris31
grey3 gris59
grey4 grisfonce59
charcoal grisfonce31
charcoal1 ombrenaturelle31
black noirdivoire
black1 terredombrebrulee59
black2 ombrenaturelle59

Blues

bluedark bleuoutremerfonce
blue xxx
blue1 bleuoutremer31
blue2 bleuceruleen31
blue3 ceruleenvif
blue4 bleuceruleen59
bluepale outremermoyen
blue6 outremerclair
blue7 outremerpale
blue8 ceruleenmoyen

Greens

green vert
green1 vertfonce
green2 vert59
green3 vertclair
green4 vertclair
green5 vertjauneclair
green6 vertanglaisclair
greenpale vertanglaispale
greenpale1 ceruleenpale
green7 ceruleenclair
greenpale2 outremergris
olive vertolivevif

Yellows

yellow lejaunevif
yelloworange ocrejauneclair
yelloworange1 terresienneclaire59
yellowbeige2 ocre

Oranges

orange1 orangevif
orange orange
orange2 orangeclair
orangepale orangepale

Reds

red rougevermillon59
red1 rougevermillon31
red2 rougecarmin
red3 rougerubia
pink rosevif
pink2 rosepale
redbeige roseclair
redbeige1 locrerougemoyen

Purple

purple lerubis

Browns

brown1 terredombrebrulee31
brown2 terresiennebrulee31
brown terresiennebrulee59
brown3 locrerouge
brown4 terresiennebrique
beige terresienneclaire31
beigepink locrerougeclair
beigepink1 blanc
beigepink2 terresiennepale
brown5 ombrenaturelleclaire
brown6 ombrebruleeclaire
brown7 ombrenaturellemoyenne
Copy
Edit
<!-- components/1-base/b_colours.txp --> <style> .bg--beigepink1 { background-color: var(--beigepink1); } .bg--whiteLC { background-color: var(--whiteLC); } .bg--charcoal { background-color: var(--charcoal); } .bg--grey2 { background-color: var(--grey2); } .bg--grey { background-color: var(--grey); } .bg--silver { background-color: var(--silver); } .bg--black { background-color: var(--black); } .bg--grey3 { background-color: var(--grey3); } .bg--grey4 { background-color: var(--grey4); } .bg--grey1 { background-color: var(--grey1); } .bg--blue1 { background-color: var(--blue1); } .bg--bluepale { background-color: var(--bluepale); } .bg--blue6 { background-color: var(--blue6); } .bg--blue7 { background-color: var(--blue7); } .bg--greenpale2 { background-color: var(--greenpale2); } .bg--blue2 { background-color: var(--blue2); } .bg--blue3 { background-color: var(--blue3); } .bg--blue8 { background-color: var(--blue8); } .bg--green7 { background-color: var(--green7); } .bg--greenpale1 { background-color: var(--greenpale1); } .bg--blue { background-color: var(--blue); } .bg--blue4 { background-color: var(--blue4); } .bg--bluedark { background-color: var(--bluedark); } .bg--green { background-color: var(--green); } .bg--green6 { background-color: var(--green6); } .bg--greenpale { background-color: var(--greenpale); } .bg--green1 { background-color: var(--green1); } .bg--green3 { background-color: var(--green3); } .bg--green4 { background-color: var(--green4); } .bg--green5 { background-color: var(--green5); } .bg--olive { background-color: var(--olive); } .bg--green2 { background-color: var(--green2); } .bg--yellowbeige2 { background-color: var(--yellowbeige2); } .bg--yelloworange { background-color: var(--yelloworange); } .bg--yelloworange1 { background-color: var(--yelloworange1); } .bg--yellow { background-color: var(--yellow); } .bg--orange { background-color: var(--orange); } .bg--orange2 { background-color: var(--orange2); } .bg--orangepale { background-color: var(--orangepale); } .bg--orange1 { background-color: var(--orange1); } .bg--red1 { background-color: var(--red1); } .bg--pink2 { background-color: var(--pink2); } .bg--red2 { background-color: var(--red2); } .bg--red3 { background-color: var(--red3); } .bg--redbeige { background-color: var(--redbeige); } .bg--red { background-color: var(--red); } .bg--pink { background-color: var(--pink); } .bg--purple { background-color: var(--purple); } .bg--brown { background-color: var(--brown); } .bg--brown3 { background-color: var(--brown3); } .bg--redbeige1 { background-color: var(--redbeige1); } .bg--beigepink { background-color: var(--beigepink); } .bg--brown2 { background-color: var(--brown2); } .bg--brown4 { background-color: var(--brown4); } .bg--beige { background-color: var(--beige); } .bg--beigepink2 { background-color: var(--beigepink2); } .bg--brown1 { background-color: var(--brown1); } .bg--brown6 { background-color: var(--brown6); } .bg--charcoal1 { background-color: var(--charcoal1); } .bg--brown7 { background-color: var(--brown7); } .bg--brown5 { background-color: var(--brown5); } .bg--black1 { background-color: var(--black1); } .bg--black2 { background-color: var(--black2); } .farbe { width: 15vw; display: inline-block; vertical-align: top; padding: 1em; min-height: 15vw; color: var(--white); } .farbe span { font-size: 11px; display: block; /* These are technically the same, but use both */ overflow-wrap: break-word; word-wrap: break-word; -ms-word-break: break-all; /* This is the dangerous one in WebKit, as it breaks things wherever */ word-break: break-all; /* Instead use this non-standard one: */ word-break: break-word; /* Adds a hyphen where the word breaks, if supported (No Blink) */ -ms-hyphens: auto; -moz-hyphens: auto; -webkit-hyphens: auto; hyphens: auto; } </style> <h1>Colour Palette</h1> <p>by Le Corbusier</p> <h2>Neutrals</h2> <div class="farbe bg--whiteLC"> LCwhite <span>blancivoire</span> </div> <div class="farbe bg--silver"> silver <span>grisclair31</span> </div> <div class="farbe bg--grey"> grey <span>grismoyen</span> </div> <div class="farbe bg--grey1"> grey1 <span>grisclair59</span> </div> <div class="farbe bg--grey2"> grey2 <span>gris31</span> </div> <div class="farbe bg--grey3"> grey3 <span>gris59</span> </div> <div class="farbe bg--grey4"> grey4 <span>grisfonce59</span> </div> <div class="farbe bg--charcoal"> charcoal <span>grisfonce31</span> </div> <div class="farbe bg--charcoal1"> charcoal1 <span>ombrenaturelle31</span> </div> <div class="farbe bg--black"> black <span>noirdivoire</span> </div> <div class="farbe bg--black1"> black1 <span>terredombrebrulee59</span> </div> <div class="farbe bg--black2"> black2 <span>ombrenaturelle59</span> </div> <h2>Blues</h2> <div class="farbe bg--bluedark"> bluedark <span>bleuoutremerfonce</span> </div> <div class="farbe bg--blue"> blue <span>xxx</span> </div> <div class="farbe bg--blue1"> blue1 <span>bleuoutremer31</span> </div> <div class="farbe bg--blue2"> blue2 <span>bleuceruleen31</span> </div> <div class="farbe bg--blue3"> blue3 <span>ceruleenvif</span> </div> <div class="farbe bg--blue4"> blue4 <span>bleuceruleen59</span> </div> <div class="farbe bg--bluepale"> bluepale <span>outremermoyen</span> </div> <div class="farbe bg--blue6"> blue6 <span>outremerclair</span> </div> <div class="farbe bg--blue7"> blue7 <span>outremerpale</span> </div> <div class="farbe bg--blue8"> blue8 <span>ceruleenmoyen</span> </div> <h2>Greens</h2> <div class="farbe bg--green"> green <span>vert</span> </div> <div class="farbe bg--green1"> green1 <span>vertfonce</span> </div> <div class="farbe bg--green2"> green2 <span>vert59</span> </div> <div class="farbe bg--green3"> green3 <span>vertclair</span> </div> <div class="farbe bg--green4"> green4 <span>vertclair</span> </div> <div class="farbe bg--green5"> green5 <span>vertjauneclair</span> </div> <div class="farbe bg--green6"> green6 <span>vertanglaisclair</span> </div> <div class="farbe bg--greenpale"> greenpale <span>vertanglaispale</span> </div> <div class="farbe bg--greenpale1"> greenpale1 <span>ceruleenpale</span> </div> <div class="farbe bg--green7"> green7 <span>ceruleenclair</span> </div> <div class="farbe bg--greenpale2"> greenpale2 <span>outremergris</span> </div> <div class="farbe bg--olive"> olive <span>vertolivevif</span> </div> <h2>Yellows</h2> <div class="farbe bg--yellow"> yellow <span>lejaunevif</span> </div> <div class="farbe bg--yelloworange"> yelloworange <span>ocrejauneclair</span> </div> <div class="farbe bg--yelloworange1"> yelloworange1 <span>terresienneclaire59</span> </div> <div class="farbe bg--yellowbeige2"> yellowbeige2 <span>ocre</span> </div> <h2>Oranges</h2> <div class="farbe bg--orange1"> orange1 <span>orangevif</span> </div> <div class="farbe bg--orange"> orange <span>orange</span> </div> <div class="farbe bg--orange2"> orange2 <span>orangeclair</span> </div> <div class="farbe bg--orangepale"> orangepale <span>orangepale</span> </div> <h2>Reds</h2> <div class="farbe bg--red"> red <span>rougevermillon59</span> </div> <div class="farbe bg--red1"> red1 <span>rougevermillon31</span> </div> <div class="farbe bg--red2"> red2 <span>rougecarmin</span> </div> <div class="farbe bg--red3"> red3 <span>rougerubia</span> </div> <div class="farbe bg--pink"> pink <span>rosevif</span> </div> <div class="farbe bg--pink2"> pink2 <span>rosepale</span> </div> <div class="farbe bg--redbeige"> redbeige <span>roseclair</span> </div> <div class="farbe bg--redbeige1"> redbeige1 <span>locrerougemoyen</span> </div> <h2>Purple</h2> <div class="farbe bg--purple"> purple <span>lerubis</span> </div> <h2>Browns</h2> <div class="farbe bg--brown1"> brown1 <span>terredombrebrulee31</span> </div> <div class="farbe bg--brown2"> brown2 <span>terresiennebrulee31</span> </div> <div class="farbe bg--brown"> brown <span>terresiennebrulee59</span> </div> <div class="farbe bg--brown3"> brown3 <span>locrerouge</span> </div> <div class="farbe bg--brown4"> brown4 <span>terresiennebrique</span> </div> <div class="farbe bg--beige"> beige <span>terresienneclaire31</span> </div> <div class="farbe bg--beigepink"> beigepink <span>locrerougeclair</span> </div> <div class="farbe bg--beigepink1"> beigepink1 <span>blanc</span> </div> <div class="farbe bg--beigepink2"> beigepink2 <span>terresiennepale</span> </div> <div class="farbe bg--brown5"> brown5 <span>ombrenaturelleclaire</span> </div> <div class="farbe bg--brown6"> brown6 <span>ombrebruleeclaire</span> </div> <div class="farbe bg--brown7"> brown7 <span>ombrenaturellemoyenne</span> </div>
Copy
Copy
Edit
/* scss/1-base/_b_colours.scss */ :root { --brand: var(--black); --background-colour: var(--white); --superimposed-bg: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%); --superimposed-bg--white: linear-gradient(180deg, rgba(rgb(255, 255, 255), 1) 20%, rgba(rgb(255, 255, 255), .66) 100%); --backdrop-filter: blur(.25em) brightness(.9); .txt--white { color: var(--white); } .txt--black { color: var(--black); } .bg--white { background-color: var(--white); } .bg--white-opac { background-color: rgba(white,.5); } .bg--whiteLC { background-color: var(--whiteLC); } .bg--dark { background-color: var(--black); color: var(--white); } .bg--grey { background-color: var(--grey4); } .bg--faint, .bg--thumbs-no-image { background-color: #f3f3f3; } .bg--r1 { background-color: var(--green); color: var(--white); } .bg--r2 { background-color: var(--yellow); //@extend .bg--is-light; } .bg--r3 { background-color: var(--red); color: var(--white); } .bg--r4 { background-color: var(--bluepale); //@extend .bg--is-light; } .bg--r5 { background-color: var(--pink); //@extend .bg--is-light; } .bg--r6 { background-color: var(--olive); //@extend .bg--is-light; } .bg--r7 { background-color: var(--beige); //@extend .bg--is-light; } .bg--r8 { background-color: var(--blue); //@extend .bg--is-light; } .bg--r9 { background-color: var(--charcoal); //@extend .bg--is-light; } .bg--r10 { background-color: var(--grey); //@extend .bg--is-light; } .bg--r11 { background-color: var(--orange); //@extend .bg--is-light; } .bg--r12 { background-color: var(--bluedark); //@extend .bg--is-light; } .bg--r13 { background-color: var(--brown); //@extend .bg--is-light; } .bg--r14 { background-color: var(--purple); //@extend .bg--is-light; } /* =================================== Le Corbusier colour palette ======================================*/ // Redundant colours can be commented-out if you're shaving bytes --white: white; --whiteLC: rgb(234, 228, 215); --silver: rgb(188, 187, 182); --grey: rgb(167, 168, 165); --grey1: rgb(146, 150, 154); --grey2: rgb(146, 148, 148); --grey3: rgb(129, 134, 139); --grey4: rgb(96, 100, 106); --charcoal: rgb(94, 96, 97); --charcoal1: rgb(90, 85, 80); --black: rgb(58, 59, 59); --black1: rgb(64, 60, 58); --black2: rgb(69, 66, 62); --bluedark: rgb(49, 61, 107); --blue: rgb(57, 87, 165); --blue1: rgb(77, 106, 168); --blue2: rgb(62, 110, 144); --blue3: rgb(103, 157, 174); --blue4: rgb(122, 167, 203); --bluepale: rgb(143, 171, 201); --blue6: rgb(171, 189, 200); --blue7: rgb(182, 198, 206); --blue8: rgb(138, 181, 186); --green: rgb(64, 110, 88); --green1: rgb(62, 111, 66); --green2: rgb(66, 143, 112); --green3: rgb(127, 162, 90); --green4: rgb(171, 193, 122); --green5: rgb(196, 211, 155); --green6: rgb(145, 175, 161); --green7: rgb(168, 196, 193); --greenpale: rgb(190, 203, 183); --greenpale1: rgb(198, 213, 204); --greenpale2: rgb(217, 225, 221); --olive: rgb(184, 161, 54); --yellow: rgb(242, 187, 29); --yellowbeige2: rgb(234, 207, 166); --yelloworange: rgb(219, 176, 127); --yelloworange1: rgb(221, 191, 153); --orange: rgb(212, 108, 64); --orange2: rgb(220, 141, 103); --orangepale: rgb(234, 207, 185); --orange1: rgb(196, 94, 58); --red: rgb(172, 68, 58); --red1: rgb(155, 55, 56); --red2: rgb(143, 58, 67); --red3: rgb(148, 58, 77); --redbeige: rgb(214, 175, 166); --redbeige1: rgb(205, 152, 134); --pink: rgb(219, 163, 175); --pink2: rgb(230, 205, 191); --purple: rgb(116, 57, 59); --brown: rgb(116, 68, 56); --brown1: rgb(76, 66, 61); --brown3: rgb(139, 77, 62); --brown2: rgb(104, 68, 60); --brown4: rgb(182, 123, 102); --brown5: rgb(183, 172, 157); --brown6: rgb(183, 163, 146); --brown7: rgb(146, 138, 126); --beige: rgb(216, 178, 154); --beigepink: rgb(219, 190, 170); --beigepink1: rgb(234, 219, 192); --beigepink2: rgb(226, 203, 181); }