theme.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. -ms-transition: color .15s ease;
  50. -o-transition: color .15s ease;
  51. transition: color .15s ease;
  52. }
  53. .reveal a:hover {
  54. color: $linkColorHover;
  55. text-shadow: none;
  56. border: none;
  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 0px;
  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. }
  71. .reveal a img {
  72. -webkit-transition: all .15s linear;
  73. -moz-transition: all .15s linear;
  74. -ms-transition: all .15s linear;
  75. -o-transition: all .15s linear;
  76. transition: all .15s linear;
  77. }
  78. .reveal a:hover img {
  79. background: rgba(255,255,255,0.2);
  80. border-color: $linkColor;
  81. box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
  82. }
  83. /*********************************************
  84. * NAVIGATION CONTROLS
  85. *********************************************/
  86. .reveal .controls div.navigate-left,
  87. .reveal .controls div.navigate-left.enabled {
  88. border-right-color: $linkColor;
  89. }
  90. .reveal .controls div.navigate-right,
  91. .reveal .controls div.navigate-right.enabled {
  92. border-left-color: $linkColor;
  93. }
  94. .reveal .controls div.navigate-up,
  95. .reveal .controls div.navigate-up.enabled {
  96. border-bottom-color: $linkColor;
  97. }
  98. .reveal .controls div.navigate-down,
  99. .reveal .controls div.navigate-down.enabled {
  100. border-top-color: $linkColor;
  101. }
  102. .reveal .controls div.navigate-left.enabled:hover {
  103. border-right-color: $linkColorHover;
  104. }
  105. .reveal .controls div.navigate-right.enabled:hover {
  106. border-left-color: $linkColorHover;
  107. }
  108. .reveal .controls div.navigate-up.enabled:hover {
  109. border-bottom-color: $linkColorHover;
  110. }
  111. .reveal .controls div.navigate-down.enabled:hover {
  112. border-top-color: $linkColorHover;
  113. }
  114. /*********************************************
  115. * PROGRESS BAR
  116. *********************************************/
  117. .reveal .progress {
  118. background: rgba(0,0,0,0.2);
  119. }
  120. .reveal .progress span {
  121. background: $linkColor;
  122. -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  123. -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  124. -ms-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  125. -o-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  126. transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  127. }
  128. /*********************************************
  129. * SLIDE NUMBER
  130. *********************************************/
  131. .reveal .slide-number {
  132. color: $linkColor;
  133. }