summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/notes.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/framework/notes.scss')
-rw-r--r--app/assets/stylesheets/framework/notes.scss14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/assets/stylesheets/framework/notes.scss b/app/assets/stylesheets/framework/notes.scss
new file mode 100644
index 00000000000..d349e3fad9c
--- /dev/null
+++ b/app/assets/stylesheets/framework/notes.scss
@@ -0,0 +1,14 @@
+@mixin notes-media($condition, $breakpoint-width) {
+ @media (#{$condition}-width: ($breakpoint-width)) {
+ @content;
+ }
+
+ // Diff is side by side
+ .notes_content.parallel & {
+ // We hide at double what we normally hide at because
+ // there are two columns of notes
+ @media (#{$condition}-width: (2 * $breakpoint-width)) {
+ @content;
+ }
+ }
+}