1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-02 00:05:35 +01:00

Merge pull request #130 from oceanprotocol/fix/code-style

fix aggressive prims.js syntax styles for inline code
This commit is contained in:
Matthias Kretschmann 2019-01-30 12:00:12 +01:00 committed by GitHub
commit 25f73cbc3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 26 deletions

View File

@ -27,6 +27,36 @@
word-wrap: normal;
word-break: normal;
}
:not(pre) > code {
background: darken($brand-white, 5%);
color: $brand-grey-dark;
display: inline-block;
padding-left: .3rem;
padding-right: .3rem;
}
pre {
display: block;
margin-bottom: $spacer;
padding: 0;
background: $brand-black;
// make 'em scrollable
overflow: auto;
-webkit-overflow-scrolling: touch;
code {
padding: $spacer;
white-space: pre;
display: block;
color: $brand-grey-lighter;
overflow-wrap: normal;
word-wrap: normal;
word-break: normal;
overflow: auto;
}
}
}
.empty {

View File

@ -282,35 +282,35 @@ samp {
}
}
:not(pre) > code {
background: darken($brand-white, 5%);
color: $brand-grey-dark;
display: inline-block;
padding-left: .3rem;
padding-right: .3rem;
}
// :not(pre) > code {
// background: darken($brand-white, 5%);
// color: $brand-grey-dark;
// display: inline-block;
// padding-left: .3rem;
// padding-right: .3rem;
// }
pre {
display: block;
margin-bottom: $spacer !important;
padding: 0 !important;
background: $brand-black !important;
// pre {
// display: block;
// margin-bottom: $spacer;
// padding: 0;
// background: $brand-black;
// make 'em scrollable
overflow: auto;
-webkit-overflow-scrolling: touch;
// // make 'em scrollable
// overflow: auto;
// -webkit-overflow-scrolling: touch;
code {
padding: $spacer;
white-space: pre;
display: block;
color: $brand-grey-lighter !important;
overflow-wrap: normal;
word-wrap: normal;
word-break: normal;
overflow: auto;
}
}
// code {
// padding: $spacer;
// white-space: pre;
// display: block;
// color: $brand-grey-lighter;
// overflow-wrap: normal;
// word-wrap: normal;
// word-break: normal;
// overflow: auto;
// }
// }
// Selection
/////////////////////////////////////