hugo-theme-terminal/assets/css/main.css

335 lines
4.6 KiB
CSS
Raw Normal View History

2019-01-28 03:11:02 +03:00
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
margin: 0;
padding: 0;
font-family: 'Fira Code', Monaco, Consolas, Ubuntu Mono, monospace;
font-size: 1rem;
line-height: 1.54;
2019-08-25 11:08:21 +03:00
letter-spacing: -0.02em;
2019-01-28 03:11:02 +03:00
background-color: color-mod(var(--accent) blend(#1D1E28 98%));
color: var(--color);
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
font-variant-ligatures: contextual;
-webkit-overflow-scrolling: touch;
-webkit-text-size-adjust: 100%;
@media (--phone) {
font-size: 1rem;
}
}
.headings--one-size {
h1,
h2,
h3,
h4,
h5,
h6 {
line-height: 1.3;
&:not(first-child) {
margin-top: 40px;
}
2019-02-09 02:33:23 +03:00
}
2019-01-28 03:11:02 +03:00
h1,
h2,
h3 {
font-size: 1.4rem;
}
2019-01-28 03:11:02 +03:00
h4,
h5,
h6 {
font-size: 1.2rem;
}
2019-01-28 03:11:02 +03:00
}
a {
color: inherit;
2020-06-18 01:21:15 +03:00
/* Waiting for a better times... */
/* &:has(code) {
text-decoration-color: var(--accent);
} */
2019-01-28 03:11:02 +03:00
}
img {
display: block;
max-width: 100%;
&.left {
margin-right: auto;
}
&.center {
margin-left: auto;
margin-right: auto;
}
&.right {
margin-left: auto;
}
}
p {
margin-bottom: 20px;
}
figure {
display: table;
max-width: 100%;
margin: 25px 0;
&.left {
margin-right: auto;
}
&.center {
margin-left: auto;
margin-right: auto;
}
&.right {
margin-left: auto;
}
figcaption {
font-size: 14px;
2019-02-01 11:26:51 +03:00
padding: 5px 10px;
2019-01-28 03:11:02 +03:00
margin-top: 5px;
2019-02-01 11:26:51 +03:00
background: var(--accent);
color: var(--background);
/* opacity: .8; */
2019-01-28 03:11:02 +03:00
&.left {
text-align: left;
}
&.center {
text-align: center;
}
&.right {
text-align: right;
}
}
}
2020-06-18 01:21:15 +03:00
code, kbd {
2019-01-28 03:11:02 +03:00
font-family: 'Fira Code', Monaco, Consolas, Ubuntu Mono, monospace;
font-feature-settings: normal;
2019-01-29 20:59:47 +03:00
background: color-mod(var(--accent) a(20%));
color: var(--accent);
2019-01-28 03:11:02 +03:00
padding: 1px 6px;
margin: 0 2px;
font-size: .95rem;
2020-06-18 01:21:15 +03:00
code, kbd {
background: transparent;
padding: 0;
margin: 0;
}
2019-01-28 03:11:02 +03:00
}
pre {
2020-01-06 11:31:18 +03:00
background: transparent !important;
2019-02-09 02:33:23 +03:00
padding: 20px 10px;
margin: 40px 0;
2019-01-28 03:11:02 +03:00
font-size: .95rem;
overflow: auto;
2019-01-29 20:59:47 +03:00
border-top: 1px solid rgba(255, 255, 255, .1);
2019-08-25 11:08:21 +03:00
border-bottom: 1px solid rgba(255, 255, 255, .1);
2019-01-28 03:11:02 +03:00
2019-02-09 02:33:23 +03:00
+ pre {
border-top: 0;
margin-top: -40px;
}
2019-01-28 03:11:02 +03:00
@media (--phone) {
white-space: pre-wrap;
word-wrap: break-word;
}
code {
background: none !important;
margin: 0;
padding: 0;
font-size: inherit;
2019-01-29 20:59:47 +03:00
border: none;
2019-01-28 03:11:02 +03:00
}
}
blockquote {
border-top: 1px solid var(--accent);
border-bottom: 1px solid var(--accent);
margin: 40px 0;
padding: 25px;
@media (--phone) {
padding-right: 0;
}
p:first-of-type {
margin-top: 0;
}
p:last-of-type {
margin-bottom: 0;
}
p {
position: relative;
}
2020-06-18 01:21:15 +03:00
p:first-of-type:before {
2019-01-28 03:11:02 +03:00
content: '>';
display: block;
position: absolute;
left: -25px;
color: var(--accent);
}
2020-06-18 01:21:15 +03:00
&.twitter-tweet {
position: relative;
background: color-mod(var(--accent) a(10%));
font: inherit;
color: inherit;
border: 1px solid var(--accent);
padding-top: 60px;
p:before {
content: '';
}
&:before {
content: '> From Twitter:';
position: absolute;
top: 20px;
color: var(--accent);
font-weight: bold;
}
a {
color: var(--accent);
}
}
2019-01-28 03:11:02 +03:00
}
2019-02-01 11:26:51 +03:00
table {
table-layout: fixed;
border-collapse: collapse;
width: 100%;
margin: 40px 0;
}
2019-08-25 11:08:21 +03:00
table,
th,
td {
2019-02-01 11:26:51 +03:00
border: 1px dashed var(--accent);
padding: 10px;
}
th {
color: var(--accent);
}
2019-08-25 11:08:21 +03:00
ul,
ol {
2019-01-28 03:11:02 +03:00
margin-left: 30px;
padding: 0;
li {
position: relative;
}
@media (--phone) {
margin-left: 20px;
}
}
2020-06-18 01:21:15 +03:00
ol {
list-style: none;
counter-reset: li;
li {
counter-increment: li;
}
li:before {
content: counter(li);
position: absolute;
right: calc(100% + 10px);
color: var(--accent);
display: inline-block;
text-align: right;
}
}
2019-01-28 03:11:02 +03:00
ol ol {
list-style-type: lower-alpha;
}
2020-06-18 01:21:15 +03:00
mark {
background: var(--accent);
color: var(--background);
}
2019-01-28 03:11:02 +03:00
.container {
display: flex;
flex-direction: column;
padding: 40px;
max-width: 864px;
2019-02-01 10:39:12 +03:00
min-height: 100vh;
2019-03-02 03:27:19 +03:00
border-right: 1px solid rgba(255, 255, 255, 0.1);
2019-01-28 03:11:02 +03:00
2019-02-26 11:30:10 +03:00
&.full,
&.center {
border: none;
margin: 0 auto;
}
&.full {
max-width: 100%;
}
2019-03-02 03:27:19 +03:00
@media (--phone) {
padding: 20px;
}
@media print {
display: initial;
}
2019-01-28 03:11:02 +03:00
}
2019-01-28 03:11:02 +03:00
.content {
display: flex;
2020-05-29 01:50:00 +03:00
flex-direction: column;
@media print {
display: initial;
}
2019-01-28 03:11:02 +03:00
}
hr {
width: 100%;
border: none;
background: var(--border-color);
height: 1px;
}
.hidden {
display: none;
}