// Math module for division
@use "sass:math";

//BUILD DELPHINUS CORE
@import "../../atoms/atoms-settings";

//add your overwrites for atoms-settings here

// IMPORT SASS VARIABLES
@import "../../style/sass-variables";

//DEFINE SASS VARS FOR TYP03
@import "style/typo3-breakpoints";
@import "style/typo3-sass-variables";
@import "style/typo3-component-sass-variables";

//remove unused colot themes. Only need blue, cyan and green for external, student and staff sites.
$color-brands: map-remove($color-brands, "turquoise", "yellow", "orange", "red", "magenta", "purple");

//add color theme for omnibus site
$color-brands: map-merge($color-brands, ("omnibus": #0a0a0a));

//set the default brand-color
$color-default-brand: "blue";

//the typo3 stylesheet has a base font-size of 11px which is our rem size. In Delphinus it is sixteen. In order to render text and white-space at the rem sizes defined in Delphinus, we have to update the base-font size in each delphnus breakpoint by taking the default delphinus size and mulitplying it by the ration 16/11, otherwise text and whitspace will render too small
$rem-scale: math.div($size-rem-delphinus, $typo3-size-rem);

@each $name, $scale in $scales {
  $font-base: map-get($scale, font-base) * $rem-scale;
  $scale: map-merge($scale, (font-base: $font-base));
  $scales: map-merge($scales, ($name: $scale));
}

//overwrite Delphinus breakpoints to follow typo3
@each $name, $scale in $scales {
  @if $name == "medium" {
    $scale: map-merge($scale, (bp: $typo3-breakpoint-medium));
  }
  @else if $name == "wide" {
    $scale: map-merge($scale, (bp: $typo3-breakpoint-large));
  }
  $scales: map-merge($scales, ($name: $scale));
}

//and the breakpoint for max-width of the page
$page-max-width: $typo3-page-max-width;

//also recalculate the rem-part of line-heights
$line-height-single-fixed-part: $line-height-single-fixed-part * $rem-scale;
$line-height-multiple-fixed-part: $line-height-multiple-fixed-part * $rem-scale;

//and the minimum $font-size-min
$font-size-min: $font-size-min * $rem-scale;

//and the minimum spacing size
$spacing-min: $spacing-min * $rem-scale;

//import special font for omnibus site
@import "style/omnibus-font";

@import "../../atoms/colors/colors";
@import "../../atoms/fonts/au-passata";
//@import "../../atoms/fonts/au-peto";
@import "../../atoms/fonts/fonts";
@import "../../atoms/spacing/spacing";

@include define-color-variables();
@include define-font-variables();
@include define-spacing-variables();

// IMPORT MIXINS
@import "../../style/_mixins/all";

// IMPORT INCLUDES
@import "../../style/_includes/all";

//IMPORT BREAKPOINTS
@import "../../style/layout/breakpoints";

// //IMPORT INLINED GRAPHICS
// @import "../../style/_graphics/au-logo-en.scss";
// @import "../../style/_graphics/au-logo-da.scss";
// @import "../../style/_graphics/au-seal.scss";

// IMPORT TYPO3 OVERWRITES
@import "style/_typo3-overwrites-content-elements-default";
@import "style/typo3-overwrites";
@import "style/typo3-themes";
@import "style/delphinus-gutters";


.typo3-delphinus {
  // // IMPORT CSS RESET AND BASE STYLES
  // @import "../../style/base/normalize";
  @import "../../style/base/fundamentals";
  @import "../../style/base/utility-classes";
  // @import "../../style/base/body";
  @import "../../style/base/hr";
  @import "../../style/base/text";
  @import "../../style/base/links";
  @import "../../style/base/forms";
  @import "../../style/base/buttons";
  @import "../../style/base/code";
  @import "../../style/base/icons";
  @import "../../style/base/accessibility";
  //
  // // IMPORT LAYOUT
  @import "../../style/layout/page";
  @import "../../style/layout/row";
  // @import "../../style/layout/grid";
  // @import "../../style/layout/footer";
  @import "../../style/layout/vertical-spacing";
  //
  //
  // //IMPORT MODULES
  // @import "../../style/module/progress-bar";
  @import "../../style/module/nav";
  // @import "../../style/module/sub-nav";
  @import "../../style/module/box";
  // @import "../../style/module/list-navigator";
  // @import "../../style/module/navigation-list";
  // @import "../../style/module/settings-list";
  // @import "../../style/module/modal-view";
  // @import "../../style/module/artwork-peto";
  // @import "../../style/module/shortcut";
  // @import "../../style/module/receipt";
  // @import "../../style/module/notification";
  // @import "../../style/module/toast-notification";
  // @import "../../style/module/toolbar";
  @import "../../style/module/tables";
  // @import "../../style/module/empty-state";
  // @import "../../style/module/selection-header";
  @import "../../style/module/tabbed-content";
  @import "../../style/module/fact-list";
  @import "../../style/module/card";
  @import "../../style/module/tags";
  @import "../../style/module/profile-image";
  @import "../../style/module/horizontal-scroll";
  @import "../../style/module/switch";
  @import "../../style/module/truncator";
  @import "../../style/module/copy-to-clipboard";
  @import "../../style/module/processing-state";


  // IMPORT TYPO3 CUSTOM COMPONENTS
  @import "style/typo3-delphinus-layout";
  @import "style/typo3-delphinus-component-fixes";
  @import "style/news-event";
  @import "style/news-related";
  @import "style/profile-header";
  @import "style/person-profile-text";
  @import "style/contact-list";
}
