From 22db0dab5c8ee94419305c651badbcdc51667486 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Mon, 2 Oct 2017 13:04:18 +0800 Subject: [PATCH] Implement table.-no-wrap --- _sass/2017/markdown/table.scss | 7 +++++++ cheatsheet-styles.md | 1 + ie.md | 6 +++--- ph-food-delivery.md | 8 ++++---- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/_sass/2017/markdown/table.scss b/_sass/2017/markdown/table.scss index e24b4e469..afe17c04b 100644 --- a/_sass/2017/markdown/table.scss +++ b/_sass/2017/markdown/table.scss @@ -136,3 +136,10 @@ font-weight: bold; } } + +.MarkdownBody table.-no-wrap { + & td, + & th { + white-space: nowrap; + } +} diff --git a/cheatsheet-styles.md b/cheatsheet-styles.md index 07d15a0aa..48fbbeff3 100644 --- a/cheatsheet-styles.md +++ b/cheatsheet-styles.md @@ -37,6 +37,7 @@ See: [H3 sections](#h3-sections-1) | `-bold-first` | Bold first column | | `-headers` | Show headers | | `-left-align` | Don't right align last column | +| `-no-wrap` | Don't wrap text | | `-shortcuts` | Shortcut keys | See: [Tables](#tables-1) diff --git a/ie.md b/ie.md index 76726b32c..0b7ef5263 100644 --- a/ie.md +++ b/ie.md @@ -34,7 +34,7 @@ updated: 2017-09-20 | `:target` | | | | 9 ✓ | ✓ | | `::selection` | | | | 9 ✓ | ✓ | | `:root` | | | | 9 ✓ | ✓ | -{: .-headers} +{: .-headers.-no-wrap} `first-child:` doesn't work for elements inserted via JS. @@ -69,7 +69,7 @@ updated: 2017-09-20 | `text-shadow` — [polyfill][text-shadow] | | | | | 10 ✓ | ✓ | | ---------------------------------------------------------- | - | - | - | - | -- | -- | | `border-image` | | | | | | 11 ✓ | -{: .-headers} +{: .-headers.-no-wrap} `inline-block:` IE6/7 can only support inline-block for elements that are naturally inline, like span @@ -97,7 +97,7 @@ updated: 2017-09-20 | JS: Web sockets | | | | | 10 ✓ | ✓ | | ---------------------------------------------------------- | - | - | - | - | -- | -- | | JS: Fullscreen mode | | | | | | 11 ✓ | -{: .-headers} +{: .-headers.-no-wrap} `flexbox:` IE10 only supports the 2012 syntax with -ms- prefix. diff --git a/ph-food-delivery.md b/ph-food-delivery.md index 7178cca61..beca52518 100644 --- a/ph-food-delivery.md +++ b/ph-food-delivery.md @@ -18,7 +18,7 @@ intro: | | McDonald's | [mcdonalds.com.ph](http://www.mcdonalds.com.ph/mcdelivery) | `8-6236` | | Pancake House | [pancakehouse.com.ph](https://www.pancakehouse.com.ph/) | `7-9000` | | Wendy's | [wendys.com.ph](https://wendys.com.ph/delivery/) | `533-3333` | -{: .-bold-first.-headers} +{: .-bold-first.-headers.-no-wrap} ### Pizza @@ -31,7 +31,7 @@ intro: | | Pizza Hut | [pizzahut.com.ph](https://order.pizzahut.com.ph) | `911-1111` | | Shakey's | [shakeyspizza.ph](http://order.shakeyspizza.ph/) | `77-7777` | | Yellow Cab | [yellowcabpizza.com](http://delivery.yellowcabpizza.com/) | `789-9999` | -{: .-bold-first.-headers} +{: .-bold-first.-headers.-no-wrap} ### Asian @@ -39,7 +39,7 @@ intro: | | --- | --- | --- | | Chowking | [chowkingdelivery.com](http://www.chowkingdelivery.com) | `9-8888` | | North Park | [northparkdelivery.com](http://northparkdelivery.com/) | `7-3737` | -{: .-bold-first.-headers} +{: .-bold-first.-headers.-no-wrap} ### Filipino @@ -49,7 +49,7 @@ intro: | | Jollibee | [jollibeedelivery.com](http://jollibeedelivery.com) | `8-7000` | | Mang Inasal | [manginasal.com](http://www.manginasal.com/menu/) _(menu)_ | `733-1111` | | Max's | [maxschicken.com](http://delivery.maxschicken.com/) | `7-9000` | -{: .-bold-first.-headers} +{: .-bold-first.-headers.-no-wrap} ## -