cms-page.less 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. v2
  3. CMS Generated Pages,
  4. including About and Blog
  5. */
  6. .cms-page {
  7. .btn-description {
  8. margin-right: @margin-sm;
  9. }
  10. .tab-content {
  11. float: left;
  12. width: 100%;
  13. }
  14. /*
  15. When on preview mode
  16. */
  17. .cms-preview {
  18. background-color: @blue;
  19. color: white;
  20. font-weight: bold;
  21. height: @navbar-padding-vertical;
  22. left: 0;
  23. line-height: @navbar-padding-vertical;
  24. opacity: 0.8;
  25. position: fixed;
  26. text-align: center;
  27. top: 0;
  28. width: 100%;
  29. z-index: 1;
  30. &:after {
  31. content: 'Preview';
  32. width: 100%;
  33. top: 0;
  34. left: 0;
  35. }
  36. }
  37. /*
  38. All content from CMS is in .row-spaced.
  39. Margin below is to fix extra whitespace for first rows
  40. */
  41. .container > .row:nth-child(2) {
  42. //- first child is page header, don't correct margin
  43. margin-top: 0;
  44. }
  45. .tab-pane {
  46. .row:first-child {
  47. margin-top: 0;
  48. }
  49. }
  50. /*
  51. quotes
  52. */
  53. blockquote {
  54. /*
  55. type.less sets <p> inline, so that quotation mark is inline
  56. but sometimes we have multiple <p>,
  57. so hide quotation mark from type.less and add one here
  58. */
  59. &:before {
  60. /* hide quotation from type.less */
  61. display: none;
  62. }
  63. p {
  64. display: block;
  65. }
  66. p:first-child {
  67. /* below copied from type.less */
  68. &:before {
  69. content: open-quote;
  70. font-size: @blockquote-font-size * 3;
  71. color: @blockquote-border-color;
  72. margin-right: 0.25em;
  73. vertical-align: -0.4em;
  74. line-height: 0.1em;
  75. }
  76. }
  77. }
  78. .quote-full-width {
  79. img {
  80. margin-right: @margin-sm;
  81. margin-bottom: @margin-sm;
  82. }
  83. }
  84. }