Code Snippits need more space (#8416)

* Update rendering of code snippits

I noticed  that especially in tables code snippits need just a bit more space to not look to cramped.

* Update _settings.scss

* Update _typography.scss
pull/8429/head
Christian K 4 years ago committed by GitHub
parent 6a64e781c2
commit a5a5cf2dfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/assets/stylesheets/openproject/_settings.scss
  2. 1
      app/assets/stylesheets/vendor/foundation-apps/scss/_settings.scss
  3. 2
      app/assets/stylesheets/vendor/foundation-apps/scss/components/_typography.scss

@ -192,6 +192,7 @@ $breakpoint-classes: (tiny small medium large xlarge xxlarge xxxlarge);
// $code-border-style: solid; // $code-border-style: solid;
// $code-border-color: scale-color($code-background-color, $lightness: -10%); // $code-border-color: scale-color($code-background-color, $lightness: -10%);
// $code-padding: rem-calc(2) rem-calc(5) rem-calc(1); // $code-padding: rem-calc(2) rem-calc(5) rem-calc(1);
// $code-line-height: 1.75em;
// We use these to style anchors // We use these to style anchors
// $anchor-text-decoration: none; // $anchor-text-decoration: none;

@ -192,6 +192,7 @@
// $code-border-style: solid; // $code-border-style: solid;
// $code-border-color: scale-color($code-background-color, $lightness: -10%); // $code-border-color: scale-color($code-background-color, $lightness: -10%);
// $code-padding: rem-calc(2) rem-calc(5) rem-calc(1); // $code-padding: rem-calc(2) rem-calc(5) rem-calc(1);
// $code-line-height: 1.75em;
// We use these to style anchors // We use these to style anchors
// $anchor-text-decoration: none; // $anchor-text-decoration: none;

@ -73,6 +73,7 @@ $code-border-size: 1px !default;
$code-border-style: solid !default; $code-border-style: solid !default;
$code-border-color: scale-color($code-background-color, $lightness: -10%) !default; $code-border-color: scale-color($code-background-color, $lightness: -10%) !default;
$code-padding: rem-calc(2) rem-calc(5) rem-calc(1) !default; $code-padding: rem-calc(2) rem-calc(5) rem-calc(1) !default;
$code-line-height: 1.75em !default;
// We use these to style anchors // We use these to style anchors
$anchor-text-decoration: none !default; $anchor-text-decoration: none !default;
@ -252,6 +253,7 @@ $acronym-underline: 1px dotted #ddd !default;
border-style: $code-border-style; border-style: $code-border-style;
border-color: $code-border-color; border-color: $code-border-color;
padding: $code-padding; padding: $code-padding;
line-height: $code-line-height;
} }
/* Lists */ /* Lists */

Loading…
Cancel
Save