| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- div.body {
- padding: 10px;
- }
- .wiki {
- line-height: 1.8em;
- font-size: 15px;
- h1, h2, h3, h4, h5, h6 {
- margin-top: 1.6em;
- margin-bottom: .8em;
- &:first-child {
- margin-top: 0;
- }
- }
- h1 {
- margin-top: 2em;
- padding-bottom: 0.3em;
- font-size: 1.8em;
- line-height: 1.1em;
- border-bottom: solid 1px transparent;
- }
- h2 {
- padding-bottom: 0.5em;
- font-size: 1.4em;
- line-height: 1.225;
- font-weight: bold;
- border-bottom: 1px solid transparent;
- }
- h3 {
- font-size: 1.2em;
- font-weight: bold;
- }
- h4 {
- font-size: 1.1em;
- font-weight: normal;
- }
- h5 {
- font-size: 1.05em;
- font-weight: normal;
- }
- p {
- font-weight: normal;
- margin: 15px 0;
- }
- blockquote {
- font-size: .9em;
- margin: 0 0 30px 0;
- padding: 0 20px;
- color: lighten($gray-dark, 35%);
- }
- pre {
- border: none;
- border-radius: 3px;
- }
- img {
- margin: 5px 0;
- max-width: 100%;
- }
- img.emojione {
- margin-top: -0.3em !important;
- margin-bottom: 0 !important;
- border: none;
- box-shadow: none;
- }
- ul, ol {
- padding-left: 30px;
- margin: 20px 0;
- li {
- margin: 5px 0;
- line-height: 1.8em;
- }
- ul, ol {
- margin: 0;
- }
- }
- // borrowed from https://www.npmjs.com/package/github-markdown-css
- .contains-task-list {
- .task-list-item {
- list-style-type: none;
- }
- .task-list-item+.task-list-item {
- margin-top: 3px;
- }
- .task-list-item input {
- margin: 0 0.2em 0.25em -1.6em;
- vertical-align: middle;
- }
- }
- pre.hljs {
- position: relative;
- cite {
- position: absolute;
- top: 0;
- right: 0;
- padding: 0 4px;
- background: #ccc;
- color: #333;
- font-style: normal;
- font-weight: bold;
- opacity: 0.6;
- }
- };
- p code { // only inline code blocks
- font-family: $font-family-monospace-not-strictly;
- }
- .page-template-builder {
- position: relative;
- .template-create-button {
- position: absolute;
- top: 8px;
- right: 8px;
- }
- }
- .highlighted {
- background-color: $brand-warning;
- }
- .revision-head {
- a {
- text-decoration: none;
- }
- .revision-head-link,
- .revision-head-edit-button {
- visibility: hidden;
- font-size: 0.6em;
- }
- &:hover .revision-head-link,
- &:hover .revision-head-edit-button {
- visibility: unset;
- margin-left: 0.5em;
- }
- }
- }
- @media (max-width: $screen-sm-max) { // {{{ tablet and iphone size
- .main-container .main .wiki {
- img {
- max-width: 100%;
- }
- }
- }
|