From ce13796063f4b9693dbf7f7af46aed2ac88cacf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Fri, 20 Dec 2019 18:02:26 +0100 Subject: [PATCH] feat(tables): removed .table-lg and adjust default+sm sizes --- scss/_tables.scss | 10 +-------- scss/_variables.scss | 8 +++---- site/docs/4.4/content/tables.md | 37 --------------------------------- 3 files changed, 5 insertions(+), 50 deletions(-) diff --git a/scss/_tables.scss b/scss/_tables.scss index c6d1844dc6..93abb5ee14 100644 --- a/scss/_tables.scss +++ b/scss/_tables.scss @@ -69,18 +69,10 @@ th, td { padding: $table-cell-padding-sm; + line-height: $table-cell-line-height-sm; } } -// Boosted mod -.table-lg { - th, - td { - padding: $table-cell-padding-lg; - } -} -// end mod - // Boosted mod: no bordered neither borderless tables // Boosted mod: no Zebra-striping diff --git a/scss/_variables.scss b/scss/_variables.scss index 3a51bcb296..4cb9d0503b 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -421,11 +421,11 @@ $hr-margin-y: $spacer !default; // // Customizes the `.table` component with basic values, each used across all table variations. -$table-cell-padding: .5rem map-get($spacers, 2) map-get($spacers, 2) !default; // Boosted mod -$table-cell-padding-sm: .375rem !default; // 6px; -$table-cell-padding-lg: .90625rem !default; // 14.5px; +$table-cell-padding: .75rem map-get($spacers, 2) .875 !default; // Boosted mod +$table-cell-padding-sm: .5rem map-get($spacers, 2) map-get($spacers, 2) !default; // Boosted mod // stylelint-disable function-blacklist -$table-cell-line-height: calc(21 / 16) !default; // Boosted mod +$table-cell-line-height: calc(23 / 16) !default; // Boosted mod +$table-cell-line-height-sm: calc(21 / 16) !default; // Boosted mod // stylelint-enable function-blacklist $table-color: $body-color !default; diff --git a/site/docs/4.4/content/tables.md b/site/docs/4.4/content/tables.md index dd6ce90224..ad31ce111a 100644 --- a/site/docs/4.4/content/tables.md +++ b/site/docs/4.4/content/tables.md @@ -267,43 +267,6 @@ Add `.table-sm` to make tables more compact by cutting cell padding in half. {% endcapture %} {% include example.html content=example %} -### Large table - -Add `.table-lg` to make tables more compact by cutting cell padding in half. - -{% capture example %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#FirstLastHandle
1MarkOtto@mdo
2JacobThornton@fat
3Larry the Bird@twitter
-{% endcapture %} -{% include example.html content=example %} - [comment]: # end mod [comment]: # Boosted mod: no Contextual classes