style-presentation.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. // import Growi variable
  2. @import 'variables';
  3. @import '~reveal.js/css/reveal.css';
  4. @import '~reveal.js/css/theme/black.css';
  5. // hljs
  6. .reveal {
  7. @import 'hljs';
  8. }
  9. .reveal {
  10. font-size: 32px;
  11. section * {
  12. font-family: Lato, -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif !important;
  13. }
  14. .slides > section {
  15. //text-align: left;
  16. padding: 0;
  17. &.only.present {
  18. h1,
  19. h2,
  20. h3,
  21. h4,
  22. h5,
  23. h6 {
  24. font-size: 2.5em;
  25. }
  26. }
  27. p {
  28. line-height: 1.6;
  29. &:first-child {
  30. margin-top: 0;
  31. }
  32. }
  33. pre {
  34. code {
  35. padding: 20px 40px;
  36. }
  37. }
  38. blockquote {
  39. width: 80%;
  40. padding: 20px 60px;
  41. }
  42. ul {
  43. margin-top: 0.2em;
  44. margin-bottom: 0.1em;
  45. > li {
  46. margin-bottom: 0.5em;
  47. line-height: 1.6;
  48. > ul > li {
  49. font-size: 0.85em;
  50. }
  51. }
  52. }
  53. h1:first-child {
  54. font-size: 2.2em;
  55. }
  56. h2:first-child {
  57. font-size: 1.8em;
  58. }
  59. h3,
  60. h4,
  61. h5,
  62. h6 {
  63. &:first-child {
  64. font-size: 1.5em;
  65. }
  66. }
  67. // {{{ table (copied from bootstrap .table
  68. table {
  69. width: 100%;
  70. margin-bottom: 1em;
  71. border-collapse: collapse;
  72. tr,
  73. td,
  74. th {
  75. border-collapse: collapse;
  76. }
  77. // Cells
  78. > thead,
  79. > tbody,
  80. > tfoot {
  81. > tr {
  82. > th,
  83. > td {
  84. padding: 1em;
  85. vertical-align: top;
  86. border-top: 1px solid #999;
  87. }
  88. }
  89. }
  90. // Bottom align for column headings
  91. > thead > tr > th {
  92. vertical-align: bottom;
  93. border-bottom: 2px solid #888;
  94. }
  95. // Remove top border from thead by default
  96. > caption + thead,
  97. > colgroup + thead,
  98. > thead:first-child {
  99. > tr:first-child {
  100. > th,
  101. > td {
  102. border-top: 0;
  103. }
  104. }
  105. }
  106. // Account for multiple tbody instances
  107. > tbody + tbody {
  108. border-top: 2px solid #888;
  109. }
  110. // .table-bordered
  111. border: 1px solid #999;
  112. > thead,
  113. > tbody,
  114. > tfoot {
  115. > tr {
  116. > th,
  117. > td {
  118. border: 1px solid #999;
  119. }
  120. }
  121. }
  122. > thead > tr {
  123. > th,
  124. > td {
  125. border-bottom-width: 2px;
  126. }
  127. }
  128. }
  129. // }}}
  130. }
  131. }