blood.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /**
  2. * Blood theme for reveal.js
  3. * Author: Walther http://github.com/Walther
  4. *
  5. * Designed to be used with highlight.js theme
  6. * "monokai_sublime.css" available from
  7. * https://github.com/isagalaev/highlight.js/
  8. *
  9. * For other themes, change $codeBackground accordingly.
  10. *
  11. */
  12. // Load utils
  13. @use 'sass:color';
  14. @use 'template/mixins' as mixins;
  15. $coal: #222;
  16. $active-color: #a23;
  17. $code-background-color: #23241f;
  18. // Inject theme variables (with some overrides)
  19. @use 'template/settings' with (
  20. $background-color: $coal,
  21. $main-font: 'Ubuntu, sans-serif',
  22. $main-color: #eee,
  23. $heading-font: 'Ubuntu, sans-serif',
  24. $heading-text-shadow: 2px 2px 2px $coal,
  25. $heading1-text-shadow: #{0 1px 0 #ccc,
  26. 0 2px 0 #c9c9c9,
  27. 0 3px 0 #bbb,
  28. 0 4px 0 #b9b9b9,
  29. 0 5px 0 #aaa,
  30. 0 6px 1px rgba(0, 0, 0, 0.1),
  31. 0 0 5px rgba(0, 0, 0, 0.1),
  32. 0 1px 3px rgba(0, 0, 0, 0.3),
  33. 0 3px 5px rgba(0, 0, 0, 0.2),
  34. 0 5px 10px rgba(0, 0, 0, 0.25),
  35. 0 20px 20px rgba(0, 0, 0, 0.15)},
  36. $link-color: $active-color,
  37. $link-color-hover: color.scale($active-color, $lightness: 20%),
  38. $selection-background-color: $active-color,
  39. $selection-color: #fff
  40. );
  41. // Inject the theme template
  42. @use 'template/theme';
  43. // Fonts
  44. @import url('https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic');
  45. // Invert text color when the background is light
  46. @include mixins.light-bg-text-color(#222);
  47. .reveal p {
  48. font-weight: 300;
  49. text-shadow: 1px 1px $coal;
  50. }
  51. section.has-light-background {
  52. p,
  53. h1,
  54. h2,
  55. h3,
  56. h4 {
  57. text-shadow: none;
  58. }
  59. }
  60. .reveal h1,
  61. .reveal h2,
  62. .reveal h3,
  63. .reveal h4,
  64. .reveal h5,
  65. .reveal h6 {
  66. font-weight: 700;
  67. }
  68. .reveal p code {
  69. background-color: $code-background-color;
  70. display: inline-block;
  71. border-radius: 7px;
  72. }
  73. .reveal small code {
  74. vertical-align: baseline;
  75. }