Dwelling/homepage/static/assets/css/articles.css

60 lines
1.2 KiB
CSS
Raw Normal View History

2021-02-10 01:01:50 +04:00
@font-face {
font-family: 'Share Tech Mono';
font-style: normal;
font-weight: 400;
src: local('ShareTechMono'), local('ShareTechMono-Regular'),
url(/shared/fonts/ShareTechMono-Regular.ttf) format('truetype'); }
2021-02-10 01:01:50 +04:00
h3 {
font-size: 1.1rem;
font-variant: normal;
text-align: left; }
2021-02-10 01:01:50 +04:00
2022-05-22 03:17:21 +04:00
h4,
h5 {
text-indent: 1.5rem;
margin: 1rem 0 1rem 0; }
2021-02-10 01:01:50 +04:00
:is(h3, h4, h5) a { color: var(--text-color); }
2021-02-10 19:56:44 +04:00
:is(h3, h4, h5) a:hover { color: var(--primary-color); }
2021-02-10 19:56:44 +04:00
2021-02-10 01:01:50 +04:00
code,
pre {
font-family: 'Share Tech Mono';
font-size: 1.1rem;
letter-spacing: -1px; }
2021-02-10 01:01:50 +04:00
pre {
border-left: 1px solid var(--primary-color);
padding-left: .25rem;
2022-10-26 01:52:16 +04:00
margin: .5rem 0;
overflow: scroll;
white-space: pre-wrap;
word-break: break-all; }
2021-02-10 01:01:50 +04:00
article {
margin-top: 1rem;
max-width: 100%; }
2021-02-10 01:01:50 +04:00
article:last-child { margin-bottom: 1rem; }
article header {
display: flex;
flex-direction: column; }
2021-02-10 01:01:50 +04:00
article header .menu {
display: flex;
font-size: .8rem;
justify-content: space-between; }
2021-02-10 01:01:50 +04:00
article header nav a { font-variant: normal; }
article header nav ol {
counter-reset: item;
list-style-type: none; }
2021-02-10 01:01:50 +04:00
article header nav ol > li { counter-increment: item; }
article header nav ol > li:before { content: counters(item, '.') '. '; }