Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2019-09-13 02:36:28 +0300
committerEvan Read <eread@gitlab.com>2019-09-13 02:36:28 +0300
commitb7f84d156b1b0f31aa0e433326a5caf34e3f6be5 (patch)
tree754657eea7eb27c98371de004788102a4c8bb484 /content
parent9cedf55183458e7a41d3c9d61b3090baf3c6cdb2 (diff)
parent705d9f78767e19b074d34c215c49bc20a7ba5852 (diff)
Merge branch '340-improve-docs-tables' into 'master'
Replace JS table selectors with CSS See merge request gitlab-org/gitlab-docs!554
Diffstat (limited to 'content')
-rw-r--r--content/assets/javascripts/table-display-block.js10
-rw-r--r--content/assets/stylesheets/stylesheet.scss6
2 files changed, 6 insertions, 10 deletions
diff --git a/content/assets/javascripts/table-display-block.js b/content/assets/javascripts/table-display-block.js
deleted file mode 100644
index 68ec2164..00000000
--- a/content/assets/javascripts/table-display-block.js
+++ /dev/null
@@ -1,10 +0,0 @@
----
-version: 2
----
-
-var tableList = document.querySelectorAll('.js-article-content table');
-tableList.forEach(
- function(table) {
- table.classList.add('display-block');
- }
-);
diff --git a/content/assets/stylesheets/stylesheet.scss b/content/assets/stylesheets/stylesheet.scss
index df0dde51..a9864aec 100644
--- a/content/assets/stylesheets/stylesheet.scss
+++ b/content/assets/stylesheets/stylesheet.scss
@@ -98,6 +98,12 @@ table {
}
}
+// this targets tables where the `table_display_block: true` attribute is present
+// for more information: https://docs.gitlab.com/ee/development/documentation/styleguide.html#tables-overlapping-the-toc
+.table-display-block table {
+ display: block;
+}
+
blockquote {
background-color: $blockquote-background-color;
color: $blockquote-txt-color;