cms-page.less 1.7 KB

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