1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

8 commits

Author SHA1 Message Date
ChloeLiang
881bcc3cf7 Fix docs spacing 2021-09-19 09:22:02 +08:00
Jonathan Hefner
b78966b558 Render copy-to-clipboard text in element attribute [ci-skip]
Rendering copy-to-clipboard text in an invisible element causes
invisible extraneous matches when searching text on the page (e.g. with
Ctrl+F).  Rendering in an element attribute avoids this problem.
2021-07-23 12:52:10 -05:00
Petrik
a24fc7ac1d Always show version badge, not just for edge [ci skip]
Now that we have a CSS based version banner since 1c5d9a89a7
we can also show the banner for non edge versions.
2020-11-09 20:28:08 +01:00
Petrik
4c258caba2 Add copy button for copying guide code examples [skip ci]
Instead of carefully selecting the code in examples, use a copy button
for copying the code. This uses https://clipboardjs.com/ for copying.

For the bash code examples only line starting with $ prompt are copied.
The $ prompt itself is not copied.
2020-10-01 16:32:43 +02:00
R. Miles McCain
7f77b1d5b6
Remove broken responsive-tables JS
Add better responsive CSS for tables in guides

Fix borders & breakpoints for responsive tables

Add table fixes to RTL stylesheets

Use 480px breakpoints, remove outdated CSS
2020-07-04 06:18:58 +00:00
Juanito Fatas
f9dd0cab48 [Guides] line-height should be unitless
When line-height has unit, it will have unexpected results.
Based on recommendations by MDN[1] and CSSTricks[2].

[1] MDN https://developer.mozilla.org/en-US/docs/Web/CSS/line-height#Prefer_unitless_numbers_for_line-height_values
[2] CSS Tricks https://css-tricks.com/almanac/properties/l/line-height/#article-header-id-0
2020-03-23 14:03:20 +09:00
Ramon de Paula Marques
e812a3d70d increase guides chapters wrapper width 2019-10-04 15:54:50 -03:00
tamarr
29e0ed13f5
allow right to left styling of docs (#3)
* adding rtl css main file and logic to use
2018-11-19 18:59:52 +02:00