libmedium/templates/main.css

195 lines
2.4 KiB
CSS
Raw Permalink Normal View History

* {
margin: 0;
padding: 0;
}
body {
width: 100%;
display: flex;
flex-direction: column;
}
main {
width: 35em;
margin: auto;
display: flex;
flex-direction: column;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: sohne, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
a {
color: rgb(0, 86, 179);
text-decoration: none;
}
a:visited {
color: rgb(0, 86, 179);
}
a:hover {
text-decoration: underline;
}
html {
color: #333;
font-family: charter, Georgia, Cambria, "Times New Roman", Times, serif;
2021-11-02 13:40:13 +05:30
font-size: 26px;
line-height: 1.55rem;
}
p {
margin: 20px 0;
}
img {
margin: auto;
2021-11-02 13:40:13 +05:30
max-width: 100%;
display: block;
}
2021-11-02 13:40:13 +05:30
figcaption {
text-align: center;
}
/*
code {
font-family: monospace;
font-size: 15px;
white-space: pre-wrap;
font-weight: 600;
2021-11-04 23:51:59 +05:30
line-height: 1rem;
2021-12-09 11:36:26 +05:30
padding: 5px;
border-radius: 6px;
background-color: rgba(175, 184, 193, 0.2);
}
*/
pre {
font-family: Menlo, Monaco, "Courier New", Courier, monospace;
font-size: 15px;
white-space: pre-wrap;
/*
font-weight: 600;
*/
line-height: 1rem;
padding: 20px;
border-radius: 6px;
background-color: rgba(175, 184, 193, 0.2);
}
2021-12-09 11:36:26 +05:30
.code-block {
display: block;
2022-01-16 13:20:44 +05:30
margin: 5px 0;
padding: 20px;
}
iframe {
width: 100%;
display: block;
margin: auto;
min-height: 100px;
2021-11-01 08:51:25 +05:30
}
@media screen and (max-width: 1200px) {
html {
2021-11-02 13:40:13 +05:30
font-size: 16px;
line-height: 1.5rem;
}
2021-11-01 08:51:25 +05:30
main {
width: 90%;
}
img {
display: block;
}
2021-11-02 13:40:13 +05:30
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Times New Roman", Times, serif;
line-height: 30px;
}
}
.author__photo {
width: 28px;
height: 28px;
border-radius: 20px;
display: inline-block;
margin: auto;
margin-right: 5px;
display: inline-flex;
}
2022-02-09 23:38:04 +05:30
.medium__source {
font-style: italic;
}
2021-11-02 13:40:13 +05:30
.author {
display: inline-flex;
flex-direction: row;
margin-right: 5px;
}
.meta {
display: inline-flex;
}
2021-12-09 11:36:26 +05:30
.gist_contianer {
border-radius: 6px;
border: 1px solid rgb(211, 211, 211);
}
.gist_link {
margin-left: 5px;
}
.libmedium__meta {
background-color: rgb(255, 165, 0);
padding: 5px;
}
2022-01-05 11:41:30 +05:30
blockquote {
margin-left: -5px;
padding-left: 19px;
border-left: 4px solid #333;
font-style: italic;
}
2022-01-16 13:20:44 +05:30
ol,
ul {
2022-01-16 13:20:44 +05:30
margin-left: 40px;
}
.line-number {
margin-right: 20px;
display: inline-block;
}
.gist-block {
overflow-x: scroll;
display: block;
}
2023-02-17 18:38:21 +05:30
.mixtape {
padding: 20px;
border: 1px solid gray;
display: flex;
align-items: center;
margin: 30px 0;
}