mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-26 06:24:28 +02:00
adding typography comments
This commit is contained in:
committed by
GitHub
parent
5160ce05ef
commit
54589277b7
@@ -51,7 +51,7 @@ li li {
|
|||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*== List .description (Product/Specs) === */
|
||||||
ul.description {
|
ul.description {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
@@ -95,13 +95,6 @@ h4 svg {
|
|||||||
margin-top: -.4rem;
|
margin-top: -.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
svg[class^='fa-'] {
|
|
||||||
display: inline-block;
|
|
||||||
height: 1em;
|
|
||||||
vertical-align: middle;
|
|
||||||
width: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 4rem;
|
font-size: 4rem;
|
||||||
line-height: 5.6rem;
|
line-height: 5.6rem;
|
||||||
@@ -190,6 +183,7 @@ h3+img {
|
|||||||
line-height: 4rem;
|
line-height: 4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*== 2.1. Headings with background ==*/
|
||||||
@for $i from 1 through 6 {
|
@for $i from 1 through 6 {
|
||||||
h#{$i}[class*='bg-'] {
|
h#{$i}[class*='bg-'] {
|
||||||
padding: 2.4rem;
|
padding: 2.4rem;
|
||||||
@@ -210,17 +204,20 @@ h3 [class*='bg-'] {
|
|||||||
padding: .4rem .8rem;
|
padding: .4rem .8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*== 2.2. Typography Classes = .text- == */
|
||||||
.text-intro,
|
.text-intro,
|
||||||
[class*='content-'] p {
|
[class*='content-'] p {
|
||||||
font-size: 2.4rem;
|
font-size: 2.4rem;
|
||||||
line-height: 4rem;
|
line-height: 4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -- Serif -- */
|
||||||
.text-serif,
|
.text-serif,
|
||||||
h1 span {
|
h1 span {
|
||||||
font-family: 'Maitree', times, serif;
|
font-family: 'Maitree', times, serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -- h1,h2... Promo/Landings -- */
|
||||||
.text-landing {
|
.text-landing {
|
||||||
letter-spacing: .4rem;
|
letter-spacing: .4rem;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
@@ -230,6 +227,7 @@ h1 span {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -- Subtitle (Before h1, h2) p.subtitle + h1/h2 */
|
||||||
.text-subtitle {
|
.text-subtitle {
|
||||||
letter-spacing: .2rem;
|
letter-spacing: .2rem;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
@@ -256,6 +254,7 @@ h1 span {
|
|||||||
text-transform: lowercase;
|
text-transform: lowercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -- Emoji (you'll love this) -- */
|
||||||
.text-emoji {
|
.text-emoji {
|
||||||
font-size: 6.8rem;
|
font-size: 6.8rem;
|
||||||
line-height: 8.8rem;
|
line-height: 8.8rem;
|
||||||
@@ -266,6 +265,7 @@ h1 span {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -- Numbers (results, sales... 23,478,289 iphones) -- */
|
||||||
.text-data {
|
.text-data {
|
||||||
font-size: 6.4rem;
|
font-size: 6.4rem;
|
||||||
line-height: 8rem;
|
line-height: 8rem;
|
||||||
@@ -284,6 +284,7 @@ h1 span {
|
|||||||
width: 12.8rem;
|
width: 12.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -- Magazine Two Columns -- */
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.text-cols {
|
.text-cols {
|
||||||
column-count: 2;
|
column-count: 2;
|
||||||
@@ -306,6 +307,7 @@ h1 span {
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -- Heading with border -- */
|
||||||
.text-context {
|
.text-context {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
@@ -326,6 +328,7 @@ h1 span {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -- Separator/Symbols (stars ***...) -- */
|
||||||
.text-symbols {
|
.text-symbols {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
letter-spacing: .8rem;
|
letter-spacing: .8rem;
|
||||||
@@ -354,7 +357,7 @@ h1 span {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* -- Pull Quote (Right/Left) -- */
|
||||||
[class*='text-pull'] {
|
[class*='text-pull'] {
|
||||||
font-size: 2.4rem;
|
font-size: 2.4rem;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@@ -399,6 +402,12 @@ figure[class*='text-pull-'] {
|
|||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -- Interviews (Questions & Answers) --- */
|
||||||
|
/* -- <dl class="text-interview">
|
||||||
|
<dt>name</dt>
|
||||||
|
<dd><p>question or answer</p>
|
||||||
|
</dd>
|
||||||
|
--- */
|
||||||
.text-interview dt {
|
.text-interview dt {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
@@ -415,34 +424,43 @@ figure[class*='text-pull-'] {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* -- Info Messages (error, warning, success... -- */
|
||||||
.text-info {
|
.text-info {
|
||||||
font-size: 1.6rem;
|
font-size: 1.6rem;
|
||||||
line-height: 2.4rem;
|
line-height: 2.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*=========================================
|
||||||
|
2.1. San Francisco Font (Apple's new font)
|
||||||
|
=========================================== */
|
||||||
.text-apple,
|
.text-apple,
|
||||||
.bg-apple {
|
.bg-apple {
|
||||||
font-family: 'San Francisco', helvetica, arial, sans-serif;
|
font-family: 'San Francisco', helvetica, arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ultra Light */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'San Francisco';
|
font-family: 'San Francisco';
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
src: url('https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff2');
|
src: url('https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff2');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Thin */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'San Francisco';
|
font-family: 'San Francisco';
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
src: url('https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-thin-webfont.woff2');
|
src: url('https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-thin-webfont.woff2');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Regular */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'San Francisco';
|
font-family: 'San Francisco';
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: url('https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff2');
|
src: url('https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff2');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Bold */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'San Francisco';
|
font-family: 'San Francisco';
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
Reference in New Issue
Block a user