Skip to content

Commit e91ea89

Browse files
committedFeb 1, 2024··
Fix custom properties & bugs in stylesheet
1 parent 2f5c05c commit e91ea89

File tree

5 files changed

+18
-13
lines changed

5 files changed

+18
-13
lines changed
 

‎CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Change Log
22
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).
33

4+
## 1.9.6 (2024-02-02)
5+
6+
#### Fixed
7+
8+
- Elements using the new stylesheet are properly themed again.
9+
410
## 1.9.5 (2024-02-02)
511

612
#### Fixed

‎resources/day8/re_frame_10x.css ‎resources/day8/re_frame_10x/style.css

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* day8/re-frame-10x */
22
/* https://www.nordtheme.com/docs/colors-and-palettes */
33

4-
:root {--nord0: #2E3440;
4+
:host {--nord0: #2E3440;
55
--nord1: #3B4252;
66
--nord2: #434C5E;
77
--nord3: #4C566A;
@@ -17,10 +17,9 @@
1717
--nord13: #EBCB8B;
1818
--nord14: #A3BE8C;
1919
--nord15: #B48EAD;
20-
--nord-ghost-white #f8f9fb;
21-
--border-1: 1px solid var(--nord4);
22-
--color-1 var(--nord3);
23-
--background-color-1 var(--nord-ghost-white);}
20+
--nord-ghost-white: #f8f9fb;
21+
--color-1: var(--nord3);
22+
--background-color-1: var(--nord-ghost-white);}
2423

2524
.flex-style {display: flex;}
2625

@@ -41,7 +40,7 @@
4140
color: var(--color-1);}
4241

4342
.summary {padding: 0 19px;
44-
border: var(--border-1);
43+
border: 1px solid var(--nord4);
4544
border-radius: 2px;}
4645

4746
.search {border-bottom: var(--border-2);}
@@ -52,14 +51,14 @@
5251

5352
.icon {cursor: default;
5453
border-radius: 3px;
55-
background-color: var(--nord2);
56-
border: 1px solid var(--nord1);
54+
background-color: var(--nord5);
55+
border: 1px solid var(--nord4);
5756
padding: 2px;
5857
font-weight: 400;}
5958

6059
.icon.disabled {cursor: pointer;
61-
background-color: var(--nord5);
62-
border: 1px solid var(--nord4);}
60+
background-color: var(--nord2);
61+
border: 1px solid var(--nord1);}
6362

6463
.icon svg path {fill: var(--nord0);}
6564

‎src/day8/re_frame_10x/navigation/views.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@
392392
;; When programming here, we need to be careful about which document and window
393393
;; we are operating on, and keep in mind that the window can close without going
394394
;; through standard react lifecycle, so we hook the beforeunload event.
395-
(let [shadow-root (tools.shadow-dom/shadow-root popup-document "--re-frame-10x--" (inline-resource "day8/re_frame_10x.css"))
395+
(let [shadow-root (tools.shadow-dom/shadow-root popup-document "--re-frame-10x--" (inline-resource "day8/re_frame_10x/style.css"))
396396
spade-container (spade.dom/create-container shadow-root)
397397
resize-update-scheduled? (atom false)
398398
handle-window-resize (fn [_]

‎src/day8/re_frame_10x/preload/react_17.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
(rf/clear-subscription-cache!)
2828

29-
(def shadow-root (re-frame-10x/create-shadow-root (inline-resource "day8/re_frame_10x.css")))
29+
(def shadow-root (re-frame-10x/create-shadow-root (inline-resource "day8/re_frame_10x/style.css")))
3030

3131
(rdom/render (re-frame-10x/create-style-container shadow-root)
3232
shadow-root)

‎src/day8/re_frame_10x/preload/react_18.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
(rf/clear-subscription-cache!)
2222

23-
(def shadow-root (re-frame-10x/create-shadow-root (inline-resource "day8/re_frame_10x.css")))
23+
(def shadow-root (re-frame-10x/create-shadow-root (inline-resource "day8/re_frame_10x/style.css")))
2424

2525
(rdc/render (rdc/create-root shadow-root)
2626
(re-frame-10x/create-style-container shadow-root))

0 commit comments

Comments
 (0)
Please sign in to comment.