theme.scss 3.3 KB

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