Skip to content

Commit

Permalink
restore mixins to enable Linux-specific stylings (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Apr 28, 2020
1 parent 5ea0b4f commit 858032d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions app/styles/mixins/_platform.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 858032d

Please sign in to comment.