8
0
daux.io/themes/daux_singlepage/scss/_typography.scss

222 Zeilen
3.4 KiB
SCSS

2019-05-28 22:12:50 +02:00
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--font-family-heading);
2016-05-23 20:09:15 +02:00
font-weight: 300;
}
.s-content {
padding: 15px 25px 25px;
background-color: white;
2018-02-26 22:46:36 +01:00
body {
font-size: 15px;
}
2019-05-28 22:12:50 +02:00
h1,
h2,
h3,
h4,
h5,
h6 {
2018-02-26 22:46:36 +01:00
font-weight: 300;
-webkit-font-smoothing: antialiased;
cursor: text;
line-height: 1.4em;
margin-top: 0.3em;
margin-bottom: 0.3em;
2019-05-28 22:12:50 +02:00
tt,
code {
2018-02-26 22:46:36 +01:00
font-size: inherit;
}
i {
font-size: 0.7em;
}
p {
margin-top: 0;
}
}
2019-05-28 22:12:50 +02:00
h1 {
// 40px
2018-02-26 22:46:36 +01:00
font-size: 2.6666666667em;
color: black;
}
2019-05-28 22:12:50 +02:00
h2 {
// 30px
2018-02-26 22:46:36 +01:00
font-size: 2em;
border-bottom: 1px solid #eee;
color: black;
}
2019-05-28 22:12:50 +02:00
h3 {
// 26px
2018-02-26 22:46:36 +01:00
font-size: 1.7333333333em;
}
2019-05-28 22:12:50 +02:00
h4 {
// 22px
2018-02-26 22:46:36 +01:00
font-size: 1.4666666667em;
}
2019-05-28 22:12:50 +02:00
h5 {
// 18px
2018-02-26 22:46:36 +01:00
font-size: 1.2em;
}
2019-05-28 22:12:50 +02:00
h6 {
// 16px
2018-02-26 22:46:36 +01:00
font-size: 1.0666666667em;
color: #555;
}
a {
text-decoration: underline;
}
2019-05-28 22:12:50 +02:00
p {
// 15px
2018-02-26 22:46:36 +01:00
line-height: 1.8em;
margin-bottom: 20px;
}
2019-05-28 22:12:50 +02:00
ul,
ol {
2018-02-26 22:46:36 +01:00
padding-left: 30px;
}
ul p {
margin: 0;
}
ul ul {
margin: 0;
}
dl {
padding: 0;
dt {
font-weight: bold;
font-style: italic;
padding: 0;
margin: 15px 0 5px;
}
dt:first-child {
padding: 0;
}
dd {
margin: 0 0 15px;
padding: 0 15px;
}
}
blockquote {
font-size: 1.2em;
border-left: 4px solid #ddd;
padding: 7px 15px;
color: #666;
p {
font-size: inherit;
}
}
table {
width: 100%;
padding: 0;
border-collapse: collapse;
tr {
border-top: 1px solid #eee;
background-color: white;
margin: 0;
padding: 0;
}
tr:nth-child(2n) {
background-color: #f8f8f8;
}
th {
font-weight: bold;
border: 1px solid #eee;
background: #eee;
margin: 0;
padding: 6px 13px;
}
td {
border: 1px solid #eee;
margin: 0;
padding: 6px 13px;
}
}
ul,
ol,
blockquote,
dl dt,
dl dd,
table th,
table td {
> :first-child {
margin-top: 0;
}
> :last-child {
margin-bottom: 0;
}
}
img {
max-width: 100%;
display: block;
margin: 0 auto;
}
code {
font-family: var(--font-family-monospace);
}
2019-05-28 22:12:50 +02:00
code,
tt {
2018-02-26 22:46:36 +01:00
margin: 0 2px;
padding: 0 5px;
white-space: nowrap;
border: 1px solid #eaeaea;
background-color: #f8f8f8;
border-radius: 3px;
}
pre {
background: #fdf6e3;
color: #657b83;
line-height: 1.5em;
overflow: auto;
padding: 20px;
margin: 0 -20px 20px -20px;
code {
margin: 0;
padding: 0;
white-space: pre;
}
2019-05-28 22:12:50 +02:00
code,
tt {
2018-02-26 22:46:36 +01:00
background-color: transparent;
border: none;
}
}
}