summaryrefslogtreecommitdiff
path: root/old_stuff/src/styles/markdown/util.css
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2026-10-06 20:46:31 +0300
committerKyren223 <contact@kyren.codes>2026-10-06 20:46:31 +0300
commitba1be9573ef20d6424ae987257a1c727c47d4b53 (patch)
treee59ef56f19142215070d0516a9b3a110d15557b6 /old_stuff/src/styles/markdown/util.css
parentea056b6e080669ba4b6f16c2757b4e2e88ea0553 (diff)
Initial setup for website rewrite
Diffstat (limited to 'old_stuff/src/styles/markdown/util.css')
-rw-r--r--old_stuff/src/styles/markdown/util.css61
1 files changed, 61 insertions, 0 deletions
diff --git a/old_stuff/src/styles/markdown/util.css b/old_stuff/src/styles/markdown/util.css
new file mode 100644
index 0000000..63ede50
--- /dev/null
+++ b/old_stuff/src/styles/markdown/util.css
@@ -0,0 +1,61 @@
+.sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border-width: 0;
+}
+
+.sl-hidden {
+ display: none;
+}
+.sl-flex {
+ display: flex;
+}
+.sl-block {
+ display: block;
+}
+@media (min-width: 50rem) {
+ .md\:sl-hidden {
+ display: none;
+ }
+ .md\:sl-flex {
+ display: flex;
+ }
+ .md\:sl-block {
+ display: block;
+ }
+}
+@media (min-width: 72rem) {
+ .lg\:sl-hidden {
+ display: none;
+ }
+ .lg\:sl-flex {
+ display: flex;
+ }
+ .lg\:sl-block {
+ display: block;
+ }
+}
+[data-theme="light"] .light\:sl-hidden {
+ display: none;
+}
+[data-theme="dark"] .dark\:sl-hidden {
+ display: none;
+}
+
+/*
+Flip an element around the y-axis when in an RTL context.
+Primarily useful for things where we can’t rely on writing direction like icons.
+
+<Icon name="right-arrow" class="rtl:flip" />
+
+In a LTR context: → In a RTL context: ←
+*/
+[dir="rtl"] .rtl\:flip:not(:where([dir="rtl"] [dir="ltr"] *)) {
+ transform: matrix(-1, 0, 0, 1, 0, 0);
+}