Make habr.com more readable
habr.com readable by freetz13
Details
Authorfreetz13
LicenseNo License
Categoryhabr.com
Created
Updated
Size3.2 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
/* ==UserStyle==
@name habr.com readable
@version 20241103.12.04
@namespace ?
==/UserStyle== */
@-moz-document domain("habr.com") {
:root {
--a: #3584E4;
--a_hover: #62A0EA;
--a_visited: #9141AC;
}
.article-formatted-body li,
.article-formatted-body_version-2 figure figcaption {
padding-top: 0px;
padding-bottom: 0px;
font-size: large;
line-height: 1.5;
}
.tm-article-snippet__title_h1 {
overflow: unset;
}
.article-formatted-body h1, .article-formatted-body h1 code {
font-size: 2rem;
}
.article-formatted-body h2, .article-formatted-body h2 code {
font-size: 1.9rem;
}
.article-formatted-body h3, .article-formatted-body h3 code {
font-size: 1.7rem;
}
.article-formatted-body h4, .article-formatted-body h4 code {
font-size: 1.5rem;
}
.article-formatted-body h5, .article-formatted-body h5 code {
font-size: 1.3rem;
}
.article-formatted-body h6, .article-formatted-body h6 code {
font-size: 1.1rem;
}
.article-formatted-body h1,
.article-formatted-body h2,
.article-formatted-body h3,
.article-formatted-body h4,
.article-formatted-body h5,
.article-formatted-body h6 {
font-family: serif;
line-height: 1.5;
}
#post-content-body {
text-align: justify;
hyphens: auto;
font-family: serif;
}
.article-formatted-body img {
margin-bottom: 2em;
}
.article-formatted-body,
#post-content-body p,
#post-content-body p,
.tm-comment__body-content_v2 p,
.tm-comment__body-content {
font-size: 14pt;
line-height: 1.5;
font-family: serif;
color: #333;
}
.article-formatted-body_version-2 hr {
margin: 1em auto;
}
* {
transition: none;
}
body {
font-family: initial;
}
.article-formatted-body code,
.article-formatted-body pre code {
font-family: monospace;
background-color: unset;
font-weight: bold;
}
h1 font[color],
h2 font[color],
h3 font[color],
h4 font[color],
h5 font[color],
h6 font[color],
b font[color] font[color] b,
font[color] h1,
font[color] h2,
font[color] h3,
font[color] h4,
font[color] h5,
font[color] h6 {
color: #444;
}
br + br {
margin: 0;
}
.tm-comment__body-content {
text-align: justify;
}
.article-formatted-body a {
color: var(--a);
}
.article-formatted-body a:hover {
color: var(--a_hover);
}
.article-formatted-body a:visited {
color: var(--a_visited)
}
font[color] {
color: #333;
}
.tm-page__sidebar {
display: none;
}
.tm-page__main, .tm-article-presenter {
max-width: 100%;
}
img {
display: block;
}
img[data-tex="inline"] {
display: inline;
margin: auto;
}
.tm-article-presenter__footer {
max-width: unset;
}
@media print {
.article-formatted-body code,
.article-formatted-body pre code {
font-weight: normal;
white-space: pre-wrap;
}
.tm-header,
.tm-company-profile-card,
.tm-base-layout__header,
.tm-block__body,
.tm-comment-form,
.tm-footer-menu,
.tm-footer,
.tm-layout-sidebar {
display: none;
}
}
}