From 4a859fd4be7c7c67f213e912f2d0ca7698321602 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Mon, 6 Apr 2020 12:07:26 -0300 Subject: [PATCH] restore mixins to enable Linux-specific stylings (#247) --- app/styles/mixins/_platform.scss | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/app/styles/mixins/_platform.scss b/app/styles/mixins/_platform.scss index 0191bdd2dcc..b3c7bd55584 100644 --- a/app/styles/mixins/_platform.scss +++ b/app/styles/mixins/_platform.scss @@ -41,3 +41,25 @@ @content; } } + +// A mixin which takes a content block that should only +// be applied when the current (real or emulated) operating +// system is Linux. +// +// This helper mixin is useful in so far that it allows us +// to keep platform specific styles next to cross-platform +// styles instead of splitting them out and possibly forgetting +// about them. +@mixin linux { + body.platform-linux & { + @content; + } +} + +// An exact copy of the linux mixin except that it allows for +// writing base-level rules +@mixin linux-context { + body.platform-linux { + @content; + } +}