theme.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. * OTHER
  43. *********************************************/
  44. .reveal p {
  45. margin-bottom: 10px;
  46. line-height: 1.3;
  47. }
  48. /*********************************************
  49. * LINKS
  50. *********************************************/
  51. .reveal a {
  52. color: $linkColor;
  53. text-decoration: none;
  54. -webkit-transition: color .15s ease;
  55. -moz-transition: color .15s ease;
  56. transition: color .15s ease;
  57. }
  58. .reveal a:hover {
  59. color: $linkColorHover;
  60. text-shadow: none;
  61. border: none;
  62. }
  63. .reveal .roll span:after {
  64. color: #fff;
  65. background: darken( $linkColor, 15% );
  66. }
  67. /*********************************************
  68. * IMAGES
  69. *********************************************/
  70. .reveal section img {
  71. margin: 15px 0px;
  72. background: rgba(255,255,255,0.12);
  73. border: 4px solid $mainColor;
  74. box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  75. }
  76. .reveal a img {
  77. -webkit-transition: all .15s linear;
  78. -moz-transition: all .15s linear;
  79. transition: all .15s linear;
  80. }
  81. .reveal a:hover img {
  82. background: rgba(255,255,255,0.2);
  83. border-color: $linkColor;
  84. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  85. }
  86. /*********************************************
  87. * NAVIGATION CONTROLS
  88. *********************************************/
  89. .reveal .controls div.navigate-left,
  90. .reveal .controls div.navigate-left.enabled {
  91. border-right-color: $linkColor;
  92. }
  93. .reveal .controls div.navigate-right,
  94. .reveal .controls div.navigate-right.enabled {
  95. border-left-color: $linkColor;
  96. }
  97. .reveal .controls div.navigate-up,
  98. .reveal .controls div.navigate-up.enabled {
  99. border-bottom-color: $linkColor;
  100. }
  101. .reveal .controls div.navigate-down,
  102. .reveal .controls div.navigate-down.enabled {
  103. border-top-color: $linkColor;
  104. }
  105. .reveal .controls div.navigate-left.enabled:hover {
  106. border-right-color: $linkColorHover;
  107. }
  108. .reveal .controls div.navigate-right.enabled:hover {
  109. border-left-color: $linkColorHover;
  110. }
  111. .reveal .controls div.navigate-up.enabled:hover {
  112. border-bottom-color: $linkColorHover;
  113. }
  114. .reveal .controls div.navigate-down.enabled:hover {
  115. border-top-color: $linkColorHover;
  116. }
  117. /*********************************************
  118. * PROGRESS BAR
  119. *********************************************/
  120. .reveal .progress {
  121. background: rgba(0,0,0,0.2);
  122. }
  123. .reveal .progress span {
  124. background: $linkColor;
  125. -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  126. -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  127. transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  128. }
  129. /*********************************************
  130. * SLIDE NUMBER
  131. *********************************************/
  132. .reveal .slide-number {
  133. color: $linkColor;
  134. }