Skip to content

Commit

Permalink
split out css overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Feb 16, 2024
1 parent 261a036 commit 8e54a6b
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/javascript/flavours/glitch/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@
@import 'rich_text';
@import 'glitch_local_settings';
@import 'glitch_doodle';

@import 'neuromatchstodon/index';
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
pre {
background: darken($ui-base-color, 8%);
border-radius: 3px;
padding: 0.75em;
counter-reset: line;
overflow-x: scroll;
}

pre code {
counter-increment: line;
padding: 0;
white-space: pre;
}

pre code::before {
font-size: 0.8em;
color: darken($primary-text-color, 33%);
content: counter(line);
display: inline-block;
border-right: 1px solid darken($primary-text-color, 33%);
margin: -0.05em 0.7em -0.05em 0;
padding: 0.05em 0.5em 0.05em 0;
text-align: right;
width: 1.2em;
white-space: nowrap;
direction: rtl;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.status {
&.collapsed {
.status__content {
max-height: 6em;
padding-top: unset;

&::after {
height: 40%;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'latex';
@import 'bigger_collapsed_statuses';
@import 'better_code_blocks';

0 comments on commit 8e54a6b

Please sign in to comment.