theme.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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: 200;
  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:not(.image) {
  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:not(.image):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. -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 div.navigate-left,
  85. .reveal .controls div.navigate-left.enabled {
  86. border-right-color: $linkColor;
  87. }
  88. .reveal .controls div.navigate-right,
  89. .reveal .controls div.navigate-right.enabled {
  90. border-left-color: $linkColor;
  91. }
  92. .reveal .controls div.navigate-up,
  93. .reveal .controls div.navigate-up.enabled {
  94. border-bottom-color: $linkColor;
  95. }
  96. .reveal .controls div.navigate-down,
  97. .reveal .controls div.navigate-down.enabled {
  98. border-top-color: $linkColor;
  99. }
  100. .reveal .controls div.navigate-left.enabled:hover {
  101. border-right-color: $linkColorHover;
  102. }
  103. .reveal .controls div.navigate-right.enabled:hover {
  104. border-left-color: $linkColorHover;
  105. }
  106. .reveal .controls div.navigate-up.enabled:hover {
  107. border-bottom-color: $linkColorHover;
  108. }
  109. .reveal .controls div.navigate-down.enabled:hover {
  110. border-top-color: $linkColorHover;
  111. }
  112. /*********************************************
  113. * PROGRESS BAR
  114. *********************************************/
  115. .reveal .progress {
  116. background: rgba(0,0,0,0.2);
  117. }
  118. .reveal .progress span {
  119. background: $linkColor;
  120. -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  121. -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  122. -ms-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  123. -o-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  124. transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
  125. }