diff --git a/guides/assets/stylesheets/main.css b/guides/assets/stylesheets/main.css index 6a7c58f627..d686d15f2a 100644 --- a/guides/assets/stylesheets/main.css +++ b/guides/assets/stylesheets/main.css @@ -194,7 +194,7 @@ body { #topNav a, #footer a { color: #F1938C; - } + } } @media screen and (max-width: 1024px) { @@ -257,12 +257,6 @@ body { background: #ccc; } -.clipboard-content { - opacity:0; - position:absolute; - z-index:-1; -} - #header { background: #c52f24 url(../images/header_tile.gif) repeat-x; color: #FFF; diff --git a/guides/assets/stylesheets/main.rtl.css b/guides/assets/stylesheets/main.rtl.css index 5ec9491014..e18b5cbe43 100644 --- a/guides/assets/stylesheets/main.rtl.css +++ b/guides/assets/stylesheets/main.rtl.css @@ -253,12 +253,6 @@ body { background: #ccc; } -.clipboard-content { - opacity:0; - position:absolute; - z-index:-1; -} - #header { background: #c52f24 url(../images/header_tile.gif) repeat-x; color: #FFF; diff --git a/guides/rails_guides/markdown/renderer.rb b/guides/rails_guides/markdown/renderer.rb index 443159f34b..b1667b25a8 100644 --- a/guides/rails_guides/markdown/renderer.rb +++ b/guides/rails_guides/markdown/renderer.rb @@ -14,12 +14,10 @@ module RailsGuides formatter = Rouge::Formatters::HTML.new lexer = ::Rouge::Lexer.find_fancy(lexer_language(language)) formatted_code = formatter.format(lexer.lex(code)) - clipboard_id = "clipboard-#{SecureRandom.hex(16)}" <<~HTML
#{formatted_code}
- - +
HTML end @@ -95,7 +93,7 @@ module RailsGuides code = code.lines.grep(prompt_regexp).join.gsub(prompt_regexp, "") end - ERB::Util.h(code) + ERB::Util.html_escape(code) end def convert_notes(body)