From eaeaa5e95a757f08d636fa46bcfea3aa36338e86 Mon Sep 17 00:00:00 2001 From: tatianamac Date: Wed, 18 Dec 2019 14:20:14 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=90=20=20Fixed=20smol=20edits=20from?= =?UTF-8?q?=20Jina?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.rb | 2 +- source/assets/css/sass.css.scss | 1 - source/assets/css/vendor/_syntax-accessible.scss | 5 ++++- source/layouts/components/_reference_table_of_contents.haml | 2 +- source/styleguide/components.html.haml | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/config.rb b/config.rb index 855296403..4c171a309 100644 --- a/config.rb +++ b/config.rb @@ -121,7 +121,7 @@ content.gsub(%r{^<(h[0-6])(.*?)}m) do |header_text| header = Nokogiri::HTML::DocumentFragment.parse(header_text).children.first id = header.attr(:id) - header.children.before("#{header.text} permalink") if id + header.children.before("#{header.text} permalink") if id header.to_html end end diff --git a/source/assets/css/sass.css.scss b/source/assets/css/sass.css.scss index 1f0b1e845..3bf3c51e6 100755 --- a/source/assets/css/sass.css.scss +++ b/source/assets/css/sass.css.scss @@ -6,7 +6,6 @@ 'vendor/normalize', 'vendor/sanitize', 'vendor/html5-boilerplate', - // 'vendor/syntax', 'vendor/syntax-accessible', 'vendor/jquery-ui-custom/jquery-ui', 'vendor/jquery-ui-custom/jquery-ui-structure', diff --git a/source/assets/css/vendor/_syntax-accessible.scss b/source/assets/css/vendor/_syntax-accessible.scss index 2dbf3faaa..d74620453 100644 --- a/source/assets/css/vendor/_syntax-accessible.scss +++ b/source/assets/css/vendor/_syntax-accessible.scss @@ -1,6 +1,6 @@ // Stylesheet pulled from Rogue stylesheet with colours updated for a11y -.highlight table td { padding: 5px; } +.highlight table td { padding: sl-px-to-rem(5px); } .highlight table pre { margin: 0; } .highlight .cm { color: #656556; @@ -253,13 +253,16 @@ color: #000000; font-weight: bold; } + .highlight .o { color: #000000; font-weight: bold; } + .highlight .w { color: #bbbbbb; } + .highlight { background-color: #f8f8f8; } \ No newline at end of file diff --git a/source/layouts/components/_reference_table_of_contents.haml b/source/layouts/components/_reference_table_of_contents.haml index cb5721021..d036afe6c 100644 --- a/source/layouts/components/_reference_table_of_contents.haml +++ b/source/layouts/components/_reference_table_of_contents.haml @@ -1,4 +1,4 @@ -%div.sl-c-list-navigation-wrapper.sl-c-list-navigation-wrapper--collapsible +.sl-c-list-navigation-wrapper.sl-c-list-navigation-wrapper--collapsible %h2 Contents = documentation_toc diff --git a/source/styleguide/components.html.haml b/source/styleguide/components.html.haml index 97554cab8..1129f0faf 100644 --- a/source/styleguide/components.html.haml +++ b/source/styleguide/components.html.haml @@ -1,5 +1,5 @@ --- -dh.title: Components +title: Components --- %h2 Closed