Skip to content

Instantly share code, notes, and snippets.

@ciceronianus
Last active September 16, 2020 17:38
Show Gist options
  • Save ciceronianus/8a80a56a52adc75db4b06015f7cb1275 to your computer and use it in GitHub Desktop.
Save ciceronianus/8a80a56a52adc75db4b06015f7cb1275 to your computer and use it in GitHub Desktop.
Roam - text align center as blockquote
/*
Author: @CatoMinor3
Version: 1
Date: June 16th, 2020
Paypal support: https://www.paypal.me/catominor3
How to use: Simply select text align center from the context menu.
*/
.text-align-center {
background-color:#F5F8FA;;
padding-left: 10%;
padding-right: 10%;
border-left-width: 5px;
border-left-style: solid;
border-left-color: #797993;
}
[style*="text-align: center;"] {
background-color:#F5F8FA;;
padding-left: 10%;
padding-right: 10%;
border-left-width: 5px;
border-left-style: solid;
border-left-color: #797993;
}
@JasperGeh
Copy link

That's a very cool styling, I really like it!
Is it possible to display the text in the blockquote still with left justification so that the center align button essentially doesn't move the text and only applies blockquote styling?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment