diff options
Diffstat (limited to 'app/assets/stylesheets/framework/mixins.scss')
-rw-r--r-- | app/assets/stylesheets/framework/mixins.scss | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/app/assets/stylesheets/framework/mixins.scss b/app/assets/stylesheets/framework/mixins.scss index 33f7aa4dba1..1e51bf3d974 100644 --- a/app/assets/stylesheets/framework/mixins.scss +++ b/app/assets/stylesheets/framework/mixins.scss @@ -276,7 +276,7 @@ top: $header-height; .with-performance-bar & { - top: $header-height + $performance-bar-height; + top: calc(#{$header-height} + #{$performance-bar-height}); } } @@ -419,6 +419,30 @@ height: $gl-font-size * $code-line-height * 0.9; } +@mixin email-code-block { + .code.language-email { + font-family: inherit; + font-size: inherit; + + code { + white-space: pre-wrap; + font-family: inherit; + + // Rouge `Name.Tag` and `Operator` token (email header key + ':') + .nt, + .o { + color: inherit; + font-weight: bold; + } + + // Rouge `Name.Attribute` token (email header value) + .na { + color: inherit; + } + } + } +} + @mixin avatar-counter($border-radius: 1em) { background-color: $gray-darkest; color: $white; |