Skip to content

Commit

Permalink
Commit current status
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Sep 3, 2023
1 parent e28abb8 commit dd595bf
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Remove prefix added in BS5 for compat with Joomla beta's shipped with Betas
$prefix: "";

// Disable dark mode in J4.4 - it's going to cause major b/c breaks to introduce. We will enable it in 5.0
$enable-dark-mode: false;
// Use dark mode conditionally based on media queries from the browser to match the desktop theme
$color-mode-type: media-query;

// Variables
$white: #fff;
Expand Down Expand Up @@ -55,11 +55,14 @@ $theme-colors: (
"action": $base-color,
"error": $red-dark) !default;

$template-background-light: #f0f4fb; //light background color, frontend dashboard background and installer
// body background

$atum-colors: (
template-sidebar-bg: var(--template-bg-dark-80),
template-sidebar-font-color: $white,
template-sidebar-link-color: $white,
template-bg-light: #f0f4fb, //light background color, frontend dashboard background
template-bg-light: $template-background-light,
template-link-color: var(--link-color),
template-text-light: $white,
template-text-dark: $atum-text-dark,
Expand Down Expand Up @@ -152,7 +155,6 @@ $extrabold-weight: 800;
$black-weight: 900;

// Tables
$table-bg: var(--white);
$table-cell-padding-y: .75rem;
$table-cell-padding-x: 1rem;
$table-cell-padding-y-sm: .3rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
max-width: $input-max-width;
cursor: pointer;
background: $form-select-background #{"/* rtl:"}$form-select-background-rtl#{"*/"};;
background-color: $form-select-bg;
border: $form-select-border-width solid $form-select-border-color;

&[multiple] {
padding: 0;
Expand Down
47 changes: 34 additions & 13 deletions installation/template/scss/template.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Remove prefix added in BS5 for compat with Joomla beta's shipped with Betas
$prefix: "";

$jicon-css-prefix: icon;
$fa-css-prefix: fa;
$fa-font-path: "../../../media/vendor/fontawesome-free/webfonts";
Expand All @@ -26,7 +23,10 @@ $fa-font-path: "../../../media/vendor/fontawesome-free/webfonts";
// Variables from the Atum template
@import "../../../build/media_source/templates/administrator/atum/scss/variables";

$body-bg: $template-background-light;

@import "../../../media/vendor/bootstrap/scss/variables";
@import "../../../media/vendor/bootstrap/scss/variables-dark";
@import "../../../media/vendor/bootstrap/scss/maps";
@import "../../../media/vendor/bootstrap/scss/mixins";
@import "../../../media/vendor/bootstrap/scss/utilities";
Expand Down Expand Up @@ -175,14 +175,6 @@ $fa-font-path: "../../../media/vendor/fontawesome-free/webfonts";
background-color: var(--body-bg) !important;
}

body {
background: var(--template-bg-light);
}

.form-select {
@extend .form-select;
}

*,
*::after,
*::before {
Expand Down Expand Up @@ -256,6 +248,21 @@ body {
}
}

@if $enable-dark-mode {
@include color-mode(dark) {
.j-install-step {
background-color: var(--secondary-bg);
}

// For now in dark mode we swap the color and the background around. But this probably is too much
// emphasis than we require for the header
.j-install-step-header {
background-color: $dark-blue;
color: #fff;
}
}
}

.j-install-step-form {
padding: .65rem 1.2rem;

Expand Down Expand Up @@ -301,14 +308,20 @@ body {
// Form

.form-control {
background-color: var(--white-offset);

&.input-full {
max-width: 100%;
}
}

@if $enable-dark-mode {
@include color-mode(light) {
.form-control {
background-color: var(--white-offset);
}
}
}


label {
margin-bottom: .5rem;
}
Expand Down Expand Up @@ -392,6 +405,14 @@ caption {
box-shadow: 0 0 1px 1px rgba(0, 0, 0, .25);
}

@if $enable-dark-mode {
@include color-mode(dark) {
.footer {
background-color: var(--secondary-bg);
}
}
}

.table > :not(:last-child) > :last-child > * {
border-bottom-color: $table-border-color;
}
Expand Down

0 comments on commit dd595bf

Please sign in to comment.