Stackedit/src/components/common/base.scss

183 lines
2.4 KiB
SCSS
Raw Normal View History

2017-07-23 18:42:08 +00:00
@import '../../node_modules/normalize-scss/sass/normalize';
2017-07-25 23:34:01 +00:00
@import '../../node_modules/katex/dist/katex.css';
@import './variables.scss';
@import './fonts.scss';
2017-07-23 18:42:08 +00:00
@include normalize();
html,
body {
color: rgba(0, 0, 0, 0.75);
2017-07-25 18:20:52 +00:00
font-family: $font-family-main;
2017-07-23 18:42:08 +00:00
font-variant-ligatures: common-ligatures;
2017-07-25 23:34:01 +00:00
line-height: $line-height-base;
2017-07-23 18:42:08 +00:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
ul,
ol,
dl {
margin: 1.2em 0;
}
2017-07-25 18:20:52 +00:00
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 1.8em 0 1.2em;
2017-07-25 23:34:01 +00:00
line-height: $line-height-title;
padding: 0.33em 0;
2017-07-25 18:20:52 +00:00
}
h1,
h2 {
border-bottom: 1px solid $hr-color;
}
2017-07-25 23:34:01 +00:00
h1 {
font-size: 2.2em;
}
h2 {
font-size: 1.6em;
}
h3 {
font-size: 1.22em;
}
2017-07-23 18:42:08 +00:00
ol ul,
ul ol,
ul ul,
ol ol {
margin: 0;
}
a {
color: $link-color;
2017-07-25 18:20:52 +00:00
text-decoration: none;
&:hover,
&:focus {
text-decoration: underline;
}
2017-07-23 18:42:08 +00:00
}
code,
kbd,
pre,
samp {
font-family: $font-family-monospace;
font-size: $font-size-monospace;
* {
font-size: inherit;
}
}
blockquote {
2017-07-25 08:19:39 +00:00
color: rgba(0, 0, 0, 0.5);
2017-07-23 18:42:08 +00:00
margin-left: 1em;
margin-right: 1em;
}
code {
background-color: $code-bg;
border-radius: $border-radius-base;
padding: 2px 4px;
}
hr {
border: 0;
2017-07-25 18:20:52 +00:00
border-top: 1px solid $hr-color;
2017-07-23 18:42:08 +00:00
margin: 2em 0;
}
pre > code {
background-color: $code-bg;
display: block;
overflow-x: auto;
padding: 0.5em;
-webkit-text-size-adjust: none;
}
.toc ul {
list-style-type: none;
padding-left: 20px;
}
table {
background-color: transparent;
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
border-right: 1px solid #e0e0e0;
padding: 8px 12px;
&:last-child {
border-right: 0;
}
}
td {
border-top: 1px solid #e0e0e0;
}
kbd {
background-color: #fff;
border: 1px solid rgba(63, 63, 63, 0.25);
border-radius: 3px;
box-shadow: 0 1px 0 rgba(63, 63, 63, 0.25);
color: #333;
display: inline-block;
font-size: 0.7em;
margin: 0 0.1em;
padding: 0.1em 0.6em;
white-space: nowrap;
}
abbr {
&[title] {
border-bottom: 1px dotted #777;
cursor: help;
}
}
.footnote {
font-size: 0.8em;
position: relative;
top: -0.25em;
vertical-align: top;
}
.export-container {
margin-bottom: 180px;
margin-left: auto;
margin-right: auto;
> :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not([align]) {
text-align: justify;
}
}
@media (min-width: 768px) {
.export-container {
width: 750px;
}
}