Skip to content

Instantly share code, notes, and snippets.

@BrianGilbert
Last active September 8, 2021 08:56
Show Gist options
  • Save BrianGilbert/a037ca637b03e92d2c0effbf26cef596 to your computer and use it in GitHub Desktop.
Save BrianGilbert/a037ca637b03e92d2c0effbf26cef596 to your computer and use it in GitHub Desktop.
GitHub flavoured css for Quiver
```css
/*
Github flavoured CSS for Quiver Note app.
http://happenapps.com)
https://github.com/HappenApps/Quiver
https://twitter.com/happenapps
Acknowledgments:
Modified version of https://gist.github.com/kcamcam/225a16f32409f0ae66f61569d6f706fc
Original source used styling from GitHub.com and StackEdit.io to create this.
*/
//*
Edit this CSS file to change styles of the exported PDF or for printing.
If you need to revert it back, use the "Reset" button.
*/
@import url('https://fonts.googleapis.com/css?family=Lato:400,900');
/**
* Text Cell
*/
.text-cell {
font-size: 14px;
}
/**
* Code Cell
*/
.code-cell {
font-size: 12px;
}
/**
* Markdown Cell
*/
.markdown-cell {
/*font-size: 14px;*/
}
/**
* LaTeX Cell
*/
.latex-cell {
font-size: 14px;
}
/**
* Custom Styling
*/
body{
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: rgba(0,0,0,.7) !important;
font-family: Lato, "Helvetica Neue", Helvetica, sans-serif;
color: #24292e;
font-size: 16px;
line-height: 1.5;
}
.cell{
margin: 0;
padding: 0;
}
p{
margin-top: 0;
margin-bottom: 16px;
}
#contentarea{
font-size: 16px;
margin-top: 0;
}
.ace_line{
/*remove word wrap for PDF*/
word-wrap: normal;
white-space: pre;
}
.ace-github, .ace-tomorrow-night-eighties{
overflow: auto;
background-color: rgba(0,0,0,0);
}
.ace_static_highlight{
color: rgba(0,0,0,.65);
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f6f8fa;
border-radius: 3px;
}
.ace_gutter{
background: #e8e8e8 !important;
color: #AAA !important;
}
.math{
overflow-x: auto;
max-width:100%;
}
h1,h2,h3,h4,h5,h6 {
margin-top: 24px;
margin-bottom: 16px;
font-weight: 600;
line-height: 1.25em;
}
h1 {
font-size: 2em;
padding-bottom: 0.3em;
border-bottom: 1px solid #eaecef;
}
h2 {
font-size: 1.5em;
padding-bottom: 0.3em;
border-bottom: 1px solid #eaecef;
}
h3 {
font-size: 1.25em;
}
h4{
font-size: 1em;
}
ul, ol {
padding-left: 2em;
}
li+li{
margin-top: 4px;
}
a{
color: #0366d6;
text-decoration: none;
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment