theme.scss 3.4 KB

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