Skip to content

Commit

Permalink
Playing around with more things
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Sep 3, 2023
1 parent f99bbfd commit 87856fa
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$atum-colors-dark: (
template-bg-dark: hsl(var(--hue), 40%, 80%),
template-bg-dark-3: hsl(var(--hue), 40%, 3%),
template-bg-dark-5: hsl(var(--hue), 40%, 5%),
template-bg-dark-7: hsl(var(--hue), 40%, 7%),
template-bg-dark-10: hsl(var(--hue), 40%, 10%),
template-bg-dark-15: hsl(var(--hue), 40%, 15%),
template-bg-dark-20: hsl(var(--hue), 40%, 20%),
template-bg-dark-30: hsl(var(--hue), 40%, 30%),
template-bg-dark-40: hsl(var(--hue), 40%, 40%),
template-bg-dark-50: hsl(var(--hue), 40%, 50%),
template-bg-dark-60: hsl(var(--hue), 40%, 60%),
template-bg-dark-65: hsl(var(--hue), 40%, 65%),
template-bg-dark-70: hsl(var(--hue), 40%, 70%),
template-bg-dark-75: hsl(var(--hue), 40%, 75%),
template-bg-dark-80: hsl(var(--hue), 40%, 80%),
template-bg-dark-90: hsl(var(--hue), 40%, 90%)
);
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ $state-success-bg: lighten($success, 58%);
$state-success-border: hsl(var(--hue),50%,93%);

$state-info-text: var(--template-bg-dark-70);
$state-info-bg: var(--white);
$state-info-bg: var(--body-bg);
$state-info-border: var(--template-bg-dark-70);

$state-warning-text: darken($warning, 24%);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ body {
background-color: var(--template-bg-dark-5);
}

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

&.monochrome {
filter: grayscale(1);
&::after {
Expand Down Expand Up @@ -205,6 +197,14 @@ a[target="_blank"]::before {
opacity: .7;
}

@if $enable-dark-mode {
@include color-mode(dark) {
.text-muted {
color: var(--template-text-light) !important;
}
}
}

.card-columns {
display: grid;
grid-gap: 0 15px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,8 @@
}

.card-header {
display: flex;
align-items: center;
padding: 1rem 1rem .75rem;
font-weight: $font-weight-bold;
--card-bg: hsla(0, 0%, 100%, .7);

> [class^="icon-"],
> img {
margin-inline-end: .5rem;
}

.btn {
margin-top: .25em;
margin-bottom: .25em;
Expand Down Expand Up @@ -165,10 +156,6 @@
}

.list-group-item {
&:hover {
background: var(--toolbar-bg);
}

a {
font-weight: 500;
text-decoration: underline;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

// Atum Variables
@import "variables";
@import "variables-dark";

@import "../../../../../../media/vendor/bootstrap/scss/variables";
@import "../../../../../../media/vendor/bootstrap/scss/variables-dark";
Expand Down Expand Up @@ -79,6 +80,13 @@
}
}

@if $enable-dark-mode {
@include color-mode(dark, true) {
@each $color, $value in $atum-colors-dark {
--#{$prefix}#{$color}: #{$value};
}
}
}

// Forcing reduced motion when set in the user OS
@media (prefers-reduced-motion: reduce) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
font-weight: $font-weight-bold;
color: var(--template-bg-dark);
background: var(--card-bg);
align-items: center;

> [class^="icon-"],
> img {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// Lists

.list-group-item {
background-color: $list-group-bg;
}

.list-unstyled .list-unstyled {
padding-left: 20px;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import "../../variables";
@import "../../../../../../../../media/vendor/joomla-custom-elements/css/joomla-alert";
@import "../../../../../../../../media/vendor/bootstrap/scss/mixins/color-mode";

// The following is a restyle for the system alerts

Expand Down Expand Up @@ -84,6 +85,12 @@
&[type="notice"] {
--alert-accent-color: #{$state-info-text};
--alert-bg-color: #{$state-info-bg};

@include color-mode(dark) {
p {
color: var(--body-color);
}
}
}

&[type="warning"] {
Expand Down

0 comments on commit 87856fa

Please sign in to comment.