diff --git a/lib/resources/styles.css b/lib/resources/styles.css index 88e6f9e40b..194c40a11b 100644 --- a/lib/resources/styles.css +++ b/lib/resources/styles.css @@ -79,10 +79,6 @@ main { padding: 20px 15px 0 30px; } -.main-content p { - max-width: 700px; -} - .sidebar, .main-content { margin: 20px 0; @@ -416,6 +412,10 @@ footer a, footer a:hover { color: #fff; } +.markdown.desc { + max-width: 700px; +} + .markdown h1 { font-size: 24px; margin-bottom: 8px; diff --git a/testing/test_package/README.md b/testing/test_package/README.md index 9eeca5da93..9d3ce9f00f 100644 --- a/testing/test_package/README.md +++ b/testing/test_package/README.md @@ -14,6 +14,11 @@ It also has some awesome code void main() { // in Dart! } + +/* +80-characters: to ensure default styles accommodate Dart line length convention. +01234567890123456789012345678901234567890123456789012345678901234567890123456789 +*/ ``` ```yaml diff --git a/testing/test_package_docs/index.html b/testing/test_package_docs/index.html index 3492657f10..ef653de1f4 100644 --- a/testing/test_package_docs/index.html +++ b/testing/test_package_docs/index.html @@ -60,6 +60,11 @@
void main() {
// in Dart!
}
+
+/*
+80-characters: to ensure default styles accommodate Dart line length convention.
+01234567890123456789012345678901234567890123456789012345678901234567890123456789
+*/
and_yaml:
- value
diff --git a/testing/test_package_docs/static-assets/styles.css b/testing/test_package_docs/static-assets/styles.css
index 88e6f9e40b..194c40a11b 100644
--- a/testing/test_package_docs/static-assets/styles.css
+++ b/testing/test_package_docs/static-assets/styles.css
@@ -79,10 +79,6 @@ main {
padding: 20px 15px 0 30px;
}
-.main-content p {
- max-width: 700px;
-}
-
.sidebar,
.main-content {
margin: 20px 0;
@@ -416,6 +412,10 @@ footer a, footer a:hover {
color: #fff;
}
+.markdown.desc {
+ max-width: 700px;
+}
+
.markdown h1 {
font-size: 24px;
margin-bottom: 8px;