Skip to content

Instantly share code, notes, and snippets.

@MrLixm
Last active February 26, 2025 18:46
Show Gist options
  • Save MrLixm/7d5f8ab7ae4f121beeedb4893fc4c261 to your computer and use it in GitHub Desktop.
Save MrLixm/7d5f8ab7ae4f121beeedb4893fc4c261 to your computer and use it in GitHub Desktop.
custom styling of the Elk browser for Mastodon; give space to images and provides a calmer experience
/* ==UserStyle==
@name elk-mastodon-css
@version 2
@description custom styling of the Elk browser for Mastodon; give space to images and provides a calmer experience
@author Liam Collod
==/UserStyle== */
@-moz-document domain("elk.zone") {
:root{
--c-bg-base: rgb(28, 28, 28);
}
@media (min-width: 1024px){
.xl\:w-1\/4{
width: 20%;
}
.lg\:max-w-80rem, [lg\:max-w-80rem=""]{
max-width: 95rem;
}
}
@media (min-width: 640px){
.sm\:w-600px{
width: 800px;
}
.sm\:max-w-600px {
max-width: 800px;
}
}
main > aside:nth-child(1) {
opacity: 0.2;
}
/*images in posts*/
.object-cover, [object-cover=""] {
object-fit: contain;
}
/* separator line between posts */
article > div > div[h="1px"] {
margin: 3rem;
}
article img.account-avatar {
width: 24px;
height: 24px;
}
article img.account-avatar[w-48px] {
width: 30px;
height: 30px;
}
/*profile names*/
article div > span > div > a:not([text-sm])[href*="@"] {
background-color: var(--c-bg-btn-disabled);
padding-top: 3px;
padding-bottom: 3px;
opacity: 0.5;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment