1
1
mirror of https://github.com/primer/css.git synced 2025-01-07 14:58:54 +03:00

Merge pull request #548 from AustinPaquette/text-underline

add text underline utility & correct relative comment
This commit is contained in:
Emily 2018-07-26 19:26:12 -07:00 committed by GitHub
commit 5bcd023e53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 1 deletions

View File

@ -91,6 +91,7 @@ Change the font weight, styles, and alignment with these utilities.
<p class="no-wrap">No wrap</p>
<p class="ws-normal">Normal whitespace</p>
<p class="wb-break-all">Line break long lines</p>
<p class="text-underline">Text underline</p>
<p class="no-underline">No underline</p>
<p class="text-emphasized">Emphasized</p>
<p class="text-small">Small</p>

View File

@ -191,6 +191,8 @@
/* Make text uppercase */
.text-uppercase { text-transform: uppercase !important; }
/* Underline text */
.text-underline { text-decoration: underline !important; }
/* Don't underline text */
.no-underline { text-decoration: none !important; }
/* Don't wrap white space */
.no-wrap { white-space: nowrap !important; }

View File

@ -53,6 +53,7 @@ storiesOf('Typography utilities', module)
<p className='no-wrap'>no-wrap</p>
<p className='ws-normal'>ws-normal</p>
<p className='wb-break-all'>wb-break-all</p>
<p className='text-underline'>text-underline</p>
<p className='no-underline'>no-underline</p>
<p className='text-emphasized'>text-emphasized</p>
<p className='text-small'>text-small</p>

View File

@ -10,7 +10,7 @@ if (!process.env.GH_TOKEN) {
ghpages.publish('build',{
branch: 'gh-pages',
repo: `https://primer-css:${process.env.GH_TOKEN}@github.com/primer/storybook`
repo: `https://primer-css:${process.env.GH_TOKEN}@github.com/primer/storybook.git`
}, (error) => {
if(error) {
console.error('gh-pages failed to publish:', error.message.replace(process.env.GH_TOKEN, ''))