mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-30 17:59:59 +02:00
refactored all themes to latest sass syntax, fixes deprecation warnings
This commit is contained in:
@@ -6,34 +6,44 @@
|
||||
* reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
|
||||
*/
|
||||
|
||||
// Default mixins and settings -----------------
|
||||
// Load utils
|
||||
@use "sass:color";
|
||||
@import "../template/mixins";
|
||||
@import "../template/settings";
|
||||
// ---------------------------------------------
|
||||
@use "template/mixins" as mixins;
|
||||
|
||||
$active-color: #00008B;
|
||||
|
||||
// Inject theme variables (with some overrides)
|
||||
@use "template/settings" with (
|
||||
$background-color: #fff,
|
||||
|
||||
$main-color: #000,
|
||||
$main-font: #{'Lato', sans-serif},
|
||||
|
||||
$heading-color: #000,
|
||||
$heading-font: #{'News Cycle', Impact, sans-serif},
|
||||
$heading-font-weight: 600,
|
||||
|
||||
$heading1-size: 2.5em,
|
||||
$heading2-size: 1.6em,
|
||||
$heading3-size: 1.3em,
|
||||
$heading4-size: 1.0em,
|
||||
|
||||
$link-color: $active-color,
|
||||
$link-color-hover: color.scale( $active-color, $lightness: 20% ),
|
||||
|
||||
$selection-color: #fff,
|
||||
$selection-background-color: $active-color,
|
||||
|
||||
$overlay-element-bg-color: #{0, 0, 0},
|
||||
$overlay-element-fg-color: #{240, 240, 240}
|
||||
);
|
||||
|
||||
// Inject the theme template
|
||||
@use "template/theme";
|
||||
|
||||
// Include theme-specific fonts
|
||||
@import url("https://fonts.googleapis.com/css?family=News+Cycle:400,700");
|
||||
@import url("https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic");
|
||||
|
||||
// Override theme settings (see ../template/settings.scss)
|
||||
$mainFont: "Lato", sans-serif;
|
||||
$mainColor: #000;
|
||||
$headingFont: "News Cycle", Impact, sans-serif;
|
||||
$headingColor: #000;
|
||||
$headingTextShadow: none;
|
||||
$headingTextTransform: none;
|
||||
$backgroundColor: #fff;
|
||||
$linkColor: #00008b;
|
||||
$linkColorHover: color.scale($linkColor, $lightness: 20%);
|
||||
$selectionBackgroundColor: rgba(0, 0, 0, 0.99);
|
||||
|
||||
$overlayElementBgColor: 0, 0, 0;
|
||||
$overlayElementFgColor: 240, 240, 240;
|
||||
|
||||
// Change text colors against dark slide backgrounds
|
||||
@include dark-bg-text-color(#fff);
|
||||
|
||||
// Theme template ------------------------------
|
||||
@import "./template/theme";
|
||||
// ---------------------------------------------
|
||||
// Change text when the background is inverted
|
||||
@include mixins.dark-bg-text-color(#fff);
|
||||
|
Reference in New Issue
Block a user