summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/mixins.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/framework/mixins.scss')
-rw-r--r--app/assets/stylesheets/framework/mixins.scss26
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;