hugo-theme-hello-friend/assets/css/main.scss

305 lines
4.3 KiB
SCSS
Raw Normal View History

2018-07-20 19:14:22 +02:00
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
margin: 0;
padding: 0;
2019-02-06 12:52:43 +01:00
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
2019-01-06 11:23:25 +01:00
font-size: 1rem;
font-weight: 500;
font-feature-settings: "liga", "tnum", "case", "calt", "zero", "ss01", "locl";
2018-07-20 19:14:22 +02:00
line-height: 1.54;
2020-06-20 00:07:59 +02:00
background-color: var(--background);
color: var(--color);
2018-07-20 19:14:22 +02:00
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-webkit-overflow-scrolling: touch;
-webkit-text-size-adjust: 100%;
2022-10-23 11:16:46 +02:00
@media ($phone) {
2018-07-20 19:14:22 +02:00
font-size: 1rem;
}
}
h1, h2, h3, h4, h5, h6 {
2018-07-30 18:55:26 +02:00
line-height: 1.3;
2018-07-20 19:14:22 +02:00
}
h1 {
font-size: 2.625rem;
}
h2 {
font-size: 1.625rem;
}
h3 {
font-size: 1.375rem;
}
h4 {
font-size: 1.125rem;
}
2022-10-23 11:16:46 +02:00
@media ($phone) {
2018-07-20 19:14:22 +02:00
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.4rem;
}
h3 {
font-size: 1.15rem;
}
h4 {
font-size: 1.125rem;
}
}
a {
color: inherit;
}
img {
display: block;
max-width: 100%;
2018-12-12 19:55:37 +01:00
&.left {
margin-right: auto;
}
&.center {
margin-left: auto;
margin-right: auto;
}
&.right {
margin-left: auto;
}
2018-07-20 19:14:22 +02:00
}
2018-12-13 08:35:47 +01:00
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 {
2019-02-05 18:29:59 +01:00
font-size: .9rem;
2018-12-13 08:35:47 +01:00
margin-top: 5px;
opacity: .8;
&.left {
text-align: left;
}
&.center {
text-align: center;
}
&.right {
text-align: right;
}
}
}
code, kbd {
2018-07-20 19:14:22 +02:00
font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;
2020-06-20 00:07:59 +02:00
background: var(--background-secondary);
2018-07-20 19:14:22 +02:00
padding: 1px 6px;
margin: 0 2px;
border-radius: 5px;
font-size: .9em;
2019-02-06 12:52:43 +01:00
font-weight: normal;
font-feature-settings: normal;
code, kbd {
background: transparent;
padding: 0;
margin: 0;
}
2018-07-20 19:14:22 +02:00
}
pre {
font-feature-settings: normal;
2019-01-06 11:23:25 +01:00
background: #212020;
2018-07-20 19:14:22 +02:00
padding: 20px;
border-radius: 8px;
2019-02-05 18:29:59 +01:00
font-size: .9rem;
2018-07-20 19:14:22 +02:00
overflow: auto;
2022-10-23 11:16:46 +02:00
@media ($phone) {
2018-07-20 19:14:22 +02:00
white-space: pre-wrap;
word-wrap: break-word;
}
code {
font-feature-settings: normal;
2018-07-20 19:14:22 +02:00
background: none !important;
color: #ccc;
2018-08-21 13:28:58 +02:00
margin: 0;
2018-07-20 19:14:22 +02:00
padding: 0;
font-size: inherit;
2018-07-20 19:14:22 +02:00
}
}
blockquote {
border-left: 2px solid;
margin: 40px;
padding: 10px 20px;
2022-10-23 11:16:46 +02:00
@media ($phone) {
2018-07-20 19:14:22 +02:00
margin: 10px;
padding: 10px;
}
&:before {
content: '';
font-family: Georgia, serif;
font-size: 3.875rem;
position: absolute;
left: -40px;
top: -20px;
}
p:first-of-type {
margin-top: 0;
}
p:last-of-type {
margin-bottom: 0;
}
}
/* Fix for gist integration */
table:not(.js-file-line-container) {
2019-02-01 10:11:48 +01:00
table-layout: fixed;
border-collapse: collapse;
width: 100%;
margin: 40px 0;
border-radius: 5px;
}
/* Fix for gist integration */
table, th, td:not(.js-line-number) {
2019-02-01 10:11:48 +01:00
border: 1px solid;
padding: 10px;
}
th {
2020-06-20 00:07:59 +02:00
background: var(--background-secondary);
2019-02-01 10:11:48 +01:00
}
2018-07-20 19:14:22 +02:00
ul, ol {
margin-left: 40px;
padding: 0;
2022-10-23 11:16:46 +02:00
@media ($phone) {
2018-07-20 19:14:22 +02:00
margin-left: 20px;
}
}
ol ol {
list-style-type: lower-alpha;
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
}
.content {
display: flex;
flex-direction: column;
flex: 1 auto;
align-items: center;
justify-content: center;
margin: 50px 0;
2022-10-23 11:16:46 +02:00
@media ($phone) {
2018-07-20 19:14:22 +02:00
margin-top: 0;
}
}
hr {
width: 100%;
border: none;
2020-06-20 00:07:59 +02:00
background: var(--border-color);
2018-07-20 19:14:22 +02:00
height: 1px;
}
.hidden {
display: none;
}
.framed {
2023-01-03 00:15:59 +01:00
padding: 50px;
margin: 0 -50px 40px;
border-radius: 10px;
border: 1px solid var(--border-color);
2023-01-03 00:15:59 +01:00
width: 100%;
max-width: 860px;
@media ($tablet) {
width: auto;
max-width: 680px;
margin: 20px 20px 40px;
padding: 30px;
}
}
2020-09-05 17:44:09 +02:00
blockquote.twitter-tweet {
2022-10-23 11:16:46 +02:00
background: hsla(206deg, 62%, 45%, 0.1);
2020-09-05 17:44:09 +02:00
border: none;
padding: 30px;
color: inherit;
font-size: inherit;
line-height: inherit;
border-radius: 8px;
}
.h-anchor {
2022-01-24 17:30:25 +01:00
margin-left: 1px;
color: var(--color-secondary);
text-decoration: none;
visibility: hidden;
opacity: 0;
transition: visibility 0s linear 0.1s, opacity 0.1s linear;
}
h1:hover a,
h2:hover a,
h3:hover a,
h4:hover a {
visibility: visible;
opacity: 1;
transition-delay: 0s;
}
.framed .h-anchor {
visibility: hidden;
}