react-toolbox/docs/app/components/markdown/style.scss

96 lines
2.2 KiB
SCSS
Raw Normal View History

2015-10-30 22:30:56 +03:00
@import "../globals";
2015-11-01 06:07:31 +03:00
@import "../mixins";
2015-10-29 22:49:21 +03:00
$documentation-h1-size: 3.4 * $unit;
$documentation-h2-size: 2.4 * $unit;
$documentation-h-offset: 4 * $unit;
$documentation-v-offset: ($documentation-h-offset / 2);
$documentation-code-background: rgba(0, 0, 0, .05);
$documentation-playground-button-height: 3 * $unit;
$documentation-playground-button-font-size: 1.2 * $unit;
$documentation-table-font-size: 1.4 * $unit;
2015-10-29 22:49:21 +03:00
2015-11-01 21:25:46 +03:00
:global {
@import "~highlight.js/styles/github-gist";
2015-11-01 21:25:46 +03:00
}
2015-10-30 22:30:56 +03:00
.markdown {
display: block;
max-height: 100%;
2015-10-29 22:49:21 +03:00
flex-grow: 1;
2015-11-02 00:55:23 +03:00
padding-bottom: 4 * $unit;
2015-10-29 22:49:21 +03:00
overflow-y: scroll;
font-size: $font-size-normal;
color: $color-text;
> *:not(pre) {
margin: $documentation-v-offset $documentation-h-offset;
}
h1 {
font-size: $documentation-h1-size;
}
h2 {
font-size: $documentation-h2-size;
}
h3, h4, h5, h6 {
font-size: inherit;
font-weight: $font-weight-bold;
}
h1, h2 {
padding-top: $documentation-v-offset;
color: $color-primary-dark;
}
p {
font-size: inherit;
line-height: 1.5;
2015-11-01 06:07:31 +03:00
a {
color: $color-text;
text-decoration: underline;
}
2015-10-29 22:49:21 +03:00
}
code {
@include code-typography;
padding: .3 * $unit .5 * $unit;
background-color: $documentation-code-background;
border-radius: 2px;
}
2015-10-29 22:49:21 +03:00
pre {
@include code-typography;
2015-10-29 22:49:21 +03:00
padding: $documentation-v-offset $documentation-h-offset;
background-color: $documentation-code-background;
}
> :global(.playground-button) {
display: block;
text-align: left;
> button {
height: $documentation-playground-button-height;
2015-11-17 02:45:20 +03:00
> span {
font-size: $documentation-playground-button-font-size;
line-height: $documentation-playground-button-height;
}
}
}
ul {
margin-left: 7 * $unit;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
> li {
margin-bottom: $unit;
}
2015-11-01 06:07:31 +03:00
}
2015-10-29 22:49:21 +03:00
table {
width: auto;
font-size: $documentation-table-font-size;
2015-10-29 22:49:21 +03:00
thead th {
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
2015-10-29 22:49:21 +03:00
}
th, td {
padding: $unit;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
2015-10-29 22:49:21 +03:00
}
}
}