Skip to content

Commit 817ed6d

Browse files
[chores:ui] Migrated colors to openwisp-utils theme CSS variables #277
Closes #277
1 parent 5939a3c commit 817ed6d

3 files changed

Lines changed: 35 additions & 35 deletions

File tree

openwisp_network_topology/static/netjsongraph/css/admin.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
input[type="text"].readonly {
2-
border: 1px solid rgba(0, 0, 0, 0.05) !important;
3-
background-color: rgba(0, 0, 0, 0.07);
2+
border: 1px solid var(--ow-overlay-5) !important;
3+
background-color: var(--ow-overlay-7);
44
}
55

66
#id_receive_url {
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
.leaflet-control-zoom-in,
22
.leaflet-control-zoom-out {
33
background: rgba(217, 79, 52, 0.85) !important;
4-
color: #fff !important;
4+
color: var(--ow-color-white) !important;
55
}
66

77
.leaflet-control-layers {
88
background: rgba(217, 79, 52, 0.85) !important;
9-
color: #fff !important;
9+
color: var(--ow-color-white) !important;
1010
}
1111

1212
.switch-wrap {
13-
color: #fff;
13+
color: var(--ow-color-white);
1414
}
1515

1616
.switch-wrap label {
1717
border: 1px solid #dfdfdf;
18-
background: #ffffff;
18+
background: var(--ow-color-white);
1919
}
2020

2121
.switch-wrap label::before {
2222
box-shadow: 0 1px 3px rgba(0, 0, 0, 1);
23-
background-color: #fff;
23+
background-color: var(--ow-color-white);
2424
}
2525

2626
.switch-wrap input[type="checkbox"]:checked + label {
2727
background: grey;
2828
}
2929

3030
.njg-date {
31-
color: #fff;
31+
color: var(--ow-color-white);
3232
}
3333

3434
.njg-selectIcon {
3535
background: rgba(217, 79, 52, 0.85);
36-
color: #ffffff;
36+
color: var(--ow-color-white);
3737
}
3838

3939
.njg-searchBtn {
4040
background-color: white;
4141
}
4242

4343
.njg-sideBar {
44-
background-color: #fff;
44+
background-color: var(--ow-color-white);
4545
}
4646

4747
.sideBarHandle {
4848
background: rgba(217, 79, 52, 0.85);
4949
}
5050

5151
.sideBarHandle::before {
52-
color: #fff;
52+
color: var(--ow-color-white);
5353
}
5454

5555
.njg-metaData,
@@ -58,23 +58,23 @@
5858
}
5959

6060
.njg-tooltip {
61-
background: #fff !important;
61+
background: var(--ow-color-white) !important;
6262
border: none !important;
6363
}
6464

6565
.njg-tooltip-key,
6666
.njg-tooltip-value {
67-
color: #000;
67+
color: var(--ow-color-black);
6868
}
6969

7070
.marker-cluster div {
71-
color: #fff;
71+
color: var(--ow-color-white);
7272
background-color: rgba(21, 102, 169, 0.8) !important;
7373
}
7474

7575
@media only screen and (max-width: 850px) {
7676
.njg-sideBar {
7777
background: rgba(255, 255, 255, 0.96);
78-
color: #000;
78+
color: var(--ow-color-black);
7979
}
8080
}

openwisp_network_topology/static/netjsongraph/css/style.css

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
padding: 8px 15px;
1414
background: #fbfbfb;
1515
border-radius: 8px;
16-
color: #000;
16+
color: var(--ow-color-black);
1717
font-family: Arial, sans-serif;
1818
font-family: sans-serif;
1919
font-size: 14px;
@@ -52,13 +52,13 @@
5252
}
5353

5454
.njg-sideBar h2 {
55-
color: #000;
55+
color: var(--ow-color-black);
5656
margin: 0;
5757
font-size: 20px;
5858
}
5959

6060
.njg-sideBar * {
61-
color: #000;
61+
color: var(--ow-color-black);
6262
box-sizing: border-box;
6363
}
6464

@@ -82,7 +82,7 @@
8282
right: 15px;
8383
top: 15px;
8484
font-size: 30px;
85-
color: #fff;
85+
color: var(--ow-color-white);
8686
cursor: pointer;
8787
}
8888

@@ -94,7 +94,7 @@ body .frontend {
9494
}
9595

9696
.njg-switcher {
97-
background: #fff;
97+
background: var(--ow-color-white);
9898
border-radius: 5px;
9999
font-family: Arial, sans-serif;
100100
font-family: sans-serif;
@@ -111,7 +111,7 @@ body .frontend {
111111
}
112112

113113
.njg-switcher * {
114-
color: #000;
114+
color: var(--ow-color-black);
115115
}
116116

117117
#njg-datepicker {
@@ -120,12 +120,12 @@ body .frontend {
120120
padding: 5px 10px;
121121
width: 94px;
122122
outline: none;
123-
color: #000 !important;
123+
color: var(--ow-color-black) !important;
124124
}
125125

126126
#njg-datepicker:focus {
127-
border: 1px solid #df5d43;
128-
color: #df5d43 !important;
127+
border: 1px solid var(--ow-color-primary);
128+
color: var(--ow-color-primary) !important;
129129
}
130130

131131
#ui-datepicker-div {
@@ -137,42 +137,42 @@ body .frontend {
137137
}
138138

139139
#ui-datepicker-div tr {
140-
background: #fff !important;
140+
background: var(--ow-color-white) !important;
141141
}
142142

143143
.ui-datepicker-header {
144-
background: #fff !important;
145-
color: #000 !important;
144+
background: var(--ow-color-white) !important;
145+
color: var(--ow-color-black) !important;
146146
border: none !important;
147147
}
148148

149149
.ui-state-default {
150150
border: none !important;
151-
background: #fff !important;
152-
color: #000 !important;
151+
background: var(--ow-color-white) !important;
152+
color: var(--ow-color-black) !important;
153153
text-align: center !important;
154154
}
155155

156156
.ui-state-default:hover,
157157
.ui-state-default:focus,
158158
.ui-state-active {
159-
background: #333 !important;
160-
color: #fff !important;
159+
background: var(--ow-color-fg-darker) !important;
160+
color: var(--ow-color-white) !important;
161161
}
162162

163163
.ui-state-default:hover {
164164
background: #7b7b7b !important;
165165
}
166166

167167
.ui-datepicker-today a {
168-
background: #df5d43 !important;
169-
color: #fff !important;
168+
background: var(--ow-color-primary) !important;
169+
color: var(--ow-color-white) !important;
170170
}
171171

172172
.ui-datepicker thead th {
173173
line-height: normal;
174174
text-transform: uppercase;
175175
font-size: 11px;
176-
background: #fff;
177-
color: #000;
176+
background: var(--ow-color-white);
177+
color: var(--ow-color-black);
178178
}

0 commit comments

Comments
 (0)