From 8dde8ffe8fd2059b47c978a979beee8e70439e42 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Fri, 1 Sep 2017 02:05:08 +0800 Subject: [PATCH] css: fix background-size --- _sass/2017/markdown/table.scss | 10 ++++++++++ css.md | 4 +--- vim.md | 1 + vimscript.md | 3 ++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/_sass/2017/markdown/table.scss b/_sass/2017/markdown/table.scss index bf69d9ec0..a6d40d975 100644 --- a/_sass/2017/markdown/table.scss +++ b/_sass/2017/markdown/table.scss @@ -110,6 +110,15 @@ & tr td { @include font-size(1); + white-space: nowrap; + } + + & tr td:not(:last-child) { + padding-right: 4px; + } + + & tr td:not(:first-child) { + padding-left: 4px; } & tr:last-child { @@ -119,5 +128,6 @@ & tr:last-child td { @include font-size(-1); color: $base-mute; + white-space: auto; } } diff --git a/css.md b/css.md index 1bf8013af..a928913ce 100644 --- a/css.md +++ b/css.md @@ -137,9 +137,7 @@ Background | `background-color:` | `` | | `background-image:` | `url(...)` | | `background-position:` | `left/center/right` `top/center/bottom` | -| `background-size:` | `cover` | -| | `X Y` | -| --- | --- | +| `background-size:` | `cover` `X Y` | | `background-clip:` | `border-box` `padding-box` `content-box` | | `background-repeat:` | `no-repeat` `repeat-x` `repeat-y` | | `background-attachment:` | `scroll` `fixed` `local` | diff --git a/vim.md b/vim.md index 74da855db..418e65d2e 100644 --- a/vim.md +++ b/vim.md @@ -132,6 +132,7 @@ Operators let you operate in a range of text (defined by *motion*). These are pr | `gu` | Lowercase | | --- | --- | | `!` | Filter through external program | +{: .-shortcuts} See `:help operator` diff --git a/vimscript.md b/vimscript.md index f16222026..1d4334e3d 100644 --- a/vimscript.md +++ b/vimscript.md @@ -216,7 +216,6 @@ Custom commands ```vim command! Save :set fo=want tw=80 nowrap ``` -{: .-setup} Custom commands start with uppercase letters. The `!` redefines a command if it already exists. @@ -225,6 +224,7 @@ Custom commands start with uppercase letters. The `!` redefines a command if it ```vim command! Save call script#foo() ``` +{: .-setup} ```vim function! script#foo() @@ -237,6 +237,7 @@ endfunction ```vim command! -nargs=? Save call script#foo() ``` +{: .-setup} | What | What | | ---- | ---- |