blood.scss 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. // Default mixins and settings -----------------
  13. @use "sass:color";
  14. @import "../template/mixins";
  15. @import "../template/settings";
  16. // ---------------------------------------------
  17. // Include theme-specific fonts
  18. @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
  19. // Colors used in the theme
  20. $blood: #a23;
  21. $coal: #222;
  22. $codeBackground: #23241f;
  23. $backgroundColor: $coal;
  24. // Main text
  25. $mainFont: Ubuntu, 'sans-serif';
  26. $mainColor: #eee;
  27. // Headings
  28. $headingFont: Ubuntu, 'sans-serif';
  29. $headingTextShadow: 2px 2px 2px $coal;
  30. // h1 shadow, borrowed humbly from
  31. // (c) Default theme by Hakim El Hattab
  32. $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
  33. // Links
  34. $linkColor: $blood;
  35. $linkColorHover: color.scale( $linkColor, $lightness: 20% );
  36. // Text selection
  37. $selectionBackgroundColor: $blood;
  38. $selectionColor: #fff;
  39. // Change text colors against dark slide backgrounds
  40. @include light-bg-text-color(#222);
  41. // Theme template ------------------------------
  42. @import "../template/theme";
  43. // ---------------------------------------------
  44. // some overrides after theme template import
  45. .reveal p {
  46. font-weight: 300;
  47. text-shadow: 1px 1px $coal;
  48. }
  49. section.has-light-background {
  50. p, h1, h2, h3, h4 {
  51. text-shadow: none;
  52. }
  53. }
  54. .reveal h1,
  55. .reveal h2,
  56. .reveal h3,
  57. .reveal h4,
  58. .reveal h5,
  59. .reveal h6 {
  60. font-weight: 700;
  61. }
  62. .reveal p code {
  63. background-color: $codeBackground;
  64. display: inline-block;
  65. border-radius: 7px;
  66. }
  67. .reveal small code {
  68. vertical-align: baseline;
  69. }