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:
commit
25f73cbc3e
@ -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 {
|
||||
|
@ -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
|
||||
/////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user