theme.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. // Base theme template for reveal.js
  2. /*********************************************
  3. * GLOBAL STYLES
  4. *********************************************/
  5. body {
  6. @include bodyBackground();
  7. }
  8. .reveal {
  9. font-family: $mainFont;
  10. font-size: $mainFontSize;
  11. font-weight: 200;
  12. letter-spacing: -0.02em;
  13. color: $mainColor;
  14. }
  15. ::selection {
  16. color: $selectionColor;
  17. background: $selectionBackgroundColor;
  18. text-shadow: none;
  19. }
  20. /*********************************************
  21. * HEADERS
  22. *********************************************/
  23. .reveal h1,
  24. .reveal h2,
  25. .reveal h3,
  26. .reveal h4,
  27. .reveal h5,
  28. .reveal h6 {
  29. margin: 0 0 20px 0;
  30. color: $headingColor;
  31. font-family: $headingFont;
  32. line-height: $headingLineHeight;
  33. letter-spacing: $headingLetterSpacing;
  34. text-transform: $headingTextTransform;
  35. text-shadow: $headingTextShadow;
  36. }
  37. .reveal h1 {
  38. text-shadow: $heading1TextShadow;
  39. }
  40. /*********************************************
  41. * LINKS
  42. *********************************************/
  43. .reveal a:not(.image) {
  44. color: $linkColor;
  45. text-decoration: none;
  46. -webkit-transition: color .15s ease;
  47. -moz-transition: color .15s ease;
  48. -ms-transition: color .15s ease;
  49. -o-transition: color .15s ease;
  50. transition: color .15s ease;
  51. }
  52. .reveal a:not(.image):hover {
  53. color: $linkColorHover;
  54. text-shadow: none;
  55. border: none;
  56. border-radius: 2px;
  57. }
  58. .reveal .roll span:after {
  59. color: #fff;
  60. background: darken( $linkColor, 15% );
  61. }
  62. /*********************************************
  63. * IMAGES
  64. *********************************************/
  65. .reveal section img {
  66. margin: 15px;
  67. background: rgba(255,255,255,0.12);
  68. border: 4px solid $mainColor;
  69. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  70. -webkit-transition: all .2s linear;
  71. -moz-transition: all .2s linear;
  72. -ms-transition: all .2s linear;
  73. -o-transition: all .2s linear;
  74. transition: all .2s linear;
  75. }
  76. .reveal a:hover img {
  77. background: rgba(255,255,255,0.2);
  78. border-color: $linkColor;
  79. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  80. }
  81. /*********************************************
  82. * NAVIGATION CONTROLS
  83. *********************************************/
  84. .reveal .controls a {
  85. color: $mainColor;
  86. }
  87. .reveal .controls a.enabled {
  88. color: $linkColorHover;
  89. text-shadow: 0px 0px 2px hsla(185, 45%, 70%, 0.3);
  90. }
  91. /*********************************************
  92. * PROGRESS BAR
  93. *********************************************/
  94. .reveal .progress {
  95. background: rgba(0,0,0,0.2);
  96. }
  97. .reveal .progress span {
  98. background: $linkColor;
  99. -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  100. -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  101. -ms-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  102. -o-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  103. transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  104. }