custom-classes.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. .el-article-content {
  2. font: 1.2em/1.6em @font-family-serif;
  3. max-width: 50em;
  4. text-align: justify;
  5. blockquote {
  6. border-left: 0; // override bootstrap
  7. font-family: @font-family-sans-serif;
  8. font-size: inherit;
  9. font-weight: 300;
  10. margin-left: 2em;
  11. quotes: "\201C""\201D""\2018""\2019";
  12. &:before {
  13. color: @gray;
  14. content: open-quote;
  15. font-size: 4em;
  16. line-height: 0.1em;
  17. margin-right: 0.25em;
  18. vertical-align: -0.4em;
  19. }
  20. }
  21. img {
  22. &:extend(.img-responsive);
  23. border: 2px solid #EEE;
  24. padding: 5px;
  25. }
  26. // Syntax Highlight
  27. table.highlighttable {
  28. table-layout: fixed;
  29. width: 100%;
  30. td.linenos {
  31. padding-right: 1px; // On Chrome any value higher than 1 breaks
  32. width: @el-syntax-highlight-line-no-width;
  33. div.linenodiv {
  34. pre {
  35. background-color: @el-syntax-highlight-line-no-background-color;
  36. border-radius: @border-radius-base 0 0 @border-radius-base;
  37. color: @el-syntax-highlight-line-no-color;
  38. overflow: scroll;
  39. text-align: center;
  40. }
  41. }
  42. }
  43. td.code {
  44. width: 100 - @el-syntax-highlight-line-no-width;
  45. div.highlight {
  46. // pygments.css has a rule for div.highlight color. Give it the same border that
  47. // descendent pre has.
  48. border-radius: 0 @border-radius-base @border-radius-base 0;
  49. pre {
  50. border-radius: 0 @border-radius-base @border-radius-base 0;
  51. // from http://stackoverflow.com/a/10374189/177116
  52. overflow: auto;
  53. white-space: pre;
  54. word-wrap: normal;
  55. }
  56. }
  57. }
  58. }
  59. }