Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Simplify mixins to not build dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Capa authored and Jon Capa committed Dec 21, 2016
1 parent 331a301 commit e332ca3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions d2l-offscreen-shared-styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@
<template>
<style>
:host {
--d2l-offscreen-ltr-rtl-shared: {
--d2l-offscreen: {
position: absolute !important;
overflow: hidden;
width: 1px;
height: 1px;
white-space: nowrap;
}
--d2l-offscreen: {
@apply(--d2l-offscreen-ltr-rtl-shared);
left: -10000px;
};
}
:host-context([dir="rtl"]) {
--d2l-offscreen: {
@apply(--d2l-offscreen-ltr-rtl-shared);
position: absolute !important;
overflow: hidden;
width: 1px;
height: 1px;
white-space: nowrap;
right: -10000px;
};
}
Expand Down

0 comments on commit e332ca3

Please sign in to comment.