@use "utils/os" as *;
@use "utils/option" as *;
@use "utils/color_scheme" as *;
@use "utils/accent_color" as *;
@use "utils/native_menu" as *;
@use "utils/moz_document" as *;
@use "utils/moz_box" as *;
@use "utils/proton_elements" as Proton;
@use "sass:selector";

/** Compatibility *************************************************************/
@import "contents/compatibility";

/** Video player **************************************************************/
@import "contents/video_player";

/** Activity Stream ***********************************************************/
@import "contents/activity_stream";

/** Error Page - Restore illustrations ****************************************/
@include Option("userContent.page.illustration") {
  @import "contents/error_page";
}

/** Fully Dark Mode ***********************************************************/
/*= Fully Dark Mode - Dark Mode Colors =======================================*/
@include Option("userContent.page.proton_color") {
  @import "contents/proton_color";
}
@include Option("userContent.page.dark_mode") {
  @import "contents/dark_mode";
}

/** Fully Proton Mode *********************************************************/
@include Option("userContent.page.proton") {
  @import "contents/proton_contents";
}

/** Rounding ******************************************************************/
@import "contents/rounding";

@include moz-document(url-prefix "about:", regexp ".*\.pdf$") {
  @import "rounding/dialog";
}

// Put here to include library as a tab
@include moz-document(url "chrome://browser/content/places/places.xhtml") {
  @import "rounding/library";
}

/** Monospace *****************************************************************/
@include Option("userContent.page.monospace") {
  @import "contents/monospace";
}

/** Menu - Icons Layout *******************************************************/
@include NotOption("userChrome.icon.disabled") {
  @include Option("userChrome.icon.menu") {
    @import "contents/context_menu";
  }
}

/** Download Panel ************************************************************/
@import "contents/downloads";
