Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
ba9606dd
Verified
Commit
ba9606dd
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: slight color adjustments
parent
36411261
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/components/style/mixin/property.pcss
+6
-6
6 additions, 6 deletions
source/components/style/mixin/property.pcss
source/components/stylesheet/mixin/property.mjs
+7
-16
7 additions, 16 deletions
source/components/stylesheet/mixin/property.mjs
with
13 additions
and
22 deletions
source/components/style/mixin/property.pcss
+
6
−
6
View file @
ba9606dd
...
@@ -81,15 +81,15 @@
...
@@ -81,15 +81,15 @@
@define-mixin defaultColorProperty {
@define-mixin defaultColorProperty {
/** PRIMARY */
/** PRIMARY */
--monster-color-primary-1: var(--monster-color-
cinnamon
-6);
--monster-color-primary-1: var(--monster-color-
gray
-6);
--monster-color-primary-2: var(--monster-color-
cinnamon
-6);
--monster-color-primary-2: var(--monster-color-
gray
-6);
--monster-color-primary-3: var(--monster-color-cinnamon-1);
--monster-color-primary-3: var(--monster-color-cinnamon-1);
--monster-color-primary-4: var(--monster-color-cinnamon-1);
--monster-color-primary-4: var(--monster-color-cinnamon-1);
--monster-bg-color-primary-1: var(--monster-color-
cinnamon
-1);
--monster-bg-color-primary-1: var(--monster-color-
gray
-1);
--monster-bg-color-primary-2: var(--monster-color-
cinnamon
-2);
--monster-bg-color-primary-2: var(--monster-color-
gray
-2);
--monster-bg-color-primary-3: var(--monster-color-
cinnamon-3
);
--monster-bg-color-primary-3: var(--monster-color-
gray-6
);
--monster-bg-color-primary-4: var(--monster-color-
cinnamon-6
);
--monster-bg-color-primary-4: var(--monster-color-
gray-4
);
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
--monster-color-primary-1: var(--monster-color-gray-1);
--monster-color-primary-1: var(--monster-color-gray-1);
...
...
This diff is collapsed.
Click to expand it.
source/components/stylesheet/mixin/property.mjs
+
7
−
16
View file @
ba9606dd
/**
/**
* Copyright © schukai GmbH and all contributing authors,
{{copyRightYear}}
. All rights reserved.
* Copyright © schukai GmbH and all contributing authors,
2024
. All rights reserved.
* Node module: @schukai/monster
* Node module: @schukai/monster
*
*
* This source code is licensed under the GNU Affero General Public License version 3 (AGPLv3).
* This source code is licensed under the GNU Affero General Public License version 3 (AGPLv3).
...
@@ -8,14 +8,12 @@
...
@@ -8,14 +8,12 @@
* For those who do not wish to adhere to the AGPLv3, a commercial license is available.
* For those who do not wish to adhere to the AGPLv3, a commercial license is available.
* Acquiring a commercial license allows you to use this software without complying with the AGPLv3 terms.
* Acquiring a commercial license allows you to use this software without complying with the AGPLv3 terms.
* For more information about purchasing a commercial license, please contact schukai GmbH.
* For more information about purchasing a commercial license, please contact schukai GmbH.
*
* SPDX-License-Identifier: AGPL-3.0
*/
*/
import
{
addAttributeToken
}
from
"
../../../dom/attributes.mjs
"
;
import
{
addAttributeToken
}
from
"
../../../dom/attributes.mjs
"
;
import
{
ATTRIBUTE_ERRORMESSAGE
}
from
"
../../../dom/constants.mjs
"
;
import
{
ATTRIBUTE_ERRORMESSAGE
}
from
"
../../../dom/constants.mjs
"
;
export
{
PropertyStyleSheet
};
export
{
PropertyStyleSheet
}
/**
/**
* @private
* @private
...
@@ -24,17 +22,10 @@ export { PropertyStyleSheet };
...
@@ -24,17 +22,10 @@ export { PropertyStyleSheet };
const
PropertyStyleSheet
=
new
CSSStyleSheet
();
const
PropertyStyleSheet
=
new
CSSStyleSheet
();
try
{
try
{
PropertyStyleSheet
.
insertRule
(
PropertyStyleSheet
.
insertRule
(
`
`
@layer property {
@layer property {
}`
,
}`
,
0
);
0
,
);
}
catch
(
e
)
{
}
catch
(
e
)
{
addAttributeToken
(
addAttributeToken
(
document
.
getRootNode
().
querySelector
(
'
html
'
),
ATTRIBUTE_ERRORMESSAGE
,
e
+
""
);
document
.
getRootNode
().
querySelector
(
"
html
"
),
ATTRIBUTE_ERRORMESSAGE
,
e
+
""
,
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment